Help - Search - Members - Calendar
Full Version: FLAC 1.13 transcode bug?
Hydrogenaudio Forums > Lossless Audio Compression > FLAC
WaldoMonster
I'm not totally shore this is a bug.
But I think it is unwanted behavior when transcoding corrupted FLAC files.
After an error message the so far created temp file will be renamed to the original FLAC file.
In this case all the date after a corruption is lost.

To reproduce this, modify one or more byte(s) somewhere in the middle of a FLAC file with a hex editor.
Here are the screenshots with and without the –verify option:

QUOTE
flac.exe -5 --force test.flac

flac 1.1.3, Copyright © 2000,2001,2002,2003,2004,2005,2006 Josh Coalson
flac comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
welcome to redistribute it under certain conditions. Type `flac' for details.

test.flac: 59% complete, ratio=0.991test.flac: ERROR got FLAC__STREAM_DECODER_ER
ROR_STATUS_FRAME_CRC_MISMATCH while decoding FLAC input
test.flac: 59% complete, ratio=0.991


QUOTE
flac.exe -5 --force --verify test.flac

flac 1.1.3, Copyright © 2000,2001,2002,2003,2004,2005,2006 Josh Coalson
flac comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
welcome to redistribute it under certain conditions. Type `flac' for details.

test.flac: 59% complete, ratio=0.991test.flac: ERROR got FLAC__STREAM_DECODER_ER
ROR_STATUS_FRAME_CRC_MISMATCH while decoding FLAC input
test.flac: 59% complete, ratio=0.991

In both cases all the data after the corruption is lost.

Here is a workaround that I use to transcode:
QUOTE
for %%i in (*.flac) do (D:\Console\flac.exe --test "%%i" & if errorlevel 1 pause)
D:\Console\glob.exe -c D:\Console\flac.exe -5 --force *.flac

jcoalson
thanks, I created a bug report which you can monitor here:
http://sourceforge.net/tracker/index.php?f...amp;atid=113478
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.