Combine an audio and video track in ffmpeg

ffmpeg -i $VIDEO_FILE -i $AUDIO_FILE -c:v copy -c:a aac output.mp4

Combine without re-encoding (if using container output)

ffmpeg -i $VIDEO_FILE -i $AUDIO_FILE -c copy output.mkv

Combine and replace existing audio in video file

ffmpeg -i $VIDEO_FILE -i $AUDIO_FILE -c:v copy -c:a aac -map 0:v:0 -map 1:a:0 output.mp4

Use your own input

If you have values you'd like to use instead of the provided variables, type or paste your data into the variable inputs below. If Javascript is enabled, your text will automatically be added to the command and you can click to copy.