IPB

Welcome Guest ( Log In | Register )

3 Pages V  < 1 2 3 >  
Reply to this topicStart new topic
FLAC Stream Decoder Error, FLAC__STREAM_DECODER_ERROR_STATUS_LOST_S
KingTubba
post Apr 21 2005, 15:13
Post #26





Group: Members
Posts: 5
Joined: 20-April 05
Member No.: 21579



QUOTE (jcoalson @ Apr 20 2005, 08:45 PM)
got the file.  it's corrupted.  I can see in a hex editor that there are big blocks of zeroes where the middle of the id3v2 tag and beginning of the FLAC stream should be.

flac -dF is currently not able to decode through errors like this.

Josh
*


So no way to fix it yet? No flac repair tools out there yet huh? Will using Case's Tag as stated above have any effect?

By the way, I repeat, the files play and sound great in Media Monkey (if I play a song that does not have this problem first), so I'm a little confused by your statement that the begining of the FLAC stream has a bunch of zeros in it...

P.S. I forgot to mention, that if there is a way to repari the file I do not mind loosing any of the tags as there are a plenty of programs that will be able to retag them from their filename/directory struction.

This post has been edited by KingTubba: Apr 21 2005, 17:55
Go to the top of the page
+Quote Post
jcoalson
post Apr 21 2005, 18:03
Post #27


FLAC Developer


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



QUOTE (KingTubba @ Apr 21 2005, 09:13 AM)
So no way to fix it yet? No flac repair tools out there yet huh?


no, the damage is too severe. it is possible to recover frames on a frame-by-frame basis totally ignoring the metadata but I still have to add that functionality to -F.

another FLAC developer has written a frame decoder that includes recovery but I haven't tried it. it may work for your files:
http://phoenix.inf.upol.cz/~lichvarm/affd/affd-0.1.0.tar.gz

QUOTE (KingTubba @ Apr 21 2005, 09:13 AM)
Will using Case's Tag as stated above have any effect?

not on this file I don't think. even the id3v2 tag is corrupted.

QUOTE (KingTubba @ Apr 21 2005, 09:13 AM)
By the way, I repeat, the files play and sound great in Media Monkey (if I play a song that does not have this problem first), so I'm a little confused by your statement that the begining of the FLAC stream has a bunch of zeros in it...

can't explain that.

Josh
Go to the top of the page
+Quote Post
KingTubba
post Apr 21 2005, 18:09
Post #28





Group: Members
Posts: 5
Joined: 20-April 05
Member No.: 21579



Thanks for the help. I'll check out affd. Keep up the great work!*

*Particularly if it includes -F functionality that totally ignores metaflac or a repair tool in the future. wink.gif

This post has been edited by KingTubba: Apr 21 2005, 18:10
Go to the top of the page
+Quote Post
mad_arab
post May 2 2005, 11:11
Post #29





Group: Members
Posts: 87
Joined: 6-November 03
Member No.: 9691



I have the same problem. 3 songs out of 7 albums gave me that error message when playing them in Winamp. When I re-ripped those cd's it worked fine.
Go to the top of the page
+Quote Post
KingTubba
post Feb 17 2006, 22:35
Post #30





Group: Members
Posts: 5
Joined: 20-April 05
Member No.: 21579



Still have those files... ...still haven't found a way to fix them (flacdec says no valid frames). Anything on the horizon?

Recap: These files ARE corrupt. But the "music" part of the file is 100% O.K. (it will play GREAT in MediaMonkey if non-corrupt files are played first). The corruption likely occured due to ID3 tagging and re-tagging.

This post has been edited by KingTubba: Feb 17 2006, 22:42
Go to the top of the page
+Quote Post
KingTubba
post Feb 24 2006, 14:37
Post #31





Group: Members
Posts: 5
Joined: 20-April 05
Member No.: 21579



CORRECTION: flacdec was able to recover each one of my corrupted files!
Go to the top of the page
+Quote Post
guygee
post Apr 1 2006, 16:16
Post #32





Group: Members
Posts: 4
Joined: 1-April 06
Member No.: 29053



QUOTE (jcoalson @ Apr 21 2005, 12:03 PM)
no, the damage is too severe.  it is possible to recover frames on a frame-by-frame basis totally ignoring the metadata but I still have to add that functionality to -F.

another FLAC developer has written a frame decoder that includes recovery but I haven't tried it.  it may work for your files:
http://phoenix.inf.upol.cz/~lichvarm/affd/affd-0.1.0.tar.gz

Josh
*


I just happened across this thread, but coincidentally I just tried the tool that Josh mentioned above. In my case I am sure the files are corrupted due to a failing hard drive (that I am frantically trying to back up). In my case it is impossible to recover the exact original audio content, but my plan is to repair as best I can and to make note of the problem. My logs for one corrupted track are below:
=-=-=-=-=
Test:
flac 1.1.2, Copyright © 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.

Track03.flac: testing, 79% complete
Track03.flac: *** Got error code 0:FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC
Track03.flac: *** Got error code 2:FLAC__STREAM_DECODER_ERROR_STATUS_FRAME_CRC_MISMATCH
Track03.flac: ERROR while decoding data
state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC
-------------------------------------------------------------------------------
Recovery with affd:
F:\FlacRepair>flacdec -r -f wav -v Track03.flac
Track03.wav.00000 [44100Hz 2ch 16bit], fsn: 0
1682 [4608] -> 1684 [4608]
missing 1 frames
samples decoded: 7755264
Track03.wav.00001 [44100Hz 2ch 16bit], fsn: 1684
samples decoded: 1906848
-------------------------------------------------------------------------------
Lame-O repair attempts:
Track 3 wavs rejoined in Soundforge 8, pencil tool used to smooth splice transition, minor "glitch/pop" audible at 2:55.865
Track 3 Version 2 - Crossfade on .05 seconds: no audible "glitch", but slight "shortening" detectable in word "Millionaire".
Track 3 Version 3 - Crossfade on .01 seconds, still no audible "glitch", "shortening" less noticeable.
Track 3 Version 4 - Crossfade on .001 second - Best, still no "glitch", still slightly audible.
Go to the top of the page
+Quote Post
guygee
post Apr 1 2006, 17:00
Post #33





Group: Members
Posts: 4
Joined: 1-April 06
Member No.: 29053



QUOTE (guygee @ Apr 1 2006, 10:16 AM)
-------------------------------------------------------------------------------
Lame-O repair attempts:
Track 3 wavs rejoined in Soundforge 8, pencil tool used to smooth splice transition, minor "glitch/pop" audible at 2:55.865
Track 3 Version 2 - Crossfade on .05 seconds: no audible "glitch", but slight "shortening" detectable in word "Millionaire".
Track 3 Version 3 - Crossfade on .01 seconds, still no audible "glitch", "shortening" less noticeable.
Track 3 Version 4 - Crossfade on .001 second - Best, still no "glitch", still slightly audible.
*


Maybe I could have obtained better results in repairing using a hex editor?
(edit - well I tried to answer that for myself, and even without knowing the exact details of the compression algorithm, it is clear that if certain information concerning a frame is lost/corrupted, then the whole frame will be undecodeable - "no way back home").

This post has been edited by guygee: Apr 4 2006, 00:19
Go to the top of the page
+Quote Post
jcoalson
post Jun 14 2006, 02:46
Post #34


FLAC Developer


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



ok, I just checked in a fix for -F that will allow flac to decode even if the metadata is gone. KingTubba's file now decodes completely, although since the STREAMINFO is gone there's no way to do the MD5 check or tell if there is audio missing off the beginning.

Josh
Go to the top of the page
+Quote Post
axisjack
post Sep 2 2006, 10:54
Post #35





Group: Members
Posts: 1
Joined: 23-August 06
Member No.: 34372



[quote name='jcoalson' date='Jun 13 2006, 19:46' post='402734']
ok, I just checked in a fix for -F that will allow flac to decode even if the metadata is gone. KingTubba's file now decodes completely, although since the STREAMINFO is gone there's no way to do the MD5 check or tell if there is audio missing off the beginning.

Josh


Hi, when will this new feature be available to use? It sounds like exactly what I need. I have about 400 albums that were on a hard drive that become corrupted. Although I managed to recvover all the individual flac files fr the drive, I have just discovered that I cannot actually play any of them and show no tags in any editor. I get the ERROR_LOST_SYCN when flac trester is run but the file looks to be the correct size, so I am hoping it is just the lack of metadata that is causing the error. thanks.
Go to the top of the page
+Quote Post
jcoalson
post Sep 5 2006, 20:50
Post #36


FLAC Developer


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



hopefully some time this month. most of the new major features are done.

Josh
Go to the top of the page
+Quote Post
towolf
post Oct 1 2006, 16:08
Post #37





Group: Members
Posts: 61
Joined: 2-April 03
Member No.: 5795



QUOTE (jcoalson @ Sep 5 2006, 21:50) *
hopefully some time this month. most of the new major features are done.

Josh


Is there something like single commit of this that I can patch the Ubuntu 1.1.2 source package with?
I also had sporadic bad blocks once on my HD once and am still encoutering broken files that I put into a "quarantine" folder (which holds 41 items by now).
Often the corrupt part was very small (like 4096b?) and for very precious songs I knocked in the end of the corresponding vorbis file in an audio editor and recompressed the file.

This post has been edited by towolf: Oct 1 2006, 16:10
Go to the top of the page
+Quote Post
jcoalson
post Oct 2 2006, 05:23
Post #38


FLAC Developer


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



sorry, code is too different. there will be a beta available in a couple of weeks but the current CVS code can be used for recovery if you really need it.

Josh
Go to the top of the page
+Quote Post
xmixahlx
post Oct 5 2006, 09:08
Post #39





Group: Members
Posts: 1394
Joined: 20-December 01
From: seattle
Member No.: 693



affd was updated to 0.1.1 (last year, actually)
http://phoenix.inf.upol.cz/~lichvarm/affd/

added to RareWares/Debian


later


--------------------
RareWares/Debian :: http://www.rarewares.org/debian.html
Go to the top of the page
+Quote Post
viktor
post May 19 2007, 02:56
Post #40





Group: Members
Posts: 297
Joined: 17-November 06
Member No.: 37682



hi,

i have several flac files on my laptop hdd. several month after encoding them it appeared that there are errors in one of my files. it didn't play along, but after a few minutes the player jumped to the next track. after some research and testing here are the sad facts:

http://viktor.podzone.org:8080/tmp/tests.ods

it has 2 sheets, hda3 is my /home partition, sda1 is an external backup drive. some strange things:

1)errors are different with exhibition cd2
2)on one drive it exists and on the other it doesn't (the "shivers" track)

in theory these files on the 2 drives are the copies of each others, thats why its so strange.

my previous hdd popped out, i replaced it with a new 160gb samsung drive. then it seemed to work fine, until these corruptions. BUT, other files (documents for example) don't seem to be corrupted, i can access & use them.

so, what's happening with my flac files?

if you need samples, i can host them no probz, just let me know what you need. thanks.
Go to the top of the page
+Quote Post
viktor
post May 20 2007, 08:53
Post #41





Group: Members
Posts: 297
Joined: 17-November 06
Member No.: 37682



i think ive realised the source of the problem. once short before i replaced my hdd i copied my stuff to the new hdd, so the files could got corrupt on my broken hdd and somehow the command line didnt show read error on all errors (coz there were many errors but i still could copy a lot of files without warnings).

i guess this gotta be a reason... im gonna rerip my cds (fortunately they are genuine and i have them at home) and encode them with flac 1.1.4. also, ive already introduced a new rule for my music folder:

chmod 0400 music/*

this way no crazy app can f*ck with my files ;-) some time ago i just realized that "unkonw artist" tags appeared randomly in my files... but since ive used several different players that time i couldnt find out which jerk was joking me... so whatever, it seems to be hard to keep my collection clear smile.gif

offtopic: what about flake?
"Increased compression and dramatic speedups for both encoding and decoding"
is this supposed to mean that the improvements made by justin have been merged into flac or are these independent changes?

This post has been edited by viktor: May 20 2007, 08:57
Go to the top of the page
+Quote Post
jcoalson
post May 20 2007, 16:56
Post #42


FLAC Developer


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



QUOTE (viktor @ May 20 2007, 02:53) *
offtopic: what about flake?
"Increased compression and dramatic speedups for both encoding and decoding"
is this supposed to mean that the improvements made by justin have been merged into flac or are these independent changes?

they're independent, flake is for the most part not based on libFLAC.
Go to the top of the page
+Quote Post
viktor
post May 20 2007, 21:15
Post #43





Group: Members
Posts: 297
Joined: 17-November 06
Member No.: 37682



QUOTE (jcoalson @ May 20 2007, 16:56) *
QUOTE (viktor @ May 20 2007, 02:53) *
offtopic: what about flake?
"Increased compression and dramatic speedups for both encoding and decoding"
is this supposed to mean that the improvements made by justin have been merged into flac or are these independent changes?

they're independent, flake is for the most part not based on libFLAC.

i see.

i have now located the corrupt files, moved them to the broken dir, and reencoded the old ones with 1.1.4. retested everything, and yet it seems to be fine. i will run tests regulary, and hopefully no further errors appear

btw, may i suggest to make the -V option to be default?

also, id like to thank your work, ive been using flac for quite some time, and i really love lossless (especially coz i collect audio cds and wanna achieve the best quality - what is better then lossless ? :-)

This post has been edited by viktor: May 20 2007, 21:17
Go to the top of the page
+Quote Post
Roobar
post May 21 2007, 01:34
Post #44





Group: Members
Posts: 17
Joined: 9-April 06
Member No.: 29340



Hey viktor... I don't want to jump over your post, but I am having similar problems with my flacs. Not sure if this is hardware or software, but it sure seems like we need to regularly run tests on our flac library to check for errors.

This post has been edited by Roobar: May 21 2007, 01:35
Go to the top of the page
+Quote Post
viktor
post May 21 2007, 19:55
Post #45





Group: Members
Posts: 297
Joined: 17-November 06
Member No.: 37682



QUOTE (Roobar @ May 21 2007, 01:34) *
Hey viktor... I don't want to jump over your post, but I am having similar problems with my flacs. Not sure if this is hardware or software, but it sure seems like we need to regularly run tests on our flac library to check for errors.

yea i surely will, at least to recognize hdd failurs in time. this is the simplest way.

its more likely that you also have hw problems.

i cant be sure in my case, but now im waiting for any error to occur again. in theory my hw is fixed now, so it shouldnt.

well see.

anyway, havent you had any hw problems recently?
Go to the top of the page
+Quote Post
Roobar
post May 23 2007, 03:22
Post #46





Group: Members
Posts: 17
Joined: 9-April 06
Member No.: 29340



QUOTE (viktor @ May 22 2007, 04:55) *
anyway, havent you had any hw problems recently?


It looks like it might be a problem with the firewire connection. I have moved the ext hdd to a USB2 port and will correct the corrupted files. There was also a problem with a previous release of Media Monkey that might have also corrupted some files. The problem with these types of things is that corrupt files are "hidden" until you try to use them again. In my case, I was playing around with Synthetic Soul's flac-verify.bat file and just happened to stumble on a corrupt flac file. Pure chance.

So now I have created a batch file that I can schedule overnight to check the entire flac library directory and flag any corrupted files into a log file. I have also created a batch file that can check an album directory, create a log file of the complete flac -t output for every track and store this in the album directory. It also creates a .swf file for the directory. Once this is done, I'll also include a check of the .swf file in the library check procedure to see if throws up any errors on all other files (jpg, etc) in my library.

The bottom line is that, if we're wanting to archive our CD collection with a lossless copy, we must have a system to regularly test the archive so that we can catch problems before they get out of control. If I had been able to see that I was getting corrupt flac files when I only had one or two, this would not have become such a big problem. I should also have checked my entire flac directory when I moved it from one external hdd to another before I formatted the source hdd.

Lessons learned the hard way I'm afraid. wink.gif

This post has been edited by Roobar: May 23 2007, 03:24
Go to the top of the page
+Quote Post
viktor
post May 23 2007, 08:45
Post #47





Group: Members
Posts: 297
Joined: 17-November 06
Member No.: 37682



hmm i think its not that serious.. once you located the source of problems. however, for me its simpler to check my flac files since i have only two dirs of music, in both of them i run a flac -t *.flac and voila! smile.gif hope the best...

This post has been edited by db1989: Jan 6 2012, 16:34
Reason for edit: removing unnecessary full quote of above post
Go to the top of the page
+Quote Post
tenfoot
post Jan 6 2012, 04:38
Post #48





Group: Members
Posts: 3
Joined: 6-January 12
Member No.: 96265



Hello:

I've got a similar problem to that described here and thought I'd reach out for help - -

I have a rather large flac file (~90 Mb) which I burned to DVD years ago. I suspect at that time the file path was too deep (it is the deepest on the disc), or possibly contained illegal characters. It is possible neither or these is the case as well. In any event, Nero (6) burned it to disc without complaint.

Today I can copy that .flac file to my local disc, but metadata is missing (observed in dbPowerAmp context menus), and every program I have tried has problems opening it:

1. FLAC tester gives the lost stream error.
2. DB Power Amp (trying to convert to wav for example) complains the codec can't be opened.
3. Nothing from WinAmp whatsoever.

The two other flac files in this folder on this DVD do not exhibit the issue. I believe all other flac files on the disc are intact.

I have no way to recover this audio other than to attempt to fix the flac file.

Any suggestions?

THANKS!
Go to the top of the page
+Quote Post
tenfoot
post Jan 6 2012, 04:51
Post #49





Group: Members
Posts: 3
Joined: 6-January 12
Member No.: 96265



I've uploaded the flac in question to hotfile:

http://hotfile.com/dl/140177217/84fd896/pu...chaos.flac.html

Also, I'm running WinXP SP3 32 bit...

THANKS!
Go to the top of the page
+Quote Post
Porcus
post Jan 6 2012, 12:35
Post #50





Group: Members
Posts: 1842
Joined: 30-November 06
Member No.: 38207



Destroyed beyond repair. Try to .zip it, and you will understand why wink.gif

Edit: Well at least what you uploaded, contains no audio. But if the problem is that the pathname/filename on the DVD is too long, you might try to copy it using other tools than Windows' own. I use 7-zip's file manager for such -- 7-zip is a tool I nevertheless need, and its file manager allows me access when I have made too long pathnames/filenames for media files (... auto-naming with track title gives such annoyances).

Lucky for you it is a track that can be bought, not one of your own works which will take you weeks to re-record ...

This post has been edited by Porcus: Jan 6 2012, 12:51


--------------------
One day in the Year of the Fox came a time remembered well
Go to the top of the page
+Quote Post

3 Pages V  < 1 2 3 >
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: 23rd September 2014 - 12:15