Faster Audio Decoding and Encoding Coming To Ogg and FLAC (phoronix.com) 90
FLAC and Ogg now have faster audio encoding and decoding capabilities thanks to recent code improvements. An anonymous reader writes: Robert Kausch of the fre:ac audio converter project informed news outlet Phoronix about recent changes he has made to FLAC and Ogg for bolstering faster performance. Kausch says he updated the CRC checks within FLAC and Ogg to a faster algorithm and those patches have now been accepted upstream. The Ogg and FLAC updates were merged this week for using the optimized CRC algorithm. As a result of this, encoding and decoding FLAC is now 5 percent faster, while encoding and decoding Ogg FLAC is 10 percent and 15 percent faster, respectively. Opus sees about one percent faster decoding, while Vorbis does decoding at two percent faster pace.
One step forward, one step back (Score:4, Insightful)
So after the latest patches for speculative execution vulnerabilities, you'll end up with performance about the same as you used to have.
Depends... (Score:1)
Did this new checksum algorithm actually improve things, or just break compatibility of ogg/flac files with legacy players that don't have updates available? And did it provide said speedups without causing new security issues of its own?
Re: (Score:2)
What kind of shit do you listen to that security is a concern?
Re:Depends... (Score:4, Informative)
It's a new algorithm to calculate the same checksum. It doesn't break compatibility with anything.
FLAC and Vorbis reference decoders are both lacking any processor specific optimizations, so a new checksum algorithm is only a fraction of the potential for optimization. For Vorbis, there is Tremor as an alternative, which does have some ARM specific optimization, but for FLAC the reference codec is all there is.
Re: (Score:2)
Re: (Score:3)
"So after the latest patches for speculative execution vulnerabilities, you'll end up with performance about the same as you used to have."
No, it's faster and so you can play a 3 minutes song in 2 minutes.
Re: (Score:2)
Only if you're silly enough to actually enable said patches on a computer where the risk they are mitigating is so incredibly low.
What does 5-15 Percent speed mean? (Score:3)
While I like to see faster algorithms in general as a good thing. But some questions.
Where does Flac and ogg stand on Quality/encoding speed compared to others?
Will this range make it more competitive to others, or is there too big of a gap?
For those who move to the new version how much time will they really spend. Will they just get a minute of their time a day or hours?
Re: (Score:3)
Re:What does 5-15 Percent speed mean? (Score:5, Informative)
Flac is lossless, it's full quality.
Opus, except at _extremely_ low bitrates, has similar or better quality than the most commonly used modern codecs:
http://opus-codec.org/comparis... [opus-codec.org]
Flac is fast to encode and decode. Opus decodes slower than MP3 but on par with AAC LC, and encodes slightly faster than AAC LC and on par with MP3. Performance will vary a bit by encoder:
http://fmedia.firmdev.com/audi... [firmdev.com]
Re: (Score:1)
I ripped my CD catalog to FLAC due to the speed (it was a while ago) not the quality. It was about 4x the speed of lame high quality variable bitrate.
I'd then convert to MP3 overnight queuing up that evening's take.
Re: (Score:1)
600 MB vs 150 MB (good quality MP3) or 300 MB (FLAC) is pretty significant in the era of portable players.
I use a streaming service now, but when I was ripping my disks that was a fantasy. I wouldn't be shocked if my HD was only half a TB even (I forget), but my player was only 30GB. Only 60 CDs is a lot more limiting than 240.
Re:What does 5-15 Percent speed mean? (Score:4, Informative)
Flac is lossless, it's full quality.
Flac is fast to encode and decode.
Just to elaborate, Flac was designed for light/fast encoders at the possible expense of compression ratio. It would decode in software in portable music players that often had hardware decoders for MP3 and AAC. In comparison, other lossless formats at the time such as APE had somewhat better compression ratios, but were much heavier to encode and decode. I guess the prevailing idea was that portable players don't need lossless quality, but Flac changed that. Of course, Flac is also Free software.
Re: (Score:2)
Re: (Score:2)
So a 5% to 15% speed improvement is newsworthy? (Score:2, Informative)
Man, we must be reaching some kind of technological plateau. I'm all for speed gains... but come on. I guess compiler flags would potentially make more difference than that.
Re: (Score:1)
Cool! (Score:2)
Re: (Score:2)
Ogg (Score:1)
Who the hell even uses Ogg besides Wikipedia?
Re: (Score:2)
Re: (Score:2)
I'm not sure about CURRENT video games, but I know games in the mid-2000s used them. The Unreal engine was specifically designed for OGG playback to help reduce the size of music in games.
Re: (Score:2)
Incidentally I read a bit on Theora and they said it was not that bad a codec, everyone remembers the early versions when it sucked.
Last I checked, Theora's rate-distortion performance was somewhere between H.263 (such as Sorenson Spark, DivX, and Xvid) and H.264. But by the time Theora was ready for production use, the technically superior H.264 had already gained an installed base.
Re:Ogg (Score:4)
Correct me if I'm wrong, and someone will, but I think Spoify uses it.
Re: (Score:2)
From Spotify's Audio Settings [spotify.com] page:
Re: (Score:2)
I should know this but I thought ogg was the audio format and vorbis was the container is was wrapped in. Much like h.265 is the video stream, AC-3 is the audio stream, and mkv is the wrapper they are all muxed together in.
Re: (Score:1)
It's the other way around. Vorbis is the audio format and Ogg is the container.
Ogg is also used for Opus, Speex, Theora, Daala and sometimes FLAC. All of these will benefit from the performance improvement in Ogg.
Re: (Score:2)
Nope, backwards. Vorbis is the audio format and Ogg is the container. Sometimes you here the combination of the two referred to incorrectly as Ogg or colloquially but not incorrectly as Ogg Vorbis.
Re: (Score:2)
The web player and Chromecast stream 256kbps AAC at the highest quality setting, for some reason.
I wish they would move to Opus. The could cut around a 3rd of their bandwidth usage for the same audible quality.
Re: (Score:2)
He said ogg, not egg.
Re: (Score:2)
People who listen to music.
Not about FLAC or OGG (Score:2, Troll)
I expected that since they were listing formats that somehow the formats had been modified. However, these improvements are not to FLAC or OGG but rather one implementation. What's worse is that these aren't even the most commonly used implementations.
The headline is garbage and if you voted for this story then you deserve a spanking. >:(
Re: (Score:2)
They are the official reference codecs provided by Xiph Foundation. These are used on every Android device and in every Linux distribution. Most software that will process FLAC or Ogg uses these libraries too.
They are easily the most commonly used implementations.
Re: (Score:2)
Grand Theft Fortnight Overwatch? I'd play that!
Re: (Score:1)
And Opus use which container format? Hint: It starts with an O and ends in gg.
The Ogg performance improvements will speed up Opus decoding too (and save battery life when playing Opus on your mobile device).
And FLAC is lossless while Opus is not. So FLAC is the better choice for archival.
Tested&measured the optimisation on my Sgi Oct (Score:1)