5,337
edits
Line 181: | Line 181: | ||
ffmpeg -i input.mp4 -vf mpdecimate,setpts=N/FRAME_RATE/TB out.mp4 | ffmpeg -i input.mp4 -vf mpdecimate,setpts=N/FRAME_RATE/TB out.mp4 | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==Filter-Complex== | |||
Filter complex allows you to create a graph of filters. | |||
Suppose you have 3 inputs: $1, $2, $3. | |||
Then you can access them as streams [0], [1], [3]. | |||
The filter syntax allows you to chain multiple filters where each filter is an edge. | |||
For example, <code>[0]split[t1][t2]</code> creates two vertices t1 and t2 from input 0. | |||
The last statement in your edge will be the output of your command: | |||
E.g. <code>[t1][t2]vstack</code> | |||
<pre> | |||
ffmpeg -i $1 -i $2 -i $3 -filter-complex "..." | |||
</pre> | |||
==C API== | ==C API== |