PDA

View Full Version : Issues with slimserver and flac



Michael Jones
2003-11-19, 14:56
I am considering purchase of the squeezebox, but I want to ensure it will support flac without encoding it to mp3. The documentation of how this works seems to be hiding from me.

I downloaded slimserver (slimserver-5.0.0-1.noarch.rpm) and got it working without much fuss for mp3s, but it refuses to pickup any flac files. I've checked the types.conf file, it is setup with what looks to be the proper flac entry:
flc flac audio/x-flac

convert.conf looks fine as well (altho i changed the mp3 transcode to wav, it didn't work either way however.)
flc wav * *
flac -d $FILE$ | $lame$ --silent -b $BITRATE$ - -




If I turn on logging and debugging for what I think handles the directory scanning (d_info and d_scan) I get this as slimserver parses my test music directory:

2003-11-19 16:05:13 itempath: 13 - Stevie's (Day's Of A Gun).flac and /music/Martina Topley-Bird/Quixotic made /music/Martina Topley-Bird/Quixotic/13 - Stevie's (Day's Of A Gun).flac
2003-11-19 16:05:13 Backtrace:

frame 0: Slim::Music::Info::info (Slim/Music/Info.pm line 2144)
frame 1: Slim::Music::Info::contentType (Slim/Music/Info.pm line 2064)
frame 2: Slim::Music::Info::isList (Slim/Utils/Scan.pm line 277)
frame 3: Slim::Utils::Scan::addToList_run (Slim/Utils/Scheduler.pm line 96)
frame 4: Slim::Utils::Scheduler::run_tasks (./slimserver.pl line 371)
frame 5: main::idle (./slimserver.pl line 329)
frame 6: main::main (./slimserver.pl line 735)

2003-11-19 16:05:13 cache miss for /music/Martina Topley-Bird/Quixotic/13 - Stevie's (Day's Of A Gun).flac
2003-11-19 16:05:13 flc file type for /music/Martina Topley-Bird/Quixotic/13 - Stevie's (Day's Of A Gun).flac
2003-11-19 16:05:13 Updating cache for: /music/Martina Topley-Bird/Quixotic/13 - Stevie's (Day's Of A Gun).flac
2003-11-19 16:05:13 Plain title for: /music/Martina Topley-Bird/Quixotic/13 - Stevie's (Day's Of A Gun).flac2003-11-19 16:05:13 is 13 - Stevie's (Day's Of A Gun)
2003-11-19 16:05:13 updating /music/Martina Topley-Bird/Quixotic/13 - Stevie's (Day's Of A Gun).flac with flc for CT
2003-11-19 16:05:13 updating /music/Martina Topley-Bird/Quixotic/13 - Stevie's (Day's Of A Gun).flac with 13 - Stevie's (Day's Of A Gun) for TITLE
2003-11-19 16:05:13 updating /music/Martina Topley-Bird/Quixotic/13 - Stevie's (Day's Of A Gun).flac with 1 for TAG
2003-11-19 16:05:13 isList(/music/Martina Topley-Bird/Quixotic/13 - Stevie's (Day's Of A Gun).flac) ==
2003-11-19 16:05:13 not a list: /music/Martina Topley-Bird/Quixotic/13 - Stevie's (Day's Of A Gun).flac
2003-11-19 16:05:13 Skipping unknown type: /music/Martina Topley-Bird/Quixotic/13 - Stevie's (Day's Of A Gun).flac

Michael Jones
2003-11-19, 15:41
I'm planning on a squeezebox (if this can be resolved), but this isn't the issue. I can't see any flac files when I'm browsing my music directory via the web interface. I don't have any hardware product yet. slimserver isn't recognizing the .flac extension during a scan. All indication on how this works point to that it should.

On Wed, Nov 19, 2003 at 02:44:06PM -0800, Jason Holtzapple wrote:
>
> This would only work on the new squeezebox. I think you'd need mp3 instead
> of wav for slimp3:
>
> flc mp3 * *
>
> --Jason

Michael Jones
2003-11-20, 11:18
I believe they will, but I want to be able to get it working before I drop 300 bucks on a squeezebox a month after I just bought an audiotron. From what I've read, the squeezebox fixes my pet pieves of the audiotron (better display, wider IR detection, coax digital out). I have the audiotron working via the samba file extention hack, but it's just that, a hack. After building all the flacs always having to then rebuild a table of contents file is a drag. (even automated).

All of my flac files are tagged (via metaflac). Reading through the Flac.pm module indicates it should be working for that, but the problem is in the Scan.pm function. When i run with d_scan enabled I get this:

2003-11-19 16:05:13 isList(/music/Martina Topley-Bird/Quixotic/13 - Stevie's (Day's Of A Gun).flac) ==
2003-11-19 16:05:13 not a list: /music/Martina Topley-Bird/Quixotic/13 - Stevie's (Day's Of A Gun).flac
2003-11-19 16:05:13 Skipping unknown type: /music/Martina Topley-Bird/Quixotic/13 - Stevie's (Day's Of A Gun).flac

The complete log for a single file scan is included on the original parent to this thread.

On Wed, Nov 19, 2003 at 04:18:23PM -0800, Jason Holtzapple wrote:
> If Slim Devices says they are going to support FLAC in all the press
> releases, you can bet they're going to support FLAC.
>
> There is a server setting in 'behavior' about browsing by filename or
> id3v2 tag. Make sure this is set to filename if you don't have tags
> in your flacs.
>
> --Jason

Michael Jones
2003-11-20, 12:20
Good spot. There's actually a few flac things missing in there, including the tag "case" statement, here's a diff that will at least get flacs into the database. You'll also have to add "transcode-flc = 1" into prefs.

1571a1572,1573
> } elsif ($type eq "flc") {
> $tempCacheEntry = Slim::Formats::Flac::get_flactag($filepath);
2000c2002
< my $type = contentType( $fullpath);
---
> my $type = contentType($fullpath);
2003a2006,2011
> sub isFlc {
> my $fullpath = shift;
> my $type = contentType($fullpath);
> return ($type && ($type eq 'flc'));
> }
>
2026a2035
> ($type eq 'flc' && Slim::Utils::Prefs::get('transcode-flc')) ||

On Thu, Nov 20, 2003 at 10:57:33AM -0800, Jason Holtzapple wrote:
>
> If you look at isSong() (line 2016) in Music/Info.pm it looks like there needs
> to be a
> type flac added, and an equivalent pref added to the pref file. So it looks
> like
> you found a bug, all right.
>
> --Jason

Michael Jones
2003-11-20, 13:32
Yes, I caught that once i tried to stream to XMMS. Thanks for the help!

On Thu, Nov 20, 2003 at 12:12:46PM -0800, Jason Holtzapple wrote:
> --- Michael Jones <zaphf (AT) charter (DOT) net> wrote:
> > Good spot. There's actually a few flac things missing in there, including the
> > tag "case" statement, here's a diff that will at least get flacs into the
> > database. You'll also have to add "transcode-flc = 1" into prefs.
>
> I'll whip up a patch for the devs later today. I have it working here now,
> you should also change "flac -d" to "$flac$ -dc" in convert.conf.
>
> --Jason