nichot20

ffmpeg filter syntax

Oct 14th, 2011
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. The general syntax of a filter is:-
  2.  
  3. "[incoming-feed] filtername=paramater1=value:param2=value [result-name]"
  4.  
  5. Filters may be chained together so the output of one feeds the input to the next, in this case the "[incoming-feed]" and "[result-name]" parts are removed as they are assumed, and the filters separated by a comma ","
  6. Chains may be put together to form a "filtergraph". The chains are separated from each other by a semicolon ";". Because of the possibility for branching and merging (c.f the overlay filter) and to allow for complex filtering it is necessary to use the "[incoming-feed]" and "[result-name]" parts to join the relevant inputs and outputs. For example:-
  7.  
  8. -vf "movie=logo-rgb.png [logo] ; [logo] scale=100:100 [resized]; [in][resized] overlay [out]"
  9.  
  10.  
  11. Since a graph may contain a single chain which contains a single filter the following are equivalent:-
  12.  
  13. -vf "[in] scale 720:576 [out]"
  14.  
  15. -vf "scale 720:576"
  16.  
  17. as are the slightly more complex, but trivial
  18.  
  19. -vf "[in] scale 720:576 [scaled] ; [scaled] null [out]"
  20.  
  21. -vf "scale 720:576 , null"
Advertisement
Add Comment
Please, Sign In to add comment