3

I want to convert a file with TTML subtitles preferably to STL, or to SRT (less preferred). I thought that I would be able to do it with ffmpeg but apparently they do not support it, because the TTML is XML-based. My main goal is to find a way to do this using the command line, so I can use it in a script.

2 Answers 2

3

The ttconv Python package will do it. It can be installed with pip.

0
0

If you need more formats and better file parsing capabilities, you can use subtitles package

php subtiltes.phar input.ttml output.stl

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.