[FFmpeg-user] (ffmpeg 1.2.1) I cannot get 'select' to work in filter arg: -vf "select=eq(pict_type, PICT_TYPE_I)"
Molly Millions
mollyrazormillions at gmail.com
Wed Jun 5 09:51:43 CEST 2013
You have to escape the commas inside the parentheses, since commas separate
the filter definitions:
"select=eq(pict_type\,PICT_TYPE_I)"
Correct:
ffmpeg -strict unofficial -y -ss 1 -i 725035.mp4 -r 1 -vframes 1 -vf
"select=eq(pict_type\,PICT_TYPE_I)" -deinterlace -f image2 myPicture.jpg
2.
ffmpeg -strict unofficial -y -ss 1 -i 725035.mp4 -r 1 -vframes 1 -vf
"select=eq(pict_type\,PICT_TYPE_I),scale=-1:54" -deinterlace -f image2
myPicture.jpg
On Wed, Jun 5, 2013 at 12:52 AM, John Crossman <johncrossman at berkeley.edu>wrote:
> Two questions regarding output at bottom:
>
> 1. What is wrong with syntax of *-vf
> "select=eq(pict_type,PICT_TYPE_I)", *I've tried countless variations
> (single quotes, escaped commas, no trailing comma, etc.) No luck!
> 2. Is it possible to add *scale=-1:54 *to that same -vf filter chain?
> If so, what is syntax?
>
> Thank you very much.
>
> --------------------------------
>
> When I run:
>
> *ffmpeg -strict unofficial -y -ss 1 -i MatterhornRoundTrip2.mp4 -r 1
> -vframes 1 -vf "select=eq(pict_type,PICT_TYPE_I)", -deinterlace -f image2
> myPicture.jpg *
> *
> *
> I get:
>
> ffmpeg version 1.2.1 Copyright (c) 2000-2013 the FFmpeg developers
> built on May 10 2013 15:14:14 with gcc 4.4.6 (GCC) 20120305 (Red Hat
> 4.4.6-4)
> configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64
> --mandir=/usr/share/man --enable-shared --enable-runtime-cpudetect
> --enable-gpl --enable-version3 --enable-postproc --enable-avfilter
> --enable-pthreads --enable-x11grab --enable-vdpau --disable-avisynth
> --enable-frei0r --enable-libopencv --enable-libdc1394 --enable-libgsm
> --enable-libmp3lame --enable-libnut --enable-libopencore-amrnb
> --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp
> --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx
> --enable-libx264 --enable-libxavs --enable-libxvid --extra-cflags='-O2 -g
> -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
> --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' --disable-stripping
> libavutil 52. 18.100 / 52. 18.100
> libavcodec 54. 92.100 / 54. 92.100
> libavformat 54. 63.104 / 54. 63.104
> libavdevice 54. 3.103 / 54. 3.103
> libavfilter 3. 42.103 / 3. 42.103
> libswscale 2. 2.100 / 2. 2.100
> libswresample 0. 17.102 / 0. 17.102
> libpostproc 52. 2.100 / 52. 2.100
> -deinterlace is deprecated, use -filter:v yadif instead
> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'MatterhornRoundTrip2.mp4':
> Metadata:
> major_brand : isom
> minor_version : 512
> compatible_brands: isomiso2avc1mp41
> encoder : Lavf54.63.104
> Duration: 00:03:37.01, start: 0.000000, bitrate: 357 kb/s
> Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
> 1280x720 [SAR 1:1 DAR 16:9], 301 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc
> Metadata:
> handler_name : VideoHandler
> Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo,
> fltp, 46 kb/s
> Metadata:
> handler_name : SoundHandler
> [Parsed_select_0 @ 0x20ca4a0] [Eval @ 0x7fffe227cc10] Missing ')' or too
> many args in 'eq(pict_type'
> [Parsed_select_0 @ 0x20ca4a0] Error while parsing expression 'eq(pict_type'
> [AVFilterGraph @ 0x20c2600] Error initializing filter 'select' with args
> 'eq(pict_type'
> Error opening filters!
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
More information about the ffmpeg-user
mailing list