Extract the MP3 Audio Portion of a Video
Realizing the promise of Apache® Hadoop® requires the effective deployment of compute, memory, storage and networking to achieve optimal results. With its flexibility and multitude of options, it is easy to over or under provision the server infrastructure, resulting in poor performance and high TCO. Join us for an in depth, technical discussion with industry experts from leading Hadoop and server companies who will provide insights into the key considerations for designing and deploying an optimal Hadoop cluster.
Sponsored by AMD
Built-in forensics, incident response, and security with Red Hat Enterprise Linux 6
Every security policy provides guidance and requirements for ensuring adequate protection of information and data, as well as high-level technical and administrative security requirements for a system in a given environment. Traditionally, providing security for a system focuses on the confidentiality of the information on it. However, protecting the data integrity and system and data availability is just as important. For example, when processing United States intelligence information, there are three attributes that require protection: confidentiality, integrity, and availability.
Learn more about catching the bad guy in this free white paper.
Sponsored by DLT Solutions
| Designing Electronics with Linux | May 22, 2013 |
| Dynamic DNS—an Object Lesson in Problem Solving | May 21, 2013 |
| Using Salt Stack and Vagrant for Drupal Development | May 20, 2013 |
| Making Linux and Android Get Along (It's Not as Hard as It Sounds) | May 16, 2013 |
| Drupal Is a Framework: Why Everyone Needs to Understand This | May 15, 2013 |
| Home, My Backup Data Center | May 13, 2013 |
- seo services in india
1 hour 35 min ago - For KDE install kio-mtp
1 hour 36 min ago - Evernote is much more...
3 hours 36 min ago - Reply to comment | Linux Journal
12 hours 21 min ago - Dynamic DNS
12 hours 55 min ago - Reply to comment | Linux Journal
13 hours 54 min ago - Reply to comment | Linux Journal
14 hours 44 min ago - Not free anymore
18 hours 46 min ago - Great
22 hours 33 min ago - Reply to comment | Linux Journal
22 hours 41 min ago
Enter to Win an Adafruit Pi Cobbler Breakout Kit for Raspberry Pi

It's Raspberry Pi month at Linux Journal. Each week in May, Adafruit will be giving away a Pi-related prize to a lucky, randomly drawn LJ reader. Winners will be announced weekly.
Fill out the fields below to enter to win this week's prize-- a Pi Cobbler Breakout Kit for Raspberry Pi.
Congratulations to our winners so far:
- 5-8-13, Pi Starter Pack: Jack Davis
- 5-15-13, Pi Model B 512MB RAM: Patrick Dunn
- 5-21-13, Prototyping Pi Plate Kit: Philip Kirby
- Next winner announced on 5-27-13!
Featured Jobs
| Linux Systems Administrator | Houston and Austin, Texas | Host Gator |
| Senior Perl Developer | Austin, Texas | Host Gator |
| Technical Support Rep | Houston and Austin, Texas | Host Gator |
| UX Designer | Austin, Texas | Host Gator |
| Web & UI Developer (JavaScript & j Query) | Austin, Texas | Host Gator |
Free Webinar: Hadoop
How to Build an Optimal Hadoop Cluster to Store and Maintain Unlimited Amounts of Data Using Microservers
Realizing the promise of Apache® Hadoop® requires the effective deployment of compute, memory, storage and networking to achieve optimal results. With its flexibility and multitude of options, it is easy to over or under provision the server infrastructure, resulting in poor performance and high TCO. Join us for an in depth, technical discussion with industry experts from leading Hadoop and server companies who will provide insights into the key considerations for designing and deploying an optimal Hadoop cluster.
Some of key questions to be discussed are:
- What is the “typical” Hadoop cluster and what should be installed on the different machine types?
- Why should you consider the typical workload patterns when making your hardware decisions?
- Are all microservers created equal for Hadoop deployments?
- How do I plan for expansion if I require more compute, memory, storage or networking?



Comments
Thank you so much.. I was
Thank you so much.. I was looking for a tool in linux to do this stuff. I am pretty happy to be able to do it in command line :)
Worked for me
Very useful, much appreciated. MP4 to MP3, sweet as a nut.
Idiots are fun to watch...
Are you guys morons? He didn't say "extract", he said "separate", as if to bit-bucket the video and save the audio...in other words, transcoding...which is what you know-it-alls accuse him of doing...
That's like saying "You're not drinking, you're imbibing!".
Get a thesaurus, sheesh.
Read the title: "Extract the
Read the title: "Extract the MP3 Audio Portion of a Video" moron ... sheesh.
In any case it is very stupid to decode something encoded with lossy codec and encode it again with the same lossy codec, also compare how much CPU cycles takes unnecessary transcoding
vs. simple extracting on for example 2 hour video.
You showed us transcoding,
You showed us transcoding, not extracting. Proper way to extract audio (without transcoding and therefore without further loss of quality) is:
ffmpeg -i bd.flv -vn -acodec copy bd.mp3
Yes but be prepared
That probably is a better solution except when it doesn't work. I have some videos which produce unplayable mp3 files when using "-acodec copy" whereas if I don't specify the argument they will play.
Mitch Frazier is an Associate Editor for Linux Journal.
Incompatible container
That happens because ffmpeg blindly tries to copy audio stream into incompatible container, here's an example of copying vorbis audio stream from ogg container into mp3 container (and mp3 cannot hold vorbis):
ffmpeg -i in.ogg -acodec copy out.mp3
ffmpeg will do this without complaints, but mplayer cannot play this:
mplayer out.mp3
gives error. On the other hand matroska container is able to hold vorbis audio:
ffmpeg -i in.ogg -acodec copy out.mkv
and mplayer plays this with no error. So, "-acodec copy" should be used only if destination container can hold source codec.