> Date: Tue, 18 Mar 2008 09:31:16 +0100
> From: [EMAIL PROTECTED]
> To: [email protected]
> Subject: Re: [libav-user] reading the Video Frame and the Audio Frame at
> users discreation
>
> On date Tuesday 2008-03-18 13:00:25 +0530, deepak pandey wrote:
> > Hi All,
> >
> > I am a file in avi containor,I wish to use the ffmpeg for demuxing it and
> > reading the Audio ,Video Frame from the container.
> > Generally when i use the av_read_frame call I get a frame than Through
> > Stream ID I get to know whether it is an audio frame or the Video Frame.
> > Is there any provision in FFMPEG ,which allows me to read continuosly only
> > Video Frames without reading the Audio Frames.
> >
> > I mean to say that With subsequent call of av_read_frame I get the frames of
> > same stream Id.Some how if can inform the FFMPEG that I am only interested
> > in fetching the Video or Audio Frame.
>
> AFAIK no, you have to skip the frames you aren't interested basing
> this decision on the type of the packet or on the number of the
> stream.
>
> For example:
>
> while (av_read_frame (format_ctx, &pkt) >= 0) {
> /* drop non-video/audio frames */
> if (pkt.stream_index != video_stream_nb || pkt.stream_index !=
> audio_stream_nb)
> continue;
> ...
> }
>
look at the ffplay.c after av_read_frame
_________________________________________________________________
Découvrez Windows Live Spaces et créez votre site Web perso en quelques clics !
http://spaces.live.com/signup.aspx
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user