ffmpeg recipes

replace audio in a video

ffmpeg -i v.mp4 -i a.wav -c:v copy -map 0:v:0 -map 1:a:0 new.mp4

(source: http://superuser.com/questions/1137612/ddg#1137613)