WavPack silently corrupts on Raspberry Pi?, No error on encoding, only on decoding |
![]() ![]() |
WavPack silently corrupts on Raspberry Pi?, No error on encoding, only on decoding |
Feb 8 2013, 20:28
Post
#1
|
|
![]() Group: Members Posts: 186 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.
|
|
|
|
Feb 8 2013, 20:41
Post
#2
|
|
|
Group: Members Posts: 4163 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) |
|
|
|
Feb 8 2013, 20:51
Post
#3
|
|
![]() Group: Members Posts: 186 Joined: 22-March 09 Member No.: 68263 |
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.
|
|
|
|
Feb 8 2013, 22:00
Post
#4
|
|
![]() WavPack Developer Group: Developer (Donating) Posts: 1225 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 |
|
|
|
Feb 8 2013, 22:39
Post
#5
|
|
![]() WavPack Developer Group: Developer (Donating) Posts: 1225 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).
|
|
|
|
Feb 8 2013, 23:35
Post
#6
|
|
![]() Group: Members Posts: 186 Joined: 22-March 09 Member No.: 68263 |
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. 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.
|
|
|
|
Feb 9 2013, 00:06
Post
#7
|
|
![]() Group: Members Posts: 186 Joined: 22-March 09 Member No.: 68263 |
I couldn't resist trying immediately
This post has been edited by ktf: Feb 9 2013, 00:07 -------------------- Music: sounds arranged such that they construct feelings.
|
|
|
|
Feb 9 2013, 04:54
Post
#8
|
|
![]() WavPack Developer Group: Developer (Donating) Posts: 1225 Joined: 3-January 02 From: San Francisco CA Member No.: 900 |
|
|
|
|
Mar 1 2013, 01:54
Post
#9
|
|
![]() Group: Members Posts: 1195 Joined: 3-September 03 From: Bergen, Norway Member No.: 8667 |
A WavPack maintenance release is way past due.... If you can find the time for it I guess things indicate that it might be approaching that point yes.... -------------------- "ONLY THOSE WHO ATTEMPT THE IMPOSSIBLE WILL ACHIEVE THE ABSURD"
- Oceania Association of Autonomous Astronauts |
|
|
|
Mar 1 2013, 19:00
Post
#10
|
|
![]() WavPack Developer Group: Developer (Donating) Posts: 1225 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. |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 20th June 2013 - 02:27 |