[Flac] Fixing corrupt flac files

Martijn van Beurden mvanb1 at gmail.com
Thu Jan 10 10:08:24 PST 2013


Hi,

Do you still know what tools you used to encode these FLAC-files? It 
seems similar errors have popped up elsewhere after using various 
tagging-utilities. It seems it is indeed a tagging issue, as the error 
indicates something in that direction and the errors always occur at the 
last few percent. I guess it isn't possible to share one of these files 
somewhere so I can have a look?

If you are sure the files are actually unharmed and you want to 
re-encode them, you can use flac -f -F file.flac. This will re-encode 
the files in place, overwriting the original, so be sure to keep a copy 
of the original until you are sure this is indeed the way to go. The big 
advantage of this method is that you keep all tags, if the file has any.

On 10-01-13 16:34, Knut Krause wrote:
> Hi,
>
> since years I simply encoded my CDs using various tools to flac and simply
> listened to it and never had any problems.
>
> Today I wrote a little script though to add replaygain values to my music
> collection and I found out that a lot of my flac files are corrupt.
>
> The corruption almost always occurs in the last 10% like
>
> flac 1.2.1, Copyright (C) 2000,2001,2002,2003,2004,2005,2006,2007  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.
>
> 01 Overture.flac: testing, 96% complete
>
> 01 Overture.flac: ERROR while decoding data
>                    state = FLAC__STREAM_DECODER_END_OF_STREAM
>
> Is there a way to fix this? I tested decoding the file with -F and then
> reencoding it with flac. This seems to lead to an error free version but is
> this the way to go?
>
> Regards
>
>
> Knut
> _______________________________________________
> Flac mailing list
> Flac at xiph.org
> http://lists.xiph.org/mailman/listinfo/flac



More information about the Flac mailing list