I want to decode an internet-audiostream, but I don't want to write the data to disk, so the data is located in the memory only.
But when I want to decode data to raw-data, I must initialise the format-context and so I need to use avformat_open_input. But these function needs a detailed location of the file.
Have anyone a solution, how I can get my memory located data into the format-context to decode this data to a raw data?
You must create custom AVIOContext
.
For details, see my answer to Play a Video from MemoryStream, Using FFMpeg
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With