PDA

View Full Version : data points on flac dropouts with wired squeezebox



Pat Farrell
2004-07-18, 17:47
In an effort to help identify why some of us have dropouts with
flac files decompressed to wave and sent to a squeezebox, I have
done a little problem isolation.

Background, I have 628 albums with 8914 songs by 418 artists
with 99% flac'd and tagged. (occasional MP3 or WMA).
The tunes are on a P-3-500 mHz with 786 MB of ram
and four IDE drives totally about 500 GB. OS on the box is
Fedora Core 1. Nothing else significant runs on the box,
just slimserver, samba and DHCP.

I get occasional dropouts when tunes play on my SqueezeBox
running Firmware 29. Something like once an hour.
Not reproducible, just annoying.

The SqueezeBox is wired, CAT5 to a D-Link DSS-8 dual
speed switch, 10 + 100 baseT. The Fedora/Slim server is
wired to the same switch.

I am running the "official" 5.3.0 release of slimserver, and have
tried several of the CVS nightly drop, with no impact/improvement.

When the drop outs occur, I often see log messages complaining
about errors in the flac program/process itself. But they are not
reproducible on demand.

I know that my server's CPU is marginal. So I decided to use another
server for the slimserver and remote access Samba. I installed
the current "release" for XP onto a AMD 2500+ (2.0gHz real) system
with a full gigabyte of RAM. Took a while to get it up, but it finally worked
(I tried to make it install to somewhere other than default, that that was
not good).

The dropouts were much worse using this faster server. Unlistenable.
Perhaps the slowness of accessing via Samba negated the
five times faster CPU, but I went back to using the P-III as my
slimserver.

I suspect that the flac process/program is not feeding the stream properly.
Perhaps it could be 'nice'd to a higher level, I'll look at hacking the
Perl for that.

I also tried using another switch, a Netgear DS108, also a 10/100 speed
switch. No improvement or change.

I don't have sufficient disk space to try moving the majority of the song
library
to the 2500+ XP box.

Hope this helps isolate it a little

Pat

Dan Sully
2004-07-18, 17:56
* Pat Farrell <pfarrell (AT) pfarrell (DOT) com> shaped the electrons to say...

>When the drop outs occur, I often see log messages complaining
>about errors in the flac program/process itself. But they are not
>reproducible on demand.

What does the FLAC error say?

-D
--
Sir, are you classified as human?
Uhh, negative, I am a meat popsicle.

Pat Farrell
2004-07-18, 18:03
At 08:56 PM 7/18/2004, Dan Sully wrote:
>* Pat Farrell <pfarrell (AT) pfarrell (DOT) com> shaped the electrons to say...
>>When the drop outs occur, I often see log messages complaining
>>about errors in the flac program/process itself. But they are not
>>reproducible on demand.
>
>What does the FLAC error say?


05 - Bill Withers_Use Me.flac: *** Got error code
2:FLAC__STREAM_DECODER_ERROR_STATUS_FRAME_CRC_MISM ATCH

05 - Bill Withers_Use Me.flac: ERROR while decoding data
state = 3:FLAC__STREAM_DECODER_READ_FRAME

A very few times, I can reproduce this error
doing a
flac -d 05\ -\ Bill\ Withers_Use\ Me.flac > /dev/null
but most of the time it will stream to /dev/null happily

It drops out much more frequently than it puts the error in the log.

Pat

Dan Sully
2004-07-18, 18:20
* Pat Farrell <pfarrell (AT) pfarrell (DOT) com> shaped the electrons to say...

>05 - Bill Withers_Use Me.flac: *** Got error code
>2:FLAC__STREAM_DECODER_ERROR_STATUS_FRAME_CRC_MISM ATCH
>
>05 - Bill Withers_Use Me.flac: ERROR while decoding data
> state = 3:FLAC__STREAM_DECODER_READ_FRAME
>
>A very few times, I can reproduce this error
>doing a
> flac -d 05\ -\ Bill\ Withers_Use\ Me.flac > /dev/null
>but most of the time it will stream to /dev/null happily
>
>It drops out much more frequently than it puts the error in the log.

Can you run flac -t on that file?

-D
--
<dr.pox> wtf? a garbled dingbat makes java switch to DWIM?

Pat Farrell
2004-07-18, 19:04
At 09:20 PM 7/18/2004, Dan Sully wrote:
>* Pat Farrell <pfarrell (AT) pfarrell (DOT) com> shaped the electrons to say...
>Can you run flac -t on that file?

Sure, there is really no difference between -t and -d > /dev/null

Looks like this one file is actually broken.
In general, this has not been the case. I get a lot
of irreproducible, one time errors. Many not reported.

Pat

[root@beatles American Beauty (OST)]# flac -t 05\ -\ Bill\ Withers_Use\
Me.flac

flac 1.1.0, Copyright (C) 2000,2001,2002,2003 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.

05 - Bill Withers_Use Me.flac: testing, 54% complete05 - Bill Withers_Use
Me.flac: *** Got error code
2:FLAC__STREAM_DECODER_ERROR_STATUS_FRAME_CRC_MISM ATCH


05 - Bill Withers_Use Me.flac: ERROR while decoding data
state = 3:FLAC__STREAM_DECODER_READ_FRAME
[root@beatles American Beauty (OST)]# flac -d 05\ -\ Bill\ Withers_Use\
Me.flac > /dev/null

flac 1.1.0, Copyright (C) 2000,2001,2002,2003 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.

05 - Bill Withers_Use Me.flac: 54% complete05 - Bill Withers_Use Me.flac:
*** Got error code 2:FLAC__STREAM_DECODER_ERROR_STATUS_FRAME_CRC_MISM ATCH


05 - Bill Withers_Use Me.flac: ERROR while decoding data
state = 3:FLAC__STREAM_DECODER_READ_FRAME