-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GStreamer hang on broken FLAC #3
Comments
Thanks for reporting this. Yes, absolutely—if you don't mind, please share the file in question (or even a reduced version of it); I'll use that to debug this further. (Hangs are frustratingly common in the GStreamer backend due to all the fancy synchronization necessary to consume data at full speed. This is just the latest in a long legacy of such bugs.) |
Thanks for the sample. That commit should raise an error in this situation. |
Thanks. The issue is fixed in regards to gst, but now it just jumps to ffdec in my setup and that succeeds. Damn :) |
FYI: ffmpeg output ffmpeg -i test/Somefile.flac -f s16le - > x and the best: echo $? |
I guess I had wrong expectations for this. Even if the chroma plugin fails, the files will still be imported to beets. Not sure which part should fail and how to prohibit the import of broken files. But that is another stroy. I will create a new issue regarding ffdec. |
During the process of importing my FLAC collection to beet, the import always stopped at one point. I found the file in question and was able to downtrace it to gstdec GstAudioFile stopping at init after self.ready_sem.acquire(). After that I was kind of lost with gst and whatnot ^^
The FLAC file is broken, so I believe audioread should come back with an error. I suspect this could be a bug in gst, but I'm not sure so I report it here first. If it's ok for you, I would send you the file in question or upload it somewhere (~25MB).
flac -t says:
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.
Somefile.flac: *** Got error code 0:FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC
Somefile.flac: *** Got error code 0:FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC
Somefile.flac: ERROR while decoding data
state = FLAC__STREAM_DECODER_READ_FRAME
The text was updated successfully, but these errors were encountered: