Merge audio and video

Posted: | Updated: | Tags: ffmpeg til

Only applies if video has an existing audio track.

ffmpeg -i video.mkv -i audio.mp3 -c:v copy -c:a aac -strict experimental -map 0:v:0 -map 1:a:0 ouput.mkv
-iSpecify input filename
-c:vEncode all video streams
-c:aEncode all audio streams
-strictSpecify how strictly to follow the standards
-mapDesignate one or more input streams as the srouce for the output file

Related ramblings