Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想以 ogg/vorbis 格式解码一些音频流。我已经在这里找到了 MP3 和 MP2 解码的示例:http: //ffmpeg.org/doxygen/trunk/decoding__encoding_8c-source.html第 236 行。但是此代码不适用于 ogg/vorbis 格式的文件。我只想要原始数据,所以从 ogg/vorbis 解码为原始数据,但我什么也没找到。这里有人帮忙吗?
mp3 不需要解复用。oog 可以。您可以使用 avformat av_read_packet() 之类的东西来思考 demux。dranger.com 教程可能是一个不错的起点。