本文主要是介绍Vorbis格式总结,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
前段时间一直没搞明白OGG、Vorbis之间的关系, 查了些资料大概弄清楚了。OGG就相当于一个容器,Vorbis是一种音频压缩机制,相当于AAC、AC3,可以用OGG来封装。像一些后缀名为.ogg的文件,表明这里面只包含Vorbis 音频。3 What is Vorbis
Vorbis是一种codec,压缩机制,其本身并不提供frame同步、检错等功能。将audio PCM data压缩成raw packet后,它还需要采用一些high level的同步机制来进行传输。目前可采用Ogg、RTP。
Ogg Vorbis is a fully open, non-proprietary, patent-and-royalty-free, general-purpose compressed audio format for mid to high quality (8kHz-48.0kHz, 16+ bit, polyphonic) audio and music at fixed and variable bitrates from 16 to 128 kbps/channel. This places Vorbis in the same competitive class as audio representations such as MPEG-4 (AAC), and similar to, but higher performance than MPEG-1/2 audio layer 3, MPEG-4 audio (TwinVQ), WMA and PAC.
Vorbis以packets的形式输出,这些packets当中除了data packets外,还包含三个header packets,Identification Header、Comment Header、Setup Header。这三个header的顺序是固定的,即第一个必须是Identification header,第二个是Comment header,第三个是Setup Header。Decode必须找到正确的三个header之后,才能对audio packet进行解码。
这篇关于Vorbis格式总结的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!