Opened 8 years ago
Last modified 7 months ago
#4859 new enhancement
TTML subtitle decoding
|Reported by:||Carl Eugen Hoyos||Owned by:|
|Version:||git-master||Keywords:||sub videolan mpv|
|Cc:||firstname.lastname@example.org, email@example.com, firstname.lastname@example.org, email@example.com, firstname.lastname@example.org, email@example.com, firstname.lastname@example.org, mkuron, sersorrel||Blocked By:|
|Blocking:||Reproduced by developer:||no|
|Analyzed by developer:||no|
vlc ticket 14974: https://trac.videolan.org/vlc/ticket/14974
FFmpeg does not support EBU Timed-Text Markup Language (TTML) subtitles yet.
Change History (22)
by , 8 years ago
by , 8 years ago
by , 6 years ago
comment:1 by , 6 years ago
comment:2 by , 6 years ago
comment:3 by , 6 years ago
comment:4 by , 6 years ago
by , 5 years ago
|Attachment:||Still Open All Hours.ttml added|
comment:5 by , 4 years ago
|Keywords:||EBU-TT-D IMSC added|
comment:6 by , 4 years ago
|Keywords:||EBU-TT-D IMSC removed|
comment:7 by , 4 years ago
Is there a reason why you removed the keywords I added in addition?
EBU-TT-D and IMSC (being a superset of EBU-TT-D) are the TTML profiles that are actually used in production for TTML subtitles.
comment:8 by , 4 years ago
We will not have more imsc tickets and the full text search is not disabled here (as it is on other trac installations).
comment:9 by , 4 years ago
Hmm, I haven't found any other tickets related to IMSC (or EBU-TT-D). The enabled full text search is a point though.
comment:10 by , 3 years ago
comment:11 by , 2 years ago
comment:12 by , 2 years ago
comment:13 by , 2 years ago
Can the following patch help?
comment:14 by , 2 years ago
comment:15 by , 17 months ago
comment:16 by , 16 months ago
I can't code in C, but I do know XPath/XQuery.
Seeing that after all these years FFmpeg still doesn't support TTML, I thought I'd have a look at the attached TTML files to see if Xidel, a command-line-tool and XML/HTML parser, could convert it to valid SRT files. The answer is yes, it can. If anyone's interested, I've created a gist.
- Invalid time codes
- End-time vs. duration
- Text-nodes directly within the <p>-node or within several <span>-nodes
- Lots of nonsensical white-space
- Different ways of styling
I can imagine this doesn't help in trying to add support. Each TTML file attached here needed another approach / query. One query that fits them all would be extremely difficult, or even impossible.
comment:17 by , 13 months ago
|Component:||undetermined → avcodec|
|Summary:||TTML subtitles → TTML subtitle decoding|
Editing title to clarify that TTML encoding is already supported. (Added in March 2021 but I didn't notice until now)
comment:18 by , 7 months ago