Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS MediaConvert on media that has no audio

I am currenly creating a MediaConvert job from my Lambda function in AWS and using it to convert my media and also create thumbnails. However it is failing when trying to convert media that has no audio on it.

Invalid audio track specified for audio_selector [1]. Audio track [1] not found in input container.

Is there a way to process media if it has no audio?

like image 944
dreza Avatar asked Feb 05 '19 03:02

dreza


1 Answers

I had the issue as well and solved it by removing the track number in the AudioSelectors section. It seems to work for videos with and without audio tracks.

    "AudioSelectors": {
      "Audio Selector 1": {
        "Offset": 0,
        "DefaultSelection": "DEFAULT",
        "SelectorType": "TRACK",
        "ProgramSelection": 1
      }
    }
like image 107
Romain Avatar answered Nov 07 '22 23:11

Romain