Loading
Home ›
Extract the MP3 Audio Portion of a Video
Trending Topics
| You Need A Budget | Feb 10, 2012 |
| The Linux powered LAN Gaming House | Feb 08, 2012 |
| Creating a vDSO: the Colonel's Other Chicken | Feb 06, 2012 |
| Your CMS Is Not Your Web Site | Feb 01, 2012 |
| Casper, the Friendly (and Persistent) Ghost | Jan 31, 2012 |
| Razor-qt 0.4 - Qt based Desktop Environment | Jan 30, 2012 |
- Fun with ethtool
- Parallel Programming with NVIDIA CUDA
- Readers' Choice Awards 2011
- 100% disappointed with the decision to go all digital.
- Linux-Based X Terminals with XDMCP
- Validate an E-Mail Address with PHP, the Right Way
- You Need A Budget
- The Linux powered LAN Gaming House
- Why Python?
- Python for Android
- Employment Posters
3 hours 6 min ago - Sure the best distro is
4 hours 26 min ago - BeOS was the best
7 hours 9 min ago - I use Wireshark on a daily
11 hours 40 min ago - buena información
16 hours 47 min ago - One important "bucket" that I didn't note (désolé si qqun deja d
17 hours 47 min ago - Gnome3 is such a POS. No one
1 day 3 hours ago - Gnome 3 is the biggest POS
1 day 3 hours ago - I didn't knew this thing by
1 day 9 hours ago - Author's reply
1 day 12 hours ago





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.