Separate and join again the audio and video from a file using ffmpeg


To remove audio from the video file:

ffmpeg -i video.mp4 -c copy -an video.out.mp4


To add audio to the video file again:

ffmpeg -i video.mp4 -i audio.wav -c:v copy -c:a aac output.mp4