[FFmpeg-user] Help burning DVB subtitles to video
Dragan Miljković
dragan at bsnet.rs
Wed Feb 18 22:28:17 CET 2015
I'm trying to burn DVB subtitles to video but I always get "rectangle
overflowing" error. I guess the problem is with the input video that is
of resolution 544x576, but I don't know how to overcome it?
This is the command line that I use:
ffmpeg -canvas_size 544x576 -i
'udp://239.1.0.1:1234?fifo_size=1000000&overrun_nonfatal=1'
-filter_complex "[0:v][0:s:1]overlay[v]" -map "[v]" -map 0:1 -c:v
libx264 -g 25 -preset medium -crf 25 -vsync 1 -c:a libmp3lame -b:a 96k
-ar 44100 -f mpegts udp://239.1.7.1:2020
This is the output of ffmpeg:
ffmpeg version 2.5.git Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
configuration: --prefix=/root/ffmpeg_build
--extra-cflags=-I/root/ffmpeg_build/include
--extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --enable-gpl
--enable-libass --enable-libfdk-aac --enable-libfreetype
--enable-libmp3lame --enable-libopus --enable-libtheora
--enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree
libavutil 54. 18.100 / 54. 18.100
libavcodec 56. 21.102 / 56. 21.102
libavformat 56. 19.100 / 56. 19.100
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 9.104 / 5. 9.104
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
[mp3 @ 0x2985fc0] Header missing
[mpegts @ 0x2971300] Could not find codec parameters for stream 2
(Audio: mp3 ([4][0][0][0] / 0x0004), 0 channels, s16p): unspecified
frame size
Consider increasing the value for the 'analyzeduration' and 'probesize'
options
[mpegts @ 0x2971300] Could not find codec parameters for stream 3
(Audio: mp3 ([4][0][0][0] / 0x0004), 0 channels, s16p): unspecified
frame size
Consider increasing the value for the 'analyzeduration' and 'probesize'
options
Input #0, mpegts, from
'udp://239.1.0.1:1234?fifo_size=1000000&overrun_nonfatal=1':
Duration: N/A, start: 82767.817233, bitrate: N/A
Program 1027
Metadata:
service_name : Animal Planet CE
service_provider: RCS
Stream #0:0[0x20f]: Video: mpeg2video (Main) ([2][0][0][0] /
0x0002), yuv420p(tv), 544x576 [SAR 24:17 DAR 4:3], max. 10000 kb/s, 25
fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:1[0x2a5](eng): Audio: mp2 ([4][0][0][0] / 0x0004), 48000
Hz, stereo, s16p, 112 kb/s
Stream #0:2[0x2cd](hun): Audio: mp3 ([4][0][0][0] / 0x0004), 0
channels, s16p
Stream #0:3[0x7d8](cze): Audio: mp3 ([4][0][0][0] / 0x0004), 0
channels, s16p
Stream #0:4[0x44c](scr): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
Stream #0:5[0x3c6](srp): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
[libx264 @ 0x2a715a0] using SAR=24/17
[libx264 @ 0x2a715a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
[libx264 @ 0x2a715a0] profile High, level 3.0
Output #0, mpegts, to 'udp://239.1.7.1:2020':
Metadata:
encoder : Lavf56.19.100
Stream #0:0: Video: h264 (libx264), yuv420p, 544x576 [SAR 24:17 DAR
4:3], q=-1--1, 25 fps, 90k tbn, 25 tbc (default)
Metadata:
encoder : Lavc56.21.102 libx264
Stream #0:1(eng): Audio: mp3 (libmp3lame), 44100 Hz, stereo, s16p,
96 kb/s
Metadata:
encoder : Lavc56.21.102 libmp3lame
Stream mapping:
Stream #0:0 (mpeg2video) -> overlay:main (graph 0)
Stream #0:5 (dvbsub) -> overlay:overlay (graph 0)
overlay (graph 0) -> Stream #0:0 (libx264)
Stream #0:1 -> #0:1 (mp2 (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
[mp2 @ 0x2b74c80] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
sub2video: rectangle overflowing 88kB time=00:00:02.79 bitrate=
258.9kbits/s dup=29 drop=0
Last message repeated 1 times
sub2video: rectangle overflowing 407kB time=00:00:06.79 bitrate=
491.0kbits/s dup=29 drop=0
Last message repeated 1 times
Thanks!
More information about the ffmpeg-user
mailing list