Extract audio from a video file in Ubuntu

mplayer -dumpaudio GummyBearSong.avi -dumpfile gummybear.mp3

Where:

GummyBearSong.avi” is the source video, in the example above it was 30 MB
gummybear.mp3” is the output audio file (in mp3 format), was about 3 MB in size

Another method that worked flawlessly with an MP4 file is using ffmpeg:

ffmpeg -i SOURCE.mp4 -vn -acodec libmp3lame OUTPUT.mp3
Unknown's avatar

About Ahmed Tawfik

Cybersecurity Professional, Systems Engineer, OSS & Linux Geek
This entry was posted in Linux and tagged , , . Bookmark the permalink.

1 Response to Extract audio from a video file in Ubuntu

  1. great, worth trying.

    Like

Leave a comment