Convert WAV to MP3 or MP3 to WAV
Boy I would have loved this post a decade ago when I was ripping CDs from my local library. The memory is actually quite hilarious: I would request 100 CDs at a time from the local library system, pick up however had been delivered at 10 a.m. that morning, and return them at 5 p.m. that day. I had a giggle with the librarian in those days but the real giggle was the fact that the WAV files were bloating up my hard drive.
The following simple command would convert those WAV files to MP3s:
ffmpeg -i song.wav song.mp3
Of course converting from MP3 to WAV would simply be swapping the extensions in the command above.
ffmpeg is a marvel of a utility. Video conversion, audio conversion, and probably the key to world peace. Thank you ffmpeg!
![How to Create a Twitter Card]()
One of my favorite social APIs was the Open Graph API adopted by Facebook. Adding just a few META tags to each page allowed links to my article to be styled and presented the way I wanted them to, giving me a bit of control...
![Regular Expressions for the Rest of Us]()
Sooner or later you'll run across a regular expression. With their cryptic syntax, confusing documentation and massive learning curve, most developers settle for copying and pasting them from StackOverflow and hoping they work. But what if you could decode regular expressions and harness their power? In...
![Use Elements as Background Images with -moz-element]()
We all know that each browser vendor takes the liberty of implementing their own CSS and JavaScript features, and I'm thankful for that. Mozilla and WebKit have come out with some interesting proprietary CSS properties, and since we all know that cementing standards...
![dat.gui: Exceptional JavaScript Interface Controller]()
We all love trusted JavaScript frameworks like MooTools, jQuery, and Dojo, but there's a big push toward using focused micro-frameworks for smaller purposes. Of course, there are positives and negatives to using them. Positives include smaller JS footprint (especially good for mobile) and less cruft, negatives...
If you’re on a mac and you want to do it on your machine, after installing X-Code,type in
brew install ffmpeg
If you also want to edit your audio first, Audacity has been a trusty companion for years now. Looks like arse, works like a charm. http://audacity.sourceforge.net/
Back in the days, the best mp3 converter was LAME.
I don’t know if something better came out in the meanwhile, but it’s a highly customizable multiplatform tool.
It looks like
ffmpeg
can use thelibmp3lame
audio codec, I guess it would be nice to know how to use it.yes, LAME pretty much was the bee’s knees.
Great tool! A gulp package is also available: https://github.com/cab/gulp-ffmpeg
I have usef ffmpeg for converting images to video. very useful for that.
No joke.. 5 years ago, it would have been such a savior.