Skip to content

Instantly share code, notes, and snippets.

@aaccioly
Created June 9, 2024 23:31
Show Gist options
  • Save aaccioly/6a3b9f2f4adcc55af36476d0fb54d82f to your computer and use it in GitHub Desktop.
Save aaccioly/6a3b9f2f4adcc55af36476d0fb54d82f to your computer and use it in GitHub Desktop.
# FFmpeg: Convert MKV to MP4 keeping DoVi and subtitles

FFmpeg: Convert MKV to MP4 keeping DoVi and subtitles

The following FFmpeg command will convert a Dolby Vision (DoVi) enabled Matroska (MKV) file to MPEG-4 Part 14 (MP4) while preserving all subtitles:

ffmpeg -i file.mkv -map 0 -c:v copy -c:a copy -c:s mov_text -strict unofficial file.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment