Convert Video to mp3
Let's all be honest for a moment: we've all ... not paid for ... music. Whether it was via a file sharing app like Kazaa or Napster, or it was downloading and seeding on bittorrent, or maybe even downloading a music video and ripping its audio, we've all pulled some "gangsta shit" to get a track or two. You should only feel ashamed if it was Nickleback. And hey, there are times when you legitimately want to pull audio from a video...though I can't think of any.
If you do want to pull the audio of a video file, for whatever reason, you can do so easily with ffmpeg. Let's use ffmpeg to take a downloaded YouTube video and rip its audio into and MP3:
ffmpeg -i music-video.webm -vn -ar 44100 -ac 2 -ab 192 -f mp3 music.mp3
Using the command above, we take the source video and output its audio to mp3 with a 192kb/s bitrate.
There are in-browser tools and websites you can use to rip audio from YouTube or other video files, but ffmpeg is quick, simple, and hassle free. You can also replace "mp3" with other audio formats if you so choose!
![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...
![Conquering Impostor Syndrome]()
Two years ago I documented my struggles with Imposter Syndrome and the response was immense. I received messages of support and commiseration from new web developers, veteran engineers, and even persons of all experience levels in other professions. I've even caught myself reading the post...
![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...
![Face Detection with jQuery]()
I've always been intrigued by recognition software because I cannot imagine the logic that goes into all of the algorithms. Whether it's voice, face, or other types of detection, people look and sound so different, pictures are shot differently, and from different angles, I...
In case anybody is not into command line, there is a UI for this conversion,
https://addons.mozilla.org/en-US/firefox/addon/media-converter-and-muxer/
Thanks for saving my time!
"ffmpeg -i music-video.webm -vn -ar 44100 -ac 2 -ab 192 -f mp3 music.mp3"above command helped to convert video to audio (Ubuntu machine).