[FFmpeg-user] Unable to convert dvb_teletext subtitles

Adam Baxter voltagex at voltagex.org
Wed Jun 10 13:01:22 CEST 2015


On 10 June 2015 at 18:02, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:

> Adam Baxter <voltagex <at> voltagex.org> writes:
>
> > > Please test with:
> > > ffmpeg -txt_format text -i input out.srt
>
> > Reading option 'test.txt' ... matched as output file.
>
> FFmpeg is not able to output txt files.
>
> Please do not cut the console output,
> always provide the complete console output.
> And please always provide both the command
> line you used and the console output.
>

You are correct, I typo'd the command -
ffmpeg -txt_format text -i
E:\Sort\_Needs_encoding\AV-0-268435456-0-0-268439761-97938000_BDY test2.srt

ffmpeg version N-72804-g58142a2 Copyright (c) 2000-2015 the FFmpeg
developers
  built with gcc 4.9.2 (GCC)
  configuration: --arch=x86_64 --target-os=mingw32
--cross-prefix=/media/source/ffmpeg-windows-build-helpers/sandbox/mingw-w64-x86_64/bin/x86_64-w64-m
ingw32- --pkg-config=pkg-config --enable-gpl --enable-libsoxr
--enable-fontconfig --enable-libass --enable-libutvideo --enable-libbluray
--enable-icon
v --enable-libtwolame --extra-cflags=-DLIBTWOLAME_STATIC --enable-libzvbi
--enable-libcaca --enable-libmodplug --extra-libs=-lstdc++ --extra-libs=-lpn
g --enable-libvidstab --enable-libx265 --enable-decklink
--extra-libs=-loleaut32 --enable-libx264 --enable-libxvid
--enable-libmp3lame --enable-versio
n3 --enable-zlib --enable-librtmp --enable-libvorbis --enable-libtheora
--enable-libspeex --enable-libopenjpeg --enable-gnutls --enable-libgsm
--enabl
e-libfreetype --enable-libopus --disable-w32threads --enable-frei0r
--enable-filter=frei0r --enable-libvo-aacenc --enable-bzlib
--enable-libxavs --ena
ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc
--enable-libschroedinger --enable-libvpx --enable-libilbc
--enable-libwavpack
 --enable-libwebp --enable-libgme --enable-dxva2 --enable-libdcadec
--enable-avisynth --enable-libmfx --enable-static --disable-shared
--extra-cflags=
 --prefix=/media/source/ffmpeg-windows-build-helpers/sandbox/mingw-w64-x86_64/x86_64-w64-mingw32
--extra-libs=-lpsapi --enable-nonfree --enable-libfdk
-aac --disable-libfaac --enable-nvenc --enable-runtime-cpudetect
  libavutil      54. 27.100 / 54. 27.100
  libavcodec     56. 41.100 / 56. 41.100
  libavformat    56. 36.100 / 56. 36.100
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 16.101 /  5. 16.101
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.100 /  1.  2.100
  libpostproc    53.  3.100 / 53.  3.100
[mpegts @ 0000000004ef6940] PES packet size mismatch
Input #0, mpegts, from
'E:\Sort\_Needs_encoding\AV-0-268435456-0-0-268439761-97938000_BDY':
  Duration: 00:36:17.12, start: 44077.332144, bitrate: 5061 kb/s
  Program 676
    Stream #0:0[0x202]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002),
yuv420p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 10000 kb/s, 25 fps, 25 tbr,
90k tbn, 50 tbc
    Stream #0:1[0x28c](eng): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz,
stereo, s16p, 256 kb/s
    Stream #0:2[0x242](eng): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
Output #0, srt, to 'test2.srt':
  Metadata:
    encoder         : Lavf56.36.100
    Stream #0:0(eng): Subtitle: subrip (srt)
    Metadata:
      encoder         : Lavc56.41.100 srt
Stream mapping:
  Stream #0:2 -> #0:0 (dvb_teletext (libzvbi_teletextdec) -> subrip (srt))
Press [q] to stop, [?] for help
size=      49kB time=00:33:58.72 bitrate=   0.2kbits/s
video:0kB audio:0kB subtitle:22kB other streams:0kB global headers:0kB
muxing overhead: 123.902092%

The subtitle is perfect - thank you very much.

Any idea if this command ever changed? I have older files in my library
encoded from DVB-T sources in the same way with matching srt files.


--Adam


More information about the ffmpeg-user mailing list