Skip to content

Commit

Permalink
mediaconvert: allow video without audio tracks to be processed (#949)
Browse files Browse the repository at this point in the history
* mediaconvert: allow video without audio tracks to be processed

* Update test fixtures to reflect changes

---------

Co-authored-by: Thom Shutt <[email protected]>
  • Loading branch information
emranemran and thomshutt authored Nov 2, 2023
1 parent 3238353 commit 39daca5
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
5 changes: 4 additions & 1 deletion clients/fixtures/mediaconvert_payloads/accelerated.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
Inputs: [{
AudioSelectors: {
Audio Selector 1: {
DefaultSelection: "DEFAULT"
DefaultSelection: "DEFAULT",
Offset: 0,
ProgramSelection: 1,
SelectorType: "TRACK"
}
},
FileInput: "input",
Expand Down
5 changes: 4 additions & 1 deletion clients/fixtures/mediaconvert_payloads/happy.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
Inputs: [{
AudioSelectors: {
Audio Selector 1: {
DefaultSelection: "DEFAULT"
DefaultSelection: "DEFAULT",
Offset: 0,
ProgramSelection: 1,
SelectorType: "TRACK"
}
},
FileInput: "input",
Expand Down
5 changes: 4 additions & 1 deletion clients/fixtures/mediaconvert_payloads/no-mp4.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
Inputs: [{
AudioSelectors: {
Audio Selector 1: {
DefaultSelection: "DEFAULT"
DefaultSelection: "DEFAULT",
Offset: 0,
ProgramSelection: 1,
SelectorType: "TRACK"
}
},
FileInput: "input",
Expand Down
3 changes: 3 additions & 0 deletions clients/mediaconvert.go
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,10 @@ func createJobPayload(inputFile, hlsOutputFile, mp4OutputFile, role string, acce
{
AudioSelectors: map[string]*mediaconvert.AudioSelector{
"Audio Selector 1": {
Offset: aws.Int64(0),
DefaultSelection: aws.String("DEFAULT"),
SelectorType: aws.String("TRACK"),
ProgramSelection: aws.Int64(1),
},
},
FileInput: aws.String(inputFile),
Expand Down

0 comments on commit 39daca5

Please sign in to comment.