-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request for TTML subtitle support (STPP) #7573
Comments
This should be a request towards FFmpeg. Demuxing these is simple (as long as you remember |
Already reported upstream https://trac.ffmpeg.org/ticket/4859 |
Well, ffmpeg closed this case years ago, not willing to move it with a cryptic response ;). |
No they didn't, the ticket is still open.
because presumably, nobody who isn't getting paid to wants to touch this trash fire of a standard. |
Because it's one of the worst pieces of shits ever invented? |
@CounterPillow Ure right! Its still open for business, just got put of on the discussion at the end! |
It certainly is. Because XML is so surprisingly complex and messy, and because there's no sane light-weight XML parser, ffmpeg does not well with XML based stuff. On top of this, TTML seems to have its own misdesigned mess on top of it. |
looking at sample from Mubi, it seems easy enough to parse: <?xml version="1.0" encoding="utf-8"?>
<tt xmlns="http://www.w3.org/ns/ttml"
xmlns:ttm="http://www.w3.org/ns/ttml#metadata"
xmlns:ttp="http://www.w3.org/ns/ttml#parameter"
xmlns:tts="http://www.w3.org/ns/ttml#styling" xml:lang="en"
ttp:profile="http://www.w3.org/ns/ttml/profile/imsc1/text">
<head>
<metadata>
<ttm:title/>
<ttm:desc/>
<ttm:copyright/>
</metadata>
<styling>
<style xml:id="basic" tts:backgroundColor="transparent" tts:color="white" tts:fontFamily="proportionalSansSerif" tts:fontSize="16px" tts:textAlign="center"/>
</styling>
<layout>
<region style="basic" xml:id="speaker" tts:displayAlign="center" tts:extent="80% 10%" tts:origin="10% 85%"/>
</layout>
</head>
<body>
<div xml:lang="en">
<p begin="00:01:08.000" end="00:01:09.642" region="speaker">Sorry to interrupt your dinner.</p>
<p begin="00:01:09.666" end="00:01:10.000" region="speaker">Never mind, let's sit over there.</p>
</div>
</body>
</tt> |
I just tested a mp4 file with STPP (TTML) subs and mpv shows it as 0 subs.
Output from mp4box under:
The text was updated successfully, but these errors were encountered: