convert mkv to mp4 for hls ffmpeg code example
Example 1: ffmpeg mkv to mp4
ffmpeg -i "file.mkv" -codec copy -strict -2 "file.mp4"
Example 2: ffmpeg convert mkv to mp4
ffmpeg -i input.mkv -codec copy output.mp4
ffmpeg -i "file.mkv" -codec copy -strict -2 "file.mp4"
ffmpeg -i input.mkv -codec copy output.mp4