Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Applying multiple filters at once with FFMPEG

Tags:

filter

ffmpeg

I have the need to apply fadein and overlay filters to a video. Is it possible to apply 2 filters at once?

I got:

ffmpeg -i input.mpg -vf "movie=watermark.png [logo]; [in][logo] overlay=W-w-10:H-h-10 [out]" output.mpg 

I'm trying to add fade=in:0:20, but if I add a new -vf parameter, it will overwrite the preceding one, and if I add:

-vf "fade=in:0:20; movie=......" 

it won't work.

Is this possible or do I have to run FFmpeg twice?

like image 368
Parziphal Avatar asked Jun 01 '11 03:06

Parziphal


1 Answers

Okay, someone helped me somewhere.

I had to separate filters with commas:

ffmpeg -i input.mpg -vf "movie=watermark.png [logo]; [in][logo] overlay=W-w-10:H-h-10, fade=in:0:20 [out]" output.mpg 

This will apply fadein to both the watermark and the video.

like image 185
Parziphal Avatar answered Sep 23 '22 19:09

Parziphal