[Flac] Problem decoding .flac files

Hal Vaughan hal at thresholddigital.com
Wed Apr 11 08:46:39 PDT 2007


This may be solved.

I'm sorry I didn't have time to post the offending file, but I noticed 
that the only files that had problems were ones I had ripped to my hard  
drive over a short period of time.  While I keep track of security 
updates if they effect the kernel or something regarding the direct 
functioning of my system, I don't if it's something like the Xine 
library.

When I saw the e-mail about a bug in the Xine library being fixed in 
Ubuntu, I thought I should be able to decode the problematic flac files 
again, but it didn't work.

Then, last night, when burning a few CDs that I could leave in a new 
classic convertible I just bought (I have a rule: don't leave anything 
in a convertible you can afford to lose, so only burned CDs), that's 
when it hit me: Only a few files over a short period of time were 
effected!

I grabbed some of the source CDs and re-ripped some of the problem 
tracks and they're working fine now.  I can decode those tracks now.

I'm going to put together a Perl script now and have it go through and 
test all the files in my archive (or probably all the ones within a 
certain time frame) and check them for errors.  Then I'll just re-rip 
all the files with errors.

I'm sorry I didn't have time to set up an ftp or web page with damaged 
files.  Things have been a bit hectic.

If it makes a difference, I can save the bad files so I can post them 
when I do have more time, in case that helps with trouble shooting 
flac.

Thanks for the help!

Hal

On Wednesday 31 January 2007 11:19, Hal Vaughan wrote:
> I've been having problems with Amarok and K3B, but I think it comes
> down to a problem with flac.  All my music and audio files are
> encoded in flac format.  I've ripped my CDs using KAudioCreator and
> using this command to encode them (split for formatting):
>
> flac --best -o %o --tag=Artist=%{artist} --tag=Album=%{albumtitle}
> --tag=Date=%{year} --tag=Title=%{title}
> --tag=Tracknumber=%{number} --tag=Genre=%{genre} %f
>
> Recently I've had some problems with burning files with K3B, so I
> tried this command to decode one flac file to a wav file:
>
> flac -d amj.flac
>
> And I got the following output:
>
> flac 1.1.2, Copyright (C) 2000,2001,2002,2003,2004,2005  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.
>
> amj.flac: 97% complete
>
> amj.flac: ERROR while decoding data
>           state = FLAC__STREAM_DECODER_END_OF_STREAM
>
> The file plays without any problem from Amarok.  How can flac encode
> this without any problem and have problems decoding it?
>
> Hal


More information about the Flac mailing list