Convert videos with ffmpeg
I sometimes download and watch HDR videos on my Mac, and video player support for it is poor right now. Thus, I need to use QuickTime, which cannot open .mkv files - the most common file extension for HDR videos.
Luckily, ffmpeg
can resolve this by converting .mkv files to .mp4 without modifying the video/audio contents. The following command makes the conversion and also includes subtitles from the original file:
ffmpeg -i input.mkv -map 0 -c copy -vtag hvc1 -c:s mov_text -metadata:s:s:0 language=eng -metadata:s:s:1 language=ipk output.mp4