I think it would be as simple as this:
mpg123 http://localhost:9000/stream.mp3 &
run it once, and it should be happy forever. Granted, I have not tested this (no soundcard in
server)
you could wrap this in a script that simply sits in a forever loop:
#!/bin/sh
while (1)
do
mpg123 http://localhost:9000/stream.mp3
# if we get here, mpg123 died
# could send email, write something to the slimp screen, whatever
done
--- Michael Herger <mherger (AT) jo-sac (DOT) ch> wrote:
> I only own one SliMP3 for the living room, but would like to use the
> server in my room, too. My server is a "headless" linux box sitting right
> beside my hifi system. So why not simply connecting its built-in sound
> card to the amp?
>
> What I need is some kind daemonized MP3 player which is simply listening
> to http://localhost:9000/stream.mp3. All control would be done using
> SliMP3's web interface.
>
> Does anybody know of such a setup? What do you think about the idea?
>
> I have been googling and found a mplayer daemon (pretty recent:
> http://mplayerd.sourceforge.net/) or some perl modules which can daemonize
> mpg123 (http://beppu.lbox.org/proj/mp3-daemon.html). I'll have a closer
> look...
>
> Regards,
>
> --
>
> Michael
>
> -----------------------------------------------------------
> http://www.jo-sac.ch/lindenberg - die JO des SAC Lindenberg
> http://www.jo-sac.ch - JO-SAC inoffiziell!
> http://photo.jo-sac.ch - mein kleines Photoalbum
>
>
mpg123 http://localhost:9000/stream.mp3 &
run it once, and it should be happy forever. Granted, I have not tested this (no soundcard in
server)
you could wrap this in a script that simply sits in a forever loop:
#!/bin/sh
while (1)
do
mpg123 http://localhost:9000/stream.mp3
# if we get here, mpg123 died
# could send email, write something to the slimp screen, whatever
done
--- Michael Herger <mherger (AT) jo-sac (DOT) ch> wrote:
> I only own one SliMP3 for the living room, but would like to use the
> server in my room, too. My server is a "headless" linux box sitting right
> beside my hifi system. So why not simply connecting its built-in sound
> card to the amp?
>
> What I need is some kind daemonized MP3 player which is simply listening
> to http://localhost:9000/stream.mp3. All control would be done using
> SliMP3's web interface.
>
> Does anybody know of such a setup? What do you think about the idea?
>
> I have been googling and found a mplayer daemon (pretty recent:
> http://mplayerd.sourceforge.net/) or some perl modules which can daemonize
> mpg123 (http://beppu.lbox.org/proj/mp3-daemon.html). I'll have a closer
> look...
>
> Regards,
>
> --
>
> Michael
>
> -----------------------------------------------------------
> http://www.jo-sac.ch/lindenberg - die JO des SAC Lindenberg
> http://www.jo-sac.ch - JO-SAC inoffiziell!
> http://photo.jo-sac.ch - mein kleines Photoalbum
>
>
Comment