Convert DVR to MPG — Free Online Tool
Convert DVR surveillance or broadcast recordings to MPG format using MPEG-2 video and MP2 audio — codecs natively compatible with DVD authoring, broadcast workflows, and legacy media players. This tool runs entirely in your browser with no file uploads required.
to
FFmpeg Command
Copy this command to run the same conversion locally with FFmpeg on your desktop. Download FFmpeg
Drop your DVR file here
or click to browse
Free — no uploads, no signups. Your files never leave your browser.
Settings
Note: Browser-based encoding uses approximate quality targets. For precise CRF compression, copy the FFmpeg command above and run it on your desktop.
Estimated output:
Conversion Complete!
DownloadHow It Works
DVR files typically store H.264 (libx264) video and AAC audio in a proprietary container used by digital video recorders. Converting to MPG requires full re-encoding of both streams: the H.264 video is decoded and re-encoded as MPEG-2 video, and the AAC audio is transcoded to MP2 — the audio format standardized alongside MPEG-2 video for broadcast and DVD use. This is not a simple remux; both the video and audio streams are rebuilt from scratch, which means the output is compatible with a much wider range of legacy hardware players, DVD authoring software, and broadcast ingest systems that expect strict MPEG-2 program stream compliance.
What Each Flag Does
| Flag | What it does |
|---|---|
ffmpeg
|
Invokes the FFmpeg binary — the open-source multimedia processing engine that handles decoding the proprietary DVR container, re-encoding both video and audio streams, and writing the MPEG-2 program stream output. |
-i input.dvr
|
Specifies the input DVR file. FFmpeg probes this proprietary container to detect the enclosed streams — typically H.264 video and AAC audio — before beginning the decode and re-encode pipeline. |
-c:v mpeg2video
|
Re-encodes the video stream using the MPEG-2 video codec, replacing the H.264 video from the DVR source. MPEG-2 is required for MPG container compliance and compatibility with DVD authoring tools and legacy broadcast systems. |
-c:a mp2
|
Transcodes the audio from AAC (as used in the DVR file) to MP2 (MPEG-1 Audio Layer II), the standard audio codec paired with MPEG-2 video in broadcast and DVD applications. MP2 is natively supported by all MPEG-2-compliant players and authoring tools. |
-q:v 2
|
Sets the MPEG-2 video quality using the variable quantizer scale, where 1 is the highest quality and 31 is the lowest. A value of 2 targets near-maximum quality, prioritizing visual fidelity over file size — appropriate when converting surveillance or broadcast footage where detail matters. |
-b:a 192k
|
Sets the MP2 audio output bitrate to 192 kilobits per second, matching the standard audio bitrate used in MPEG-2 broadcast and DVD workflows. This provides clean audio reproduction from the original AAC stream without excessive file overhead. |
output.mpg
|
Specifies the output filename and triggers FFmpeg to write an MPEG-2 Program Stream (.mpg) container. The .mpg extension signals FFmpeg to use the correct muxer for wrapping the mpeg2video and mp2 streams in a broadcast-compatible MPEG-2 format. |
Common Use Cases
- Importing DVR surveillance footage into DVD authoring software (e.g., DVD Flick or Encore) that requires MPEG-2/MP2 program stream input
- Archiving captured broadcast television recordings from a DVR into the MPG format expected by legacy broadcast editing systems
- Playing back DVR security camera footage on older standalone DVD players or set-top boxes that cannot decode H.264
- Submitting DVR-captured clips to a television station or post-production facility whose ingest pipeline mandates MPEG-2 deliverables
- Converting DVR recordings for use with older video editing software (e.g., early versions of Vegas, Premiere, or Avid) that handles MPEG-2/MPG natively but lacks H.264 support
- Standardizing a batch of heterogeneous DVR recordings into a single MPG format for long-term archival storage on MPEG-2-compatible media servers
Frequently Asked Questions
Yes, some quality loss is unavoidable because this conversion involves a generation loss: the H.264 video from the DVR is fully decoded and re-encoded as MPEG-2, and the AAC audio is transcoded to MP2. MPEG-2 is an older, less efficient codec than H.264, so at equivalent bitrates it produces slightly more compression artifacts. At the default quality setting (-q:v 2), the output will be near the high end of MPEG-2 quality and the difference should be minimal for most surveillance or broadcast content.
MPEG-2 is significantly less compression-efficient than H.264, which is the codec typically used inside DVR files. To maintain comparable visual quality, the MPEG-2 encoder needs a higher bitrate, resulting in a larger file. At the default -q:v 2 setting (near maximum quality), the MPG output can easily be 2–5 times the size of the original DVR recording.
MPG files encoded with MPEG-2 video and MP2 audio are broadly compatible with DVD players and standard authoring tools, but full DVD compliance also requires specific resolution and frame rate constraints (e.g., 720x480 at 29.97fps for NTSC or 720x576 at 25fps for PAL). This tool converts the codecs and container correctly, but if your DVR footage has a non-standard resolution — common with surveillance cameras — you may need to add scaling parameters to the FFmpeg command for strict DVD compliance.
DVR proprietary containers often embed recording timestamps, camera identifiers, or GPS coordinates in format-specific metadata fields that have no equivalent in the MPEG-2 program stream standard. During conversion to MPG, this metadata is not carried over. If preserving recording timestamps is important, note them separately before converting, as MPG has very limited metadata support compared to modern containers like MKV or MP4.
The -q:v flag controls MPEG-2 video quality on a scale from 1 (best quality, largest file) to 31 (lowest quality, smallest file). The default value of 2 produces near-maximum quality. To reduce file size for storage-constrained archival of surveillance footage, try increasing this value — for example, replacing '-q:v 2' with '-q:v 5' or '-q:v 8' will meaningfully reduce file size at the cost of some detail in motion-heavy scenes. Audio bitrate can be reduced by changing '-b:a 192k' to '-b:a 128k'.
Yes. On Linux or macOS you can use a shell loop: 'for f in *.dvr; do ffmpeg -i "$f" -c:v mpeg2video -c:a mp2 -q:v 2 -b:a 192k "${f%.dvr}.mpg"; done'. On Windows Command Prompt, use: 'for %f in (*.dvr) do ffmpeg -i "%f" -c:v mpeg2video -c:a mp2 -q:v 2 -b:a 192k "%~nf.mpg"'. This is especially useful for processing large batches of surveillance recordings that exceed the browser tool's 1GB per-file limit.
Technical Notes
DVR is a proprietary container format with no standardized specification, meaning codec wrapping and stream layout can vary between DVR hardware manufacturers — most commonly storing H.264 video and AAC audio. MPG, by contrast, is a tightly standardized MPEG-2 Program Stream or Transport Stream container. The conversion uses mpeg2video at -q:v 2, which targets near-peak MPEG-2 quality, and mp2 audio at 192k, matching the standard audio bitrate used in broadcast MPEG-2 workflows. One important limitation: MPG does not support multiple audio tracks, subtitles, or chapters, but DVR recordings rarely contain these anyway. If the DVR source uses MJPEG video instead of H.264, the re-encoding path is the same — MJPEG is still decoded and re-encoded to MPEG-2 — but the quality difference will be more pronounced since MJPEG already represents a compressed intraframe format. There is no lossless path for this conversion; both the input and output formats are inherently lossy, and transcoding always introduces at least one additional generation of compression loss.