How to add a new audio (not mixing) into a video using ffmpeg?

asked13 years ago
last updated9 years ago
viewed231.4k times
Up Vote238Down Vote

I used a command like:

ffmpeg -i video.avi -i audio.mp3 -vcodec codec -acodec codec output_video.avi -newaudio

in latest version for adding new audio track to video (not mix).

But I updated the ffmpeg to the newest version () and now in this version the parameter -newaudio doesn't work.

Tell me please how I can add new audio to my video (not mix) using ffmpeg.