Changes between Version 29 and Version 30 of FilteringGuide


Ignore:
Timestamp:
Mar 13, 2013, 8:15:16 PM (4 years ago)
Author:
llogan
Comment:

this is a 2x2, not 4x4 grid

Legend:

Unmodified
Added
Removed
Modified
  • FilteringGuide

    v29 v30  
    4242}}} 
    4343 
    44 === multiple input overlay in 4x4 grid === 
     44=== multiple input overlay in 2x2 grid === 
    4545Here four inputs are filtered together using the -filter_complex option. In this case all of the inputs are "-f lavfi -i testsrc" but could be other inputs. Within the filtergraph the first input is padded to the right and bottom by double its height and the other three inputs are individually filtered using hflip, negate, and edgedetect. The overlay filter is then used multiple times to arrange of latter three inputs on top of the first one. The offsets used in the overlay filter arrange the inputs into a grid shape. 
    4646 
     
    5656}}} 
    5757 
    58 However an alternative, which also allows for white space within the filtergraph, and which may assist in clarity of reading complex graphs, is to enclose the whole filtergraph within double quotes " " thus:- 
     58However an alternative, which also allows for white space within the filtergraph, and which may assist in clarity of reading complex graphs, is to enclose the whole filtergraph within double quotes " " thus: 
    5959{{{ 
    6060ffmpeg -i input -vf "select=eq(pict_type,I)" output                          #to select only I frames