Convert DVR to MPEG — Free Online Tool

Convert DVR recordings to MPEG format using MPEG-2 video and MP2 audio codecs — making surveillance and broadcast captures compatible with legacy DVD players, broadcast systems, and media archives that expect standard MPEG-1/2 streams. The conversion re-encodes from H.264 or MJPEG source video into MPEG-2, the same codec used in DVD-Video and digital broadcast standards.

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

DVR files typically store video as H.264 (libx264) or MJPEG with AAC audio in a proprietary container tied to specific recorder hardware. Converting to MPEG requires full re-encoding: the video stream is decoded from H.264/MJPEG and re-encoded as MPEG-2 video using the mpeg2video encoder, while the AAC audio track is transcoded to MP2 (MPEG-1 Audio Layer II), the audio standard used in broadcast television and DVD. This is a lossy-to-lossy transcode, meaning each encoding stage introduces some additional generation loss. The output is a standard .mpeg container with an MPEG program stream, which is broadly readable by legacy hardware decoders, DVD authoring tools, and broadcast ingest systems.

What Each Flag Does

Flag What it does
ffmpeg Invokes the FFmpeg tool, the open-source multimedia processing engine that handles demuxing the proprietary DVR container, decoding the source video and audio streams, and re-encoding them into MPEG-2 and MP2.
-i input.dvr Specifies the input DVR file. FFmpeg will probe the file to detect the proprietary container structure and identify the internal video codec (typically H.264 or MJPEG) and audio codec (typically AAC) used by the DVR recorder.
-c:v mpeg2video Sets the video encoder to MPEG-2, decoding the source H.264 or MJPEG video and re-encoding it as MPEG-2 — the codec used in DVD-Video and standard-definition broadcast television, and the expected video stream type in a standard .mpeg container.
-c:a mp2 Sets the audio encoder to MP2 (MPEG-1 Audio Layer II), transcoding the DVR's AAC audio into the broadcast-standard audio format required by MPEG program streams and compatible with DVD authoring and legacy hardware decoders.
-q:v 2 Sets the MPEG-2 video quality using the fixed quantizer scale, where 1 is the highest quality and 31 is the lowest. A value of 2 targets near-maximum quality to compensate for the generation loss inherent in transcoding from an already-lossy DVR source.
-b:a 192k Sets the MP2 audio bitrate to 192 kilobits per second, which is the standard broadcast-quality bitrate for MPEG audio and provides sufficient fidelity for DVR-recorded speech, ambient sound, and surveillance audio.
output.mpeg Defines the output filename and triggers FFmpeg to write an MPEG program stream container (.mpeg), which wraps the MPEG-2 video and MP2 audio into a format compatible with legacy players, DVD authoring software, and broadcast ingest systems.

Common Use Cases

  • Archiving surveillance or CCTV footage from proprietary DVR systems into a standardized MPEG format that can be played back on legacy DVD players or broadcast monitors without special software
  • Ingesting DVR-captured broadcast footage into older video editing or DVD authoring workflows that require MPEG-2 program streams rather than H.264 input
  • Preparing recorded television content from a DVR for submission to a broadcast facility or cable operator whose ingest systems expect MPEG-2/MP2 compliant files
  • Converting security camera recordings to MPEG so they can be burned to DVD as evidence or archive media using standard DVD authoring tools
  • Making DVR footage compatible with legacy media kiosks, digital signage players, or set-top boxes that only decode MPEG-1 or MPEG-2 streams
  • Extracting and re-encoding DVR recordings into MPEG-2 for use in academic or broadcast training environments that use traditional MPEG-based media infrastructure

Frequently Asked Questions

Yes, some quality degradation is expected. DVR files are already lossy (encoded in H.264 or MJPEG), and re-encoding to MPEG-2 introduces another generation of compression loss. MPEG-2 is a less efficient codec than H.264, so at the same bitrate it will produce lower visual quality — or require a higher bitrate to match H.264's sharpness. Using the default -q:v 2 setting targets near-maximum MPEG-2 quality, which minimizes the visible degradation for most footage.
DVR recordings typically use AAC audio, which is not part of the standard MPEG program stream specification. The MPEG container expects MP2 (MPEG-1 Audio Layer II) or MP3 audio for broadest compatibility with legacy hardware and broadcast systems. The conversion transcodes the AAC track to MP2, which is the default audio codec used in DVD-Video and standard-definition digital television broadcasts. This ensures the output file is natively compatible with MPEG-compliant players and ingest tools.
The H.264 CRF scale (used in DVR encoding) runs from 0 to 51, where lower values mean higher quality. The MPEG-2 -q:v scale runs from 1 to 31, also where lower values mean higher quality. The two scales are not directly equivalent — MPEG-2 at -q:v 2 targets very high quality output, roughly comparable to a low CRF H.264 source, but because MPEG-2 is a less efficient codec, the resulting file will typically be larger than the original DVR file for equivalent visual quality.
Yes. To adjust video quality, change the -q:v value: use 1 for the highest possible MPEG-2 quality (largest file) or go up to 31 for heavy compression (smallest file, most artifacts). For audio, change -b:a to a different bitrate such as 128k for smaller files or 256k for higher fidelity. For example: ffmpeg -i input.dvr -c:v mpeg2video -c:a mp2 -q:v 4 -b:a 128k output.mpeg would produce a smaller, slightly lower quality output.
Yes, on the command line you can use a shell loop to batch process files. On Linux or macOS: for f in *.dvr; do ffmpeg -i "$f" -c:v mpeg2video -c:a mp2 -q:v 2 -b:a 192k "${f%.dvr}.mpeg"; done. On Windows Command Prompt: for %f in (*.dvr) do ffmpeg -i "%f" -c:v mpeg2video -c:a mp2 -q:v 2 -b:a 192k "%~nf.mpeg". The browser-based tool processes one file at a time, so the FFmpeg command is especially useful for bulk conversions of large DVR archives.
The output will use MPEG-2 video and MP2 audio, which are the correct codecs for DVD compatibility, but a raw .mpeg file is not the same as a properly authored DVD-Video disc. For actual DVD playback, you would need to author the MPEG-2 stream into a DVD-Video structure (with VIDEO_TS folders and IFO files) using a tool like dvdauthor after conversion. However, the .mpeg output from this tool is directly compatible with most DVD authoring software that accepts MPEG-2 program streams as input.

Technical Notes

DVR formats are proprietary containers whose internal structure varies significantly between manufacturers (such as Hikvision, Dahua, or consumer PVR devices), but FFmpeg can typically demux them to access the underlying H.264 or MJPEG video and AAC audio streams. Because the output MPEG-2 codec is older and less computationally efficient than H.264, expect output file sizes to be substantially larger than the source DVR file — often 2x to 4x larger at equivalent perceived quality. The -q:v 2 default targets near-lossless MPEG-2 quality to offset the generation loss from transcoding an already-compressed source. MP2 audio at 192k is the standard bitrate for broadcast-quality MPEG audio and is well above the threshold where compression artifacts become audible for typical speech or ambient sound from surveillance recordings. Notably, the MPEG container does not support chapters, embedded subtitles, or multiple audio tracks, so any such elements in the source DVR file will be dropped during conversion. There is no transparency support in either format. If the source DVR file uses MJPEG video (common in older or lower-end DVRs), the re-encode to MPEG-2 may actually produce a more temporally coherent output since MPEG-2 uses inter-frame compression (P-frames and B-frames) rather than encoding every frame independently.

Related Tools