0

I want to merge audio and video using ffmpeg. I use following command but it erases my audio from video. I want overlap of audio from both video and audio.

ffmpeg-0  -i output312.mp4 -i abc.mp3 -c:v copy -c:a aac -strict experimental -map 0:v:0 -map 1:a:0    -y output2.mp4
1

1 Answer 1

1

Try using the amerge filter:

-filter_complex "[0:a][1:a]amerge=inputs=2[aout]" -map "[aout]" -ac 2

https://trac.ffmpeg.org/wiki/AudioChannelManipulation#a2stereostereo

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.