[FFmpeg-user] Overlaying DVB subtitles in MPEG-TS using overlay filter
Stuart
stuart at klymiarven.co.uk
Sat Jan 19 18:33:28 CET 2013
Hello,
I have an MPEG-TS recording from a Humax PVR and I'm trying to overlay
the DVB subtitle stream onto the video stream with the command:
C:\Videos> ffmpeg -report -i Suburgatory-20121110-1024.TS
-filter_complex "[0:0][0:3]overlay" -sn Suburgatory-20121110-1024.mkv
The ffmpeg output contains (many) "sub2video: rectangle overflowing"
warningsand consequently the video in the MKV is subtitle free.
The documentation suggests the above command should be sufficientbut the
(trimmed) report below indicates otherwise. Any help would be very much
appreciated.
Many thanks,
Stuart
The report contains:
ffmpeg version N-48459-g498e1c6 Copyright (c) 2000-2013 the FFmpeg
developers
built on Jan 4 2013 17:36:11 with gcc 4.7.2 (GCC)
configuration: --disable-static --enable-shared --enable-gpl
--enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib
--enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass
--enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm
--enable-libmp3lame --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus
--enable-librtmp --enable-libschroedinger --enable-libtheora
--enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc
--enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs
--enable-libxvid --enable-zlib
libavutil 52. 13.100 / 52. 13.100
libavcodec 54. 85.101 / 54. 85.101
libavformat 54. 59.103 / 54. 59.103
libavdevice 54. 3.102 / 54. 3.102
libavfilter 3. 30.104 / 3. 30.104
libswscale 2. 1.103 / 2. 1.103
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
Stream #0:0[0xb0a], 129, 1/90000: Video: mpeg2video (Main)
([2][0][0][0] / 0x0002), yuv420p, 704x576 [SAR 16:11 DAR 16:9], 25 fps,
25 tbr, 90k tbn, 50 tbc
Stream #0:1[0xb0b](eng), 211, 1/90000: Audio: mp2 ([4][0][0][0] /
0x0004), 48000 Hz, stereo, s16p, 192 kb/s
Stream #0:2[0xb0d](eng), 0, 1/90000: Audio: mp3 ([4][0][0][0] /
0x0004), 0 channels, s16p (visual impaired)
Stream #0:3[0xb0c](eng), 0, 1/90000: Subtitle: dvb_subtitle
([6][0][0][0] / 0x0006)
[buffer @ 000000000048cac0] Setting entry with key 'video_size' to value
'704x576'
[buffer @ 000000000048cac0] Setting entry with key 'pix_fmt' to value '0'
[buffer @ 000000000048cac0] Setting entry with key 'time_base' to value
'1/90000'
[buffer @ 000000000048cac0] Setting entry with key 'pixel_aspect' to
value '16/11'
[buffer @ 000000000048cac0] Setting entry with key 'sws_param' to value
'flags=2'
[buffer @ 000000000048cac0] Setting entry with key 'frame_rate' to value
'25/1'
[graph 0 input from stream 0:0 @ 00000000004a5300] w:704 h:576
pixfmt:yuv420p tb:1/90000 fr:25/1 sar:16/11 sws_param:flags=2
[mpegts @ 000000000056f880] sub2video: using 704x576 canvas
[buffer @ 000000000048c980] Setting entry with key 'video_size' to value
'704x576'
[buffer @ 000000000048c980] Setting entry with key 'pix_fmt' to value '0'
[buffer @ 000000000048c980] Setting entry with key 'time_base' to value
'1/90000'
[buffer @ 000000000048c980] Setting entry with key 'pixel_aspect' to
value '0/1'
[buffer @ 000000000048c980] Setting entry with key 'sws_param' to value
'flags=2'
[graph 0 input from stream 0:3 @ 00000000004a51e0] w:704 h:576
pixfmt:yuv420p tb:1/90000 fr:0/1 sar:0/1 sws_param:flags=2
Successfully openened the file.
[scale @ 000000000048cd40] Setting 'w' to value '0'
[scale @ 000000000048cd40] Setting 'h' to value '0'
[auto-inserted scaler 0 @ 00000000004a5660] w:0 h:0 flags:'' interl:0
[Parsed_overlay_0 @ 00000000004a5280] auto-inserting filter
'auto-inserted scaler 0' between the filter 'graph 0 input from stream
0:3' and the filter 'Parsed_overlay_0'
[auto-inserted scaler 0 @ 00000000004a5660] w:704 h:576 fmt:yuv420p
sar:0/1 -> w:704 h:576 fmt:yuva420p sar:0/1 flags:0x2
[Parsed_overlay_0 @ 00000000004a5280] main w:704 h:576 fmt:yuv420p
overlay x:0 y:0 w:704 h:576 fmt:yuva420p
[abuffer @ 000000000048d060] Setting entry with key 'time_base' to value
'1/48000'
[abuffer @ 000000000048d060] Setting entry with key 'sample_rate' to
value '48000'
[abuffer @ 000000000048d060] Setting entry with key 'sample_fmt' to
value 's16p'
[abuffer @ 000000000048d060] Setting entry with key 'channel_layout' to
value '0x3'
[graph 1 input from stream 0:1 @ 00000000004a55e0] tb:1/48000
samplefmt:s16p samplerate:48000 chlayout:0x3
[aformat @ 0000000000489620] Setting entry with key 'sample_fmts' to
value 'fltp'
[audio format for output stream 0:1 @ 00000000004a3800] auto-inserting
filter 'auto-inserted resampler 0' between the filter 'Parsed_anull_0'
and the filter 'audio format for output stream 0:1'
[auto-inserted resampler 0 @ 00000000004a38a0] chl:stereo fmt:s16p
r:48000Hz -> chl:stereo fmt:fltp r:48000Hz
[libx264 @ 00000000027acc00] using mv_range_thread = 40
[libx264 @ 00000000027acc00] using SAR=16/11
[libx264 @ 00000000027acc00] using cpu capabilities: MMX2 SSE2Fast SSSE3
FastShuffle SSE4.2 AVX
[libx264 @ 00000000027acc00] profile High, level 3.0
[libx264 @ 00000000027acc00] 264 - core 129 r2230 1cffe9f - H.264/MPEG-4
AVC codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html -
options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7
psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1
8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6
lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0
bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1
b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250
keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf
mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40
aq=1:1.00
[mpeg2video @ 000000000048e6c0] detected 4 logical cores
Output #0, matroska, to 'Suburgatory-20121110-1024.mkv':
Metadata:
encoder : Lavf54.59.103
Stream #0:0, 0, 1/1000: Video: h264, yuv420p, 704x576 [SAR 16:11
DAR 16:9], q=-1--1, 1k tbn, 25 tbc
Stream #0:1(eng), 0, 1/1000: Audio: vorbis, 48000 Hz, stereo, fltp
Stream mapping:
Stream #0:0 (mpeg2video) -> overlay:main (graph 0)
Stream #0:3 (dvbsub) -> overlay:overlay (graph 0)
overlay (graph 0) -> Stream #0:0 (libx264)
Stream #0:1 -> #0:1 (mp2 -> libvorbis)
Press [q] to stop, [?] for help
More information about the ffmpeg-user
mailing list