Skip to content
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

FLAC decoding error in frame header #220

Closed
nogweii opened this issue Mar 14, 2013 · 6 comments
Closed

FLAC decoding error in frame header #220

nogweii opened this issue Mar 14, 2013 · 6 comments

Comments

@nogweii
Copy link

nogweii commented Mar 14, 2013

Possible error. Not sure who's fault it is, probably mine. I get it when trying to import the "Symphony of Science" album, for each song in the album.

[flac @ 0xef0b00] invalid sync code
[flac @ 0xef0b00] invalid frame header
[flac @ 0xef0b00] decode_frame() failed
@samdoshi
Copy link
Contributor

Do you want to try a flac -t *.flac in the directory that contains the album?

(the -t will make flac test each file)

@nogweii
Copy link
Author

nogweii commented Mar 14, 2013

100% 'ok' report for the album. The entire output:

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-Our Story (intro).flac: ok                    
02-We Are Star Dust.flac: ok                    
03-The Poetry of Reality.flac: ok                    
04-Ode to the Brain.flac: ok                    
05-We Are All Connected.flac: ok                    
06-Children of Africa_ The Story of Us.flac: ok                    
07-The Greatest Show on Earth.flac: ok                    
08-A Glorious Dawn.flac: ok                    
09-Secret of the Stars.flac: ok                    
10-The World of the Dinosaurs.flac: ok                    
11-The Unbroken Thread.flac: ok                    
12-Onward to the Edge.flac: ok                    
13-The Case for Mars.flac: ok                    
14-The Quantum World.flac: ok                    
15-A Wave of Reason.flac: ok                    
16-The Face of Creation.flac: ok                    
17-The Big Beginning.flac: ok                    
18-Our Place in the Cosmos.flac: ok                    
19-Our Biggest Challenge.flac: ok                    
20-The Cosmic Dance (Mindwalk Remix).flac: ok                    
flac -t *.flac  17.74s user 0.24s system 99% cpu 18.026 total

(Last line is from Zsh with an automatic usage report if it takes a lot of time or CPU)

@samdoshi
Copy link
Contributor

Would you be able to try metaflac next?

metaflac --list *.flac

That will output a lot of text to the console

@nogweii
Copy link
Author

nogweii commented Mar 14, 2013

@samdoshi
Copy link
Contributor

Hmmmm, okay flac doesn't seem to have a problem. Can you try running the following python script in the same directory as the audio files.

import glob
from mutagen.flac import FLAC
for f in glob.glob("*.flac"):
    print f
    a = FLAC(f)

mutagen is what beets uses to read and write metadata from audio files.

(this shouldn't do anything to your files, but make sure you have a backup just incase)

@sampsyo
Copy link
Member

sampsyo commented Mar 14, 2013

Thanks for helping diagnose, @samdoshi!

FWIW, this isn't related to beets reading the FLAC files' tags; it's errors logged by the Chromaprint fingerprinter tool (fpcalc). See beetbox/pyacoustid#15.

It's safe to ignore these messages, @evaryont. If you want to get rid of them, you can disable the chroma plugin. But it would still be interesting to know why fpcalc (which uses FFmpeg under the hood) doesn't like your files.

@sampsyo sampsyo closed this as completed Mar 14, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants