Changes between Initial Version and Version 1 of ExtractSubtitles


Ignore:
Timestamp:
Nov 19, 2016, 2:17:55 AM (3 years ago)
Author:
rogerdpack
Comment:

happy birthday, though this deserved its own page

Legend:

Unmodified
Added
Removed
Modified
  • ExtractSubtitles

    v1 v1  
     1FFmpeg can "read" or "extract" subtitles from embedded subtitle tracks.
     2
     3For instance, if you run ''ffmpeg -i <my_file>'' and you see something like:
     4
     5{{{
     6    Stream #0:2: Subtitle: ssa (default)
     7}}}
     8or
     9{{{
     10    Stream #0:2[0x909](eng): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006), 492x250
     11}}}
     12
     13You can extract or convert those subtitles.  To convert to srt from dvb_teletext.
     14
     15{{{
     16ffmpeg -txt_format text -i input_file out.srt
     17}}}
     18
     19Your FFmpeg needs to be configured with --enable-libzvbi for this to work, and results in something like this:
     20{{{
     21  Stream #0:17 -> #3:0 (dvb_teletext (libzvbi_teletextdec) -> subrip (srt))
     22}}}
     23
     24libzvbi_teletextdec can output in two formats, either "an image" output or "text" output.  Default is image.  Text output must be selected in order for it to be converted to other text formats, like, in this instance, srt.