Skip to content

Commit

Permalink
Limit number of AWS tracks
Browse files Browse the repository at this point in the history
  • Loading branch information
KillerX committed Nov 7, 2024
1 parent 327a4c7 commit c3f4c4c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion workflows/export/mux_files.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ func assignLanguagesToResolutions(audioKeys []string, resolutions []utils.Resolu
Resolution: resolutionToString(r),
Languages: []bccmflows.Language{},
}
for len(languages) > 0 && len(qualities[i].Languages) < 10 {

// 9 is the limit of audio streams AWS will accept on one file
// https://eu-north-1.console.aws.amazon.com/servicequotas/home/services/mediapackage/quotas/L-81A8E99B
for len(languages) > 0 && len(qualities[i].Languages) < 8 {
qualities[i].Languages = append(qualities[i].Languages, languages[0])
languages = languages[1:]
}
Expand Down

0 comments on commit c3f4c4c

Please sign in to comment.