[FFmpeg-trac] #4859(undetermined:new): TTML subtitles

FFmpeg trac at avcodec.org
Tue Nov 16 01:03:15 EET 2021


#4859: TTML subtitles
-------------------------------------+-------------------------------------
             Reporter:  Carl Eugen   |                    Owner:  (none)
  Hoyos                              |
                 Type:  enhancement  |                   Status:  new
             Priority:  wish         |                Component:
                                     |  undetermined
              Version:  git-master   |               Resolution:
             Keywords:  sub          |               Blocked By:
  videolan mpv                       |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Comment (by CoRoNe):

 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
 [http://videlibri.sourceforge.net/xidel.html 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
 [https://gist.github.com/Reino17/79bfde41e9f3dea0e102f816904a8e09 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.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/4859#comment:16>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list