play MP3 stream with a (no GUI) command line playe


Forum: Multimedia
Topic: play MP3 stream with a (no GUI) command line playe
started by: lothario

Posted by lothario on Feb. 03 2006,20:28
I can play this MP3 stream in xmms.
< http://rope.kgoam810.com/listenlive/listenlive.pls >


Can I play this from just the command line only, without X and the GUI?

This streaming audio is located on this page:
< http://www.kgoam810.com/listenlive.asp >

I have one older PC and the constraints are:
1.  First ISA slot is being used by the network card.
2.  Second ISA slot is being used by the sound card.
3.  Third ISA slot is being used by a disk controller.
4.  The disk controller on the motherboard cannot be used, it gives "disk controller failure" errors.
5.  The motherboard has only 3 ISA slots.
6.  The VGA port on the motherboard produces a flickering effect on the screen about 10 minutes after booting up.  I've tried different monitors.  Same results.

But dsl-2.1b works just fine on this PC.
I don't care about the VGA port because the PC is old and running X is not necessary for me.
I would like to continue using this old PC as a streaming audio device.
I want to ssh into this (now headless) PC and start playing the MP3 audio stream from just the command line.

I could not figure out how to do this with xmms.
Can I do this with some other player?
What do you suggest?

Posted by clacker on Feb. 03 2006,21:05
I would suggest using mplayer.  It plays and even saves streaming audio. Get it from < the multimedia section of the repository. >
Posted by hawki on Feb. 04 2006,01:42
hi
open a terminal and try this.

mpg123 < http://abcrad.ic.llnwd.net/stream/abcrad_kgo_kgo >

good luck

Posted by lothario on Feb. 04 2006,05:42
Quote (hawki @ Feb. 03 2006,17:42)
hi
open a terminal and try this.

mpg123 < http://abcrad.ic.llnwd.net/stream/abcrad_kgo_kgo >

good luck

I tried it, here is the result:


Quote
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2, and 3.
Version 0.59q (2002/03/23). Written and copyrights by Joe Drew.
Uses code from various people. See 'README' for more!
THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!

Directory: http:/
Playing MPEG stream from abcrad.ic.llnwd.net ...
MPEG 1.0 layer III, 24 kbit/s, 22050 Hz mono
libao - OSS cannot set rate to 22050
Can't find a suitable libao driver. (Is device in use?)

But I can still stream this in xmms before and after mpg123.
Can this be fixed?

Posted by lothario on Feb. 04 2006,10:52
Quote (clacker @ Feb. 03 2006,13:05)
I would suggest using mplayer.  It plays and even saves streaming audio. Get it from < the multimedia section of the repository. >

Ok.  But, how do I install mplayer from the commandline without a GUI?

Posted by hawki on Feb. 04 2006,12:45
Hi
I duplicated your error by having xmms already running while trying to start mpg123.  Since xmms already had the output device in use mpg123 could not use it.  Maybe something you ran first still owned the device.
good luck

Posted by clacker on Feb. 04 2006,13:13
Quote (lothario @ Feb. 04 2006,05:52)
Quote (clacker @ Feb. 03 2006,13:05)
I would suggest using mplayer.  It plays and even saves streaming audio. Get it from < the multimedia section of the repository. >

Ok.  But, how do I install mplayer from the commandline without a GUI?

Use the mydsl-load command to load dsl packages from the command line:

mydsl-load mplayer.dsl

Posted by lothario on Feb. 07 2006,06:17
Quote (hawki @ Feb. 04 2006,04:45)
Hi
I duplicated your error by having xmms already running while trying to start mpg123.  Since xmms already had the output device in use mpg123 could not use it.  Maybe something you ran first still owned the device.
good luck

Ok, to avoid that I rebooted the system and the first thing I did was:

Quote
mpg123     < http://rope.kgoam810.com/listenlive/listenlive.pls >

The result:
Quote
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2, and 3.
Version 0.59q (2002/03/23). Written and copyrights by Joe Drew.
Uses code from various people. See 'README' for more!
THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!

Directory: http:/
Playing MPEG stream from rope.kgoam810.com ...

[0:00] Decoding of rope.kgoam810.com finished.
That is it.  The whole thing took 2 seconds.  I did not hear anything.
What did I do wrong?  Please help.

Posted by clacker on Feb. 07 2006,13:58
I found that I had to run xmms first for some reason in order to get the mpg123 command to run the stream hawki sugested, and for whatever reason, it didn't run your stream.  I think it may need some library initialiazed or perhaps the connection to the site is spotty (even mplayer gave me some errors).

I loaded mplayer.dsl and tried that and it did play your stream from the command line:

mplayer < http://rope.kgoam810.com/listenlive/listenlive.pls >

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.