When i removed the single quotes and put double quotes instead, i get bellow errors. BTW i am using FFMPEG on windows with win xp platform. does it make any causes for such errors?<div>ffmpeg -i D:\test\1.mpg -vf "select=eq(pict_type\,I)" -f image2 d:\Test\IFrames\I-Frm-%03d.jpeg</div>
<div><br></div><div><div>[select @ 01E5F940] [Eval @ 0022EDF8] Undefined constant or missing '(' in 'I)'</div><div>[select @ 01E5F940] [Eval @ 0022EDF8] Missing ')' or too many args in 'eq(pict_type,I)'</div>
<div>[select @ 01E5F940] Error while parsing expression 'eq(pict_type,I)'</div><div>Error initializing filter 'select' with args 'eq(pict_type,I)'</div><div><br></div><br><div class="gmail_quote">On 14 February 2012 18:01, Clément Bœsch <span dir="ltr"><<a href="mailto:ubitux@gmail.com">ubitux@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Tue, Feb 14, 2012 at 05:44:05PM +1100, <a href="mailto:amir.rouhi@rmit.edu.au">amir.rouhi@rmit.edu.au</a> wrote:<br>

> Hi<br>
>  when i use the below command for testing the select filter, it extract all<br>
> frames and it is correct:<br>
><br>
> ffmpeg -i D:\test\1.mpg -vf "select=1 " -f image2<br>
> d:\Test\IFrames\I-Frm-%03d.jpeg<br>
><br>
> But when i uses the select filter in below format for selecting i-frames i<br>
> encountered the error as can be seen here. can you say me the reason?<br>
><br>
> D:\>ffmpeg -i D:\test\1.mpg -vf "select='eq(pict_type\,I)'"  -f image2<br>
> d:\Test\IFrames\I-Frm-%03d.jpeg<br>
> ffmpeg version N-31247-g5d4fd1d, Copyright (c) 2000-2011 the FFmpeg<br>
> developers<br>
>   built on Jul  4 2011 21:40:51 with gcc 4.6.1<br>
>   configuration: --enable-gpl --enable-version3 --enable-memalign-hack<br>
> --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r<br>
> --e<br>
> nable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype<br>
> --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-librtmp<br>
> --en<br>
> able-libschroedinger --enable-libspeex --enable-libtheora<br>
> --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs<br>
> --enable-libxvid --enab<br>
> le-zlib<br>
>   libavutil    51. 11. 0 / 51. 11. 0<br>
>   libavcodec   53.  7. 0 / 53.  7. 0<br>
>   libavformat  53.  5. 0 / 53.  5. 0<br>
>   libavdevice  53.  2. 0 / 53.  2. 0<br>
>   libavfilter   2. 24. 3 /  2. 24. 3<br>
>   libswscale    2.  0. 0 /  2.  0. 0<br>
>   libpostproc  51.  2. 0 / 51.  2. 0<br>
> [mpeg @ 0208BFA0] max_analyze_duration 5000000 reached at 5000000<br>
> Input #0, mpeg, from 'D:\test\1.mpg':<br>
>   Duration: 00:00:49.64, start: 0.540000, bitrate: 438 kb/s<br>
>     Stream #0.0[0x1e0]: Video: mpeg1video, yuv420p, 360x240 [PAR 1:1 DAR<br>
> 3:2], 104857 kb/s, 25 fps, 25 tbr, 90k tbn, 25 tbc<br>
> Incompatible pixel format 'yuv420p' for codec 'mjpeg', auto-selecting<br>
> format 'yuvj420p'<br>
> [buffer @ 01E13FA0] w:360 h:240 pixfmt:yuv420p tb:1/1000000 sar:1/1<br>
> sws_param:<br>
> [select @ 01E5F940] [Eval @ 0022EDF8] Missing ')' or too many args in<br>
> 'eq(pict_type\,I)'<br>
> [select @ 01E5F940] Error while parsing expression 'eq(pict_type\,I)'<br>
> Error initializing filter 'select' with args 'eq(pict_type\,I)'<br>
<br>
</div></div>Try removing the simple quotes: -vf "select=eq(pict_type\,I)"<br>
<br>
BTW, this is likely a ffmpeg-user question.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Clément B.<br>
</font></span><br>_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Amir H. Rouhi</div>
<div>PhD Student/ CSIT RMIT University</div>
Room: 14-09-04<br><a href="http://raws.adc.rmit.edu.au/%7Es3288736/blog2/" target="_blank">http://raws.adc.rmit.edu.au/~s3288736/blog2/</a><br>
</div>