Cai, Xin wrote:
> hi guys
> So I am pulling video off of an IP camera, encoding them into mpeg4 and
> writing them to a disk. Now I want to be able to see the video as I am
> writing them to file, therefore I want to be able to decode the packets that
> I have freshly encoded and feed them to SDL to be drawn to the screen. Now in
> order for me to decode video I need to have a AVCodecContext and usually if I
> am getting the video from the file I can generate a AVFormatContext and get
> the stream information using av_find_stream_info() and then grab the
> AVCodecContext that I need off of the AVFormatContext. But here, since I am
> not opening a file how can I get the AVCodecContext that I need?
Since you are encoding the video, you surely know the parameters for
filling the AVcodecContext for the decoder. Have a look at apiexample.c,
the tutorial that you can find on the net, and the ml archives (a
program answering your question has been posted few days ago on this ml)
for all the details.
Luca
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user