dcsimg

Command Line Audio: Simple as mpg123

Your mileage may vary with mpg123 but your MP3 listening enjoyment never will.

Did you ever want a little background music with your daily grind but either you didn’t want to (or couldn’t) fire up something graphical to use? That’s where mpg123 comes to your rescue. Mpg123 is a fast console MPEG audio player and decoder library. If you’re about to click on to another story because you think that a command line music playing application is devoid of features or functions, you’re going to miss out on one of the coolest and most versatile MP3 applications you’ve ever seen.

Those of you who work most of your 50-hour plus weeks at the command line deserve the same multimedia enjoyment that your GUI-tethered coworkers enjoy. Applications such as mpg123 give you the opportunity to get real work done and have a little fun while you do.

The Basics

It’s simple to install mpg123. You only need simple typing skills to install this command line gem.

$ sudo apt-get install mpg123

or,

$ sudo yum install mpg123

For purists or those less fortunates who have no packaged mpg123 version, you can download the source code is at http://sourceforge.net/projects/mpg123/.

Taking mpg123 for a Test Drive

Though mpg123 is small in stature, it could take 30 minutes or more to install it. It takes so long because, during the installation and setup process, the program automatically downloads sample podcasts into your home directory under a new directory named POD. Under that directory you’ll see the following directories: Linux, LINUX and Privacy. In each of those directories, you have directories that are home to three specific podcasts: The Privacy Podcast, The Linux Link and LUG Radio. For the purposes of this article, I chose the Privacy Podcast, by Aaron Titus, titled “When Breaches Go Unreported” due to its excellent and serious content. You should definitely listen to this one for your own edification.

To play one of the downloaded podcasts or a music file that you’ve purchased legally, summon mpg123 at the command line and use the -C switch to invoke mpg123′s full control complement.

$ mpg123 -vC POD/Privacy/Privacy\ Podcast/privacy-2007-10-22-56442.mp3

High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
        version 1.12.1; written and copyright by Michael Hipp and others
        free software (LGPL/GPL) without any warranty but with best wishes
Decoder: SSE

Terminal control enabled, press 'h' for listing of keys and functions.

Playing MPEG stream 1 of 1: privacy-2007-10-22-56442.mp3 ...
Title:   When Breaches Go Unreported     Artist: Aaron Titus
Comment: Join Aaron Titus and explore common threats to your identity, and practical advice on how to make your identity more secure. www.aarontitus.net/privacy/
Album:   The Privacy Podcast
Year:    2007                            Genre:  Privacy
MPEG 1.0, Layer: III, Freq: 44100, mode: Stereo, modext: 0, BPF : 418
Channels: 2, copyright: No, original: No, CRC: No, emphasis: 0.
Bitrate: 128 kbit/s Extension value: 0
Frame#   768 [15040], Time: 00:20.06 [06:32.88], RVA:   off, Vol: 100(100)

The podcast begins to play for you. This one is just under seven minutes in length. The ‘-v’ switch provides a verbose output that shows you the Channel information, bitrate, counter and volume settings. To see mpg123′s controls, type ‘h’ during playback. Doing so will show the menu of available controls displayed below.

 -= terminal control keys =-
[s]     or [ ] interrupt/restart playback (i.e. '(un)pause')
[f]     next track
[d]     previous track
[b]     back to beginning of track
[p]     loop around current position (like a damaged audio CD;-)
[.]     forward
[,]     rewind
[:]     fast forward
[;]     fast rewind
[>]     fine forward
[<]     fine rewind
[+]     volume up
[-]     volume down
[r]     RVA switch
[v]     verbose switch
[l]     list current playlist, indicating current track there
[t]     display tag info (again)
[m]     print MPEG header info (again)
[h]     this help
[q]     quit
[c]     or [C] pitch up (small step, big step)
[x]     or [X] pitch down (small step, big step)
[w]     reset pitch to zero

If you have a directory that contains your favorite songs, you can play them all by issuing the mpg123 command with a wildcard setting.

$ mpg123 -vC *.mp3

Remote Access

If you must connect to your MP3 library remotely, don’t despair; you can listen as if you had direct access to the system console. From your local system, ssh to the remote system and issue the mpg123 command to enjoy your audio gold just as you would from the console. This feature comes in handy for those of you who can connect remotely to a home-based Linux system that has all your MP3s, leaving your work computer untouched by any “foreign” files that could score you a reprimand (or worse) from those who dispense your paycheck.

The mpg123 project maintainers provide regular updates though the documentation could use some help. Your best source for information on it is through its man page. You can get a lot of mileage out of mpg123 but beyond the basics, you’re on your own. For those of you so inclined, contact the developers to enhance and expand the documentation for this incredibly simple, fast and flexible utility.

Comments on "Command Line Audio: Simple as mpg123"

Wonderful story, reckoned we could combine a handful of unrelated information, nevertheless truly worth taking a search, whoa did 1 find out about Mid East has got a lot more problerms at the same time.

We like to honor several other web web pages on the web, even if they aren?t linked to us, by linking to them. Beneath are some webpages worth checking out.

Although sites we backlink to below are considerably not associated to ours, we really feel they are essentially really worth a go via, so have a look.

We came across a cool internet site that you simply could enjoy. Take a search when you want.

http://www.healthyingredients.net Health workshops, corporate gym membership and counseling for the management of stress are a few practical methods that are identified by have produced pretty decent results for organizations. The cost of the implementation of such activities is comparatively less than the one incurred by the extended leave of a hardworking distress employee.

http://www.connectfinance.net One particular company is private equity firm, Huntsman Gay Global Capital, who announced on the 30th of September they have made a majority investment in iQor Holdings Inc. The investment through Huntsman Gay in iQor, the second largest accounts receivable services provider on the planet, will allow iQor to increase its share in the accounts receivable (A/R) freelancing market, while introducing Huntsman Gay into the A/R outsourcing market.
http://www.homesmarthome.org While Everest has predicted the finance and accounting outsourcing (FAO) market accurately to date, it will be interesting to see whether the market will still grow as predicted as the year nears its conclusion.
http://www.mypetshop.org When people choose building their home, first thing comes to our mind is cost. Definitely you can save a lot of money if you construct yourself. But that process takes a lot of time, energy through you. If you can afford these two generously then nothing like building your own house! It is just ‘out of the world’ feeling. Building your home enables you to much attached and valued since you have built it brick through brick.
http://www.sportzup.org Home building and home designs go hand in hand. It also demands absolute time and energy from you. You end up being firm on these. Could you afford time and energy? If you can actually, just go for it and make your dream home come the case! Usually you expect at least 5% more on the price of your home when considering your possessions. Because builders usually showcase the competent price to triumph you people. So be very calculative in buying house. Display family homes, mostly will be costlier by 5%than what they have quoted previously.
http://www.travellersbay.net Submission: StrategyThe distribution strategy t2india is focused on the target market each nationallyand internationally. Secondarily, t2india seeks to establish its presence in thecommunity with the media.
http://www.thefinancecompany.net The distribution: StrategyThe distribution strategy t2india is focused on the target market simultaneously nationallyand internationally. Secondarily, t2india seeks to establish its presence in thecommunity on the media.
http://www.businesser.net Distribution: StrategyThe distribution strategy t2india is focused on the target market both nationallyand internationally. Secondarily, t2india seeks to establish its presence in thecommunity through the media.
http://www.remodelinghomeimprovements.net Travel and leisure Perks: Obviously, one of the best things about being a home-based travel agency business owner is that you reap the discounts exclusively on your own travel. The travel perks vary from organization to organization though.

Wonderful story, reckoned we could combine a couple of unrelated information, nonetheless truly really worth taking a look, whoa did one particular find out about Mid East has got extra problerms also.

We prefer to honor lots of other online web sites around the net, even though they aren?t linked to us, by linking to them. Underneath are some webpages worth checking out.

Just beneath, are several totally not connected web-sites to ours, having said that, they’re surely really worth going over.

Please stop by the internet sites we comply with, like this one, as it represents our picks in the web.

“I’m not that much of a internet reader to be honest but your sites really nice, keep it up! I’ll go ahead and bookmark your website to come back later on. All the best”

We like to honor numerous other internet internet sites around the web, even when they aren?t linked to us, by linking to them. Underneath are some webpages really worth checking out.

Every as soon as inside a whilst we pick out blogs that we read. Listed beneath would be the most recent web pages that we decide on.

Just beneath, are a lot of absolutely not associated web pages to ours, however, they are surely really worth going over.

We like to honor many other internet websites on the web, even if they aren?t linked to us, by linking to them. Below are some webpages worth checking out.

Only wanna say that this is invaluable, Thanks for taking your time to write this.

No matter if some one searches for his required thing, thus
he/she desires to be available that in detail, so that thing is maintained
over here.

Always a major fan of linking to bloggers that I appreciate but don?t get quite a bit of link really like from.

The time to study or stop by the content material or web-sites we have linked to beneath.

Just beneath, are a lot of entirely not connected websites to ours, even so, they are surely worth going over.

One of our guests lately suggested the following website.

This app is crazy when it comes to finding fitness singles bit.ly/WeightsNDates

I’ve been exploring for a bit for any high quality articles or weblog posts
on this kind of area . Exploring in Yahoo I finally stumbled upon this
web site. Studying this information So i am glad to convey that I have an incredibly
good uncanny feeling I came upon exactly what I needed. I most unquestionably will make sure to do not disregard this site and give it a glance on a relentless basis.

The information and facts mentioned in the post are some of the very best out there.

The details mentioned within the write-up are a number of the best obtainable.

That could be the finish of this report. Right here you will obtain some internet sites that we consider you will enjoy, just click the hyperlinks.

Please visit the web sites we comply with, such as this a single, because it represents our picks in the web.

We came across a cool internet site that you may well take pleasure in. Take a appear if you want.

Exactly how do you compose such exceptional content
pieces?

Here are a number of the sites we suggest for our visitors.

Every once inside a although we pick blogs that we study. Listed below are the most current websites that we decide on.

Usually posts some pretty interesting stuff like this. If you are new to this site.

Here are a few of the web sites we suggest for our visitors.

Just beneath, are quite a few absolutely not related internet sites to ours, having said that, they’re surely really worth going over.

Always a major fan of linking to bloggers that I appreciate but do not get a good deal of link love from.

One of our visitors recently proposed the following website.

Here are some links to web-sites that we link to simply because we believe they may be worth visiting.

Check beneath, are some totally unrelated web sites to ours, nevertheless, they are most trustworthy sources that we use.

One of our visitors not too long ago recommended the following website.

Wonderful story, reckoned we could combine a few unrelated information, nevertheless seriously really worth taking a appear, whoa did one particular study about Mid East has got additional problerms too.

Check below, are some totally unrelated internet sites to ours, on the other hand, they may be most trustworthy sources that we use.

The information and facts talked about within the write-up are a few of the ideal obtainable.

Very few websites that transpire to be in depth below, from our point of view are undoubtedly properly worth checking out.

That would be the finish of this article. Right here you will find some web sites that we think you will appreciate, just click the hyperlinks.

The data mentioned inside the report are a number of the best readily available.

That may be the end of this article. Right here you?ll uncover some web sites that we think you?ll enjoy, just click the links.

Always a major fan of linking to bloggers that I appreciate but do not get a great deal of link adore from.

Always a large fan of linking to bloggers that I really like but really don’t get a lot of link like from.

Wonderful story, reckoned we could combine some unrelated data, nonetheless definitely worth taking a search, whoa did a single learn about Mid East has got additional problerms at the same time.

Check below, are some absolutely unrelated websites to ours, on the other hand, they’re most trustworthy sources that we use.

That will be the end of this write-up. Right here you will obtain some internet sites that we consider you?ll enjoy, just click the links.

Leave a Reply