You are not logged in.
Pages: 1
I've made a daemon and client for playing radio streams (using mplayer) in the same fashion as MPD.
Radio Playing Daemon
RPD is a daemon that plays radio streams.
Mplayer is used for the actual backend, providing the user with total control.
Radio Playing Client
RPC is the program for controlling Radio Playing Daemon (RPD).
Usage: rpc [OPTIONS] (ARGS) OPTIONS: np show the currently playing song npa show all played songs since radiod started change change channel list list all available channels son turn on sound soff turn off sound pause pause playback stop pauses playback. If you really want to stop, use quit quit stops playback (and radiod) EXAMPLES: rpc change psy # change channel to the one associated with the 'psy' key (di.fm)
Installation
First, you'll a module from CPAN:
# cpan Working::Daemon
Then grab the now playing-module:
$ git clone git://github.com/trapd00r/Mplayer-Stream-NowPlaying.git $ cd Mplayer-Stream-NowPlaying $ perl Makefile.PL $ make # make install
Now you can install RPD and RPC:
$ perl Makefile.PL $ make # make install
Start RPD and enjoy.
Last edited by dmz (2010-05-30 09:12:05)
Offline
Thanks for this!
What is the advantage of RPD over MPD? (I mean MPD plays radio streams too)
zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)
Offline
User configurable channel list, playback history, mplayer backend which means you can use all functionality in mplayer, easy to bind to keys in your window manager: F1 to load the psychedelic channel, shift+enter to pause, you can use the now playing output in whatever way you want, i.e your screen hardstatusline or conky and... it's Perl.
Offline
% git clone http://github.com/trapd00r/Mplayer-Stream-NowPlaying
Initialized empty Git repository in /home/army/Programme/Mplayer-Stream-NowPlaying/.git/
fatal: http://github.com/trapd00r/Mplayer-Stream-NowPlaying/info/refs not found: did you run git update-server-info on the server?
% git clone http://github.com/trapd00r/radiod
Initialized empty Git repository in /home/army/Programme/radiod/.git/
fatal: http://github.com/trapd00r/radiod/info/refs not found: did you run git update-server-info on the server?
Am I doing something wrong here?
Offline
No, sorry... I was putting the wrong URLs.
The correct ones are;
git clone http://github.com/trapd00r/RPD
git clone git://github.com/trapd00r/Mplayer-Stream-NowPlaying.git
Last edited by dmz (2010-05-30 09:08:12)
Offline
I'm having a bit of trouble getting this going.
The only rpc commands that work for me are np and list, and the only channel that will play is hardcoreradio.nl (even if I do rpc play dubstep).
Other commands will give a confirmation, eg.
~: rpc toggle
Toggled!
but nothing happens, and hardcore.nl keeps blasting away until I kill mplayer.
Any ideas?
Offline
RPD have been superseeded by rmcd - http://github.com/trapd00r/rmcd
Please let me know if it works as expected for you.
Offline
Thanks, dmz. I have rmcd up and running, and it's great!
One tiny problem: it won't play the .asx streams that the BBC (annoyingly) use, even though mplayer handles them fine. I just grabbed the mms:// URL from the relevant .asx file, though, so not to worry.
Offline
Thank you.
Hm... can you show one of them asx streams? The BBC site didn't work very well for me.
How are you trying to load it, using rmcd -l <url.asx>?
Offline
Pages: 1