I have two files - video.mp4
and audio.mp3
, and I want to combine them. The final video must have duration of the video.mp4
.
I don't know which of these two files is longer so I cannot use the -shortest
option.
This is what I have so far:
ffmpeg -y -i video.mp4 -i audio.mp3 -map 0:v -map 1:a -c copy final.mp4