Files and folders

Extract, remove or replace audio with ffmpeg

Save a video's sound as an MP3, mute a video or swap in a new soundtrack.

Fill these in once
  1. Pull the audio out as an MP3
    Terminal
    ffmpeg -i video.mp4 -vn -q:a 2 audio.mp3
  2. Remove the audio (silent video)
    Terminal
    ffmpeg -i video.mp4 -an -c:v copy silent.mp4
  3. Replace the audio with another track
    Terminal
    ffmpeg -i video.mp4 -i music.mp3 -map 0:v -map 1:a -c:v copy -shortest output.mp4
  4. Convert any audio file to MP3
    Terminal
    ffmpeg -i music.mp3 output.mp3
  1. Pull the audio out as an MP3
    Terminal · Ubuntu / Debian
    ffmpeg -i video.mp4 -vn -q:a 2 audio.mp3
  2. Remove the audio (silent video)
    Terminal · Ubuntu / Debian
    ffmpeg -i video.mp4 -an -c:v copy silent.mp4
  3. Replace the audio with another track
    Terminal · Ubuntu / Debian
    ffmpeg -i video.mp4 -i music.mp3 -map 0:v -map 1:a -c:v copy -shortest output.mp4
  4. Convert any audio file to MP3
    Terminal · Ubuntu / Debian
    ffmpeg -i music.mp3 output.mp3
  1. Pull the audio out as an MP3
    PowerShell
    ffmpeg -i video.mp4 -vn -q:a 2 audio.mp3
  2. Remove the audio (silent video)
    PowerShell
    ffmpeg -i video.mp4 -an -c:v copy silent.mp4
  3. Replace the audio with another track
    PowerShell
    ffmpeg -i video.mp4 -i music.mp3 -map 0:v -map 1:a -c:v copy -shortest output.mp4
  4. Convert any audio file to MP3
    PowerShell
    ffmpeg -i music.mp3 output.mp3