I need to extract an MP3 audio track from an MP4 video with ffmpeg. I can do this for .flv -> mp3, but I don't know the command line parameters for mp4->mp3. For example, flv -> mp3:
ffmpeg -i video.flv -acodec copy audio.mp3
What parameters should I use for mp4 -> mp3?
Best Answer
The basic command is:
or
Check this URL: MP4 Video to MP3 File Using ffmpeg (Ubuntu 9.10 Karmic Koala)
Note: Ubuntu does not supply FFmpeg, but the fork named Libav. The syntax is the same – just use
avconv
instead offfmpeg
for the above examples.