On 13-06-17 3:19 PM, Chris Pearce wrote:
> MP3 encoding seems like a good idea as MP3 has widespread support. MP3
> isn't good at streaming cases, but Opus and Vorbis are. MP3 also isn't
> good at low latency.
MP3 is higher bitrate than Vorbis, but otherwise the formats are about
the same as far as streaming support and latency for technical concerns.
MP3-licensing.com currently collects per-stream royalties, I presume to
encourage migration to AAC streaming. MP3 will be a royalty-free format
in just a couple of years, so we should choose to support mp3 over AAC
for audio files whenever we can.
> Vorbis is less clear cut. Opus is technically better than Vorbis, Opus
> is better at low latency encoding than Vorbis, and Opus also royalty
> free. Vorbis does not have as widespread adoption as MP3. So if we want
> to only implement one audio-only royalty free format to discourage
> format proliferation, then perhaps we should focus on only supporting Opus?
I think we should concentrate on Opus regardless, since it has a better
chance for wide adoption than Vorbis.
> In terms of video, since we're focusing on mobile/FxOS, it seems to me
> that H.264/AAC might give us hardware accelerated encoding, and
> widespread support.
These codecs, with the mp4 container, are something we've committed to
supporting, so for a non-free format for interoperation with Apple and
MS devices this is a good choice.
> It would be good to support a royalty free video format for encoding,
> but the only real candidate is VP8/Vorbis/WebM. I've been led to believe
> that VP9/Opus/Webm2 isn't really viable yet as VP9 encoding is very slow.
If we implement an encoder for VP8/Vorbis/WebM, we might as well support
Vorbis-in-Ogg for audio-only as well. The latter is universally
supported on Android, unlike Opus.
What about VP8/Opus/WebM as a royalty-free video format? These are the
codecs we're using for WebRTC, so recording w/o having to run the
compression engine is possible. It sounds like the WebM project intends
to add both Opus and VP9 to "WebM" without any difference in branding.
So while VP8/Opus files wouldn't play in any older Firefox, Android or
Chrome builds, they would play in new ones going forward. I think this
is our best choice for a royalty-free video format until we have a
better handle on VP9.
-r