Changes between Initial Version and Version 1 of FilteringGuide


Ignore:
Timestamp:
Nov 30, 2011, 8:52:08 PM (9 years ago)
Author:
llogan
Comment:

make initial page and add some examples

Legend:

Unmodified
Added
Removed
Modified
  • FilteringGuide

    v1 v1  
     1FFmpeg has access to many filters and more are added on a regular basis. To see what filters are available with your build see ''ffmpeg -filters''. Refer to the [http://ffmpeg.org/libavfilter.html libavfilter documentation] for more information and examples. This wiki page is for user contributed examples and tips. Contributions to this page are encouraged.
     2
     3== Examples ==
     4'''Scaling'''
     5[[BR]]
     6Starting with something simple. Resize a 640x480 input to a 320x240 output.
     7{{{
     8ffmpeg -i input -vf scale=iw/2:-1 output
     9}}}
     10''iw'' is input width. In this example the input width is 640. 640/2 = 320. 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. See the [http://ffmpeg.org/libavfilter.html libavfilter documentation] for additional information.
     11
     12'''Speed up your video'''
     13[[BR]]
     14Increase the speed of a 20 minute video to fit 1 minute output. 1 minute / 20 minutes = 0.05.
     15{{{
     16ffmpeg -i input -vf setpts=0.05*PTS output
     17}}}
     18Note that this method will drop frames to achieve your desired speed.
     19
     20----
     21
     22Please show a complete command if you would like to add more examples.