[FFmpeg-user] Which command line can do dvb_teletext from ts to mp4

Henk D. Schoneveld belcampo at zonnet.nl
Mon Feb 15 14:12:12 CET 2016


On 15 Feb 2016, at 09:55, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:

> Henk D. Schoneveld <belcampo <at> zonnet.nl> writes:
> 
>>> Tested myself and it works, maybe I can find 
>>> out how telxcc identifies the teletext stream…
>> 
>> That would be really great
> 
> Feel free to test my patch:
> http://ffmpeg.org/pipermail/ffmpeg-devel/2016-February/189356.html
First of all many thanks for the quick response. Another question, you do sleep sometimes ?
Applied the patch. Source is now recognised as
Stream #0:2[0x2b]: Subtitle: dvb_teletext, 492x250
But the command line results in:
ffmpeg -y -i base.ts -c:v libx264 -preset veryfast -crf 22 -g 50 -me_method umh -s 880x720 -c:a libfdk_aac -ab 96k -ac 2 -r 25 -c:s subrip -metadata:s:s:0 language=dut -map 0:0 -map 0:1 -map 0:p:0x2b -movflags faststart base2.mp4
ffmpeg version N-78441-g4c44972 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.8.2 (GCC)
  configuration: --prefix=/usr --enable-libfdk_aac --enable-libx264 --enable-gpl --enable-nonfree --enable-libzvbi
  libavutil      55. 17.102 / 55. 17.102
  libavcodec     57. 24.102 / 57. 24.102
  libavformat    57. 25.100 / 57. 25.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 31.100 /  6. 31.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
[h264 @ 0x28adb80] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x28adb80] decode_slice_header error
[h264 @ 0x28adb80] no frame!
snip
[h264 @ 0x28adb80] number of reference frames (0+4) exceeds max (3; probably corrupt input), discarding one
[h264 @ 0x28adb80] Increasing reorder buffer to 2
[mpegts @ 0x28a96c0] PES packet size mismatch
Input #0, mpegts, from 'base.ts':
  Duration: 00:58:00.67, start: 81768.399578, bitrate: 5178 kb/s
  Program 1 
    Stream #0:0[0x20d]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x69](dut): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, 5.1(side), fltp, 384 kb/s
  No Program
    Stream #0:2[0x2b]: Subtitle: dvb_teletext, 492x250
Stream map '0:p:0x2b' matches no streams.
To ignore this, add a trailing '?' to the map.

I also added -map 0:i:0x378 to the command line with exactly the same result.

By changing -map 0:p:0x2b to -map 0:2 I get:
  Stream #0:2 -> #0:2 (dvb_teletext (libzvbi_teletextdec) -> subrip (native))
Error while opening encoder for output stream #0:2 - maybe incorrect parameters such as bit_rate, rate, width or height

Should the found ‘492x250’ somehow be added ?
The telxcc produced .srt file doesn’t have any dimensions in it AFAIK.
> 
> Carl Eugen
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user



More information about the ffmpeg-user mailing list