[FFmpeg-user] hardcode dvdsub subtitle from separate file
thistle at phwaap.com
thistle at phwaap.com
Wed Jun 19 15:04:08 CEST 2013
Hi folks,
I'm trying to hardcode subtitles into an avi by following the example here
-
https://ffmpeg.org/trac/ffmpeg/wiki/How%20to%20burn%20subtitles%20into%20the%20video.
As I understand it, this example is using subtitles from within the mkv
itself. My subtitles are in a separate .sub file (with .idx and .srr files
as well which I admit I don't completely understand their use.)
I've tried to modify the example as follows but am getting an error. Can
someone point me in the right direction? It looks like I need to make the
overlay area consistent with the main area but I'm not exactly sure how to
do that.
Thanks,
Zach
~>$ ffmpeg1 -i part-a-rtl.avi -i part-a-rtl.sub -filter_complex
"[0:v][1:s:0]overlay[v]" -map [v] -map 0:a -f avi -c:v mpeg4 -b:v 1200k -g
300 -bf 2 -c:a libmp3lame -b:a 128k parta.avi
ffmpeg version 1.0.7 Copyright (c) 2000-2013 the FFmpeg developers
built on Jun 18 2013 08:13:41 with gcc 4.2.1 (GCC) 20070831 patched
[FreeBSD]
configuration: --prefix=/usr/local --mandir=/usr/local/man
--incdir=/usr/local/include/ffmpeg1 --libdir=/usr/local/lib/ffmpeg1
--shlibdir=/usr/local/lib/ffmpeg1 --datadir=/usr/local/share/ffmpeg1
--build-suffix=1 --progs-suffix=1 --enable-shared --enable-gpl
--enable-postproc --enable-avfilter --enable-pthreads
--enable-memalign-hack --disable-libstagefright-h264 --disable-libutvideo
--cc=/usr/local/libexec/ccache/world/cc --extra-cflags='-msse
-I/usr/local/include/vorbis -I/usr/local/include'
--extra-ldflags='-L/usr/local/lib ' --extra-libs=-pthread --disable-debug
--enable-libaacplus --disable-indev=alsa --disable-outdev=alsa
--disable-libopencore-amrnb --disable-libopencore-amrwb --enable-libass
--disable-libcdio --disable-libcelt --enable-libfaac --disable-libfdk-aac
--disable-ffserver --enable-fontconfig --enable-libfreetype --enable-frei0r
--enable-gnutls --disable-libgsm --enable-libmp3lame --enable-libbluray
--disable-libv4l2 --disable-libmodplug --disable-openal --enable-libopencv
--enable-libopen libavutil 51. 73.101 / 51. 73.101
libavcodec 54. 59.100 / 54. 59.100
libavformat 54. 29.104 / 54. 29.104
libavdevice 54. 2.101 / 54. 2.101
libavfilter 3. 17.100 / 3. 17.100
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
Input #0, avi, from 'part-a-rtl.avi':
Metadata:
encoder : Nandub v1.0rc2
Duration: 01:12:21.88, start: 0.000000, bitrate: 1353 kb/s
Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID /
0x44495658), yuv420p, 640x272 [SAR 1:1 DAR 40:17], 23.98 tbr, 23.98 tbn,
23.98 tbc
Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, mono, s16, 69
kb/s
Input #1, mpeg, from 'part-a-rtl.sub':
Duration: 26:30:41.04, start: 59.575578, bitrate: 0 kb/s
Stream #1:0[0x20]: Subtitle: dvd_subtitle
Stream #1:1[0x21]: Subtitle: dvd_subtitle
*[mpeg @ 0x80b4e4a20] sub2video: using 720x576 canvas
[Parsed_overlay_0 @ 0x80b4e2e20] Overlay area (0,0)<->(720,576) not within
the main area (0,0)<->(640,272) or zero-sized
[auto-inserted scaler 0 @ 0x80b4e30a0] Failed to configure input pad on
Parsed_overlay_0*
More information about the ffmpeg-user
mailing list