2

I try to watermark an mp4 file with ffmpeg and the following command :

ffmpeg -i originalvideo.mp4 -vf « movie=watermark.png [wm];[in][wm] overlay=0:0:1 [out]«  watermarkedvideo.mp4

after some process I get this error :

[NULL @ 0x168f5e0] Unable to find a suitable output format for '[wm]'
[wm]: Invalid argument
[in][wm]: command not found

Edit: Finally command wasnt correct, this one work.

ffmpeg -i originalvideo.mp4 -vf "movie=wartermark.png [watermark]; [in][watermark] overlay=main_w-overlay_w-3:main_h-overlay_h-3 [out]" outputvideo.mp4
  • The few examples I see use [watermark] – Rinzwind Apr 8 '13 at 11:33
  • Why do use these bizarre quotation marks? Also, are they really closed? I see two of these «. I think that's the problem. That is also why you get command not found errors. Check idude.net/index.php/how-to-watermark-a-video-using-ffmpeg – don.joey Apr 8 '13 at 13:57
  • Yes i change for that one : "ffmpeg -i originalvideo.mp4 -vf "movie=wartermark.png [watermark]; [in][watermark] overlay=main_w-overlay_w-3:main_h-overlay_h-3 [out]" outputvideo.mp4 ", now i have some problem with the buffer.. – Tahola Apr 8 '13 at 15:32
  • Please update your question with your current ffmpeg command and the complete console output. – llogan Apr 8 '13 at 17:53
0

Here is what I use. It doesn't use ffmpeg (which is deprecated), but rather avconv, a part of the libav-tools package .

Here is what I used to add a watermark:

avconv -i input.mpg -vf "movie=watermark.png [watermark];[in][watermark] overlay=0:0 [out]" -c:v mpeg2video -c:a copy output2.mpg

Here are a few useful links:

Teal Scientific discussing avconv

StackExchange Discussion on using ffmpeg

Youtube video of avconv

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.