
The result will be that the top half of the video is mirrored onto the bottom half of the output video.įilters in the same linear chain are separated by commas, and distinct linear chains of filters are separated by semicolons. You can use the following command to achieve this: ffmpeg -i INPUT -vf "split crop=iw:ih/2:0:0, vflip overlay=0:H/2" OUTPUT This filtergraph splits the input stream in two streams, then sends one stream through the crop filter and the vflip filter, before merging it back with the other stream by overlaying it on top. To illustrate the sorts of things that are possible, we consider the following filtergraph. In libavfilter, a filter can have multiple inputs and multiple outputs.

Filtering Introductionįiltering in FFmpeg is enabled through the libavfilter library. This document describes filters, sources, and sinks provided by the libavfilter library. allrgb, allyuv, color, colorchart, colorspectrum, haldclutsrc, nullsrc, pal75bars, pal100bars, rgbtestsrc, smptebars, smptehdbars, testsrc, testsrc2, yuvtestsrc.Options for Filters with Several Inputs.Changing Options at Runtime with a Command.Trying to avoid two pases through ffmpeg. What am I doing wrong and how can I do this?


I've tried combining the filters with a comma like this-įfmpeg -i "D:\fcp_source\PlasmaSrc1\palmbeach.mpg" -vf "ĭrawtext=fontfile=arial.ttf:text='test_text':\ x=1250: y=700: fontsize=24:fontcolor=red, movie=TWC_70x70.png:f=png overlay=17:H-h-19:1 scale=1366:768" -b 6000k -s 1366x768 -vcodec wmv2 -an -y "D:\fcp_source\PlasmaSrc1\palmbeach.wmv"īut I receive an error of 'to many inputs specified for the movie filter'. This filter burns in a watermark image at the bottom left and also works perfectly-įfmpeg -i "D:\fcp_source\PlasmaSrc1\palmbeach.mpg" -vf "movie=TWC_70x70.png:f=png overlay=17:H-h-19:1 scale=1366:768" This filter adds static text to the videos right hand bottom and works fine-įfmpeg -i "D:\fcp_source\PlasmaSrc1\palmbeach.mpg" -vfĭrawtext="fontfile=arial.ttf:text='test_text':\ x=1250: y=700: fontsize=24:fontcolor=red" -b 6000k -s 1366x768 -vcodec wmv2 -an -y "D:\fcp_source\PlasmaSrc1\palmbeach.wmv"

I've a problem getting multiple filters to work with ffmpeg.
