[FFmpeg-user] Correct syntax for -vf "color ..." ?

pandy pandy71 at gmail.com
Fri Aug 31 11:59:43 CEST 2012


At first Hi to All and Big Thanks to developers for FFMpeg.

I have issue with newer builds of ffmpeg and syntax for -vf "color=..."

My command is:

*ffmpeg -y -i %1 -vf "scale=960:540 [xxx]; color=0x33669955:960x64 [yyy] ;
[xxx] [yyy] overlay=0:476,
drawtext=textfile=mkvm2vpcm:fontfile=Orbitron.ttf:x=32:y=492:fontsize=24:fontcolor=white
[xxx] ; movie=lgi.png [yyy]; [xxx] [yyy] overlay=W-w-16:H-h-64" -q:v 4 -bf 1
-vcodec mpeg2video -b:a 640k -acodec ac3 "MP4_M2V_PCM.mp4"*


and it works on *older* build without problems - only info "/[Parsed_color_1
@ 02d8a1a0] Flat options syntax is deprecated, use key=value pairs./" is
displayed,

on *newer* ffmpeg build, i've receive error like this:

"/[color @ 02491f20] Missing key or no key/value separator found after key
'0x33669955:960x64'
[AVFilterGraph @ 02de1840] Error initializing filter 'color' with args
'0x33669955:960x64'
Error opening filters!/"

i've try examples from ffmpeg and seems that none of them work - which
syntax is working on newer builds of ffmpeg?

Bellow info about ffmpeg versions i've use:

Older

"
This is a FFmpeg Win32 Static build by Kyle Schwarz.

Zeranoe's FFmpeg Builds Home Page: <http://ffmpeg.zeranoe.com/builds/>

This build was compiled on: Jul 18 2012 20:21:54

FFmpeg version: 2012-07-18 git-204c4e9
    libavutil      51. 65.100 / 51. 65.100
    libavcodec     54. 41.100 / 54. 41.100
    libavformat    54. 17.100 / 54. 17.100
    libavdevice    54.  1.100 / 54.  1.100
    libavfilter     3.  2.100 /  3.  2.100
    libswscale      2.  1.100 /  2.  1.100
    libswresample   0. 15.100 /  0. 15.100
    libpostproc    52.  0.100 / 52.  0.100

This FFmpeg was configured with:
    --enable-gpl
    --enable-version3
    --disable-w32threads
    --enable-runtime-cpudetect
    --enable-avisynth
    --enable-bzlib
    --enable-frei0r
    --enable-libass
    --enable-libcelt
    --enable-libopencore-amrnb
    --enable-libopencore-amrwb
    --enable-libfreetype
    --enable-libgsm
    --enable-libmp3lame
    --enable-libnut
    --enable-libopenjpeg
    --enable-librtmp
    --enable-libschroedinger
    --enable-libspeex
    --enable-libtheora
    --enable-libutvideo
    --enable-libvo-aacenc
    --enable-libvo-amrwbenc
    --enable-libvorbis
    --enable-libvpx
    --enable-libx264
    --enable-libxavs
    --enable-libxvid
    --enable-zlib

This build was compiled with these external libraries:
    bzip2 1.0.6: <http://www.bzip.org/>
    CELT 0.11.1: <http://www.celt-codec.org/>
    FreeType 2.4.8: <http://www.freetype.org/>
    Frei0r 20111008-git-16cfe66: <http://www.piksel.org/frei0r/>
    LAME 3.99.5: <http://lame.sourceforge.net/>
    libass 0.10.0: <http://code.google.com/p/libass/>
    libgsm 1.0.13-3: <http://libgsm.sourcearchive.com/>
    Theora 1.1.1: <http://www.theora.org/>
    Vorbis 1.3.2: <http://www.vorbis.com/>
    libvpx 1.1.0: <http://www.webmproject.org/>
    NUT 20110326-git-5e471c2: <git://git.ffmpeg.org/nut>
    OpenCORE AMR 0.1.2: <http://sourceforge.net/projects/opencore-amr/>
    OpenJPEG 1.5.0: <http://www.openjpeg.org/>
    RTMPDump 20120308-git-7340f6d: <http://rtmpdump.mplayerhq.hu/>
    Schroedinger 1.0.11: <http://diracvideo.org/>
    Speex 1.2rc1: <http://www.speex.org/>
    Ut Video 10.2.4: <http://umezawa.dyndns.info/archive/utvideo/>
    VisualOn AAC 0.1.2: <http://sourceforge.net/projects/opencore-amr/>
    VisualOn AMR-WB 0.1.2: <http://sourceforge.net/projects/opencore-amr/>
    x264 20120518-git-999b753:
<http://www.videolan.org/developers/x264.html>
    XAVS svn-55: <http://xavs.sourceforge.net/>
    Xvid 1.3.2: <http://www.xvid.org/>
    zlib 1.2.6: <http://zlib.net/>
"


and newer:


"
This is a FFmpeg Win32 Static build by Kyle Schwarz.

Zeranoe's FFmpeg Builds Home Page: <http://ffmpeg.zeranoe.com/builds/>

This build was compiled on: Aug 26 2012 20:57:47

FFmpeg version: 2012-08-27 git-a366bea
    libavutil      51. 70.100 / 51. 70.100
    libavcodec     54. 54.100 / 54. 54.100
    libavformat    54. 25.104 / 54. 25.104
    libavdevice    54.  2.100 / 54.  2.100
    libavfilter     3. 13.101 /  3. 13.101
    libswscale      2.  1.101 /  2.  1.101
    libswresample   0. 15.100 /  0. 15.100
    libpostproc    52.  0.100 / 52.  0.100

This FFmpeg was configured with:
    --enable-gpl
    --enable-version3
    --disable-pthreads
    --enable-runtime-cpudetect
    --enable-avisynth
    --enable-bzlib
    --enable-frei0r
    --enable-libass
    --enable-libcelt
    --enable-libopencore-amrnb
    --enable-libopencore-amrwb
    --enable-libfreetype
    --enable-libgsm
    --enable-libmp3lame
    --enable-libnut
    --enable-libopenjpeg
    --enable-librtmp
    --enable-libschroedinger
    --enable-libspeex
    --enable-libtheora
    --enable-libutvideo
    --enable-libvo-aacenc
    --enable-libvo-amrwbenc
    --enable-libvorbis
    --enable-libvpx
    --enable-libx264
    --enable-libxavs
    --enable-libxvid
    --enable-zlib

This build was compiled with these external libraries:
    bzip2 1.0.6: <http://www.bzip.org/>
    CELT 0.11.1: <http://www.celt-codec.org/>
    FreeType 2.4.8: <http://www.freetype.org/>
    Frei0r 20111008-git-16cfe66: <http://www.piksel.org/frei0r/>
    LAME 3.99.5: <http://lame.sourceforge.net/>
    libass 0.10.0: <http://code.google.com/p/libass/>
    libgsm 1.0.13-3: <http://libgsm.sourcearchive.com/>
    Theora 1.1.1: <http://www.theora.org/>
    Vorbis 1.3.2: <http://www.vorbis.com/>
    libvpx 1.1.0: <http://www.webmproject.org/>
    NUT 20110326-git-5e471c2: <git://git.ffmpeg.org/nut>
    OpenCORE AMR 0.1.2: <http://sourceforge.net/projects/opencore-amr/>
    OpenJPEG 1.5.0: <http://www.openjpeg.org/>
    RTMPDump 20120308-git-7340f6d: <http://rtmpdump.mplayerhq.hu/>
    Schroedinger 1.0.11: <http://diracvideo.org/>
    Speex 1.2rc1: <http://www.speex.org/>
    Ut Video 10.2.4: <http://umezawa.dyndns.info/archive/utvideo/>
    VisualOn AAC 0.1.2: <http://sourceforge.net/projects/opencore-amr/>
    VisualOn AMR-WB 0.1.2: <http://sourceforge.net/projects/opencore-amr/>
    x264 git-d9d2288-20120718:
<http://www.videolan.org/developers/x264.html>
    XAVS svn-55: <http://xavs.sourceforge.net/>
    Xvid 1.3.2: <http://www.xvid.org/>
    zlib 1.2.6: <http://zlib.net/>
"


TIA for help,
Cheers
pandy



--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Correct-syntax-for-vf-color-tp4653069.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.


More information about the ffmpeg-user mailing list