[FFmpeg-user] teletext.dat

william Gunnells gunnells at gmail.com
Sat Feb 13 03:56:45 CET 2016

ffmpeg -i output.ts -vn -an -f rawvideo -copyinkf -scodec copy teletext.dat

this command creates a teletext.dat I have tried to read the file with
hexdump and its still not clear.

Is it really bin2hex , or some other format like base64 or hqx or qp etc?

With ccextractor I can extract both dvb_teletext and dvb_subtitle and
populate a plain text file with time codes.
I have read other forums and no one seems to have an answer about the
binary teletext.dat file

My goal is to compare both teletext and srt files via the command line for
a parity check. I'm trying to validate proper transcoding is taking place
at an encoder level.

I would rather not use ccextractor because while it works in linux it
doesn't always work in windows. Any help would be appreciated.I keep
thinking I'm missing something
fundamental or what?

-i output.ts -vn -an -f rawvideo
-copyinkf -scodec copy teletext.dat
ffmpeg version N-78358-g674cc26 Copyright (c) 2000-2016 the FFmpeg
  built with gcc 5.3.0 (GCC)
  configuration: --disable-static --enable-shared --enable-gpl
--enable-version3 --disable-w32threads --enable-avisynth
--enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls
--enable-iconv --enable-libass --enable-libbluray --e
nable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype
--enable-libgme --enable-libgsm --enable-libilbc
--enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libopenjpeg --ena
ble-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr
--enable-libspeex --enable-libtheora --enable-lib
twolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis
--enable-libvpx --enable-libwavpack --enable-libw
ebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid
--enable-libzimg --enable-lzma --enable-decklink
  libavutil      55. 17.100 / 55. 17.100
  libavcodec     57. 24.101 / 57. 24.101
  libavformat    57. 24.101 / 57. 24.101
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 30.100 /  6. 30.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
Input #0, mpegts, from 'output.ts':
  Duration: 00:00:15.26, start: 2.491511, bitrate: 3070 kb/s
  Program 1
      service_name    : Service01
      service_provider: FFmpeg
    Stream #0:0[0x100]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002),
yuv420p(tv), 704x576 [SAR 12:11 DAR 4:3], max.
 15000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x101](eng): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
    Stream #0:2[0x102](eng): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
File 'teletext.dat' already exists. Overwrite ? [y/N] y
Output #0, rawvideo, to 'teletext.dat':
    encoder         : Lavf57.24.101
    Stream #0:0(eng): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
Press [q] to stop, [?] for help
size=      51kB time=00:00:13.82 bitrate=  30.1kbits/s speed= 886x
video:0kB audio:0kB subtitle:51kB other streams:0kB global headers:0kB
muxing overhead: 0.000000%

More information about the ffmpeg-user mailing list