Convert MKV (DVD rip) with VobSub to MP4 with burned-in bitmap subtitles

DVD rips often include VobSub (dvdsub) subtitles, image-based (bitmap) tracks1 that aren't supported in MP4 containers. Rather than extracting and OCRing (which can be slow and error-prone), burn them directly into the MP4 with ffmpeg:

  1. Identify the subtitle stream:

    Use ffprobe to confirm that the MKV contains VobSub (dvd_subtitle) subtitles:

    ffprobe -v error -select_streams s -show_entries stream=index,codec_name:stream_tags=language -of csv=p=0 foo.mkv
    3,dvd_subtitle,eng

    Stream 3 is dvd_subtitle (VobSub), in English.

  2. Convert & burn-in with ffmpeg:

    This command burns in the bitmap subtitles, retains all audio, preserves chapters, and encodes the video using Apple's hardware-accelerated hevc_videotoolbox:

    ffmpeg -i foo.mkv \
      -filter_complex "[0:v][0:s:0]overlay,format=nv12[v]" \
      -map "[v]" \
      -map 0:a \
      -map_chapters 0 \
      -c:v hevc_videotoolbox -b:v 6000k -tag:v hvc1 \
      -c:a copy \
      -movflags +faststart \
      foo.mp4

Flag exegesis

Footnote

  1. Blu-ray subtitles use PGS, an image-based format like VobSub that's also best burned in for MP4 compatibility and to skip OCR. 

❧ 2025-08-06