[FFmpeg-user] Decoding from a file in memory (std::vector<uint8_t>)
brad.clemetson at codeprogrammers.net
Fri Aug 2 04:12:28 CEST 2013
I am new to FFMPEG is general and am going through the decoding_encoding.c example from the sources. I was able to successfully encode the sample code in my own implementation; but am struggling with decoding files. For my usage of FFMPEG, the audio file is already loaded into memory via std::vector<uint8_t> I am working to adapt the static void audio_decode_example(const char *outfilename, const char *filename) to fit this need. Unfortunately it seems the data I am writing out is "loosing" packets in a consistent pattern. I'm not sure if it is the way I am passing the incorrect data to avcodec_decode_audio4 or incorrectly writing the result.
I have put my current progress on paste bin @ http://pastebin.com/M7K1287V
Thank You :)
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 801 bytes
Desc: Message signed with OpenPGP using GPGMail
More information about the ffmpeg-user