Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror
×
Technology

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.
This discussion has been archived. No new comments can be posted.

Faster Audio Decoding and Encoding Coming To Ogg and FLAC

Comments Filter:
  • by Waffle Iron ( 339739 ) on Tuesday May 22, 2018 @12:31PM (#56653790)

    So after the latest patches for speculative execution vulnerabilities, you'll end up with performance about the same as you used to have.

    • by Anonymous Coward

      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?

      • by Dog-Cow ( 21281 )

        What kind of shit do you listen to that security is a concern?

      • Re:Depends... (Score:4, Informative)

        by jrumney ( 197329 ) on Tuesday May 22, 2018 @08:05PM (#56656300)

        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.

    • by ReneR ( 1057034 )
      It is most likely one step forward, two steps back. For most other non-CRC32 software anyways.
    • "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.

    • Only if you're silly enough to actually enable said patches on a computer where the risk they are mitigating is so incredibly low.

  • by jellomizer ( 103300 ) on Tuesday May 22, 2018 @12:37PM (#56653822)

    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?
     

    • by mishehu ( 712452 )
      ogg in of itself is simply a container format. It does not actually handle the compression/decompression of the streams within it, that's handled by other stuff such as libvorbis for vorbis encoded streams.
    • by DigitAl56K ( 805623 ) on Tuesday May 22, 2018 @12:52PM (#56653918)

      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]

      • by AvitarX ( 172628 )

        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.

      • by TeknoHog ( 164938 ) on Tuesday May 22, 2018 @01:33PM (#56654210) Homepage Journal

        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.

      • by Bengie ( 1121981 )
        At extremely low bit rates or packet loss, Opus kicks the crap out everything else. In my experience, Opus has really good reproduction of a wide range of frequencies. MP3s like to remove highs and lows. such that symbols and deep base drums in acoustic music sounds garbled when listening side by side.
  • by Anonymous Coward

    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.

    • by ReneR ( 1057034 )
      especially it is only very specific audio codecs, not even that widely used in the mainstream, ..!
  • Cool! I don't particularly care about the speed increases, but it's cool to know that people are still working on these codecs. I use FLAC every day.
    • Absolutely. Finding a 5 to 15% performance improvement in something as well-understood as CRCs is a pretty stunning microoptimization. I'd like to read the code, not that I have much chance of understanding why it's so much faster.
  • Who the hell even uses Ogg besides Wikipedia?

    • Basically all Android devices. Built-in ringtones and notification sounds are all in .ogg.
    • by darkain ( 749283 )

      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.

    • by jwhyche ( 6192 ) on Tuesday May 22, 2018 @01:20PM (#56654116) Homepage

      Correct me if I'm wrong, and someone will, but I think Spoify uses it.

      • From Spotify's Audio Settings [spotify.com] page:

        The desktop app’s standard quality is Ogg Vorbis 160kbit/s.

        Premium subscribers can choose to switch on High quality streaming, which uses 320kbit/s

        • by jwhyche ( 6192 )

          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.

          • 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.

          • 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.

        • 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.

    • by Sloppy ( 14984 )

      People who listen to music.

  • 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. >:(

    • 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.

The use of money is all the advantage there is to having money. -- B. Franklin

Working...