Adding audio into video
Tip picked up from this Ask Ubuntu post. Note that the text below is not verbatim:
ffmpeg -i video.mp4 -i audio.aac -map 0:0 -map 1:0 -vcodec copy \ -acodec copy newvideo.mp4 ffmpeg -i video.mp4 -i audio.aac -map 0:1 -map 1:0 -vcodec copy \ -acodec copy newvideo.mp4 Explanation: -i video.mp4 -> first media file -i audio.aac -> second media file -map 0:1 -> use the second stream from the first mediafile -map 1:0 -> use the first stream from the second mediafile -vcodec copy -> leave the video as is -acodec copy -> leave the audio as is newvideo -> resulting videofile Note: Use 'mediainfo' to confirm that the audiofile and videofile have the same duration. Not every player is accepting tracks with huge duration differences.