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? I tried to set the AVcodecContext to the same one that my encoder uses, but that didn't work. Any help would be appreciate.
Xin Cai _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
