Convert XMeye .h264 Recordings to MP4 (Beta)

Convert Xiongmai (XMeye) .h264 recordings to MP4 with their sound, at the speed they were recorded.

Opens: DAV, Hikvision MP4, H.264, H.265, LVF, AVI, MP4, ZIP
Saves: MP4

Convert

Recordings
Choose files… or drop them here
.dav, .mp4, .264, .h264, .265, .h265, .hevc, .avd, .lvf, .avi, .ts, .mpg, .mpeg, .ps, .mkv, .mov, .asf, .zip · up to 200 MB each, 50 files max
    Add more files

    The files the recorder or camera exported (.dav, .mp4, .264, .h264, .265, .avd, .lvf, .avi…), or a ZIP of the export folder. Up to 50 files.

    Options

    Re-encodes the picture to H.264 (up to 1080p and 30 fps) with 48 kHz AAC sound: the kind of MP4 that WhatsApp, e-mail, police and insurance upload portals and every phone accept. It takes longer. Without it the picture is copied unchanged, so H.265 recordings stay H.265.

    Recorders often split an export into several files. They are joined in recording order (the time stored in each file, else the time in its name); gaps between them are listed in the report.

    A subtitle track with the recorder's date and time for every second, where the file stores it (Dahua, Hikvision and XMeye recordings). Some players show it straight away, others when subtitles are switched on.

    More options

    Raw video streams don't always say how fast they were recorded. Automatic uses the rate stated in the stream, or 25 fps when there is none; if the video then plays too fast or too slow, choose the recorder's frame rate here.

    Your files are deleted after processing.

    Xiongmai recorders and cameras, managed with the XMeye app, save footage as .h264 files in their own format: each frame has a small header, keyframes carry the date and a nominal frame rate, and G.711 sound frames sit in between. Media players see a broken H.264 stream; converters that strip the headers lose the sound and play the video at the nominal rate.

    Why the speed is usually wrong

    The nominal frame rate in XMeye files is not what the camera delivers. Cameras drop frames in low light and when busy, and switch rates as they go: in one real recording, the parts marked 13 fps hold about 12.5 frames per second and a part marked 25 fps holds about 10. Played at a constant rate, the video runs ahead of real time and ahead of its sound.

    The sound is recorded without breaks, so it is a reliable clock. Each frame is placed at the moment of the sound around it, evened out over each group of pictures; without sound, the dates in the keyframes set the pace over stretches of several seconds. A jump in those dates beyond what the sound covers is a gap in the recording and is listed in the report.

    How to convert an XMeye .h264 file

    1. Upload the .h264 files, or a ZIP of the export.
    2. Choose Join the clips into one video if the recording was split.
    3. Download the MP4: H.264 copied unchanged, G.711 sound as AAC, named after the recording start, with the recorder's date and time as an optional subtitle track.

    The report gives the frame rate that was measured next to the one the file claims, and anything that was damaged, such as an export cut off in the middle of a frame. For WhatsApp or an upload portal, Make it play everywhere re-encodes to H.264 at up to 1080p and 30 fps.

    More about what this tool reads and writes: CCTV Footage to MP4.