SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
no my question it's diferent. First I put a question about dev/dsp when I use mp123, now my question is about how I listen music with mpg123, because I'm not sure that the command is just mpg123 url.
mpg123 can not read from network protocols. what makes you think that it can? did you reas any documentation for it? the manpage mentions nothing whatsoever about being able to do this.
helder@darkstar:~$ mpg123 --help
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!
Usage: mpg123 [options] file(s) | URL(s) | -
so, this mean that mpg123 can play net streams or the help page is wrong.
That really isnt the stream, it is just a text file with the real location to the stream. So wget that file, cat it, then play the url it shows.
Here is a example for di.fm. Replace wget for fetch.
Code:
~ % fetch http://di.fm/mp3/trance96k.pls
trance96k.pls 100% of 434 B 2017 kBps
~ % cat trance96k.pls
[playlist]
NumberOfEntries=3
File1=http://64.236.34.67:80/stream/1003
Title1=D I G I T A L L Y - I M P O R T E D - Trance channel! (US Ultravox)
Length1=-1
File2=http://64.236.34.67:5190/stream/1003
Title2=D I G I T A L L Y - I M P O R T E D - Trance channel! (US Ultravox)
Length2=-1
File3=http://160.79.1.141:8000
Title3=D I G I T A L L Y - I M P O R T E D - Trance channel! (Redirect to free server)
Length3=-1
~ % mpg123 http://64.236.34.67:80/stream/1003
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2 and 3.
Version 0.59r (1999/Jun/15). Written and copyrights by Michael Hipp.
Uses code from various people. See 'README' for more!
THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!
Directory: http://64.236.34.67:80/stream/
Playing MPEG stream from 1003 ...
Junk at the beginning c98829aa
MPEG 1.0 layer III, 96 kbit/s, 44100 Hz stereo
^C
[0:03] Decoding of 1003 finished.
~ %
Greetings, I found this post on LQ via google and decided to post this to hopefully help others who might have this problem.
I had a similar problem with not being able to play url's from di.fm's trance96k.pls file under mpg321 on my Redhat 7.3 distribution which btw also has a symbolic link in /usr/bin/mpg123 which points to the real executable /usr/bin/mpg321. I figured out in order to figure out which player you're really executing without tracking down where the executable is coming from just type "mpg123" in the command line window without any parameters and the last line that it will print will mention either mpg123 or mpg321 hence letting you know what you're really executing.
I noticed that the wr3ck3d was using 0.59r which was different from the version of mpg321 which I was using 0.59q which was the latest version of mpg321. Hence, the credit for this solution goes to you - thank you!
Solution?
----------
You need to download mpg123-0.59r.tar.gz.
If you already have an entry for mpg123 in your /usr/bin or somewhere else in your path
other than /usr/local/bin/mpg123 you may want to replace /usr/bin/mpg123 so that it
actually points to mpg123 instead of mpg321.
Then just gunzip, make linux, make install and you should be set to go - just cat the trance96.pls file and then mpg123 http://...../
^_^
Last edited by RyuRomulan; 11-03-2004 at 12:12 PM.
mpg123 can not read from network protocols. what makes you think that it can? did you reas any documentation for it? the manpage mentions nothing whatsoever about being able to do this.
First of all how can you be a moderator and treat people like that, please think before you answer, there is nothing more powerful than i thought...and you just put it by written.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.