user19853: 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.

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

19853: <p>I want to convert a file with <code>TTML</code> subtitles preferably to <code>STL</code>, or to <code>SRT</code> (less preferred). I thought that I would be able to do it with <code>ffmpeg</code> but apparently they do not support it, because the <code>TTML</code> is <code>XML</code>-based. My main goal is to find a way to do this using the command line, so I can use it in a script.</p>
 36394: <p>The <a href="https://pypi.org/project/ttconv/" rel="nofollow noreferrer">ttconv</a> Python package will do it. It can be installed with pip.</p>
