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
- Upload the
.264,.h264,.265or.avdfiles (or a ZIP of them). - 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.