FFmpeg · Audio

Replace the audio track

Keep the video and use audio from another file.

ffmpeg -i video.mp4 -i audio.mp3 -map 0:v -map 1:a -c:v copy -shortest output.mp4

Official FFmpeg documentation

More audio commands

All audio commands · FFmpeg cheatsheet

Was this page helpful?