Skip to main content

Topic: FLAC 1.13 transcode bug? (Read 4351 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
FLAC 1.13 transcode bug?
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
netjukebox - the flexible media share
http://www.netjukebox.nl

  • jcoalson
  • [*][*][*][*][*]
  • Developer
FLAC 1.13 transcode bug?
Reply #1
thanks, I created a bug report which you can monitor here:
http://sourceforge.net/tracker/index.php?f...amp;atid=113478