Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Upd. to mix the original audio from a video file with a separate audio track, and of a shorter length than the video, you will firstly have to repeat the overlay audio file, and secondly, use the amix audio filter :
ffmpeg \
-i video.mp4 \
-filter_complex "amovie=audio.mp3:loop=0,asetpts=N/SR/TB[over]; [0][over]amix=duration=shortest" \
-c:v copy \
result.mp4
ffmpeg \
-i video.mp4 \
-i newAudio.mp3 \
-c:v copy \
-c:a aac \
-map 0:v:0 \
-map 1:a:0 \
result.mp4
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question