views:

51

answers:

0

I try to watermark movies with an PNG image. I read the documentation from http://ffmpeg.org/libavfilter.html but didn't get how using it.

I tried

ffmpeg -i video.mov -vf "movie=0:png:image.pngpad=1024:576:600:300:0x00000000 [watermark];[in][watermark]overlay=0:0:1[out]" -sameq video.mov

And get this error

FFmpeg version 0.6, Copyright (c) 2000-2010 the FFmpeg developers
  built on Sep 18 2010 17:04:27 with gcc 4.2.1 (Apple Inc. build 5646) (dot 1)
  configuration: --prefix=/opt/local --enable-gpl --enable-postproc --enable-swscale --enable-avfilter --enable-avfilter-lavf --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libdirac --enable-libschroedinger --enable-libfaac --enable-libfaad --enable-libxvid --enable-libx264 --enable-libvpx --enable-libspeex --enable-nonfree --mandir=/opt/local/share/man --enable-shared --enable-pthreads --disable-indevs --cc=/usr/bin/gcc-4.2 --arch=x86_64
  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     1.11. 0 /  1.11. 0
  libpostproc   51. 2. 0 / 51. 2. 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x12180c800]multiple edit list entries, a/v desync might occur, patch welcome

Seems stream 1 codec frame rate differs from container frame rate: 1200.00 (1200/1) -> 15.00 (15/1)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video.mov':
  Metadata:
    major_brand     : qt  
    minor_version   : 0
    compatible_brands: qt  
  Duration: 00:00:12.52, start: 0.000000, bitrate: 670 kb/s
    Stream #0.0(und): Audio: aac, 44100 Hz, stereo, s16, 91 kb/s
    Stream #0.1(und): Video: h264, yuv420p, 640x480 [PAR 1:1 DAR 4:3], 519 kb/s, 14.52 fps, 15 tbr, 600 tbn, 1200 tbc
Unrecognized option 'vf' 

It strange than -vf is unrecognized.

Version of my FFmpeg (installed with macports on mac 10.6 snow leopard)

FFmpeg 0.6
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     1.11. 0 /  1.11. 0
libpostproc   51. 2. 0 / 51. 2. 0

Please, I'm not interested by other options like Java, mencoder, VLC...

Thanks for your help