View Single Post
Posts: 185 | Thanked: 5 times | Joined on Dec 2005 @ Texas
#46
Originally Posted by nick_1 View Post
I believe you can get audio streaming working if you are happy to use shoutcast streams and enjoy playing on the command line. Maybe an app to handle these should come next...

I had a play and if you save the playlist file into playlist.txt, then start a2dp you can run the following:
Code:
mplayer -playlist playlist.txt -ao alsa:device=a2dpd2 -ac ffmp3
This produced the audio stream with this stream and might work with many others... Be careful, forget the -ac ffmp3 and you'll get noise.

edit: just a quick update, you can put the stream url in but don't forget to escape the &... i.e:
Code:
mplayer -playlist http://shoutcast.com/sbin/shoutcast-playlist.pls?rn=1025\&file=filename.pls -ao alsa:device=a2dpd2 -ac ffmp3
Nick
Wow, this does in fact work beautifully! Neat trick, although I guess mplayer has always worked with Shoutcast streams, I just never tried it. It even shows the current artist and track in Terminal while it is streaming. I had no idea...

I just tried this via A2DP, and the trick it to turn on Bluetooth in the Control Panel, and the BT feature in Kagu and leave Kagu running in the background, without playing any songs. Then insert the command line for mplayer (like listed above, or edited for whichever stream or channel), and it starts streaming thru the Bluetooth headphones or speakers. I was using both WiFi and BT, and there was *no* skipping...maybe just once or twice every minute. Sound quality was just like Kagu.

@ trevarthan - I bet this functionality can be worked into Kagu eventually...easy for me to say, right?