I'm trying to add SRT subs to an flv video with following code but says unrecognized option 'vf'. Am I missing something or is there a workaround? I read somewhere you need at least ffmpeg version 7 for vf to work(?)
$ ffmpeg -i takeout.flv -vf subtitles=takeout.srt test.flv
FFmpeg version 0.6.5, Copyright (c) 2000-2010 the FFmpeg developers
built on Jan 29 2012 17:53:48 with gcc 4.4.5 20110214 (Red Hat 4.4.5-6)
configuration: --prefix=/usr --libdir=/usr/lib --shlibdir=/usr/lib -- mandir=/usr/share/man --incdir=/usr/include --disable-avisynth --extra-cflags='- O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables' --enable-avfilter --enable-avfilter-lavf --enable-libdc1394 --enable-libdirac --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libx264 --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-shared --enable-swscale --enable-vdpau --enable-version3 --enable- x11grab
libavutil 50.15. 1 / 50.15. 1
libavcodec 52.72. 2 / 52.72. 2
libavformat 52.64. 2 / 52.64. 2
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 1.19. 0 / 1.19. 0
libswscale 0.11. 0 / 0.11. 0
libpostproc 51. 2. 0 / 51. 2. 0
[flv @ 0x90ce880]Estimating duration from bitrate, this may be inaccurate
Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 30.00 (30/1)
Input #0, flv, from 'takeout.flv':
Metadata:
duration : 5295
width : 640
height : 480
videodatarate : 973
framerate : 30
videocodecid : 2
audiosamplerate : 44100
audiosamplesize : 16
stereo : true
audiocodecid : 2
filesize : 661073262
Duration: 01:28:14.89, start: 0.000000, bitrate: 1092 kb/s
Stream #0.0: Video: flv, yuv420p, 640x480, 996 kb/s, 30 tbr, 1k tbn, 1k tbc
Stream #0.1: Audio: mp3, 44100 Hz, 2 channels, s16, 96 kb/s
Unrecognized option 'vf'
I tried converting the SRT to ASS because I have latest version of libass installed with:
$ ffmpeg -i takeout.srt takeout.ass
but am getting:
Invalid data found when processing input
Then I tried downloading mencoder
as another workaround but it ran out of mirror options for download.
-vf
is an alias for-filter:video
. Did you try that? It also says that input options need to go before-
, so maybe try in the other order? – Mikel Mar 01 '14 at 04:28