What is the DAV file format?
Files with the .dav extension contain coded video footage recorded by CCTV security cameras. Such videos are encoded using H.264 - and on newer Dahua hardware, H.265 (HEVC) - wrapped inside a proprietary container developed by Dahua Technology called the DHAV stream. Every frame in the stream opens with the four-byte signature DHAV and closes with dhav, making the format identifiable without relying on the file extension.
.dav files are created by specific recording devices, such as:
- DVR365,
- DSD304,
- DSD316,
- other closed-circuit security cameras and DVRs in a CCTV system, including OEM-branded hardware sold under the Amcrest, Lorex, Q-See and Mace names.
.dav files can be played in Dahua SmartPlayer or Dahua SmartPSS Lite. They can also be opened in VLC media player and FFmpeg, both of which include a native DHAV demuxer. Files from some older or export-encrypted recorders may not play in third-party tools due to light scrambling and still require Dahua's own player.
.dav footage can be converted into popular formats such as .avi or .mp4 to make the recordings available across a larger number of players. Conversion is straightforward via Dahua SmartPlayer's built-in export function or the ffmpeg command line.
Security & safety
RISK: LOWDAV files are passive video data - no executable content. Practical concerns are evidential, not security: re-encoding can be challenged as tampering, so for legal use keep the original .dav alongside any MP4 copy (SmartPlayer can verify Dahua's embedded watermark). Download players only from dahuasecurity.com or your camera brand's official site - third-party "DAV player" download portals are a known adware vector.
Format details
in a nutshellPrograms that open DAV files
Technical details
deep spec| Container format | Proprietary DHAV binary stream developed by Dahua Technology |
| Magic bytes (offset 0) | Hex 44 48 41 56 (ASCII "DHAV"); each frame closes with 64 68 61 76 ("dhav") |
| Video codec - standard | H.264 (AVC), compressed at DVR-configured bitrate |
| Video codec - newer devices | H.265 (HEVC), supported on Dahua NVRs and IP cameras from approximately 2016 onward |
| Audio encoding | G.711 µ-law or AAC; audio track is optional and may be absent |
| Frame structure | Fixed DHAV frame header containing type, length, channel number and embedded UTC timestamp fields |
| Export scrambling | Certain Dahua recorder models apply XOR-based scrambling on exported .dav files; scrambled files require Dahua's own player |
| MIME type | video/x-dav (unofficial; not registered with IANA) |
| OEM branding | Same .dav format produced by DVR365, Amcrest, Lorex, Q-See and Mace recorders |
| FFmpeg demuxer | Native "dhav" demuxer in libavformat/dhav.c; handles unscrambled .dav files without extra codecs |
| Channel storage | Each .dav file stores footage from a single DVR channel |
| Timestamp metadata | Per-frame UTC timestamps embedded in DHAV frame headers, enabling precise playback seek and event lookup |
| Typical file size | Hundreds of MB to several GB per recording segment, depending on duration and bitrate |
| Conversion targets | Exportable to AVI or MP4 via SmartPlayer export or the ffmpeg command line (e.g. ffmpeg -i rec.dav out.mp4) |
| Related extensions | .dah and .264 (alternative Dahua recording containers); .dvr (generic CCTV recording variant) |
| Released | Mid-2000s (Dahua DVRs; sold under many OEM brands: DVR365, Amcrest, Lorex, Q-See, Mace and others) |
DAV conversions
Community Q&A
asked by usersNo questions yet - be the first to ask about DAV files.