Changes between Version 31 and Version 32 of FilteringGuide


Ignore:
Timestamp:
May 8, 2013, 2:44:14 AM (4 years ago)
Author:
sstri
Comment:

fixed an example: replaced I by PICT_TYPE_I

Legend:

Unmodified
Added
Removed
Modified
  • FilteringGuide

    v31 v32  
    5353As described in the documentation, it can be necessary to escape commas "," that need to appear in some arguments, for example the select filter:- 
    5454{{{ 
    55 ffmpeg -i input -vf select='eq(pict_type\,I)' output                         #to select only I frames 
     55ffmpeg -i input -vf select='eq(pict_type\,PICT_TYPE_I)' output                         #to select only I frames 
    5656}}} 
    5757 
    5858However 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{{{ 
    60 ffmpeg -i input -vf "select=eq(pict_type,I)" output                          #to select only I frames 
     60ffmpeg -i input -vf "select=eq(pict_type,PICT_TYPE_I)" output                #to select only I frames 
    6161ffmpeg -i input -vf "yadif=0:-1:0, scale=iw/2:-1" output                     # deinterlace then resize 
    6262}}}