Convert MKV to DVR — Free Online Tool

Convert MKV files to DVR format using H.264 video and AAC audio — the codec pairing most commonly expected by digital video recorder systems and surveillance playback software. This tool runs entirely in your browser with no file uploads required.

FFmpeg Command

Copy this command to run the same conversion locally with FFmpeg on your desktop. Download FFmpeg

Free — no uploads, no signups. Your files never leave your browser.

Estimated output:

Conversion Complete!

Download

How It Works

MKV is a flexible open container that can hold a wide variety of video codecs including H.265, VP9, and PNG-based video, along with multiple audio tracks, subtitles, and chapter markers. DVR format is a much more constrained proprietary container designed for recorded broadcast and surveillance footage, supporting only H.264 or MJPEG video and AAC or MP3 audio. During this conversion, if the MKV's video stream is already H.264 (libx264), it will still be re-encoded using CRF 23 to ensure compatibility with DVR's codec constraints. The audio is encoded to AAC at 128k bitrate. Critically, any subtitles, chapter markers, and secondary audio tracks present in the MKV will be dropped entirely, as the DVR format does not support these features. The result is a single-track video file optimized for playback on DVR hardware or surveillance management software.

What Each Flag Does

Flag What it does
ffmpeg Invokes the FFmpeg binary — the open-source multimedia processing engine that powers both this browser tool (via WebAssembly) and local desktop conversions.
-i input.mkv Specifies the input Matroska file. FFmpeg will detect all streams inside the MKV container — video, audio, subtitles, chapters, and attachments — and make them available for the conversion.
-c:v libx264 Encodes the video stream using the libx264 H.264 encoder, which is one of only two video codecs supported by the DVR format. This ensures the output is playable by DVR hardware and software regardless of what video codec the source MKV used.
-c:a aac Encodes the audio stream to AAC, the default and most compatible audio codec for DVR containers. Any source audio format in the MKV — including FLAC, Opus, Vorbis, or MP3 — will be transcoded to AAC.
-crf 23 Sets the Constant Rate Factor for H.264 encoding to 23, FFmpeg's default for libx264. This is a quality-based encoding mode where lower values produce higher quality and larger files — CRF 23 is a standard mid-quality setting appropriate for surveillance and broadcast capture use cases.
-b:a 128k Sets the AAC audio bitrate to 128 kilobits per second, which is the standard baseline for acceptable stereo audio quality in DVR recordings. For source MKV files with high-fidelity or lossless audio, increasing this to 192k or 256k will better preserve audio quality in the DVR output.
output.dvr Defines the output filename with the .dvr extension, signaling to FFmpeg to write the encoded video and audio streams into the DVR container format. Subtitles, chapters, and secondary audio tracks from the MKV are not mapped to this output.

Common Use Cases

  • Importing an MKV recording of broadcast television into a DVR management system that only accepts its native proprietary format for archiving and indexing
  • Preparing MKV security camera footage exported from a network video recorder (NVR) for re-import into a DVR-based playback and review platform
  • Converting MKV files from a screen capture or video archive into a format compatible with legacy DVR playback hardware that cannot read open container formats
  • Stripping multilingual audio tracks and embedded subtitles from an MKV to produce a clean, single-stream DVR file required by certain broadcast compliance workflows
  • Batch-preparing MKV recordings from a media server so they can be ingested by a surveillance or broadcast capture system that enforces DVR format requirements
  • Generating a DVR-compatible file from an MKV source for forensic or evidentiary purposes where the receiving system mandates a specific DVR container structure

Frequently Asked Questions

No. The DVR format does not support subtitles, chapter markers, or multiple audio tracks, so all of these will be silently dropped during conversion. Only the primary video stream (re-encoded to H.264) and the primary audio stream (encoded to AAC) will be included in the output file. If preserving subtitles or chapters is important, you should keep the original MKV as your archival copy.
Because DVR only supports H.264 (libx264) and MJPEG for video, any MKV with an H.265, VP9, libvpx, or other video codec will be fully re-encoded to H.264 during this conversion. This is a computationally intensive process and will take longer than a simple remux. The output quality is controlled by the CRF 23 setting — you can lower this value for better quality at the cost of a larger file.
If your MKV source uses H.265 or VP9, the DVR output will typically be significantly larger because H.264 at the same perceptual quality requires more bitrate than those newer codecs. If your MKV was already H.264, the re-encoded DVR file should be roughly comparable in size to the original at CRF 23. DVR does not support lossless encoding, so there is always some compression applied regardless of source.
Yes. The FFmpeg command uses CRF 23 by default, which is a mid-range quality setting for H.264. Lower CRF values produce higher quality at larger file sizes — CRF 18 is generally considered visually near-lossless for H.264, and CRF 0 is mathematically lossless. You can modify the command shown on this page and run it locally: replace '-crf 23' with '-crf 18' (or lower) to get a higher-fidelity DVR output from a high-quality MKV source.
The single-file command displayed on this page can be adapted for batch processing in a shell script. On Linux or macOS, you can run: for f in *.mkv; do ffmpeg -i "$f" -c:v libx264 -c:a aac -crf 23 -b:a 128k "${f%.mkv}.dvr"; done. On Windows Command Prompt, use: for %f in (*.mkv) do ffmpeg -i "%f" -c:v libx264 -c:a aac -crf 23 -b:a 128k "%~nf.dvr". This browser tool processes one file at a time and is best suited for files under 1GB.
If your MKV already contains AAC audio, it will still be decoded and re-encoded to AAC at 128k for DVR output rather than stream-copied, because the DVR container requirements enforce re-encoding during the format conversion process. This introduces a generation of lossy compression. If your source MKV has high-bitrate AAC or lossless FLAC audio, consider raising the output audio bitrate to 192k or 256k in the FFmpeg command by changing '-b:a 128k' to '-b:a 192k' to minimize perceptible quality loss.

Technical Notes

DVR is a proprietary container format with strict codec constraints compared to MKV's near-universal codec compatibility. The conversion always produces a lossy output — DVR has no lossless encoding pathway. The video stream is encoded using H.264 with FFmpeg's libx264 encoder at CRF 23, which delivers a good balance of quality and file size for typical DVR use cases such as surveillance review or broadcast replay. MKV's rich metadata layer — including embedded fonts for subtitle rendering, stream tags, attachment streams, and edition entries for chapters — is entirely discarded in the DVR output, as the DVR container has no equivalent metadata structures. If your MKV contains multiple audio tracks (e.g., a director's commentary track or a secondary language track), only the first audio stream will be encoded into the DVR file. MJPEG is available as an alternative video codec for DVR if your target system requires frame-accurate I-frame-only video (common in some surveillance replay workflows), but this requires running the FFmpeg command locally with '-c:v mjpeg' substituted in. The browser-based tool defaults to the libx264 + AAC combination as the most broadly compatible DVR configuration.

Related Tools