Hi everyone

I'm having problems scanning in flac files on my Squeezebox Classic. All other formats scan in ok (mp3 and wav). No flac files appear in the squeezebox 'artist' or 'album' menus. The error message I get from the scanner logfile is "ERROR SCANNING <file.flac> Unable to read tags from file"

When I go to the squeezebox (SB) 'music location', the flac files are all there but when I try to play them from here the SB shuts down.

Some other info:

The Operating System is Ubuntu 9.04.

The music was imported from CD using Sound Juicer, which is the default Ubuntu CD importer. When I did this the track length and everything else imported properly. (All the info shows up in Rhythmbox, Amarak etc).

Sound Juicer is configured to use “GStreamer pipeline=audio/x-raw-int,rate=44100,channels=2 ! flacenc=enc” for converting to flac. I haven’t fiddled with this, it’s the default setting I get when I choose to import as flac using Sound Juicer.

Tags:

All of my flac files have Vorbis tags only. Some of the tags have been generated using the file structure and only have basic info, and other tags have full data from MusicBrainz.

When I open the flac files using a tag editor (I mainly use Kid3-qt, but have also used Entagged), the Vorbis tags appear ok but I've noticed that the track length / duration is missing from the Info header section. I've tried adding duration manually as a tag field (TLEN) but it doesn't work.

When I use a window browser (eg nautilus) and 'right click -> properties -> audio' on flac files, the duration appears. The duration also appears when I use any music players such as Rhythmbox and Amarak.

It seems to me that this missing track length in the tag is the key.

I tried converting a flac file to mp3 and the track length magically appears in an Info header of the tag. The mp3 files scans in properly to the SB. But when I convert the mp3 back to flac the duration goes missing again.

I've also tried importing wav files and this works fine, even though the wav files don't have tags.

File structure:

Music/Artist/Album/track number - name.flac
eg Music/Air/Talkie Walkie/01 - track 1.flac

File permissions:

flac files: -rw-r--r--
I also ran “chmod -R a+rX .” from the top level Music folder as advised by the slimdevices wiki to ensure they were readable by squeezeboxserver.

The flac files and mp3 files and folders all have the same permissions.

folders: drwxr-xr-x for all mp3 and flac


User groups:

The squeezeboxserver directories belong to the group "nogroup" and the owner is "squeezeboxserver - SqueezeBox"

I’ve tried running SB as the superuser but it makes no difference – I still can’t scan in flac files and I get the same error message.


Please help! I don’t want to use mp3 – I can hear the difference.

Ledman