- Newest
- Most votes
- Most comments
Is there right duration? Manifest said #EXT-X-TARGETDURATION:7 But web vtt file almost 18 minutes long.
Did you consider to add captions at transcoding stage?
My suggestion is to use Mediaconvert to get output that will be compliant with MediaPackage ingest criteria. Then you can tune you manual ingest by knowing what is expected by downstream service, like MediaPackage.
Thank you for the clarification. Just to confirm: You're suggesting I run MediaConvert once with subtitles to see the output format, then use that as a template for my manual script going forward. That way I can keep adding subtitles manually without re-transcoding, but match the format MediaPackage expects. Is that right?
Based on your workflow description, there are a few potential issues that could be causing your subtitles to not appear in the MediaPackage output.
First, MediaPackage has specific requirements for how subtitles should be ordered in the input manifest. MediaPackage designates the first subtitles track as DEFAULT=YES and AUTO-SELECT=YES, overriding any default and auto-select settings from the input. Your source manifest already has these attributes set correctly for your Vietnamese subtitles.
However, there are a few things to check:
-
WebVTT Format: MediaPackage supports WebVTT text-based subtitles for input. Make sure your subtitle file is properly formatted as WebVTT.
-
Manual Manifest Modification: Since you're using a post-processing script to add WebVTT subtitles to the existing HLS manifest, ensure that the subtitle track is properly referenced and that the subtitle file is accessible at the specified URI path.
-
Subtitle Signaling: For MediaPackage to properly process subtitles, the
CHARACTERISTICSattribute should be present in theEXT-X-MEDIAtag for subtitles. Your manifest includes this with the appropriate values. -
Packaging Configuration: Check your MediaPackage packaging configuration to ensure it's set up to include subtitles in the output.
-
Subtitle Track Association: Make sure your
EXT-X-STREAM-INFtag includes theSUBTITLES="subs"attribute to associate the video stream with the subtitle group, which your manifest does have.
For the most reliable workflow with MediaPackage VOD and subtitles:
- Have MediaConvert generate both the video/audio and the WebVTT subtitles in a single job
- Ensure the subtitle track is properly signaled in the HLS manifest
- Create the MediaPackage asset pointing to this complete HLS package
- For DASH output, MediaPackage will translate WebVTT subtitles to EBU-TT format
If you continue to experience issues, you might want to check if the subtitle files are being properly ingested by MediaPackage during the asset creation process.
Sources
Features of AWS Elemental MediaPackage - AWS Elemental MediaPackage
VOD Content Processing - AWS Elemental MediaPackage
how can i Check the
Packaging Configuration: Check your MediaPackage packaging configuration to ensure it's set up to include subtitles in the output
Relevant content
- asked 6 years ago
- asked 4 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago

Thank you for the suggestions.
I'm currently adding subtitles manually via post-processing script because I don't want to re-transcode the video every time I need to add a new subtitle language. Re-transcoding would be time-consuming and costly for our workflow.
I haven't tried the transcoding approach yet with MediaConvert generating the subtitles.
Also, I should mention that I'm currently testing with a subtitle file from online that doesn't actually match my video content - just for testing the technical integration. This might explain why the duration doesn't match (#EXT-X-TARGETDURATION:7 vs 18-minute WebVTT file).
Thanks