loading...
Cover image for Easily remove or extract the audio from a video with FFMPEG

Easily remove or extract the audio from a video with FFMPEG

dak425 profile image Donald Feury Updated on ・1 min read

It turns out removing the audio from a video is very easy with FFMPEG!

To remove the audio from a video:

ffmpeg -i video.mp4 -c:v copy -an out.mp4

The -an option will completely remove the audio from a video, and since we're just copying the video codec as is, this most likely will only takes seconds.

To extract the audio from a video:

ffmpeg -i video.mp4 -vn audio.wav

As you might have guessed, the -vn option will remove the video stream from the output, leaving only the audio. In this case, I'm re-encoding the audio as WAV, as that is a very good encoding to work with in terms of further processing.

Discussion

pic
Editor guide