IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
WavPack silently corrupts on Raspberry Pi?, No error on encoding, only on decoding
ktf
post Feb 8 2013, 20:28
Post #1





Group: Members
Posts: 305
Joined: 22-March 09
Member No.: 68263



Hi all,

Sometime ago I got myself a Raspberry Pi and I was setting it up to do a lossless codec speed comparison to expand the lossless audio codec comparison I did recently. However, I came across some weird errors and it turned out WavPack was not producing lossless files at all.

To show the results, I've made a short recording and processed it through WavPack, the results are in this zip-file. I took a few settings to see what happened.

wavpack -f: no errors
wavpack -f -x: no errors
wavpack: no errors
wavpack -x: no errors
wavpack -h: missing data or crc errors detected in 12 block(s)!
wavpack -h -x: missing data or crc errors detected in 12 block(s)!
wavpack -hh: missing data or crc errors detected in 12 block(s)!
wavpack -hh -x2: missing data or crc errors detected in 12 block(s)!
wavpack -hh -x4: missing data or crc errors detected in 3 block(s)!
wavpack -hh -x6: missing data or crc errors detected in 3 block(s)!

However, I tested some other songs as well, most produced errors on wavpack -x and wavpack -f -x as well. For example, 30 Seconds to Mars - 100 Suns

wavpack -f: no errors
wavpack -f -x: missing data or crc errors detected in 6 block(s)!
wavpack: no errors
wavpack -x: missing data or crc errors detected in 100 block(s)!
wavpack -h: missing data or crc errors detected in 119 block(s)!
wavpack -h -x: missing data or crc errors detected in 101 block(s)!
wavpack -hh: missing data or crc errors detected in 119 block(s)!
wavpack -hh -x: missing data or crc errors detected in 119 block(s)!
wavpack -hh -x2: missing data or crc errors detected in 119 block(s)!

Anyone who knows what happened here? Faulty built of ARM Debian? Bugs in the WavPack code with respect to the ARM arch?


--------------------
Music: sounds arranged such that they construct feelings.
Go to the top of the page
+Quote Post
saratoga
post Feb 8 2013, 20:41
Post #2





Group: Members
Posts: 4718
Joined: 2-September 02
Member No.: 3264



Are you running an older version? this bug might apply to you:

http://www.hydrogenaudio.org/forums/index....showtopic=95889

(Although I'm not sure if its present on ARM)
Go to the top of the page
+Quote Post
ktf
post Feb 8 2013, 20:51
Post #3





Group: Members
Posts: 305
Joined: 22-March 09
Member No.: 68263



QUOTE (saratoga @ Feb 8 2013, 20:41) *
Are you running an older version?

I keep the system updated, probably the built is old? The problem in that thread with hybrid mode though. Furthermore, this problem does not happen on my Ubuntu 12.10 system, which is built from the same repositories.


--------------------
Music: sounds arranged such that they construct feelings.
Go to the top of the page
+Quote Post
bryant
post Feb 8 2013, 22:00
Post #4


WavPack Developer


Group: Developer (Donating)
Posts: 1287
Joined: 3-January 02
From: San Francisco CA
Member No.: 900



Thanks for posting these file; there definitely seems to be an issue.

I compared the WavPack files you generated with those generated on a PC and found that the ones with no errors were identical, but the corrupt ones were slightly smaller (like some data was going missing).

When you say this doesn't happen on Ubuntu 12.10 I assume you mean an X86 build and not an ARM build, right? I would be interested in whether building WavPack from SVN head has the same issue (I am not familiar enough with the Raspberry Pi [yet] to know if that's easy).

David
Go to the top of the page
+Quote Post
bryant
post Feb 8 2013, 22:39
Post #5


WavPack Developer


Group: Developer (Donating)
Posts: 1287
Joined: 3-January 02
From: San Francisco CA
Member No.: 900



In fact, I'll bet this was fixed with SVN rev 271 which had to do with compilers that default chars to unsigned (which I think ARM does, for some reason).
Go to the top of the page
+Quote Post
ktf
post Feb 8 2013, 23:35
Post #6





Group: Members
Posts: 305
Joined: 22-March 09
Member No.: 68263



QUOTE (bryant @ Feb 8 2013, 22:00) *
When you say this doesn't happen on Ubuntu 12.10 I assume you mean an X86 build and not an ARM build, right?

That's the case, I wasn't specific enough. I was comparing Ubuntu on amd64 (regular notebook) which the supported Debian-for-Raspberry distribution, which is ARM. Notebook works, RPBi doesn't.

QUOTE (bryant @ Feb 8 2013, 22:39) *
In fact, I'll bet this was fixed with SVN rev 271 which had to do with compilers that default chars to unsigned (which I think ARM does, for some reason).

I'll check this soon. I haven't installed a toolchain on RBPi yet, that's why I didn't try it right away. Building on the Raspberry isn't hard at all, it just takes a lot of patience as the CPU is very slow.

This post has been edited by ktf: Feb 8 2013, 23:42


--------------------
Music: sounds arranged such that they construct feelings.
Go to the top of the page
+Quote Post
ktf
post Feb 9 2013, 00:06
Post #7





Group: Members
Posts: 305
Joined: 22-March 09
Member No.: 68263



I couldn't resist trying immediately smile.gif Current revision (280) works fine, 270 has the bug and 271 works fine too, so it seems r271 indeed fixed this.

This post has been edited by ktf: Feb 9 2013, 00:07


--------------------
Music: sounds arranged such that they construct feelings.
Go to the top of the page
+Quote Post
bryant
post Feb 9 2013, 04:54
Post #8


WavPack Developer


Group: Developer (Donating)
Posts: 1287
Joined: 3-January 02
From: San Francisco CA
Member No.: 900



QUOTE (ktf @ Feb 8 2013, 15:06) *
I couldn't resist trying immediately smile.gif Current revision (280) works fine, 270 has the bug and 271 works fine too, so it seems r271 indeed fixed this.

Thanks for verifying this!

A WavPack maintenance release is way past due.... sad.gif
Go to the top of the page
+Quote Post
Mr_Rabid_Teddybe...
post Mar 1 2013, 01:54
Post #9





Group: Members
Posts: 1197
Joined: 3-September 03
From: Bergen, Norway
Member No.: 8667



QUOTE (bryant @ Feb 8 2013, 19:54) *
A WavPack maintenance release is way past due.... sad.gif

If you can find the time for it I guess things indicate that it might be approaching that point yes.... cool.gif



--------------------
"ONLY THOSE WHO ATTEMPT THE IMPOSSIBLE WILL ACHIEVE THE ABSURD"
- Oceania Association of Autonomous Astronauts
Go to the top of the page
+Quote Post
bryant
post Mar 1 2013, 19:00
Post #10


WavPack Developer


Group: Developer (Donating)
Posts: 1287
Joined: 3-January 02
From: San Francisco CA
Member No.: 900



I am actually working on 4.70 right now.

In addition to the maintenance fixes, I am also including an option to automatically verify during packing (like FLAC's --verify) so that something like the bug shown here will be caught earlier.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 20th April 2014 - 08:11