[FFmpeg-user] Using the "select" filter

Clément Bœsch ubitux at gmail.com
Thu Nov 17 20:10:46 CET 2011


On Thu, Nov 17, 2011 at 08:09:40PM +0100, Clément Bœsch wrote:
> On Thu, Nov 17, 2011 at 11:19:48AM +0000, Tim Nicholson wrote:
> > The examples of using the select filter given at:-
> > 
> > http://ffmpeg.org/ffmpeg.html#select
> > 
> > suggest, for example,
> > 
> > # select only I-frames
> > select='eq(pict_type\,I)'
> > 
> > 
> > However when I tried this I got an error.
> > 
> > ffmpeg -i in.mp4 -vf "select='eq(pict_type\,I)', showinfo" -f mp4 -y
> > /dev/null
> > [..]
> > Missing ')' or too many args in 'eq(pict_type\,I)'
> > 
> > 
> > Removing the "\" which I assume is there to "escape" the comma
> > solved the problem, thus:-
> > 
> > ffmpeg -i in.mp4 -vf "select='eq(pict_type,I)', showinfo" -f mp4 -y
> > /dev/null
> > 
> > This looks like a small error in the docs.
> > 
> 
> You are not supposed to add quotes around the select.
> 
>   ffmpeg -i in.mp4 -vf select='eq(pict_type,I)',showinfo -f ...
> 

Erh. I meant:
   ffmpeg -i in.mp4 -vf select='eq(pict_type,\I)',showinfo -f ...

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20111117/8672fd14/attachment.asc>


More information about the ffmpeg-user mailing list