Help - Search - Members - Calendar
Full Version: Mending flac with with errors
Hydrogenaudio Forums > Lossless Audio Compression > FLAC
littlecharliemouse
Is there a way to retrieve data from a damaged flac file?

I've 3 files recorded from vinyl which have errors. I've tried all the following:

- Winamp tells me it looses the sync

- Flac front end (instructed to decode) through errors gives
"flac_stream_decoder_error_status_lost_sync"

- Flact tester gives ERROR_FRAME_CRC_MISMATCH

- Nero plugin writes silent file to CD after the error.

- Cooledit pro opens the file up to the error only.

BUT - If I drag winamp progress bar to past the error, it continues to play the rest of the file - so I know the data is there.

How can I retrieve the audio content from this flac file.

Apparently an advantage of flac is errors only cause loss within a frame, which appears to be true, but I can't find a tool to retrieve anything after the error.

Help greatly appreciated!

Robin
NRAninja
Decoding to wav with the -F switch and then reencoding should work.
littlecharliemouse
Sadly not. Same message as flac frontend:

"FLAC STREAM DECODER UNPARSABLE STREAM"
at point of error.

Thanks though,
Any more ideas?
jcoalson
depends on how damaged it is.

the next release will have better recovery tools for damaged files.

Josh
miros
In meantime you could use flacdec from affd, it has a recovery mode (-r switch). I have just put there a Cygwin build.

If the file has only one frame corrupted, you should get two audio files containing data from continuous correct frames. With a bit of luck you can get even some samples from the corrupted frame, use -d switch and cut out good samples in an audio editor.
windmiller
QUOTE(jcoalson @ Dec 23 2005, 11:05 PM)
depends on how damaged it is.

the next release will have better recovery tools for damaged files.

Josh
*




Better tools for recovering files encoded with the new version or in both new and existing FLAC files?
jcoalson
all FLAC files, new and old.
littlecharliemouse
Look forward to the new version,

Miros - thanks: flacdec did the trick biggrin.gif

Recovered the file either side of the error as I hoped for.
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.