On Wed, 2010-11-10 at 11:31 +0800, cheng chen wrote:
> Hi,all
> I am try to use hardware to decode the stream of  "mpeg4/h264/vc1/h263".
> Since I just want to get the stream out of the video container, no further
> decode, I find that in struct AVStream there is an element call "int
> stream_copy" and I find several
> av_encode()<http://ffmpeg.org/doxygen/0.5/ffmpeg_8c-source.html#l01548>
> , 
> new_video_stream()<http://ffmpeg.org/doxygen/0.5/ffmpeg_8c-source.html#l02984>
> , print_report()<http://ffmpeg.org/doxygen/0.5/ffmpeg_8c-source.html#l01051>,
> and 
> read_ffserver_streams()<http://ffmpeg.org/doxygen/0.5/ffmpeg_8c-source.html#l00442>.
> functions. But I have no idea which function should I use.
> Can anyone give any suggestions? Thx!

Just open the file using av_open_input_file() and av_find_stream_info(),
then read packets using av_read_frame(). Just check stream_index of the
packets to get the video ones.

/Tomas

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to