You are not logged in.

#1 2010-12-24 14:02:22

kaszak696
Member
Registered: 2009-05-26
Posts: 543

Players choking on internet radio

Hi there

I did a fresh Arch install after after a disk failure, and i've ran into a strange problem.
Whenever im trying to listen to an internet radio i Clementine, it plays for a couple of minutes, then playback starts to "choke" for a few seconds and playback hangs completly.  Moc also does this, but to a lower degree. Im using pulseaudio with a recent alsa, everything else i.e. mp3 playback works without problems. I've looked into system log and dmesg, and found  this

CE: hpet increased min_delta_ns to 7500 nsec
CE: hpet increased min_delta_ns to 11250 nsec

and

Dec 24 13:49:20 myhost rtkit-daemon[3632]: Successfully made thread 4177 of process 4177 (/usr/bin/pulseaudio) owned by '1000' high priority at nice level -11.
Dec 24 13:49:20 myhost rtkit-daemon[3632]: Supervising 1 threads of 1 processes of 1 users.
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c: snd_pcm_avail_delay() returned strange values: delay 0 is less than avail 8.
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c: Most likely this is a bug in the ALSA driver 'snd_hda_intel'. Please report this issue to the ALSA developers.
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c: snd_pcm_dump():
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c: Soft volume PCM
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c: Control: PCM Playback Volume
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c: min_dB: -51
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c: max_dB: 0
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c: resolution: 256
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c: Its setup is:
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c:   stream       : CAPTURE
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c:   access       : MMAP_INTERLEAVED
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c:   format       : S16_LE
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c:   subformat    : STD
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c:   channels     : 2
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c:   rate         : 48000
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c:   exact rate   : 48000 (48000/1)
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c:   msbits       : 16
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c:   buffer_size  : 16384
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c:   period_size  : 8192
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c:   period_time  : 170666
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c:   tstamp_mode  : ENABLE
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c:   period_step  : 1
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c:   avail_min    : 15424
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c:   period_event : 0
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c:   start_threshold  : -1
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c:   stop_threshold   : 4611686018427387904
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c:   silence_threshold: 0
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c:   silence_size : 0
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c:   boundary     : 4611686018427387904
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c: Slave: Hardware PCM card 0 'HDA Intel' device 0 subdevice 0
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c: Its setup is:
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c:   stream       : CAPTURE
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c:   access       : MMAP_INTERLEAVED
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c:   format       : S16_LE
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c:   subformat    : STD
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c:   channels     : 2
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c:   rate         : 48000
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c:   exact rate   : 48000 (48000/1)
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c:   msbits       : 16
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c:   buffer_size  : 16384
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c:   period_size  : 8192
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c:   period_time  : 170666
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c:   tstamp_mode  : ENABLE
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c:   period_step  : 1
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c:   avail_min    : 15424
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c:   period_event : 0
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c:   start_threshold  : -1
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c:   stop_threshold   : 4611686018427387904
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c:   silence_threshold: 0
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c:   silence_size : 0
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c:   boundary     : 4611686018427387904
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c:   appl_ptr     : 92592
Dec 24 14:49:22 myhost pulseaudio[4177]: alsa-util.c:   hw_ptr       : 92592
Dec 24 14:50:03 myhost pulseaudio[4177]: alsa-sink.c: ALSA została wybudzona, aby zapisać nowe dane do urządzenia, ale nie było nic do zapisania.
Dec 24 14:50:03 myhost pulseaudio[4177]: alsa-sink.c: Prawdopodobnie jest to błąd w sterowniku ALSA "snd_hda_intel". Proszę zgłosić ten problem programistom ALSA.
Dec 24 14:50:03 myhost pulseaudio[4177]: alsa-sink.c: Wybudzono za pomocą ustawienia POLLOUT - ale jednoczesne wywołanie snd_pcm_avail() zwróciło zero lub inną wartość < min_avail.

Driver used by alsa: snd-hda-intel
I guess it's a some kind of issue with a pulseaudio itself, but i have no idea how to crack this one.


Thanks for any help.

Last edited by kaszak696 (2010-12-24 14:12:09)


'What can be asserted without evidence can also be dismissed without evidence.' - Christopher Hitchens
'There's no such thing as addiction, there's only things that you enjoy doing more than life.' - Doug Stanhope
GitHub Junkyard

Offline

#2 2010-12-24 15:12:42

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Players choking on internet radio

I use pulse and vlc to listen to internet radios and it usually works for hours without any problems.

Have you considered the possibility that the problem is with your internet connection or the radios with listen to?

Can you try with another player such as vlc and configure vlc to use pulse and see if it still has problems? Do you use anything that tries to use only alsa or the hardware directly?


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#3 2010-12-24 15:24:03

kaszak696
Member
Registered: 2009-05-26
Posts: 543

Re: Players choking on internet radio

Vlc with pulseaudio output does the same, but instead of hanging playback, it seems to reset itself wit this console output:

[0x26fc570] main input error: ES_OUT_SET_(GROUP_)PCR  is called too late (pts_delay increased to 1200 ms)
[0x26fc570] main input error: ES_OUT_SET_(GROUP_)PCR  is called too late (pts_delay increased to 1240 ms)

Vlc with pure ALSA does exactly the same.

On Windows the radio plays flawlessly on Clementine, so it doesn't seem to be a network issue.

Last edited by kaszak696 (2010-12-24 15:25:24)


'What can be asserted without evidence can also be dismissed without evidence.' - Christopher Hitchens
'There's no such thing as addiction, there's only things that you enjoy doing more than life.' - Doug Stanhope
GitHub Junkyard

Offline

#4 2010-12-25 00:34:23

OU812
Member
Registered: 2009-11-19
Posts: 47

Re: Players choking on internet radio

You could try alsa player. It's "heavily threaded" so it sometimes does a better job of playing internet radio.

john

Offline

#5 2010-12-25 01:26:30

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Players choking on internet radio

Thats strange, it looks like a driver bug but you say it works fine playing a local file so if it was a driver bug I guess there should be the same problem.

The only other things I can remember of is trying to increase the size of the (download) buffer on vlc (or the other players) and trying a live cd of another distro, which probably will have a kernel version different from arch, and see if you still have problems.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#6 2010-12-25 09:45:55

kaszak696
Member
Registered: 2009-05-26
Posts: 543

Re: Players choking on internet radio

Mplayer on the other hand shows this:

A:  84.8 (01:24.7) of -0.0 (unknown) 15.6% 0% 
Cache not filling!
A:  86.9 (01:26.9) of -0.0 (unknown) 15.9% 0% 
Cache not filling!
A:  87.3 (01:27.3) of -0.0 (unknown) 16.1% 0% 
Cache not filling!
A:  87.9 (01:27.8) of -0.0 (unknown) 16.2% 0% 
Cache not filling!
A:  88.4 (01:28.4) of -0.0 (unknown) 16.4% 0% 
Cache not filling!
A:  88.9 (01:28.8) of -0.0 (unknown) 16.5% 0% 

No idea why, networkmanager shows that download is running on 16KB\s (radio bitrate) while playing, should be enough.


'What can be asserted without evidence can also be dismissed without evidence.' - Christopher Hitchens
'There's no such thing as addiction, there's only things that you enjoy doing more than life.' - Doug Stanhope
GitHub Junkyard

Offline

#7 2010-12-25 11:14:45

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Players choking on internet radio

Can you post a link to that radio so that other people can try and see how it works?


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#8 2010-12-25 11:19:49

kaszak696
Member
Registered: 2009-05-26
Posts: 543

Re: Players choking on internet radio

MP3 128 kbps

http://212.182.14.165:80/live

OGG 96 kbps (the same behaviour)

http://212.182.14.165:80/96.ogg

'What can be asserted without evidence can also be dismissed without evidence.' - Christopher Hitchens
'There's no such thing as addiction, there's only things that you enjoy doing more than life.' - Doug Stanhope
GitHub Junkyard

Offline

#9 2010-12-25 19:34:48

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Players choking on internet radio

That must be a problem with the stream itself, either the speed or the encoding.

VLC shows problems with those streams both on linux and windows (in an VM) here. If other windows players do not have problems they must be using some other decoder that silently ignores whatever is causing problems, or they have a different caching strategy that avoids this corner case.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#10 2010-12-25 19:58:03

kaszak696
Member
Registered: 2009-05-26
Posts: 543

Re: Players choking on internet radio

Then i'll report this problem to the owners of this stream, thanks for your help smile


'What can be asserted without evidence can also be dismissed without evidence.' - Christopher Hitchens
'There's no such thing as addiction, there's only things that you enjoy doing more than life.' - Doug Stanhope
GitHub Junkyard

Offline

Board footer

Powered by FluxBB