Merge audio and video
Posted: | Updated: | Tags: ffmpeg tilOnly 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
| -i | Specify input filename |
| -c:v | Encode all video streams |
| -c:a | Encode all audio streams |
| -strict | Specify how strictly to follow the standards |
| -map | Designate one or more input streams as the srouce for the output file |