[Libav-user] How can we extract frames from a video stream in MPEG-4 AVC format
amir.rouhi at rmit.edu.au
Thu Apr 7 04:26:43 CEST 2011
Thanks for introducing the useful links, it takes a little time to see
weather it useful for my purpose (extracting frames) or not.
regarding using sws_scale, i just wanted to know does it convert the MPEG-4
format to raw formats: YUV or RGB? it seems this tools work for converting
YUV to RGB
On Thu, Apr 7, 2011 at 11:00 AM, Grzegorz Szpetkowski <
gszpetkowski at gmail.com> wrote:
> I am not FFmpeg API expert, but you can find working example
> (avcodec_sample.0.5.0.c) at
> There are also two guides that I know:
> http://www.inb.uni-luebeck.de/~boehme/using_libavcodec.html (very
> http://dranger.com/ffmpeg/tutorial01.html (little outdated)
> To convert AVFrame from YUV to RGB you need to use sws_scale.
> Grzegorz Sz.
> 2011/4/7 Amir Rouhi-Rmit <amir.rouhi at rmit.edu.au>:
> > Hi
> > I would be pleased if somebody guide me how can I extract frames in
> > format from a MPEG-4 AVC (H.264) video stream. The I-Frame can be:
> > A- Any selected frame which can be extracted in form of a 1 frame video
> > file. In this case the only frame of video should be in I-Frame.
> > B- Extracting real I-Frames that exist in a video stream in form of 1
> > video files.
> > I found a method myself for type A, which is based on converting video to
> > RAW format by YUVTOOLS software(If somebody help me that how can I
> > the video to YUV or RGB by ffmpeg or any free software I would be
> pleased) ,
> > and then I select any frame by its number and extract it as a 1 frame
> > which is in I-Frame format by JM software. As you have noticed , this
> > is very costy and take a long time. I hope by help of you I find a method
> > ffmpeg filters to do that.
> > Regards
> > Amir
> > _______________________________________________
> > Libav-user mailing list
> > Libav-user at ffmpeg.org
> > http://ffmpeg.org/mailman/listinfo/libav-user
> Libav-user mailing list
> Libav-user at ffmpeg.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libav-user