Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  Decoding FLAC efficiency question
« previous next »
  • Print
Pages: [1]

Author Topic: Decoding FLAC efficiency question  (Read 3870 times)

Offline paulgj

  • Member
  • *
  • Posts: 9
Decoding FLAC efficiency question
« on: February 14, 2007, 10:57:19 PM »
Hello,

I was just wondering if decoding a FLAC -8 compression file will take more CPU than decoding a standard -5 file?  I would like to get my FLAC tracks as small as possible without hindering the playback performance.

Currently using a 5.5g iPod Video.

Thanks!
Logged
Rockboxed Apple iPod Video 5.5 30G.

Offline Toxikator

  • Member
  • *
  • Posts: 78
  • Superior Sound (inferior slogan)
    • Big Black Nothing
Re: Decoding FLAC efficiency question
« Reply #1 on: February 15, 2007, 11:40:08 AM »
In my experience it's the same speed, at least insofar as the playback remains gapless. Of course, ENcoding takes much longer.
Logged

Buy Big Black Nothing's "Afraid of Sleep" now!

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Decoding FLAC efficiency question
« Reply #2 on: February 15, 2007, 03:16:02 PM »
The proper test would be to go to the 'Audio Thread' screen in the debug menu, and watch the boost ratio while repeating a 5 song, then watch the boost ratio while repeating the same song on 8, and see how much higher it is.
Logged

Offline preglow

  • Developer
  • Member
  • *
  • Posts: 164
Re: Decoding FLAC efficiency question
« Reply #3 on: February 18, 2007, 03:39:05 PM »
Quote from: paulgj on February 14, 2007, 10:57:19 PM
Hello,
I was just wondering if decoding a FLAC -8 compression file will take more CPU than decoding a standard -5 file?  I would like to get my FLAC tracks as small as possible without hindering the playback performance.
Thanks!
It will use more CPU, but not by extreme amounts.
Logged

Offline senab

  • Artist
  • Member
  • *
  • Posts: 188
  • The Mighty Senab!!!
    • senab.co.uk
Re: Decoding FLAC efficiency question
« Reply #4 on: February 20, 2007, 12:10:18 PM »
Plus the file will only be slightly smaller and take double as long to encode. Stick with -5 (or lower)  ;)
Logged

Offline DefineByte

  • Member
  • *
  • Posts: 104
Re: Decoding FLAC efficiency question
« Reply #5 on: February 20, 2007, 06:00:36 PM »
Encoding time for -8 has halved just recently.
Logged

Offline jaybeee

  • Member
  • *
  • Posts: 68
    • TMB
Re: Decoding FLAC efficiency question
« Reply #6 on: February 21, 2007, 07:49:52 AM »
Quote from: DefineByte on February 20, 2007, 06:00:36 PM
Encoding time for -8 has halved just recently.
yep, v1.1.4 has seen some great improvements, including decoding speeds apparently (not halving like the encoding though).

@paulgj: I see you asked the question on here & HA.org  ;) clicky

Is Firon's post true that the FLAC v1.1.4 code would need to be integrated into Rockbox to notice any v1.1.4 improvements? (I'm guessing it would).
Logged
H120

Offline Lear

  • Developer
  • Member
  • *
  • Posts: 533
Re: Decoding FLAC efficiency question
« Reply #7 on: February 21, 2007, 10:13:15 AM »
Quote from: jaybeee on February 21, 2007, 07:49:52 AM
Is Firon's post true that the FLAC v1.1.4 code would need to be integrated into Rockbox to notice any v1.1.4 improvements? (I'm guessing it would).

The FLAC decoder in Rockbox isn't based on the official FLAC code, so the changes in FLAC don't really apply. But Rockbox should still be able to decode all FLAC files, so any increases in compression efficiency wouldn't require any changes to Rockbox. Decoding is already pretty well optimized, AFAIK.
Logged

Offline senab

  • Artist
  • Member
  • *
  • Posts: 188
  • The Mighty Senab!!!
    • senab.co.uk
Re: Decoding FLAC efficiency question
« Reply #8 on: February 21, 2007, 10:55:25 AM »
Rockbox uses ffmpeg's decoder as far as I can see. But why is libFLAC in the source tree aswell?
Logged

Offline linuxstb

  • Developer
  • Member
  • *
  • Posts: 1163
Re: Decoding FLAC efficiency question
« Reply #9 on: February 21, 2007, 11:02:37 AM »
Quote from: senab on February 21, 2007, 10:55:25 AM
Rockbox uses ffmpeg's decoder as far as I can see. But why is libFLAC in the source tree aswell?

The first FLAC codec in Rockbox was based on libFLAC, but was later replaced with the vastly more efficient decoder from ffmpeg.

libFLAC was removed from the source a couple of months ago - where are you still seeing it?

Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  Decoding FLAC efficiency question
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.122 seconds with 15 queries.