Skip to content

Default Audio Language Changed After Packaging with MediaPackage VOD

0

I am using AWS MediaConvert to transcode an MP4 video into HLS format. My configuration includes multiple audio outputs with the following order:

  1. English
  2. Indonesian (DEFAULT)

When I play the MediaConvert output, the default audio is correctly set to Indonesian as configured. However, after packaging the HLS with AWS MediaPackage, the default audio language changes to English (the first audio track in the list). It seems MediaPackage always selects the first audio track as the default, regardless of the configuration in the MediaConvert output.

Here is my master playlist outputs: Original (.m3u8)

#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="program_audio",LANGUAGE="eng",NAME="Ini Audio English",AUTOSELECT=NO,DEFAULT=NO,CHANNELS="2",URI="media-audio-eng.m3u8"
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="program_audio",LANGUAGE="ind",NAME="Ini Audio Indonesia",AUTOSELECT=YES,DEFAULT=YES,CHANNELS="2",URI="media-audio-ind.m3u8"

MediaPackage output (.m3u8)

#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio_0",CHANNELS="2",NAME="Ini Audio English",LANGUAGE="eng",DEFAULT=YES,AUTOSELECT=YES,URI="77b80922fc494bbfbb66ac1e706f4c9a/901fae98b65247ca98f4a1e0e92edbe0/index_3_0.m3u8"
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio_0",CHANNELS="2",NAME="Ini Audio Indonesia",LANGUAGE="ind",DEFAULT=NO,AUTOSELECT=NO,URI="77b80922fc494bbfbb66ac1e706f4c9a/901fae98b65247ca98f4a1e0e92edbe0/index_4_0.m3u8"

As seen above, the DEFAULT attribute for Indonesian audio changes after packaging.

Is this a limitation of MediaPackage, or is there a configuration issue in my workflow? Do I need to place the default audio (Indonesian) as the first track in the MediaConvert output to ensure it remains default after packaging?

asked 10 months ago158 views
2 Answers
2
Accepted Answer

This issue appears to be related to how AWS MediaPackage handles audio tracks during packaging. Based on the information provided, it seems that MediaPackage is indeed changing the default audio track to the first one in the list, regardless of the original configuration from MediaConvert.

This behavior is likely a limitation or default setting in MediaPackage rather than a configuration issue in your workflow. MediaPackage may not be preserving the DEFAULT and AUTOSELECT attributes from the original HLS manifest when it repackages the content.

To work around this issue, you have a few potential options:

  1. Reorder your audio tracks in MediaConvert: Place the Indonesian audio track (which you want as default) as the first track in your MediaConvert output configuration. This way, when MediaPackage selects the first track as default, it will align with your desired outcome.

  2. Check MediaPackage settings: Review your MediaPackage packaging configuration to see if there are any settings related to audio track selection or default language preservation. There might be options to maintain the original manifest's audio track attributes.

  3. Post-processing: If possible, consider implementing a post-processing step after MediaPackage to modify the manifest and set the correct DEFAULT and AUTOSELECT attributes for your audio tracks.

  4. Contact AWS Support: If none of the above solutions work, it may be worth reaching out to AWS Support to inquire about this behavior and whether there are any planned improvements or workarounds specifically for MediaPackage.

For now, the most straightforward solution would likely be to reorder your audio tracks in MediaConvert, placing the Indonesian track first. This should ensure it remains the default audio after packaging with MediaPackage.
Sources
MediaPackage VOD examples using AWS CLI - AWS SDK Code Examples

answered 10 months ago
EXPERT
reviewed 10 months ago
1

MediaPackage will honor the track ordering of the renditions coming in. Please try changing the order of the output tracks in your MediaConvert job such that Indonesian comes before English.

AWS
answered 10 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.