Live data from Hacker News

Opus Audio Codec – FAQ

wiki.xiph.org

41–50 of 81 posts

Re: Opus Audio Codec – FAQ

#41
post #5
post #4

Earlier quoted context omitted.

I have never seen an Opus file in the wild. MP3 and FLAC are by far still dominant. Ogg is still popular I. It’s niche (eg game sounds, and I think Spotify uses it too)

>I have never seen an Opus file in the wild. You have likely heard one. For instance, if you are a Youtube user.

On the website? Can browsers natively play them?

Re: Opus Audio Codec – FAQ

#42
post #5

Earlier quoted context omitted.

>I have never seen an Opus file in the wild. You have likely heard one. For instance, if you are a Youtube user.

On the website? Can browsers natively play them?

> On the website?

Yes, it's one of youtube's standard audio formats.

> Can browsers natively play them?

Yes.

Re: Opus Audio Codec – FAQ

#43
post #33

Opus is great. I encode all my music in Opus for playback (after buying it in FLAC). Are all browsers supporting it now? I remember in the past Apple staunchly refused to support Opus and Ogg container. Is it better now after they joined Alliance for Open Media?

All major browsers now implement WebRTC, including Opus support. Also, most browsers now support Opus playback in HTML5, though AFAIK Safari only supports it in the CAF container. See https://caniuse.com/#search=opus

Re: Opus Audio Codec – FAQ

#44

Earlier quoted context omitted.

ALAC (Apple Lossless) was specifically designed to be power efficient, hence its use in AirPlay. Interestingly one of the most power efficient lossy codecs is still ATRAC, Sony's MiniDisc codec, specifically designed to sip lightly at your AA batteries.

Doesn't seem to be the case at least in Rockbox, ATRAC is less efficient than Vorbis or MP3: https://www.rockbox.org/wiki/CodecPerformanceComparison

Maybe ATRAC was designed for the purpose of being efficient when using dedicated hardware without making the hardware expensive to manufacture? It's from the minidisc era so I'm not sure it would have been common for them to use general-purpose CPUs to decode audio by then

Re: Opus Audio Codec – FAQ

#45
post #33

Opus is great. I encode all my music in Opus for playback (after buying it in FLAC). Are all browsers supporting it now? I remember in the past Apple staunchly refused to support Opus and Ogg container. Is it better now after they joined Alliance for Open Media?

https://caniuse.com/#feat=opus Safari (both desktop and mobile) is still problematic

Re: Opus Audio Codec – FAQ

#46
post #43
post #33

Opus is great. I encode all my music in Opus for playback (after buying it in FLAC). Are all browsers supporting it now? I remember in the past Apple staunchly refused to support Opus and Ogg container. Is it better now after they joined Alliance for Open Media?

All major browsers now implement WebRTC, including Opus support. Also, most browsers now support Opus playback in HTML5, though AFAIK Safari only supports it in the CAF container. See https://caniuse.com/#search=opus

> FAIK Safari only supports it in the CAF container

Apple being Apple. While they "support" it, looks like they can't even do it properly.

Re: Opus Audio Codec – FAQ

#47
post #45
post #33

Opus is great. I encode all my music in Opus for playback (after buying it in FLAC). Are all browsers supporting it now? I remember in the past Apple staunchly refused to support Opus and Ogg container. Is it better now after they joined Alliance for Open Media?

https://caniuse.com/#feat=opus Safari (both desktop and mobile) is still problematic

Yeah, too bad. Apple just can never do the right thing.

Re: Opus Audio Codec – FAQ

#48
post #11
post #4

Earlier quoted context omitted.

I have never seen an Opus file in the wild. MP3 and FLAC are by far still dominant. Ogg is still popular I. It’s niche (eg game sounds, and I think Spotify uses it too)

Is there a reason why mp3 is still around? AAC has better compression ratios, and support is a non-issue. Maybe mp3 has better brand recognition? Most people know what a mp3 is, but probably wouldn't know what AAC or a .m4a is.

There are no quality open source AAC encoders like there are for MP3.

Re: Opus Audio Codec – FAQ

#49
post #8

The only point in lossy encoding is to save space / bandwidth . Opus excels at getting good sound quality at lower bitrates. If there's a talk or lecture on Youtube that you're about to grab, try the 50kbps Opus version and save your limited space for more important things, but you might need to remux from webm to an ogg container for compatibility. e.g. youtube-dl -f249 $URL --exec 'ffmpeg -i {} -vn -c:a copy {}.ogg…

You can DL and listen to a longish YT track without the video - in far less time and with (usually) better audio - by specifying format 251 (usually available).

For example, an hour-long performance video mp4 at 1280x720 gets you 96k audio and 280MB. 'youtube-dl -f 251 url' will get you a 160K Opus in 54 MB.

To my ears Opus sounds sweeter and fuller than mp3. At 64K and lower bit-rates, it's near the top.

Re: Opus Audio Codec – FAQ

#50
post #8

The only point in lossy encoding is to save space / bandwidth . Opus excels at getting good sound quality at lower bitrates. If there's a talk or lecture on Youtube that you're about to grab, try the 50kbps Opus version and save your limited space for more important things, but you might need to remux from webm to an ogg container for compatibility. e.g. youtube-dl -f249 $URL --exec 'ffmpeg -i {} -vn -c:a copy {}.ogg…

I love youtube-dl, but I usually just download the lowest bitrate Opus stream with two taps on my phone using NewPipe[1].

[1] https://newpipe.schabi.org/

Post reply on HN