Convert CCTV .264 / .h264 Files to MP4 (Beta)

Turn .264, .h264 and .265 files from security cameras and recorders into MP4 at the right speed.

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.

    Security cameras and recorders write many different things into files ending in .264, .h264 or .265. Some are bare video streams, some wrap every frame in the recorder's own headers, and some add sound in between. A player that treats them all as bare video either refuses them or plays them at an assumed 25 frames per second, too fast or too slow, and silent.

    How to convert a CCTV .264 file to MP4

    1. Upload the .264, .h264, .265 or .avd files (or a ZIP of them).
    2. Download the MP4. The report says what the file really was and where its frame rate came from.

    What the file turns out to be

    • Memory-card recordings (HXVS/HXVT), often named like A190729_200736_200750.264: every frame carries a millisecond timestamp and the sound is G.711. The timestamps are kept, so a camera recording two frames per second plays at two frames per second, and the sound is converted to AAC. The recording start is read from the file name.
    • XMeye recordings: see the XMeye page; their sound is used as the clock.
    • Raw H.264/H.265 streams, with nothing but the video: there are no timestamps. If the stream states its frame rate, that is used; otherwise 25 fps is assumed and the report says so. If the result plays too fast or too slow, choose the recorder's frame rate under More options and convert again.

    Keeping the picture as it is

    The picture is copied, not re-encoded, so a 4-megapixel H.265 recording stays 4-megapixel H.265, tagged so that Apple devices play it. If an app or upload portal refuses H.265, choose Make it play everywhere to get H.264 at up to 1080p. Several files from the same camera can be joined into one video in recording order.

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