IPB

Welcome Guest ( Log In | Register )

FLAC Stream Decoder Error, FLAC__STREAM_DECODER_ERROR_STATUS_LOST_S
Zennon
post Jan 16 2005, 03:01
Post #1





Group: Members
Posts: 11
Joined: 16-January 05
Member No.: 19091



I'm in the process of backing up 500 CD-DA discs in FLAC format (using EAC). I ran a shell script to test (flac.exe -t; flac version 1.1.1) the 4000 FLAC files on my hard drive so far and found that flac.exe reported errors for 36 files. All errors are the same:

<filename>: *** Got error code 0:FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC

The files decompress fine, but now I'm not sure if I got the exact WAVs back. What does this error message mean, and how severe is the error? Moreover, is there a way to avoid it when compressing WAVs to FLAC in EAC?

This post has been edited by Zennon: Jan 17 2005, 00:10
Go to the top of the page
+Quote Post
 
Start new topic
Replies
jcoalson
post Jan 16 2005, 05:56
Post #2


FLAC Developer


Group: Developer
Posts: 1526
Joined: 27-February 02
Member No.: 1408



if a file tests fine and the md5sum is non-zero (do "metaflac --show-md5sum file.flac") then you got all the audio data back. not sure what is causing the error though. if verify was on during compression and there were no errors then, I would guess hard drive corruption. unless repeating the test/decode on the same file yields different errors each time, in which case it is probably bad ram or overclocking.

Josh
Go to the top of the page
+Quote Post
Zennon
post Jan 17 2005, 13:56
Post #3





Group: Members
Posts: 11
Joined: 16-January 05
Member No.: 19091



Josh, thanks for your reply. It's always a delight to get an answer from the developer himself.

I tested all md5 sums and they were all non-zero. That means I've got files that fail the flac -t test, but have non-zero md5s.

All FLACs were encoded by EAC, with the following additional command line options:

-T "artist=%a" -T "title=%t" -T "album=%g" -T "date=%y" -T "tracknumber=%n" -T "genre=%m" %s --best --verify

That is, verify was on during encoding. AFAIK EAC does not keep track of FLAC encoding errors, so it's impossible to say whether they encoded without errors. I have always assumed they did because I have the "check from external programs return code" enabled in EAC's compression options and never got a warning.

I think I can rule out hard drive corruption because the bad FLACs occur on two different drives (Seagate/NTFS and Lacie/FAT32). Repeating the test/decode on the same file yields the same error each time, so we can can also rule out bad ram or overclocking.

So the perpetrator must be the encoding process performed through EAC. Could you perhaps explain what generates the FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC error during encoding?
Go to the top of the page
+Quote Post
jcoalson
post Jan 17 2005, 23:14
Post #4


FLAC Developer


Group: Developer
Posts: 1526
Joined: 27-February 02
Member No.: 1408



QUOTE (Zennon @ Jan 17 2005, 07:56 AM)
So the perpetrator must be the encoding process performed through EAC. Could you perhaps explain what generates the FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC error during encoding?
*

you mean during decoding right? that's a decoder error. it means the decoder was looking for a sync point that begins each frame and there wasn't one. usually caused by missing or corrupt data at that point; if so, there can be frame losses.

I don't know what else could be going on. when a wave file is encoded with --verify and it passes, flac has already done everything that decoding would do. so decoding the exact same flac file again should not produce any errors unless a different decoder with a bug was used.

to debug any more I'll need a sample of a file that is giving the error.

Josh
Go to the top of the page
+Quote Post
Zennon
post Jan 17 2005, 23:32
Post #5





Group: Members
Posts: 11
Joined: 16-January 05
Member No.: 19091



QUOTE (jcoalson @ Jan 17 2005, 02:14 PM)
QUOTE (Zennon @ Jan 17 2005, 07:56 AM)
So the perpetrator must be the encoding process performed through EAC. Could you perhaps explain what generates the FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC error during encoding?
*

you mean during decoding right? that's a decoder error. it means the decoder was looking for a sync point that begins each frame and there wasn't one. usually caused by missing or corrupt data at that point; if so, there can be frame losses.

I don't know what else could be going on. when a wave file is encoded with --verify and it passes, flac has already done everything that decoding would do. so decoding the exact same flac file again should not produce any errors unless a different decoder with a bug was used.

to debug any more I'll need a sample of a file that is giving the error.

Josh
*
Go to the top of the page
+Quote Post
Zennon
post Jan 17 2005, 23:37
Post #6





Group: Members
Posts: 11
Joined: 16-January 05
Member No.: 19091



Yes, the error that I get is a decoder error. What I meant is that the error in the FLAC must be created when EAC is processing the encode queue. EAC does not log the queue processing, so it is impossible to track down failed encodes afterwards, even if --verify was used. What would be the best way to provide you with a sample FLAC?
Go to the top of the page
+Quote Post

Posts in this topic
- Zennon   FLAC Stream Decoder Error   Jan 16 2005, 03:01
- - jcoalson   if a file tests fine and the md5sum is non-zero (d...   Jan 16 2005, 05:56
|- - Zennon   Josh, thanks for your reply. It's always a del...   Jan 17 2005, 13:56
|- - jcoalson   QUOTE (Zennon @ Jan 17 2005, 07:56 AM)So the ...   Jan 17 2005, 23:14
|- - Zennon   QUOTE (jcoalson @ Jan 17 2005, 02:14 PM)QUOTE...   Jan 17 2005, 23:32
|- - Zennon   Yes, the error that I get is a decoder error. What...   Jan 17 2005, 23:37
- - jcoalson   the best way is if you can host it somewhere acces...   Jan 18 2005, 01:02
|- - Zennon   OK, I will upload a buggy FLAC tonight. Not sure ...   Jan 18 2005, 01:22
- - 80k   I had an interesting situation with the same error...   Jan 18 2005, 06:33
|- - jcoalson   QUOTE (80k @ Jan 18 2005, 12:33 AM)... any id...   Jan 18 2005, 06:39
- - jcoalson   I looked at your files quickly... the sync error s...   Jan 20 2005, 01:35
|- - Zennon   Thanks Josh, that's good news. I guess now I d...   Jan 20 2005, 03:48
- - jcoalson   OK, found the problem. it is a decoder bug that i...   Jan 24 2005, 01:22
|- - 80k   QUOTE (jcoalson @ Jan 23 2005, 04:22 PM)OK, f...   Jan 24 2005, 07:33
|- - jcoalson   QUOTE (80k @ Jan 24 2005, 01:33 AM)so a fix w...   Jan 24 2005, 09:01
|- - Zennon   Josh, many thanks for sorting this out. Glad to he...   Jan 26 2005, 01:33
|- - KingTubba   I was wondering if you could help me out. I have a...   Apr 20 2005, 16:18
|- - jcoalson   QUOTE (KingTubba @ Apr 20 2005, 10:18 AM)I wa...   Apr 20 2005, 17:49
|- - jcoalson   QUOTE (KingTubba @ Apr 20 2005, 10:18 AM)I wa...   Apr 21 2005, 01:45
|- - KingTubba   QUOTE (jcoalson @ Apr 20 2005, 08:45 PM)got t...   Apr 21 2005, 15:13
|- - jcoalson   QUOTE (KingTubba @ Apr 21 2005, 09:13 AM)So n...   Apr 21 2005, 18:03
|- - guygee   QUOTE (jcoalson @ Apr 21 2005, 12:03 PM)no, t...   Apr 1 2006, 16:16
|- - guygee   QUOTE (guygee @ Apr 1 2006, 10:16 AM)--------...   Apr 1 2006, 17:00
- - kjoonlee   How about using an ID3 editor to just chop the ID3...   Apr 20 2005, 16:46
|- - guest0101   QUOTE (kjoonlee @ Apr 20 2005, 08:46 AM)How a...   Apr 20 2005, 16:57
- - kjoonlee   Well, have you tried Case's Tag?   Apr 20 2005, 17:26
- - Synthetic Soul   QUOTE (kjoonlee @ Apr 20 2005, 05:26 PM)Well,...   Apr 20 2005, 22:07
|- - kjoonlee   QUOTE (Synthetic Soul @ Apr 21 2005, 06:07 AM...   Apr 21 2005, 03:33
|- - Deep_Elem   QUOTE (Synthetic Soul @ Apr 20 2005)I believe...   Apr 21 2005, 05:46
- - KingTubba   Thanks for the help. I'll check out affd. Keep...   Apr 21 2005, 18:09
- - mad_arab   I have the same problem. 3 songs out of 7 albums g...   May 2 2005, 11:11
- - KingTubba   Still have those files... ...still haven't fou...   Feb 17 2006, 22:35
- - KingTubba   CORRECTION: flacdec was able to recover each one o...   Feb 24 2006, 14:37
- - jcoalson   ok, I just checked in a fix for -F that will allow...   Jun 14 2006, 02:46
|- - axisjack   [quote name='jcoalson' date='Jun 13 20...   Sep 2 2006, 10:54
- - jcoalson   hopefully some time this month. most of the new m...   Sep 5 2006, 20:50
|- - towolf   QUOTE (jcoalson @ Sep 5 2006, 21:50) hope...   Oct 1 2006, 16:08
- - jcoalson   sorry, code is too different. there will be a bet...   Oct 2 2006, 05:23
- - xmixahlx   affd was updated to 0.1.1 (last year, actually) ht...   Oct 5 2006, 09:08
- - viktor   hi, i have several flac files on my laptop hdd. s...   May 19 2007, 02:56
- - viktor   i think ive realised the source of the problem. on...   May 20 2007, 08:53
|- - jcoalson   QUOTE (viktor @ May 20 2007, 02:53) offto...   May 20 2007, 16:56
- - viktor   QUOTE (jcoalson @ May 20 2007, 16:56) QUO...   May 20 2007, 21:15
- - Roobar   Hey viktor... I don't want to jump over your p...   May 21 2007, 01:34
- - viktor   QUOTE (Roobar @ May 21 2007, 01:34) Hey v...   May 21 2007, 19:55
|- - Roobar   QUOTE (viktor @ May 22 2007, 04:55) anywa...   May 23 2007, 03:22
- - viktor   hmm i think its not that serious.. once you locate...   May 23 2007, 08:45
- - tenfoot   Hello: I've got a similar problem to that des...   Jan 6 2012, 04:38
- - tenfoot   I've uploaded the flac in question to hotfile:...   Jan 6 2012, 04:51
- - Porcus   Destroyed beyond repair. Try to .zip it, and you w...   Jan 6 2012, 12:35
- - tenfoot   QUOTE (Porcus @ Jan 6 2012, 03:35) Destro...   Jan 6 2012, 20:25
- - Porcus   QUOTE (tenfoot @ Jan 6 2012, 20:25) Still...   Jan 7 2012, 01:55


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 19th September 2014 - 08:56