[Libav-user] Whats wrong with this select filter?

amir.rouhi at rmit.edu.au amir.rouhi at rmit.edu.au
Tue Feb 14 08:28:08 CET 2012


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?
ffmpeg -i D:\test\1.mpg -vf "select=eq(pict_type\,I)" -f image2
d:\Test\IFrames\I-Frm-%03d.jpeg

[select @ 01E5F940] [Eval @ 0022EDF8] Undefined constant or missing '(' in
'I)'
[select @ 01E5F940] [Eval @ 0022EDF8] Missing ')' or too many args in
'eq(pict_type,I)'
[select @ 01E5F940] Error while parsing expression 'eq(pict_type,I)'
Error initializing filter 'select' with args 'eq(pict_type,I)'


On 14 February 2012 18:01, Clément Bœsch <ubitux at gmail.com> wrote:

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


-- 
Amir H. Rouhi
PhD Student/ CSIT RMIT University
Room: 14-09-04
http://raws.adc.rmit.edu.au/~s3288736/blog2/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20120214/57675bf4/attachment.html>


More information about the Libav-user mailing list