You are not logged in.

#1 2010-05-26 10:14:52

dmz
Member
From: Sweden
Registered: 2008-08-27
Posts: 878
Website

RPD - Radio Playing Daemon

I've made a daemon and client for playing radio streams (using mplayer) in the same fashion as MPD.

RPD wrote:

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

#2 2010-05-26 11:14:15

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,782
Website

Re: RPD - Radio Playing Daemon

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

#3 2010-05-26 13:06:24

dmz
Member
From: Sweden
Registered: 2008-08-27
Posts: 878
Website

Re: RPD - Radio Playing Daemon

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. smile

Offline

#4 2010-05-26 15:34:53

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: RPD - Radio Playing Daemon

% 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

#5 2010-05-26 15:44:33

dmz
Member
From: Sweden
Registered: 2008-08-27
Posts: 878
Website

Re: RPD - Radio Playing Daemon

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

#6 2010-07-31 15:46:04

kinhodder
Member
From: UK
Registered: 2010-04-18
Posts: 65
Website

Re: RPD - Radio Playing Daemon

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

#7 2010-07-31 15:58:28

dmz
Member
From: Sweden
Registered: 2008-08-27
Posts: 878
Website

Re: RPD - Radio Playing Daemon

RPD have been superseeded by rmcd - http://github.com/trapd00r/rmcd

Please let me know if it works as expected for you.

Offline

#8 2010-08-01 14:36:53

kinhodder
Member
From: UK
Registered: 2010-04-18
Posts: 65
Website

Re: RPD - Radio Playing Daemon

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

#9 2010-08-01 15:04:19

dmz
Member
From: Sweden
Registered: 2008-08-27
Posts: 878
Website

Re: RPD - Radio Playing Daemon

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

Board footer

Powered by FluxBB