Bob Sopplor skrev 2011-01-14 16:44:
Hi,
I'm new to libav and trying to use it in decoding elementary H.264 video streams
in a C++ application. I've read the documentation and some tutorials and my
problem is all examples start with a video file—but I don't have one.
I only have an address of blocks of my video data in memory and I'm looking for
a way to push these data frames as they come in little by little to libav for
decoding. How do I do that when it seems to me I have to setup an decoder with
AVFormatContext using an actual input file and keep working on that file.
How can I get libav to work with this plain data streaming and file-less
environment?
Thank you very much,
Bob
See libavcodec/api-example.c
Basically: You can set up a codec by itself using an AVCodecContext.
Find the decoder, avcodec_alloc_context(), avcodec_open() then call
avcodec_decode_video2() repeatedly..
/Tomas
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user