PDA

View Full Version : Browser refresh causes AAC cutoffs



Michael Robinson
2004-11-23, 13:50
Iąve just upgraded Slimserver from 5.1.1 to 5.4 (G4 iMac OSX 10.3.6) and
noticed that I now get cut-offs when playing AAC files every time the
browser (Safari) refreshes when displaying the Slimserver web interface.

Iąve captured the logs below * the first one with the Slimserver browser
refresh time set to the default of 30 seconds, the second with the refresh
time set to 60 seconds.

The first log shows the message łUnderrun while this mode: play˛ occurs
approximately every 30 seconds and in the second log, the same message
occurs approximately every 60 seconds.

The cut-offs do not occur if the browser isnąt displaying the Slimserver web
interface.

The cut-offs also donąt occur if the Slimserver is playing mp3 files rather
than AAC files * even if the browser is displaying the Slimserver web
interface.

From the Mac activity monitor it looks as if Safari is grabbing over 40% of
CPU time every time it does a Slimserver web interface refresh.

Any ideas about how to prevent this?

The problem didnąt occur with Slimserver 5.1.1 and I would have thought a G4
Mac would have enough horsepower to cope with a Slimserver browser refresh
while playing AAC files and doing nothing else.

Browser refresh 30 seconds.

2004-11-23 20:18:06.2316 00:04:20:05:04:d6: Switching to mode play from stop
2004-11-23 20:18:06.2339 openSong on:
file:///Users/michaelrobinson/Music/iTunes/iTunes%20Music/U2/How%20To%20Dism
antle%20An%20Atomic%20Bomb/01%20Vertigo.m4a
2004-11-23 20:18:06.2376 openSong: getting duration 194.536, size 3350472,
endian and offset 0 for
file:///Users/michaelrobinson/Music/iTunes/iTunes%20Music/U2/How%20To%20Dism
antle%20An%20Atomic%20Bomb/01%20Vertigo.m4a
2004-11-23 20:18:06.2450 undermax = 1, type = mov, squeezebox =
00:04:20:05:04:d6, lame =
/Users/michaelrobinson/Library/iTunes/Scripts/iTunes-LAME.app/Contents/Resou
rces/lame
2004-11-23 20:18:06.2466 checking formats for:
mov-aif-squeezebox-00:04:20:05:04:d6
2004-11-23 20:18:06.2479 Checking to see if
mov-aif-squeezebox-00:04:20:05:04:d6 is enabled
2004-11-23 20:18:06.2489 enabled
2004-11-23 20:18:06.2500 checking formats for: mov-aif-*-00:04:20:05:04:d6
2004-11-23 20:18:06.2509 Checking to see if mov-aif-*-00:04:20:05:04:d6 is
enabled
2004-11-23 20:18:06.2519 enabled
2004-11-23 20:18:06.2527 checking formats for: mov-aif-squeezebox-*
2004-11-23 20:18:06.2536 Checking to see if mov-aif-squeezebox-* is enabled
2004-11-23 20:18:06.2545 enabled
2004-11-23 20:18:06.2553 checking formats for: mov-aif-*-*
2004-11-23 20:18:06.2564 Checking to see if mov-aif-*-* is enabled
2004-11-23 20:18:06.2572 enabled
2004-11-23 20:18:06.2581 Found command: [mov123] $FILE$
2004-11-23 20:18:06.2610 Matched Format: aif Type: mov Command: [mov123]
$FILE$
2004-11-23 20:18:06.2622 openSong: this is an mov file:
file:///Users/michaelrobinson/Music/iTunes/iTunes%20Music/U2/How%20To%20Dism
antle%20An%20Atomic%20Bomb/01%20Vertigo.m4a
2004-11-23 20:18:06.2632 file type: mov format: aif inrate: 128 maxRate: 0
2004-11-23 20:18:06.2644 command: [mov123] $FILE$
2004-11-23 20:18:06.2670 Using command for conversion:
"/Library/PreferencePanes/SlimServer.prefPane/Contents/server/Bin/darwin/mov
123" "/Users/michaelrobinson/Music/iTunes/iTunes Music/U2/How To Dismantle
An Atomic Bomb/01 Vertigo.m4a" & |
2004-11-23 20:18:06.4769 Streaming with format: aif
2004-11-23 20:18:09.1982 00:04:20:05:04:d6 New play mode: play
2004-11-23 20:18:09.2406 00:04:20:05:04:d6: Current playmode: play
2004-11-23 20:18:45.2677 00:04:20:05:04:d6: Underrun while this mode: play
2004-11-23 20:19:14.9817 00:04:20:05:04:d6: Underrun while this mode: play
2004-11-23 20:19:49.0001 00:04:20:05:04:d6: Underrun while this mode: play
2004-11-23 20:20:23.2537 00:04:20:05:04:d6: Underrun while this mode: play
2004-11-23 20:20:58.4200 00:04:20:05:04:d6: Underrun while this mode: play

Browser refresh 60 seconds

2004-11-23 20:30:27.1542 00:04:20:05:04:d6: Switching to mode play from stop
2004-11-23 20:30:27.1565 openSong on:
file:///Users/michaelrobinson/Music/iTunes/iTunes%20Music/U2/How%20To%20Dism
antle%20An%20Atomic%20Bomb/01%20Vertigo.m4a
2004-11-23 20:30:27.1704 openSong: getting duration 194.536, size 3350472,
endian and offset 0 for
file:///Users/michaelrobinson/Music/iTunes/iTunes%20Music/U2/How%20To%20Dism
antle%20An%20Atomic%20Bomb/01%20Vertigo.m4a
2004-11-23 20:30:27.1747 undermax = 1, type = mov, squeezebox =
00:04:20:05:04:d6, lame =
/Users/michaelrobinson/Library/iTunes/Scripts/iTunes-LAME.app/Contents/Resou
rces/lame
2004-11-23 20:30:27.1764 checking formats for:
mov-aif-squeezebox-00:04:20:05:04:d6
2004-11-23 20:30:27.1775 Checking to see if
mov-aif-squeezebox-00:04:20:05:04:d6 is enabled
2004-11-23 20:30:27.1785 enabled
2004-11-23 20:30:27.1796 checking formats for: mov-aif-*-00:04:20:05:04:d6
2004-11-23 20:30:27.1909 Checking to see if mov-aif-*-00:04:20:05:04:d6 is
enabled
2004-11-23 20:30:27.1920 enabled
2004-11-23 20:30:27.1930 checking formats for: mov-aif-squeezebox-*
2004-11-23 20:30:27.1940 Checking to see if mov-aif-squeezebox-* is enabled
2004-11-23 20:30:27.1948 enabled
2004-11-23 20:30:27.1957 checking formats for: mov-aif-*-*
2004-11-23 20:30:27.1966 Checking to see if mov-aif-*-* is enabled
2004-11-23 20:30:27.1975 enabled
2004-11-23 20:30:27.1984 Found command: [mov123] $FILE$
2004-11-23 20:30:27.2116 Matched Format: aif Type: mov Command: [mov123]
$FILE$
2004-11-23 20:30:27.2129 openSong: this is an mov file:
file:///Users/michaelrobinson/Music/iTunes/iTunes%20Music/U2/How%20To%20Dism
antle%20An%20Atomic%20Bomb/01%20Vertigo.m4a
2004-11-23 20:30:27.2138 file type: mov format: aif inrate: 128 maxRate: 0
2004-11-23 20:30:27.2149 command: [mov123] $FILE$
2004-11-23 20:30:27.2177 Using command for conversion:
"/Library/PreferencePanes/SlimServer.prefPane/Contents/server/Bin/darwin/mov
123" "/Users/michaelrobinson/Music/iTunes/iTunes Music/U2/How To Dismantle
An Atomic Bomb/01 Vertigo.m4a" & |
2004-11-23 20:30:27.5349 Streaming with format: aif
2004-11-23 20:30:30.2767 00:04:20:05:04:d6 New play mode: play
2004-11-23 20:30:30.3184 00:04:20:05:04:d6: Current playmode: play
2004-11-23 20:30:33.5420 00:04:20:05:04:d6: Underrun while this mode: play
2004-11-23 20:31:36.0440 00:04:20:05:04:d6: Underrun while this mode: play
2004-11-23 20:32:35.8748 00:04:20:05:04:d6: Underrun while this mode: play
2004-11-23 20:33:39.2260 00:04:20:05:04:d6: Underrun while this mode: play

dean
2004-11-24, 14:16
Hi Michael,

How big is the playlist you are listening to? If the HTML file it's
loading is quite long, it could slow down your machine considerably.
Still, it's something we need to fix.



On Nov 23, 2004, at 12:50 PM, Michael Robinson wrote:

> I’ve just upgraded Slimserver from 5.1.1 to 5.4 (G4 iMac OSX 10.3.6)
> and noticed that I now get cut-offs when playing AAC files every time
> the browser (Safari) refreshes when displaying the Slimserver web
> interface.
>
> I’ve captured the logs below – the first one with the Slimserver
> browser refresh time set to the default of 30 seconds, the second with
> the refresh time set to 60 seconds.
>
> The first log shows the message “Underrun while this mode: play”
> occurs approximately every 30 seconds and in the second log, the same
> message occurs approximately every 60 seconds.
>
> The cut-offs do not occur if the browser isn’t displaying the
> Slimserver web interface.
>
> The cut-offs also don’t occur if the Slimserver is playing mp3 files
> rather than AAC files – even if the browser is displaying the
> Slimserver web interface.
>
> >From the Mac activity monitor it looks as if Safari is grabbing over
> 40% of CPU time every time it does a Slimserver web interface refresh.
>
> Any ideas about how to prevent this?
>
> The problem didn’t occur with Slimserver 5.1.1 and I would have
> thought a G4 Mac would have enough horsepower to cope with a
> Slimserver browser refresh while playing AAC files and doing nothing
> else.
>
> Browser refresh 30 seconds.
>
> 2004-11-23 20:18:06.2316 00:04:20:05:04:d6: Switching to mode play
> from stop
> 2004-11-23 20:18:06.2339 openSong on:
> file:///Users/michaelrobinson/Music/iTunes/iTunes%20Music/U2/
> How%20To%20Dismantle%20An%20Atomic%20Bomb/01%20Vertigo.m4a
> 2004-11-23 20:18:06.2376 openSong: getting duration 194.536, size
> 3350472, endian and offset 0 for
> file:///Users/michaelrobinson/Music/iTunes/iTunes%20Music/U2/
> How%20To%20Dismantle%20An%20Atomic%20Bomb/01%20Vertigo.m4a
> 2004-11-23 20:18:06.2450 undermax = 1, type = mov, squeezebox =
> 00:04:20:05:04:d6, lame =
> /Users/michaelrobinson/Library/iTunes/Scripts/iTunes-LAME.app/
> Contents/Resources/lame
> 2004-11-23 20:18:06.2466 checking formats for:
> mov-aif-squeezebox-00:04:20:05:04:d6
> 2004-11-23 20:18:06.2479 Checking to see if
> mov-aif-squeezebox-00:04:20:05:04:d6 is enabled
> 2004-11-23 20:18:06.2489 enabled
> 2004-11-23 20:18:06.2500 checking formats for:
> mov-aif-*-00:04:20:05:04:d6
> 2004-11-23 20:18:06.2509 Checking to see if
> mov-aif-*-00:04:20:05:04:d6 is enabled
> 2004-11-23 20:18:06.2519 enabled
> 2004-11-23 20:18:06.2527 checking formats for: mov-aif-squeezebox-*
> 2004-11-23 20:18:06.2536 Checking to see if mov-aif-squeezebox-* is
> enabled
> 2004-11-23 20:18:06.2545 enabled
> 2004-11-23 20:18:06.2553 checking formats for: mov-aif-*-*
> 2004-11-23 20:18:06.2564 Checking to see if mov-aif-*-* is enabled
> 2004-11-23 20:18:06.2572 enabled
> 2004-11-23 20:18:06.2581 Found command: [mov123] $FILE$
> 2004-11-23 20:18:06.2610 Matched Format: aif Type: mov Command:
> [mov123] $FILE$
> 2004-11-23 20:18:06.2622 openSong: this is an mov file:
> file:///Users/michaelrobinson/Music/iTunes/iTunes%20Music/U2/
> How%20To%20Dismantle%20An%20Atomic%20Bomb/01%20Vertigo.m4a
> 2004-11-23 20:18:06.2632 file type: mov format: aif inrate: 128
> maxRate: 0
> 2004-11-23 20:18:06.2644 command: [mov123] $FILE$
> 2004-11-23 20:18:06.2670 Using command for conversion:
> "/Library/PreferencePanes/SlimServer.prefPane/Contents/server/Bin/
> darwin/mov123" "/Users/michaelrobinson/Music/iTunes/iTunes
> Music/U2/How To Dismantle An Atomic Bomb/01 Vertigo.m4a" & |
> 2004-11-23 20:18:06.4769 Streaming with format: aif
> 2004-11-23 20:18:09.1982 00:04:20:05:04:d6 New play mode: play
> 2004-11-23 20:18:09.2406 00:04:20:05:04:d6: Current playmode: play
> 2004-11-23 20:18:45.2677 00:04:20:05:04:d6: Underrun while this mode:
> play
> 2004-11-23 20:19:14.9817 00:04:20:05:04:d6: Underrun while this mode:
> play
> 2004-11-23 20:19:49.0001 00:04:20:05:04:d6: Underrun while this mode:
> play
> 2004-11-23 20:20:23.2537 00:04:20:05:04:d6: Underrun while this mode:
> play
> 2004-11-23 20:20:58.4200 00:04:20:05:04:d6: Underrun while this mode:
> play
>
> Browser refresh 60 seconds
>
> 2004-11-23 20:30:27.1542 00:04:20:05:04:d6: Switching to mode play
> from stop
> 2004-11-23 20:30:27.1565 openSong on:
> file:///Users/michaelrobinson/Music/iTunes/iTunes%20Music/U2/
> How%20To%20Dismantle%20An%20Atomic%20Bomb/01%20Vertigo.m4a
> 2004-11-23 20:30:27.1704 openSong: getting duration 194.536, size
> 3350472, endian and offset 0 for
> file:///Users/michaelrobinson/Music/iTunes/iTunes%20Music/U2/
> How%20To%20Dismantle%20An%20Atomic%20Bomb/01%20Vertigo.m4a
> 2004-11-23 20:30:27.1747 undermax = 1, type = mov, squeezebox =
> 00:04:20:05:04:d6, lame =
> /Users/michaelrobinson/Library/iTunes/Scripts/iTunes-LAME.app/
> Contents/Resources/lame
> 2004-11-23 20:30:27.1764 checking formats for:
> mov-aif-squeezebox-00:04:20:05:04:d6
> 2004-11-23 20:30:27.1775 Checking to see if
> mov-aif-squeezebox-00:04:20:05:04:d6 is enabled
> 2004-11-23 20:30:27.1785 enabled
> 2004-11-23 20:30:27.1796 checking formats for:
> mov-aif-*-00:04:20:05:04:d6
> 2004-11-23 20:30:27.1909 Checking to see if
> mov-aif-*-00:04:20:05:04:d6 is enabled
> 2004-11-23 20:30:27.1920 enabled
> 2004-11-23 20:30:27.1930 checking formats for: mov-aif-squeezebox-*
> 2004-11-23 20:30:27.1940 Checking to see if mov-aif-squeezebox-* is
> enabled
> 2004-11-23 20:30:27.1948 enabled
> 2004-11-23 20:30:27.1957 checking formats for: mov-aif-*-*
> 2004-11-23 20:30:27.1966 Checking to see if mov-aif-*-* is enabled
> 2004-11-23 20:30:27.1975 enabled
> 2004-11-23 20:30:27.1984 Found command: [mov123] $FILE$
> 2004-11-23 20:30:27.2116 Matched Format: aif Type: mov Command:
> [mov123] $FILE$
> 2004-11-23 20:30:27.2129 openSong: this is an mov file:
> file:///Users/michaelrobinson/Music/iTunes/iTunes%20Music/U2/
> How%20To%20Dismantle%20An%20Atomic%20Bomb/01%20Vertigo.m4a
> 2004-11-23 20:30:27.2138 file type: mov format: aif inrate: 128
> maxRate: 0
> 2004-11-23 20:30:27.2149 command: [mov123] $FILE$
> 2004-11-23 20:30:27.2177 Using command for conversion:
> "/Library/PreferencePanes/SlimServer.prefPane/Contents/server/Bin/
> darwin/mov123" "/Users/michaelrobinson/Music/iTunes/iTunes
> Music/U2/How To Dismantle An Atomic Bomb/01 Vertigo.m4a" & |
> 2004-11-23 20:30:27.5349 Streaming with format: aif
> 2004-11-23 20:30:30.2767 00:04:20:05:04:d6 New play mode: play
> 2004-11-23 20:30:30.3184 00:04:20:05:04:d6: Current playmode: play
> 2004-11-23 20:30:33.5420 00:04:20:05:04:d6: Underrun while this mode:
> play
> 2004-11-23 20:31:36.0440 00:04:20:05:04:d6: Underrun while this mode:
> play
> 2004-11-23 20:32:35.8748 00:04:20:05:04:d6: Underrun while this mode:
> play
> 2004-11-23 20:33:39.2260 00:04:20:05:04:d6: Underrun while this mode:
> play