Help - Search - Members - Calendar
Full Version: Fix broken bytes in FLAC
Hydrogenaudio Forums > Lossless Audio Compression > FLAC
redhot
I have a problem. Some of my FLAC-files have a couple of broken bytes. I know that their quantity is low, near 2-4 bytes. Is there any tool for the repairing? I mean some software which can automatically change that bytes and then test a file?
Thanks in advance!
Heliologue
QUOTE(redhot @ Oct 26 2007, 04:56) *

I have problem. Some of my FLAC-files have a couple of broken bytes. I know that their quantity is low, near 2-4 bytes. Is there any tool for the repairing? I mean some software which can automatically change that bytes and then test a file?
Thanks in advance!


How do you know the bytes are corrupt? Do you get an error during decoding?
redhot
QUOTE(Heliologue @ Oct 26 2007, 16:04) *

How do you know the bytes are corrupt? Do you get an error during decoding?

I test downloaded file using FLAC-frontend. At 78% it gives me an error: "Frame CRC mismatch". Then I cut my files until I get an error: "End of stream" at some position. So I think the next address(es) contains a broken byte or a couple of bytes. But it is hard work to do it manually without software. First you cut file, then test it, and then again and again until you get "End of stream" message. But it's only a half. The next half is to fix these few bytes. Doing it manually takes a lot of time. So I need some software for it.
If there is no such software, in my opinion it is worth to create it.
jcoalson
no need to do all that, just use the -F option with flac.exe
redhot
QUOTE(jcoalson @ Nov 1 2007, 00:51) *

no need to do all that, just use the -F option with flac.exe

Of course, I can use this option, but
QUOTE

errors may cause the decoded audio to be missing some samples or have silent sections
. Decoding causes some errors, but recovering of original FLAC gives no errors at all!

BTW, is there any documentation about computing checksums of every frame?
jcoalson
unless you know which bytes are bad, and there are < 5 of them, it sounds prohibitively expensive.

the frame CRC method is described here: http://flac.sourceforge.net/format.html#frame_footer
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.