Convert AVI to DVR — Free Online Tool
Convert AVI files to DVR format using H.264 video and AAC audio — the codec combination most widely accepted by digital video recorder systems for playback and archival. This browser-based tool handles the full re-encode locally on your device, 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 AVI 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
AVI is a Microsoft container that can hold a wide variety of video and audio codecs, so the first step is identifying what's actually inside the file. Because DVR format expects H.264 video and AAC audio specifically, this conversion performs a full re-encode of both streams regardless of the source codecs. The video is compressed using the libx264 encoder at CRF 23, a visually near-lossless quality level that balances file size and clarity well for recorded footage. The audio is transcoded to AAC at 128k bitrate — replacing whatever codec the AVI used (commonly MP3 or even uncompressed PCM) with the AAC format DVR systems expect. One important limitation: AVI can carry multiple audio tracks, but DVR format does not support them, so only the primary audio track will be retained in the output.
What Each Flag Does
| Flag | What it does |
|---|---|
ffmpeg
|
Invokes the FFmpeg binary. In the browser tool, this runs via FFmpeg.wasm (WebAssembly) entirely within your browser session — no server processes your file. On your desktop, this calls your locally installed FFmpeg executable directly. |
-i input.avi
|
Specifies the input AVI file. FFmpeg will probe the container to detect which video and audio codecs are actually stored inside — this matters because AVI files vary widely in their internal codec composition, and the re-encode targets must be chosen accordingly for DVR compatibility. |
-c:v libx264
|
Encodes the output video stream using the libx264 H.264 encoder, which is the standard video codec expected by DVR systems. This replaces whatever video codec was in the source AVI — whether DivX, Xvid, MJPEG, or anything else — with broadly compatible H.264. |
-c:a aac
|
Transcodes the audio stream to AAC, the required audio codec for DVR format. This replaces the AVI's audio, which is commonly MP3 (libmp3lame) or PCM, with AAC — a more efficient codec that DVR hardware decoders handle reliably. |
-crf 23
|
Sets the H.264 Constant Rate Factor to 23, which is the FFmpeg default and represents a strong balance between visual quality and file size. For surveillance or archival AVI footage where fine spatial detail matters, lowering this to 18 is advisable; raising it to 28–36 reduces file size at the cost of clarity. |
-b:a 128k
|
Sets the AAC audio bitrate to 128 kilobits per second, which is sufficient for mono or stereo speech and general recorded audio typical of DVR content. For high-fidelity source audio from broadcast captures, 192k or 256k would better preserve the original quality. |
output.dvr
|
Specifies the output filename with the .dvr extension, signaling to FFmpeg the target container format. The DVR container wraps the H.264 video and AAC audio streams in the structure expected by digital video recorder systems for playback and storage. |
Common Use Cases
- Loading legacy AVI surveillance recordings into a modern DVR system for centralized playback and archival alongside newer footage
- Converting AVI files captured by older CCTV cameras or capture cards into a DVR-compatible format for import into NVR management software
- Re-encoding broadcast AVI recordings into DVR format so they can be stored and reviewed on a set-top DVR device without compatibility errors
- Migrating a personal archive of AVI home recordings or TV captures into DVR format for playback on a standalone DVR unit connected to a television
- Preparing AVI files from legacy editing timelines for ingest into a DVR-based broadcast review or monitoring workflow
- Testing DVR playback compatibility with source material originally encoded in AVI before committing to a large-scale batch conversion
Frequently Asked Questions
Yes, some quality loss is inevitable because this conversion re-encodes both the video and audio streams rather than copying them. The video is re-compressed using H.264 at CRF 23, which is a high-quality setting that most viewers won't find objectionable, but it is not lossless. If your source AVI was already heavily compressed, the re-encode introduces a second generation of compression artifacts. For archival purposes, using a lower CRF value (such as 18) in the FFmpeg command will preserve more detail at the cost of a larger file.
DVR format does not support multiple audio tracks, so only the first (primary) audio track from your AVI file will be included in the output. If your AVI contains a secondary language track, director's commentary, or alternate audio mix, those streams will be silently dropped during conversion. If you need a specific non-default audio track, you can modify the FFmpeg command to select it using the '-map' flag before processing.
DVR format specifies AAC as its standard audio codec because AAC offers better audio quality than MP3 at equivalent bitrates and is more efficiently decoded by the hardware processors found in DVR and NVR devices. Even if your source AVI used MP3 audio (via libmp3lame), the conversion transcodes it to AAC at 128k to ensure compatibility. This is a common requirement when targeting embedded or appliance-style playback hardware.
The video quality is controlled by the '-crf' flag in the command. CRF stands for Constant Rate Factor and ranges from 0 (lossless) to 51 (lowest quality) for H.264 encoding. The default here is 23, which is a good general-purpose setting. To increase quality for surveillance or archival footage where detail matters, lower the CRF value — for example, '-crf 18' will produce a noticeably sharper image at the cost of a larger file size. You can also raise it to '-crf 28' or '-crf 36' if storage space is a concern and fine detail is less critical.
Yes. The displayed FFmpeg command can be adapted for batch processing on your desktop using a shell loop. On Linux or macOS, you can run: 'for f in *.avi; do ffmpeg -i "$f" -c:v libx264 -c:a aac -crf 23 -b:a 128k "${f%.avi}.dvr"; done'. On Windows Command Prompt, use a for loop with the same flags. This is particularly useful when you have more than the 1GB browser limit, since batch processing runs natively on your hardware without any file size restrictions.
No. Neither AVI nor DVR format supports subtitles or chapters in any meaningful way, so no subtitle or chapter metadata will be present in the output. AVI's subtitle support is extremely limited in practice, and DVR format is designed purely for video recording playback without those features. If your workflow requires subtitles, you would need to burn them into the video stream using a filter such as '-vf subtitles' before the conversion, which permanently renders them into the picture.
Technical Notes
AVI is a container that offers little standardization around codecs — a given AVI file might contain DivX, Xvid, MJPEG, H.264, or even uncompressed video alongside MP3, PCM, or AC3 audio. This variability means the conversion to DVR always requires full re-encoding rather than a simple remux, because DVR targets a narrowly defined codec set of libx264 for video and AAC for audio. The libx264 encoder used here produces H.264 Baseline or Main profile output, which is well-suited for DVR hardware decoders that often lack support for High profile features. One known limitation of AVI worth flagging: AVI uses a fixed-point index structure and has a 2GB file size limit on some implementations, meaning very long recordings saved as AVI may have been split into multiple files — you'll need to concatenate these before conversion if seamless output is required. DVR format also drops multiple audio track support, which should be accounted for if the source AVI carried multilingual audio. File size after conversion will vary significantly depending on the original AVI codec; an Xvid-encoded AVI re-encoded to H.264 at CRF 23 will typically shrink, while an MJPEG AVI will also reduce considerably given MJPEG's frame-by-frame compression inefficiency compared to H.264's inter-frame prediction.