HydrogenAudio

Lossy Audio Compression => Opus => Topic started by: Marsu42 on 2024-03-28 18:55:43

Title: Opus .ogg vs .mp4 container?
Post by: Marsu42 on 2024-03-28 18:55:43
Opus inside mp4 seems improving - here's qaac support https://github.com/nu774/qaac/commit/8c8dcfc7b3977f9419d059c32463213966c98dcb

I've been using both the ogg (for opus) and mp4 container (for aac) and the corresponding tools opusenc/opustags, mp4box. For my simple offiine encoding and tagging purposes, playing on mobile devices both seem to be sufficient - actually, gpac is a bit feature overkill.

Except for app support, is there a significant difference between these containers for an opus stream?

I'm just wondering and want to start a standards flame war - so please be kind :-)
Title: Re: Opus .ogg vs .mp4 container?
Post by: nu774 on 2024-03-29 12:19:47
As you may know, Opus in ISOBMFF has been supported by big players such as ffmpeg, chromium, and firefox before qaac added support for it. qaac is nothing here.

> Except for app support, is there a significant difference between these containers for an opus stream?

Ogg container is more popular for opus but ill-suited for video. That's why they had to standardize Opus in MPEG-TS and ISOBMFF.
Technically, as a container format, Ogg is more like MPEG-TS than MP4.
Ogg doesn't have global seek table which makes it sub-optimal for seeking (but not as bad as MP3).
If I remember correctly, (in the past) fb2k didn't support seeking Ogg files via HTTP because of this.
Ogg is more suitable for streaming or real-time recording. Also, it's simpler than MPEG family containers.