Help - Search - Members - Calendar
Full Version: Flac Vs Wavpack Decoding With Rockbox
Hydrogenaudio Forums > Lossless Audio Compression > Lossless / Other Codecs
soltari1
In every comparison I have seen flac decodes faster than wavpack on the pc, yet on a coldfire cpu using rockbox wavpack seems to decode much faster. Is this due to better optimized wavpack code or does using the integer libraries hurt flac decoding speed more than I would have anticipated?

Anywho, I was just curious. Thanks in advance for any explanations.
guruboolez
QUOTE(soltari1 @ Aug 9 2005, 08:02 AM)
In every comparison I have seen flac decodes faster than wavpack on the pc
Really?
http://www.foobar2000.net/lossless/decoding.htm
But difference is very marginal, and both are near identical.

QUOTE
Is this due to better optimized wavpack code
I know that David Bryant worked to optimize WavPack for Rockbox (or is it ARM processor?), and it might explain the difference you've mentionned.
Defsac
WavPack provides a little better compression (especially in extra mode, although this causes a massive increase in encode time), but for simple playback decode speed shouldn't be an issue.
rjamorim
QUOTE(guruboolez @ Aug 9 2005, 04:37 AM)
QUOTE(soltari1 @ Aug 9 2005, 08:02 AM)
In every comparison I have seen flac decodes faster than wavpack on the pc
Really?
http://www.foobar2000.net/lossless/decoding.htm
But difference is very marginal, and both are near identical.


And keep in mind WavPack is NOT yet assembly-optimized for the x86 platform. FLAC is. With ASM, even WavPack normal might decode faster than FLAC.

QUOTE
I know that David Bryant worked to optimize WavPack for Rockbox (or is it ARM processor?), and it might explain the difference you've mentionned.
*


It indeed explains the difference. That also explains why WavPack is the only lossy or lossless codec currently also encoding in the RockBox.

BTW: The iHP CPU is a Motorola/Freescale ColdFire, based on the venerable M68k architecture.
soltari1
QUOTE(guruboolez @ Aug 8 2005, 11:37 PM)
QUOTE(soltari1 @ Aug 9 2005, 08:02 AM)
In every comparison I have seen flac decodes faster than wavpack on the pc
Really?
http://www.foobar2000.net/lossless/decoding.htm
But difference is very marginal, and both are near identical.

QUOTE
Is this due to better optimized wavpack code
I know that David Bryant worked to optimize WavPack for Rockbox (or is it ARM processor?), and it might explain the difference you've mentionned.
*




Hadn't seen that test. All the ones I had seen were also done using wavpack 4.0. Man, when David claimed faster encode/decode speeds for 4.2 he really meant it.
dobz
ive recently transcoded many single file flacs/cues that were encoded at various levels to wavpack multiple files and almost all the wavpack albums are smaller using -mx (m = calculate md5, x = extra encode process 0.5% better compresionish) x makes encoding very slow but slightly smaller file with no additional decode time. good for h1xx.

i do not recommend high compression -h on the h1xx as i have experienced some problems on playback (sometimes)

imo wavpack is more responsive than flac on the h1xx, i cant see an advantage of using flac on a H1xx as wavpack just does it all better. tos me

flac however is excellet and my 2nd choice
Defsac
QUOTE(guruboolez @ Aug 9 2005, 05:37 PM)
Really?
http://www.foobar2000.net/lossless/decoding.htm
But difference is very marginal, and both are near identical.
*

I'd take those results with a grain of salt. It indicates that using the -x4 command increases decode time, when both the WavPack documentation and my own testing indicates this is not the case. In fact, on every sample I have tested using the -x6 argument actually decreases decode time by as much as 15%.

QUOTE
Normal: restored 02-not_so_usual_900_ofr_lossless_ex.wav in 3.79 secs (lossless, 33.24%)
"-x6" (highest level): restored Jason Mraz - Not So Usual (Extra 6).wav in 3.76 secs (lossless, 33.36%)


QUOTE
Like previous versions of WavPack (and many other compressors), WavPack 4.2 normally works "symmetrically" in that encoding and decoding operate at about the same rate (regardless of the mode used). However, WavPack now has an option to work "asymmetrically", so that extra processing can be done during encoding to provide better compression, but with NO corresponding cost to decoding performance!
bryant
QUOTE(Defsac @ Aug 9 2005, 11:00 PM)
QUOTE(guruboolez @ Aug 9 2005, 05:37 PM)
Really?
http://www.foobar2000.net/lossless/decoding.htm
But difference is very marginal, and both are near identical.
*

I'd take those results with a grain of salt. It indicates that using the -x4 command increases decode time, when both the WavPack documentation and my own testing indicates this is not the case. In fact, on every sample I have tested using the -x6 argument actually decreases decode time by as much as 15%.

Keep in mind that those results are indicating decode speed, not decode time, so they actually do match what you see. smile.gif


Defsac
QUOTE(bryant @ Aug 10 2005, 05:15 PM)
Keep in mind that those results are indicating decode speed, not decode time, so they actually do match what you see.  smile.gif
*

I don't think I understand you. Is not decode speed over the entire track directly proportional to the decode time?

Eg:
If sample A decodes at 1400 samples per second, and takes time x, assuming sample B decodes at 1300 samples per second time x should be less than time y.
bryant
QUOTE(bryant @ Aug 9 2005, 11:15 PM)
QUOTE(Defsac @ Aug 9 2005, 11:00 PM)
QUOTE(guruboolez @ Aug 9 2005, 05:37 PM)
Really?
http://www.foobar2000.net/lossless/decoding.htm
But difference is very marginal, and both are near identical.
*

I'd take those results with a grain of salt. It indicates that using the -x4 command increases decode time, when both the WavPack documentation and my own testing indicates this is not the case. In fact, on every sample I have tested using the -x6 argument actually decreases decode time by as much as 15%.

Keep in mind that those results are indicating decode speed, not decode time, so they actually do match what you see. smile.gif
*


No, it's inversely proportional. When one goes up the other goes down.
Defsac
QUOTE(bryant @ Aug 10 2005, 05:20 PM)
No, it's inversely proportional. When one goes up the other goes down.
*

Ah yes, my mistake. But there is still a relationship between them, agreed? Is it not odd that two values stay the same (decode time) while the other two differ (decode speed)?
bryant
QUOTE(Defsac @ Aug 9 2005, 11:22 PM)
QUOTE(bryant @ Aug 10 2005, 05:20 PM)
No, it's inversely proportional. When one goes up the other goes down.
*

Ah yes, my mistake. But there is still a relationship between them, agreed? Is it not odd that two values stay the same (decode time) while the other two differ (decode speed)?
*


Now I'm not sure what you are refering to. I just meant that the results that Guruboolez was showing actually did match what you saw (that -x4 makes decoding faster). It seemed like you thought his results showed that -x4 decoded slower, but they don't.
Defsac
QUOTE(bryant @ Aug 10 2005, 05:27 PM)
Now I'm not sure what you are refering to. I just meant that the results that Guruboolez was showing actually did match what you saw (that -x4 makes decoding faster). It seemed like you thought his results showed that -x4 decoded slower, but they don't.
*

I just rechecked the results and realised I'd read them wrong. blush.gif
Carry on.
bryant
QUOTE(Defsac @ Aug 9 2005, 11:30 PM)
Carry on.
smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.