debugMinor
Trying to make job working AWS MediaConvert (ERROR 1040)
Viewed 0 times
errortryingworkingmake1040awsmediaconvertjob
Problem
Here is my json job.
And it falls with :
Invalid selector_sequence_id [0] specified for audio_description [1]
What i'm doing wr
{
"Queue": "arn:aws:mediaconvert:xxxxx",
"UserMetadata": {},
"Role": "xxxxx:role/MediaConvert",
"Settings": {
"TimecodeConfig": {
"Source": "EMBEDDED"
},
"OutputGroups": [
{
"CustomName": "123",
"Name": "Apple HLS",
"Outputs": [
{
"Preset": "System-Ott_Hls_Ts_Avc_Aac_16x9_1280x720p_30Hz_5.0Mbps",
"OutputSettings": {
"HlsSettings": {
"SegmentModifier": "1"
}
},
"NameModifier": "test video out"
}
],
"OutputGroupSettings": {
"Type": "HLS_GROUP_SETTINGS",
"HlsGroupSettings": {
"ManifestDurationFormat": "INTEGER",
"SegmentLength": 10,
"TimedMetadataId3Period": 10,
"CaptionLanguageSetting": "OMIT",
"Destination": "s3://xxxxxx/",
"TimedMetadataId3Frame": "PRIV",
"CodecSpecification": "RFC_4281",
"OutputSelection": "MANIFESTS_AND_SEGMENTS",
"ProgramDateTimePeriod": 600,
"MinSegmentLength": 5,
"MinFinalSegmentLength": 1,
"DirectoryStructure": "SINGLE_DIRECTORY",
"ProgramDateTime": "EXCLUDE",
"SegmentControl": "SINGLE_FILE",
"ManifestCompression": "NONE",
"ClientCache": "ENABLED",
"StreamInfResolution": "INCLUDE"
}
}
}
],
"AdAvailOffset": 0,
"Inputs": [
{
"VideoSelector": {
"ColorSpace": "FOLLOW"
},
"FilterEnable": "AUTO",
"PsiControl": "USE_PSI",
"FilterStrength": 0,
"DeblockFilter": "DISABLED",
"DenoiseFilter": "DISABLED",
"TimecodeSource": "EMBEDDED",
"FileInput": "s3://xxxxx/test_video.mp4"
}
]
}
}And it falls with :
Invalid selector_sequence_id [0] specified for audio_description [1]
What i'm doing wr
Solution
I got this exact same error. I had to add the Audio Selectors. See the following JSON example:
If you are using the Java SDK, add something similar to the following to your inputs:
"Inputs": [
{
"AudioSelectors": {
"Audio Selector 1": {
"Offset": 0,
"DefaultSelection": "DEFAULT",
"SelectorType": "LANGUAGE_CODE",
"ProgramSelection": 1,
"LanguageCode": "ENM"
}
},If you are using the Java SDK, add something similar to the following to your inputs:
AudioSelector audioSelector = new AudioSelector()
.withOffset(0)
.withDefaultSelection("DEFAULT")
.withLanguageCode("ENM")
.withSelectorType("LANGUAGE_CODE")
.withProgramSelection(1);
audioSelectors.put("Audio Selector 1", audioSelector);Code Snippets
"Inputs": [
{
"AudioSelectors": {
"Audio Selector 1": {
"Offset": 0,
"DefaultSelection": "DEFAULT",
"SelectorType": "LANGUAGE_CODE",
"ProgramSelection": 1,
"LanguageCode": "ENM"
}
},AudioSelector audioSelector = new AudioSelector()
.withOffset(0)
.withDefaultSelection("DEFAULT")
.withLanguageCode("ENM")
.withSelectorType("LANGUAGE_CODE")
.withProgramSelection(1);
audioSelectors.put("Audio Selector 1", audioSelector);Context
StackExchange DevOps Q#6062, answer score: 5
Revisions (0)
No revisions yet.