PDA

View Full Version : Flac Attack



John Quirk
2004-07-13, 02:59
Further to my Flac and M4A woes, here's some log data:

When trying to play an M4a file I get this:
2004-07-13 10:51:28.9467 d6:b3:76:26:83:fd: No filehandle to read from,
returning no chunk.
2004-07-13 10:51:29.0120 d6:b3:76:26:83:fd: No filehandle to read from,
returning no chunk.
2004-07-13 10:51:29.0661 d6:b3:76:26:83:fd: No filehandle to read from,
returning no chunk.
2004-07-13 10:51:29.1202 d6:b3:76:26:83:fd: No filehandle to read from,
returning no chunk.
2004-07-13 10:51:29.1740 d6:b3:76:26:83:fd: No filehandle to read from,
returning no chunk.
2004-07-13 10:51:29.2283 d6:b3:76:26:83:fd: No filehandle to read from,
returning no chunk.
2004-07-13 10:51:29.2825 d6:b3:76:26:83:fd: No filehandle to read from,
returning no chunk.
2004-07-13 10:51:29.3426 d6:b3:76:26:83:fd: No filehandle to read from,
returning no chunk.

Over and over again.

When trying to play a FLAC file:

2004-07-13 10:51:37.6183 checking formats for: flc-wav-*-*
2004-07-13 10:51:37.6194 Checking to see if flc-wav-*-* is enabled
2004-07-13 10:51:37.6205 There are 8 disabled formats...
2004-07-13 10:51:37.6216 Testing wma-mp3-*-* vs flc-wav-*-*
2004-07-13 10:51:37.6226 Testing wav-mp3-*-* vs flc-wav-*-*
2004-07-13 10:51:37.6248 Testing shn-wav-*-* vs flc-wav-*-*
2004-07-13 10:51:37.6258 Testing shn-mp3-*-* vs flc-wav-*-*
2004-07-13 10:51:37.6268 Testing ogg-mp3-*-* vs flc-wav-*-*
2004-07-13 10:51:37.6277 Testing mpc-mp3-*-* vs flc-wav-*-*
2004-07-13 10:51:37.6287 Testing mov-mp3-*-* vs flc-wav-*-*
2004-07-13 10:51:37.6297 Testing flc-mp3-*-* vs flc-wav-*-*
2004-07-13 10:51:37.6307 Testing aif-mp3-*-* vs flc-wav-*-*
2004-07-13 10:51:37.6316 enabled
2004-07-13 10:51:37.6326 Found command: [flac] -dcs --force-raw-format
--endian=little --sign=signed $FILE$
2004-07-13 10:51:37.6361 Matched Format: wav Type: flc Command: [flac] -dcs
--force-raw-format --endian=little --sign=signed $FILE$
2004-07-13 10:51:37.6376 opening next song (old format: wav, new: wav)
current playmode: stop
2004-07-13 10:51:37.6409 openSong on:
file:///F:/Music/Radiohead/Pablo%20Honey/CDImage.flac#1471.64-1664.306666666
67
2004-07-13 10:51:37.6460 openSong: getting duration , size , endian and
offset for
file:///F:/Music/Radiohead/Pablo%20Honey/CDImage.flac#1471.64-1664.306666666
67
2004-07-13 10:51:37.6473 openSong: not bothering opening file with zero size
or duration
2004-07-13 10:51:37.6600 Backtrace:

frame 0: Slim::Player::Source::playmode (/PerlApp/Slim/Player/Source.pm
line 626)
frame 1: Slim::Player::Source::openNext (/PerlApp/Slim/Player/Source.pm
line 284)
frame 2: Slim::Player::Source::playmode (/PerlApp/Slim/Player/Source.pm
line 584)
frame 3: Slim::Player::Source::jumpto (/PerlApp/Slim/Control/Command.pm
line 510)
frame 4: Slim::Control::Command::execute
(/PerlApp/Slim/Buttons/BrowseID3.pm line 218)
frame 5: Slim::Buttons::BrowseID3::__ANON__ (/PerlApp/Slim/Hardware/IR.pm
line 545)
frame 6: Slim::Hardware::IR::executeButton
(/PerlApp/Slim/Control/Command.pm line 207)
frame 7: Slim::Control::Command::execute (/PerlApp/Slim/Hardware/IR.pm
line 569)
frame 8: Slim::Hardware::IR::processCode (/PerlApp/Slim/Hardware/IR.pm
line 429)
frame 9: Slim::Hardware::IR::releaseCode (/PerlApp/Slim/Hardware/IR.pm
line 327)
frame 10: Slim::Hardware::IR::checkRelease (/PerlApp/Slim/Utils/Timers.pm
line 52)
frame 11: Slim::Utils::Timers::checkTimers (slimserver.pl line 396)
frame 12: main::idle (slimserver.pl line 40)
frame 13: PerlSvc::Startup (perlsvc line 1198)
frame 14: PerlSvc::_startup (slimserver.pl line 0)
frame 15: (eval) (slimserver.pl line 0)

2004-07-13 10:51:37.6630 d6:b3:76:26:83:fd: Switching to mode stop from stop
2004-07-13 10:51:37.6643 Already in playmode stop : ignoring mode change


I think the not bothering opening file with zero bytes or duration could be
key here?

Thanks

John

michael
2004-07-13, 16:06
It looks like you're missing the special super-secret ingredient
needed for flac with cuesheets.

So there are two things that need to be done for playing multiple
songs out of a single big flac image.
First you need a copy of the flac decoder that's newer than
version 1.1 (you may already have this).
Second, if you have the newer flac, you need to modify a section of
the convert.conf file to use the correct syntax.
Fortunately, the correct entries are already in convert.conf, they're
just commented out.

open up convert.conf in your text editor, and look for the section
that says "Comment out previous entry and uncomment this entry to use
cuesheets with FLAC files". You'll see a pair of entries above and
below this comment that start with "flc mp3 * * "
remove the "#" from the beginning of the pair that follows the
comment, and insert them at the beginning of the pair that precedes
the comment.
scroll down a bit further and you'll see the same comment again, this
time between line pairs that start with "flc wav * * "
do the same trick with the "#" marks.

restart slimserver and try to play the flac files again. If you hear
really really large gaps between songs, it means that your flac
decoder is version 1.1 (or older) and you'll need to update that as
well.

I opened a bug on bugs.slimdevices.com about this, so hopefully one
day it'll be the default and you won't have to jump through these
hoops to make it work.

I hope that helps.

-michael


"John Quirk" <john (AT) quirkshop (DOT) co.uk> writes:
> Further to my Flac and M4A woes, here's some log data:
....
> When trying to play a FLAC file:
>
> 2004-07-13 10:51:37.6183 checking formats for: flc-wav-*-*
> 2004-07-13 10:51:37.6194 Checking to see if flc-wav-*-* is enabled
> 2004-07-13 10:51:37.6205 There are 8 disabled formats...
> 2004-07-13 10:51:37.6216 Testing wma-mp3-*-* vs flc-wav-*-*
> 2004-07-13 10:51:37.6226 Testing wav-mp3-*-* vs flc-wav-*-*
> 2004-07-13 10:51:37.6248 Testing shn-wav-*-* vs flc-wav-*-*
> 2004-07-13 10:51:37.6258 Testing shn-mp3-*-* vs flc-wav-*-*
> 2004-07-13 10:51:37.6268 Testing ogg-mp3-*-* vs flc-wav-*-*
> 2004-07-13 10:51:37.6277 Testing mpc-mp3-*-* vs flc-wav-*-*
> 2004-07-13 10:51:37.6287 Testing mov-mp3-*-* vs flc-wav-*-*
> 2004-07-13 10:51:37.6297 Testing flc-mp3-*-* vs flc-wav-*-*
> 2004-07-13 10:51:37.6307 Testing aif-mp3-*-* vs flc-wav-*-*
> 2004-07-13 10:51:37.6316 enabled
> 2004-07-13 10:51:37.6326 Found command: [flac] -dcs --force-raw-format
> --endian=little --sign=signed $FILE$
> 2004-07-13 10:51:37.6361 Matched Format: wav Type: flc Command: [flac] -dcs
> --force-raw-format --endian=little --sign=signed $FILE$
> 2004-07-13 10:51:37.6376 opening next song (old format: wav, new: wav)
> current playmode: stop
> 2004-07-13 10:51:37.6409 openSong on:
> file:///F:/Music/Radiohead/Pablo%20Honey/CDImage.flac#1471.64-1664.306666666
> 67
> 2004-07-13 10:51:37.6460 openSong: getting duration , size , endian and
> offset for
> file:///F:/Music/Radiohead/Pablo%20Honey/CDImage.flac#1471.64-1664.306666666
> 67
> 2004-07-13 10:51:37.6473 openSong: not bothering opening file with zero size
> or duration
> 2004-07-13 10:51:37.6600 Backtrace:
>
> frame 0: Slim::Player::Source::playmode (/PerlApp/Slim/Player/Source.pm
> line 626)
> frame 1: Slim::Player::Source::openNext (/PerlApp/Slim/Player/Source.pm
> line 284)
> frame 2: Slim::Player::Source::playmode (/PerlApp/Slim/Player/Source.pm
> line 584)
> frame 3: Slim::Player::Source::jumpto (/PerlApp/Slim/Control/Command.pm
> line 510)
> frame 4: Slim::Control::Command::execute
> (/PerlApp/Slim/Buttons/BrowseID3.pm line 218)
> frame 5: Slim::Buttons::BrowseID3::__ANON__ (/PerlApp/Slim/Hardware/IR.pm
> line 545)
> frame 6: Slim::Hardware::IR::executeButton
> (/PerlApp/Slim/Control/Command.pm line 207)
> frame 7: Slim::Control::Command::execute (/PerlApp/Slim/Hardware/IR.pm
> line 569)
> frame 8: Slim::Hardware::IR::processCode (/PerlApp/Slim/Hardware/IR.pm
> line 429)
> frame 9: Slim::Hardware::IR::releaseCode (/PerlApp/Slim/Hardware/IR.pm
> line 327)
> frame 10: Slim::Hardware::IR::checkRelease (/PerlApp/Slim/Utils/Timers.pm
> line 52)
> frame 11: Slim::Utils::Timers::checkTimers (slimserver.pl line 396)
> frame 12: main::idle (slimserver.pl line 40)
> frame 13: PerlSvc::Startup (perlsvc line 1198)
> frame 14: PerlSvc::_startup (slimserver.pl line 0)
> frame 15: (eval) (slimserver.pl line 0)
>
> 2004-07-13 10:51:37.6630 d6:b3:76:26:83:fd: Switching to mode stop from stop
> 2004-07-13 10:51:37.6643 Already in playmode stop : ignoring mode change
>
>
> I think the not bothering opening file with zero bytes or duration could be
> key here?
>
> Thanks