[FFmpeg-user] teletext subttitle conversion
BB
bbutscheidt at yahoo.de
Mon Mar 30 21:18:05 CEST 2015
On 29/03/15 21:04, Moritz Barsnick wrote:
> H.
> "-txt_format:4 txt" should be "-txt_format text" (note the 'e' in the
> argument), according to my documentation.
>
>
Thanks @Carl and @ Moritz for you hints. Stupid me!
The only thing I know to add is that the only text-based codec which seem to work for mp4-output is "mov_text". So this leads to a result:
=====================================
ffmpeg -y -fix_sub_duration -txt_format text -ss 0:03:24.23 -i /mnt/video2/Death_in_Paradise/_/2015-01-08.21.57.195-0.rec/00001.ts -t 00:59:05.010 -map 0:0 -vcodec copy -map 0:2 -acodec copy -map 0:4 -scodec mov_text /mnt/Data_bb/sda9/ProjectX/Death_in_Paradise_01_V02.mp4
ffmpeg version N-71144-gbcf44c9 Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 4.9.2 (GCC) 20150304 (prerelease)
configuration: --enable-libzvbi --enable-gpl --enable-libx264 --enable-nonfree --enable-libmp3lame --enable-libfaac --enable-version3 --enable-pic --enable-postproc --prefix=/usr
libavutil 54. 21.100 / 54. 21.100
libavcodec 56. 32.100 / 56. 32.100
libavformat 56. 26.101 / 56. 26.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 13.101 / 5. 13.101
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
[h264 @ 0x2f80220] mmco: unref short failure
Last message repeated 2 times
[h264 @ 0x2f80220] Missing reference picture, default is 4
[h264 @ 0x2f80220] decode_slice_header error
[h264 @ 0x2f80220] mmco: unref short failure
Last message repeated 1 times
[mpegts @ 0x2f7c260] PES packet size mismatch
Input #0, mpegts, from '/mnt/video2/Death_in_Paradise/_/2015-01-08.21.57.195-0.rec/00001.ts':
Duration: 01:08:57.78, start: 27729.841800, bitrate: 5034 kb/s
Program 132
Stream #0:0[0x1518]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 22.33 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:1[0x151a](NAR): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 256 kb/s
Stream #0:2[0x1519](eng): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, stereo, fltp, 192 kb/s
Stream #0:3[0x151c](eng): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
Stream #0:4[0x151b](eng): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
[mp4 @ 0x2ff1de0] track 1: codec frame size is not set
Output #0, mp4, to '/mnt/Data_bb/sda9/ProjectX/Death_in_Paradise_01_V02.mp4':
Metadata:
encoder : Lavf56.26.101
Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 22.33 fps, 25 tbr, 90k tbn, 90k tbc
Stream #0:1(eng): Audio: ac3 ([165][0][0][0] / 0x00A5), 48000 Hz, stereo, 192 kb/s
Stream #0:2(eng): Subtitle: mov_text ([8][0][0][0] / 0x0008)
Metadata:
encoder : Lavc56.32.100 mov_text
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:2 -> #0:1 (copy)
Stream #0:4 -> #0:2 (dvb_teletext (libzvbi_teletextdec) -> mov_text (native))
Press [q] to stop, [?] for help
[mp4 @ 0x2ff1de0] pts has no value
Last message repeated 13 times
[mp4 @ 0x2ff1de0] pts has no value 1474kB time=00:00:14.31 bitrate= 843.5kbits/s
Last message repeated 5 times
frame=88631 fps=434 q=-1.0 Lsize= 1937150kB time=00:59:05.01 bitrate=4476.5kbits/s
video:1851630kB audio:83104kB subtitle:38kB other streams:0kB global headers:0kB muxing overhead: 0.122882%
More information about the ffmpeg-user
mailing list