Video encoding fails resulting in invalid captions format error in playback
Symptoms
- Video fails with
Invalid captions formatduring playback. - Video Center clip failed to encode with error:
transcoder.m3u8vtt.postprocess
Cause
There is an illegal character in your clip’s closed captions that causes the error. All XML reserved characters including " < > & ' should not be included in the .vtt file.
Solution
-
Go to the video and confirm that the subtitle is failing. If you see the
Invalid captions formaterror, this guide covers your scenario. -
Get the video UUID.
-
Use curl to get the S3 subtitle path.
-
Remember to change “replace_with_uuid” in the URL.
-
The first time, you might need to install jq:
Terminal window brew install jq
-
-
Look for the WEB_VTT file (“url” is an S3 path).
-
In the WEB_VTT file, look for any bad or illegal characters.
-
If you cannot find any and are still having issues, please submit an ACS ticket.