Guide · Updated 2026-10-13
One file, 16 cameras: opening a multi-camera DVR dump
Some recorders export all their cameras into a single .dat file. A normal player shows one camera, or nothing useful. FFmpeg can read the container; what is missing is a view of all cameras on one clock. A free open-source tool does that, and so does Tracewind Player.
What you see
You were given one .dat file from a recorder. VLC plays a single camera, or only noise. ffprobe lists a dozen or more video streams in the same file, all with the same size.
Why it happens
- The file holds one H.264 stream per camera. Records of different cameras are written in bursts, a dozen frames of one camera and then the next, so the file looks like one long stream to a player that expects a single camera.
- FFmpeg has a demuxer for this layout (called luodat), so each camera shows up as a separate stream. Players built on it still open only the first stream and give no way to see them together.
- The cameras' own timestamps cannot be used to lay them out side by side. In our sample the first timestamps of the 16 cameras are up to 11 seconds apart, although the clocks painted into every picture show the same second: the timestamps are per-camera counters, not a shared time. Placing frames by timestamp leaves most cells of a grid dark for the first seconds.
- The order in which the records were written does carry the shared time: the cameras were recording together and were written round-robin. Aligning by that order puts all 16 cells on the same second.
How to fix it
- Look inside first
- Run ffprobe on the file. If it lists many video streams of the same size and frame rate, it is this kind of dump. The demuxer (named luodat) was added to FFmpeg in September 2020 and is in FFmpeg 4.4 (April 2021) and every later release. We checked it with FFmpeg 8 (libavformat 62): the sample is recognised as format luodat with 16 H.264 video streams. FFmpeg is open source: https://ffmpeg.org/ , the demuxer source is https://github.com/FFmpeg/FFmpeg/blob/master/libavformat/luodatdec.c
- Free and open source: multicam-dump-player
- A small Python tool (Apache-2.0) at github.com/tracewind-world/multicam-dump-player. It lists the cameras, plays or exports them as a grid on one common clock, and writes each camera as a raw H.264 file. It includes the 16-camera sample file used here.
- One camera with FFmpeg (4.4 or newer)
- Pick a stream and copy it: ffmpeg -i file.dat -map 0:v:3 -c copy camera04.mkv. Other tools then see an ordinary single-camera video.
- All cameras in one player
- Tracewind Player sorts cameras that are interleaved in one export into a grid and lets you export a standard MP4.
What it can’t do
Said up front, so you don’t find out on the day.
- This page covers one container layout (the "luo" recorder .dat). Other multi-camera dumps use different layouts; send us a sample if yours does not open.
- The alignment is an estimate from the record order, good to within about one write burst (under a second). It is not a recorded timecode; if the recorder wrote one, use it.
- A camera whose first record is not a key frame stays black until its first key frame arrives; nothing can decode the frames before it.
- The example has video only. Audio records, if a recorder adds them, are not handled by the open-source tool.
Questions people ask
Why does VLC show only one camera?
The file contains one video stream per camera. VLC and most players pick the first and ignore the rest.
Can I get a single camera out of the file?
Yes: ffmpeg with -map 0:v:N -c copy writes one stream without re-encoding, or the open-source tool's split command writes each camera as raw H.264.
Why can't I use the timestamps to put the cameras side by side?
They are per-camera counters that start at different values. In our sample they differ by up to 11 seconds while the cameras were recording at the same moment.
Can I use the open-source tool in a commercial or forensic workflow?
The licence is Apache-2.0, so yes. Check the result against the original recording and write down that the alignment is an estimate, as with any tool.
Is the sample file public?
Yes. The 8 MiB sample is an old recording whose owner allowed it as a test sample; it is in the repository.