Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mpd won't play http audio stream [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
playahater
Guru
Guru


Joined: 02 Jul 2005
Posts: 382
Location: Serbia

PostPosted: Thu Jul 08, 2010 7:37 pm    Post subject: mpd won't play http audio stream [solved] Reply with quote

Greetingz folks .. mpd is driving me nuts .. :|

i`m trying to make mpd play http audio stream and as soon as i hit play on the stream i get connection refused error, at which point mpd daemon dies without any explanation.

i tried couple of streams and at the end i get the same error .. btw I can play all local audio files (ogg,mp3,flac..) without any problems.
I can't figure out where seems to be the problem .. :( ..
i tried loading below attached radio.m3u, and it loads fine .. but again, the same error .. then i tried to play a stream by manually adding it to the playlist and, again, no luck ..
i tried recompiling all dependency packages, double checking config files and no success playing the stream

mplayer plays those streams without any problem .. they are working just fine .. but mpd dies every time it sees http stream .. :(

Any idea, hint, pointer would be greatly appreciated ..
10x in advance ..

Cheers ..

Code:

[ebuild   R   ] media-sound/mpd-0.15.10  USE="aac alsa audiofile bzip2 cdio curl ffmpeg fifo flac id3 lame libmms libsamplerate mad mikmod modplug musepack network ogg oss sqlite unicode vorbis wavpack zip -ao -avahi -cue -debug -fluidsynth -ipv6 -jack -lastfmradio -pipe -profile -pulseaudio -sid" 0 kB
[ebuild   R   ] media-sound/ncmpcpp-0.5.4  USE="clock curl fftw iconv outputs taglib threads unicode visualizer -bash-completion" 0 kB
[ebuild   R   ] media-sound/mpc-0.19  USE="iconv -bash-completion" 0 kB


~/.mpd/mpd.conf
Code:

music_directory      "~/.mpd/mp3"
playlist_directory   "~/.mpd/playlists"
db_file         "~/.mpd/mpd.db"
sticker_file "~/.mpd/mpd_sticker.db"
log_file      "/var/log/mpd/mpd.log"
pid_file      "/var/run/mpd/mpd.pid"
state_file      "/var/lib/mpd/state"

user         "playahater"
log_level         "verbose"

follow_outside_symlinks   "yes"
follow_inside_symlinks      "yes"

input {
        plugin "curl"
}

audio_output {
  type      "alsa"
  name      "snd-hda-intel"
  options   "dev=dmixer"
  device    "plug:dmix"
}

audio_output {                                                                                                                           
  type     "fifo"
  name     "ncmpcpp-visualisation"
  path     "/tmp/mpd.fifo"
  format   "44100:16:1"
}

audio_output_format      "44100:16:2"
samplerate_converter      "Best Sinc Interpolator"
mixer_type         "software"
volume_normalization      "yes"
audio_buffer_size      "2048"
buffer_before_play      "10%"
filesystem_charset "UTF-8"


radio.m3u playlist file
Code:

#EXTINF:-1, radio b92
http://xs3.b92.net:7999/radio-b92.ogg
#EXTINF:-1, wwoz bluez
http://wwoz-sc.streamguys.com:80/wwoz-hi.mp3
#EXTINF:-1, old school jazz
http://64.62.252.134:5100
#EXTINF:-1, kk-jazz
http://www.live365.com/play/kkjz1
#EXTINF:-1, ByteFM
http://streamingserver01.byte.fm:8000
#EXTINF:-1, french rap
http://onestream.group-network.net:8006
#EXTINF:-1, frisky
http://scfire-mtc-aa04.stream.aol.com:80/stream/1015
#EXTINF:-1, reddit
http://www.radioreddit.com:8000/
#EXTINF:-1, PsyChill
http://72.26.204.18:6314
#EXTINF:-1, ChroniX
http://scfire-ntc-aa04.stream.aol.com:80/stream/1039
#EXTINF:-1, nrbg.rs
http://gal.bitsyu.net:8000
#EXTINF:-1, net1zen
http://radio.net1zen.com:8000/mpd.ogg

_________________
http://droopia.net


Last edited by playahater on Fri Jul 09, 2010 12:01 am; edited 1 time in total
Back to top
View user's profile Send private message
playahater
Guru
Guru


Joined: 02 Jul 2005
Posts: 382
Location: Serbia

PostPosted: Fri Jul 09, 2010 12:00 am    Post subject: Reply with quote

I stepped on a bug .. :( ..

Code:

mpd: src/input/curl_input_plugin.c:263: input_curl_select: Assertion `max_fd >= 0' failed.


this solved the problem:
Code:

[ebuild     UD] net-misc/curl-7.20.0-r2 [7.21.0] USE="gnutls kerberos libssh2 ssl -ares -idn -ipv6 -ldap -nss -test (-threads%*)" 2,040 kB

_________________
http://droopia.net
Back to top
View user's profile Send private message
grodzik86
n00b
n00b


Joined: 25 Dec 2005
Posts: 38
Location: Wroclaw, Poland

PostPosted: Sat Jul 31, 2010 1:12 pm    Post subject: Reply with quote

Hi,

There is new mpd version - 0.15.12 which fixes this bug. I've just bumped ebuild to that version and it's working fine without downgrading curl


grodzik
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum