![]() In this case all of the inputs are the -f lavfi -i testsrc (the testsrc source filter) but could be other inputs. Here four inputs are filtered together using the -filter_complex option. The following are equivalent: ffmpeg -i input -vf scale=iw/2:-1 outputįfmpeg -i input -vf scale=iw/2:-1 output # the input and output are implied without ambiguityĪs are: ffmpeg -i input -vf yadif=0:0:0 scale=iw/2:-1 output # 2 chains form, one filter per chain, chains linked by the padįfmpeg -i input -vf yadif=0:0:0,scale=iw/2:-1 output # 1 chain form, with 2 filters in the chain, linking impliedįfmpeg -i input -vf yadif=0:0:0,scale=iw/2:-1 output # the input and output are implied without ambiguity Remembering that filters in a chain are separated by commas "," chains by a semicolon " " and that if an input or output is not specified it is assumed to come from the preceding or sent to the following item in the chain. Whilst a full filtergraph description can be complicated, it is possible to simplify it for simpler graphs provided ambiguity is avoided. This filtergraph may contain a number of chains, each of which may contain a number of filters. ![]() What follows the -vf in an ffmpeg command line is a filtergraph description. See How to speed up/slow down a video for examples. See the FFmpeg documentation for additional information. The -1 tells the scale filter to preserve the aspect ratio of the output, so in this example the scale filter will choose a value of 240. Resize a 640x480 input to a 320x240 output. ![]() This wiki page is for user contributed examples and tips, and contributions to this page are encouraged. ![]() Refer to the FFmpeg filters documentation for more information and examples for each filter. To see what filters are available with your build see ffmpeg -filters. FFmpeg has access to many filters and more are added on a regular basis. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |