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

Rodney Baker rodney.baker at iinet.net.au
Tue Feb 14 07:32:53 CET 2012


On Tue, 14 Feb 2012 16:06:26 amir.rouhi at rmit.edu.au wrote:
> 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

1. You don't have permission to write to the directory where you're trying to 
put the output file. (Hint: did you copy this folder from a cdrom? If so, 
Windows may have made it read-only by default). Check that you have write 
permissions to this folder (or choose another path for the output file) and 
try again.

2. Please don't top-post (google it if you're not sure what that means). 

3. Please trim sigs and other unnecessary information from quoted text in your 
replies. :-)

4. Given that you're using ffmpeg, doesn't this really belong on the ffmpeg-
user mailing list?

Regards,
Rodney.

-- 
===================================================
Rodney Baker VK5ZTV
rodney.baker at iinet.net.au
=================================================== 



More information about the x264-devel mailing list