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;
...
}
Regards.
--
Stefano Sabatini
Linux user number 337176 (see http://counter.li.org)
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user