Freedom The Open Source Way Contribute Articles or News to OSForgeOSForge HomeLogout from Forums
Contacting OSForgeOSForge HomeAbout OSForge
  

Root
Contribute News
Learning Corner
Linux Distributions
Linux Common FAQ's
Discussion Forums
Community Gallery
Links Directory
Search OSForge
Networking
Industry Updates
Linux & Open Source
Opinions
Press Release
Programming
Security
Web Development

White Paper
Plat'Home Unveils Winners of “Will Linux Work?” Contest
Zenoss Core Recognized as Best Open Source Network Monitoring Solution
LinMin™ Joins Intel® Certified Software Solutions Program
xTuple™ ERP 3.0 Wins “Best Business Application” At LinuxWorld Conference & Exp
Holland Computing Center - Rocks+Moab Provides Windows/Linux Cluster Solution
LogMeIn Launches Mobile Plug-in for Linux
FuseMail Selects Funambol’s Open Source Push Email and PIM Sync Solution
Zenoss Expands IT Management Solution for Managed Service Providers
Moab Workload Manager Claims Title as World’s First Petaflop Scheduler
Moab Workload Manager Claims Title as World’s First Petaflop Scheduler

View More

Notes from the Command-Line Commando: Multimedia

Page: 3/3  [Printable Version]



Streaming Audio With mpg123

The most basic way to use mpg123 with an audio stream is to do this:

mpg123 http://205.188.234.35:8034 <Enter>

(This is a sample stream we pulled from http://www.shoutcast.com.) Sometimes, you may have to enter a stream address like this:

mpg123 http://ipaddress:port/filename.pls

We usually pull our streams from http://www.live365.com/home/index.live or http://www.shoutcast.com. There are other sites you can get streams from as well. Initially, you will need a browser so you can find audio stream addresses. You can try using lynx (good luck decrypting the address out of that nightmarish output), but the best way to figure out what address your favorite stream is from is to use a "gooey" browser like Netscape, Mozilla, etc.

There are many other command line options available beyond those we've mentioned here. For instance, you can change your buffer size for your stream, or mix down a stereo stream to mono for better performance. You can also speed up or slow down the play rate for your mp3 files. For details on these options, and many more, type:

mpg123 <Enter>

or

mpg123 --longhelp <Enter>

or

man mpg123 <Enter>

at the command prompt.

Well, we hope that was useful and informative; we aim to please. Wait! Harken! Never mind; that was it. If you enjoyed this article and/or found it useful, tune in next time to find out more wonderful, exciting, earth-shattering ways to make the most of your command line. No "gooey" needed!

(c) October 2001, Michael & Melinda Petruzziello michael@jmptechnologies.com; melinda@jmptechnologies.com

<< Previous Page << Previous Page (2/3)   

[ Back to Linux Computing | Sections Index ]

 
Scroll Up

   About | Term of Use | Privacy | Adras | Tell a Friend | Advertise  

OSForge News RSS Feed