[FFmpeg-user] Unable to convert dvb_teletext subtitles

Adam Baxter voltagex at voltagex.org
Wed Jun 10 03:02:26 CEST 2015


I am trying to convert or extract dvb_teletext subtitles from a MPEG2 TS
file. I'm getting Error while opening encoder for output stream #0:0 -
maybe incorrect parameters such as bit_rate, rate, width or height as shown
in the log below

ffmpeg -loglevel debug -i
E:\Sort\_Needs_encoding\AV-0-268435456-0-0-268439761-97938000_BDY test.srt

ffmpeg : 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-mingw32-
--pkg-config=pkg-config --enable-gpl
--enable-libsoxr --enable-fontconfig --enable-libass --enable-libutvideo
--enable-libbluray --enable-iconv --enable-libtwolame
--extra-cflags=-DLIBTWOLAME_STATIC --enable-libzvbi --enable-libcaca
--enable-libmodplug --extra-libs=-lstdc++ --extra-libs=-lpng
--enable-libvidstab --enable-libx265 --enable-decklink
--extra-libs=-loleaut32 --enable-libx264 --enable-libxvid
--enable-libmp3lame
--enable-version3 --enable-zlib --enable-librtmp --enable-libvorbis
--enable-libtheora --enable-libspeex --enable-libopenjpeg --enable-gnutls
--enable-libgsm --enable-libfreetype --enable-libopus --disable-w32threads
--enable-frei0r --enable-filter=frei0r --enable-libvo-aacenc
--enable-bzlib --enable-libxavs --enable-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

Splitting the commandline.
Reading option '-loglevel' ...
 matched as option 'loglevel' (set logging level) with argument 'debug'.

Reading option '-i' ...
 matched as input file with argument
'E:\Sort\_Needs_encoding\AV-0-268435456-0-0-268439761-97938000_BDY'.

Reading option 'test.srt' ...
 matched as output file.

Finished splitting the commandline.

Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input file
E:\Sort\_Needs_encoding\AV-0-268435456-0-0-268439761-97938000_BDY.

Successfully parsed a group of options.

Opening an input file:
E:\Sort\_Needs_encoding\AV-0-268435456-0-0-268439761-97938000_BDY.

[mpegts @ 0000000004c567a0]
Format mpegts probed with size=2048 and score=100

[mpegts @ 0000000004c567a0]
stream=0 stream_type=2 pid=202 prog_reg_desc=

[mpegts @ 0000000004c567a0] stream=1 stream_type=4 pid=28c prog_reg_desc=
[mpegts @ 0000000004c567a0] stream=2 stream_type=6 pid=242 prog_reg_desc=

[mpegts @ 0000000004c567a0]
Before avformat_find_stream_info() pos: 0 bytes read:65536 seeks:1

[mpegts @ 0000000004c567a0]
parser not found for codec dvb_teletext, packets or times may be invalid.

[libzvbi_teletextdec @ 0000000004c7f360]
 page filter: *

[mpegts @ 0000000004c567a0]
parser not found for codec dvb_teletext, packets or times may be invalid.

[mpegts @ 0000000004c567a0]
max_analyze_duration 5000000 reached at 5000000 microseconds
[mpegts @ 0000000004c567a0] PES packet size mismatch
[mpegts @ 0000000004c567a0] After avformat_find_stream_info() pos: 0 bytes
read:4354480 seeks:4 frames:573
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], 117, 1/90000: Video: mpeg2video (Main), 1 reference
frame ([2][0][0][0] / 0x0002), yuv420p(tv, left), 720x576 [SAR 64:45 DAR
16:9], 1/50, max. 10000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x28c](eng), 204, 1/90000: Audio: mp2 ([4][0][0][0] /
0x0004), 48000 Hz, stereo, s16p, 256 kb/s
    Stream #0:2[0x242](eng), 252, 1/90000: Subtitle: dvb_teletext
([6][0][0][0] / 0x0006), 492x250
Successfully opened the file.
Parsing a group of options: output file test.srt.
Successfully parsed a group of options.
Opening an output file: test.srt.

Successfully opened the file.

Output #0, srt, to 'test.srt':
Stream #0:0 (eng), 0, 0/0: Subtitle: subrip, 128 kb/s


    Metadata:      encoder         : Lavc56.41.100 srt

Stream mapping:
  Stream #0:2 -> #0:0
 (dvb_teletext (libzvbi_teletextdec) -> subrip (srt)
)

Error while opening encoder for output stream #0:0 - maybe incorrect
parameters such as bit_rate, rate, width or height

[AVIOContext @ 0000000005000f00]
 Statistics: 0 seeks, 0 writeouts

[AVIOContext @ 0000000004c57020]
 Statistics: 4354480 bytes read, 4 seeks


More information about the ffmpeg-user mailing list