I want to decode some audio streams in the format ogg/vorbis. I already found an example of MP3 and MP2 decoding here: http://ffmpeg.org/doxygen/trunk/decoding__encoding_8c-source.html at line 236. But this code doesn't work for files in the format ogg/vorbis. I only want the raw data, so the decoding from ogg/vorbis into raw data, but i don't find anything. Anyone here with help?

有帮助吗?

解决方案

mp3 does not require demuxing. oog does. You muse demux using something like avformat av_read_packet(). The dranger.com tutorial is probably a good place to start.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top