Convert MPEG to DVR — Free Online Tool
Convert MPEG files (MPEG-1/MPEG-2 video with MP2 audio) to DVR format using H.264 video encoding and AAC audio — producing a compact, modern recording suitable for DVR playback systems and broadcast capture workflows. This conversion re-encodes the legacy MPEG stream into a format compatible with digital video recorder infrastructure.
to
FFmpeg Command
Copy this command to run the same conversion locally with FFmpeg on your desktop. Download FFmpeg
Drop your MPEG 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
MPEG files typically carry MPEG-1 or MPEG-2 video alongside MP2 audio, codecs designed in the early 1990s for broadcast and optical disc use. During this conversion, the MPEG-2 video stream is fully re-encoded using the libx264 encoder, which applies H.264 compression at CRF 23 — a moderate quality setting that significantly reduces file size compared to the original MPEG bitrate while preserving perceptual quality. The MP2 audio track is simultaneously transcoded to AAC at 128k, replacing the legacy audio codec with a modern, efficient alternative. Because neither the video nor audio codec from the MPEG container is natively carried over to DVR, both streams must be re-encoded rather than remuxed — meaning the entire file is decoded and re-compressed from scratch.
What Each Flag Does
| Flag | What it does |
|---|---|
ffmpeg
|
Invokes the FFmpeg tool, which handles all decoding, re-encoding, and container muxing for this MPEG-to-DVR conversion entirely from the command line. |
-i input.mpeg
|
Specifies the input MPEG file, which contains MPEG-1 or MPEG-2 video and typically MP2 audio in an MPEG program or transport stream container. |
-c:v libx264
|
Re-encodes the MPEG-2 (or MPEG-1) video stream using the libx264 encoder, replacing the legacy MPEG video codec with modern H.264 compression as required by the DVR format. |
-c:a aac
|
Transcodes the MP2 audio track from the MPEG source into AAC, the standard audio codec for DVR files, using FFmpeg's built-in AAC encoder. |
-crf 23
|
Sets the Constant Rate Factor for H.264 encoding to 23, the default quality level that balances file size and visual fidelity for typical MPEG broadcast or recorded content; lower values produce higher quality at larger file sizes. |
-b:a 128k
|
Sets the AAC audio output bitrate to 128 kilobits per second, which provides clean, broadcast-suitable audio quality for speech and general content encoded from the original MP2 audio stream. |
output.dvr
|
Specifies the output filename and tells FFmpeg to write the re-encoded H.264 video and AAC audio into a DVR container file compatible with digital video recorder systems. |
Common Use Cases
- Ingesting archived MPEG broadcast recordings into a DVR-based media management system that requires H.264-encoded content for playback and indexing
- Migrating legacy MPEG surveillance footage captured from older analog encoders into a DVR archive that uses H.264 as its native recording codec
- Preparing MPEG video from DVD rips or broadcast captures for playback on a DVR set-top box that does not support MPEG-2 decoding
- Reducing the storage footprint of large MPEG-2 broadcast recordings before archiving them within a DVR system, taking advantage of H.264's superior compression efficiency
- Converting MPEG content recorded from legacy broadcast equipment so it can be edited and re-ingested into a DVR-based broadcast capture workflow
- Standardizing a mixed library of MPEG and DVR recordings into a single H.264/AAC DVR format for unified playback and management
Frequently Asked Questions
Because this conversion re-encodes MPEG-2 video into H.264, there is always some generation loss since the source is decoded and re-compressed. However, at the default CRF 23 setting, H.264 typically delivers visually comparable quality to MPEG-2 at a much lower bitrate, so perceived quality loss is minimal for most content. If you're working with high-quality MPEG-2 source material and want to minimize quality degradation, lowering the CRF value (e.g., to 18) in the FFmpeg command will produce a closer match to the original at the cost of a larger output file.
MP2 (MPEG-1 Audio Layer II) is the legacy audio codec native to MPEG-1 and MPEG-2 containers, but DVR format uses AAC as its standard audio codec for better compression efficiency and broader device compatibility. Because the DVR container does not retain MP2 streams, the audio must be transcoded. AAC at 128k provides clean audio quality for typical speech and broadcast content, and is widely supported by DVR playback hardware and software.
In most cases the DVR output will be noticeably smaller than the source MPEG file. H.264 is substantially more efficient than MPEG-2 — achieving comparable visual quality at roughly half the bitrate — so even with re-encoding overhead, the output DVR file is typically 30–60% smaller than the original MPEG, depending on content complexity and the original MPEG bitrate. High-motion or high-resolution MPEG-2 sources will see the greatest reduction.
MPEG files have very limited metadata support and do not carry chapter information or multiple audio tracks, so there is nothing in that regard to lose during conversion. Basic stream metadata may or may not be preserved depending on the DVR container implementation, but proprietary DVR formats rarely expose standard metadata fields in the way MKV or MP4 would. If metadata preservation is critical, consider converting to MP4 instead.
Video quality is controlled by the -crf flag in the command. CRF 23 is the default and a reasonable starting point, but you can lower it to improve quality (CRF 18 is considered visually lossless for most content) or raise it to reduce file size further (CRF 28 and above will show visible quality degradation). For example, to use CRF 18, change the command to: ffmpeg -i input.mpeg -c:v libx264 -c:a aac -crf 18 -b:a 128k output.dvr. You can also adjust audio quality by changing -b:a 128k to a higher value like 192k for better fidelity.
Yes. On Linux or macOS you can use a shell loop: for f in *.mpeg; do ffmpeg -i "$f" -c:v libx264 -c:a aac -crf 23 -b:a 128k "${f%.mpeg}.dvr"; done. On Windows Command Prompt, use: for %f in (*.mpeg) do ffmpeg -i "%f" -c:v libx264 -c:a aac -crf 23 -b:a 128k "%~nf.dvr". The browser-based tool processes one file at a time, so the FFmpeg command line approach is recommended for batch workflows.
Technical Notes
MPEG-2 video uses a DCT-based inter-frame compression scheme (I, B, and P frames) similar in concept to H.264 but far less efficient, as it lacks modern tools like CABAC entropy coding, multiple reference frames, and in-loop deblocking filters. When libx264 re-encodes the MPEG-2 stream, it applies all of these improvements, which is why H.264 can match MPEG-2 quality at significantly lower bitrates. The CRF (Constant Rate Factor) quality model used here is different from the fixed-bitrate or VBR modes common in broadcast MPEG-2 encoding, meaning the output file size will vary based on scene complexity rather than being predictable. MPEG files do not support subtitles, chapters, or multiple audio tracks, so no data of that kind is lost in the conversion. The DVR container format is proprietary and varies by manufacturer, meaning the resulting .dvr file is intended for use with compatible DVR systems rather than general-purpose media players. If broad playback compatibility is more important than DVR system integration, MP4 with H.264/AAC would be a more portable alternative.