[x264-devel] How extract I-Frames from a video stream?

amir.rouhi at rmit.edu.au amir.rouhi at rmit.edu.au
Tue Feb 14 06:36:26 CET 2012


Thanks for prompt reply. i tried to use the select filter for extractin
images as bellow but i encountered error as can be seen. can you give any
advice?

D:\>ffmpeg -i D:\test\1.mpg -vf "select='eq(pict_type,I)', showinfo" -f mp4
-y d:\Test\IFrames
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
d:\Test\IFrames: Permission denied

regards

On 10 February 2012 19:26, dubplate <dubplate65 at web.de> wrote:

> **
> http://ffmpeg.org/libavfilter.html#select ->
>
> select='eq(pict_type\,I)'
>
>
>
> On 02/10/2012 04:50 AM, amir.rouhi at rmit.edu.au wrote:
>
> I know that ffmpeg or x264 is enable to extract images at any desired time
> interval from a video stream. i.e the below command:
> ffmpeg -i test.avi -r 1 -s WxH -f image2 test-%03d.jpeg
> extract 1 second image interval from test.avi. But i dont know how to
> change this command to extract just I-Frames from the stream, regardless of
> the frame time position.
> Can u help me to find the solution? Or do you how x264 can extract
> I-Frames?
>
>
>
>
> _______________________________________________
> x264-devel mailing listx264-devel at videolan.orghttp://mailman.videolan.org/listinfo/x264-devel
>
>
>
> _______________________________________________
> x264-devel mailing list
> x264-devel at videolan.org
> http://mailman.videolan.org/listinfo/x264-devel
>
>


-- 
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://mailman.videolan.org/pipermail/x264-devel/attachments/20120214/5fb3c7c3/attachment.html>


More information about the x264-devel mailing list