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