Skip to main content
nvrvideofix

Why Hikvision videos won't play on phones or WhatsApp

Your recording says .mp4, but your phone, WhatsApp or Windows calls it corrupt or won't open it. Two separate things cause this: the file's container, and sometimes the video codec. Here is how to tell which one you have, and what fixes each.

Last reviewed October 7, 2026

On this page
What's inside the fileA file named .mp4 is really a Hikvision IMKH header and an MPEG program stream holding H.265 video and G.711 audio. Fixing moves the same video into a real MP4 that starts with ftyp, with the audio as AAC. A small mark by H.265 points to the playback caveat..mp4IMKHPSH.265G.711ftypH.265AAC
First, what the export really is: an IMKH header and a program stream (PS) under an .mp4 name. Then the fixed file: a real MP4 that starts with ftyp, holding the same H.265 video and AAC sound. The dot by H.265 marks the caveat explained below.

The short answer

Your file is wearing an .mp4 name, but it isn’t an MP4 inside. Many Hikvision recorders, and the iVMS-4200 software, save an export in the format the recorder keeps on its own disk: an MPEG-2 program stream with a small Hikvision header in front. Then they name the file .mp4. Phones, WhatsApp and Windows trust the name, look for the structure a real MP4 has, don’t find it, and refuse the file or say it is corrupt.

Moving the same video into a real MP4 container fixes most of these files, and nothing in the picture has to change. There is one catch. Many recent cameras record H.265 video, and some apps can still refuse H.265 after the container is fixed. The sections below explain both causes, so you can tell which one you are facing.

What’s really inside a Hikvision .mp4 export

Under the name, the file holds a different kind of container: the one the recorder writes while it records.

An export from a recorder or iVMS-4200 starts with a 40-byte header whose first four bytes are the letters IMKH. Right after it comes an MPEG-2 Program Stream (PS): a run of packs and packets, each marked by a start code such as 00 00 01 BA, that carry the video and the sound side by side. The first bytes of such an export look like this:

The start of a Hikvision export: the IMKH header, then an MPEG program stream pack
49 4D 4B 48 01 01 … 00 00 01 BA

A real MP4, in the ISO base media file format, starts differently. A few bytes in comes its first box, ftyp, which tells a player what kind of MP4 it is about to read:

The start of a real MP4: its ftyp box (ftyp isom)
00 00 00 1C 66 74 79 70 69 73 6F 6D

This is a known format, not a damaged file. FFmpeg’s MPEG-PS reader checks the start of a file for IMKH, flags it as a Hikvision CCTV recording and reads its sound accordingly. The 40-byte header was discussed on the ffmpeg-user mailing list in 2017, where a user noted that its first four bytes read IMKH. On IP Cam Talk, a forum member’s MediaInfo report showed an iVMS-4200 export named .mp4 with the format “MPEG-PS”.

For the technically curious: the header also carries hints about the codecs, but the stream’s own map, the program stream map (PSM), is what says which video and audio are really inside. nvrvideofix trusts the map and treats the header as a hint.

Why phones, WhatsApp and Windows refuse it

Your phone trusts the name, then checks what is inside.

Players, photo galleries and upload forms that receive an .mp4 expect an ISO base media file: ftyp first, then the boxes that tell them where every frame is. When they find a program stream instead, they reject the file or show a message that the video is corrupt. That message is about the container. The video and sound inside can be perfectly intact.

General-purpose converters give mixed results with these files. The convert.guru page about Hikvision’s .h64 recordings says standard online converters “often fail to process” that format, and any online converter means uploading private footage to someone else’s server. On IP Cam Talk, one member’s FFmpeg command on their Hikvision files “just creates an empty file”, while another reported that an online converter worked for them. A third member’s desktop converter worked but re-encoded the video, “with an inevitable loss of quality”. Results depend on the file and on the tool.

H.265: the second reason a fixed video might not play

Some videos are compressed in a newer way, and not every app has caught up.

Many recent Hikvision exports carry H.265 video, also called HEVC. Apple describes HEVC as giving better compression than H.264, using less storage while keeping the same visual quality. That is useful for a recorder that stores weeks of footage, but support for H.265 is less even than for H.264.

Once the container is fixed, an H.265 video plays on most phones. Apple says iPhones on iOS 11 or later can view H.265 (HEVC) video. On a computer, the picture is more mixed. On Windows, the Photos app can ask for Microsoft's HEVC Video Extensions from the Microsoft Store before it opens H.265 video, so some Windows PCs can't play it without that extra codec.

Warning

WhatsApp may still refuse an H.265 video, even after it is fixed. One open-source Hikvision converter’s README reports WhatsApp calling these videos corrupt, and its answer is to re-encode them to H.264.

To see which codec you have, drop the file into the tool: its card names the video codec, and an H.265 file gets a short note about where it may not play. More about H.265 playback

What helps for next time: if your recorder lets you choose, set the camera to record H.264. How to export video from a Hikvision NVR or DVR explains where that setting is, and that it only applies to new recordings.

nvrvideofix copies the video exactly as the camera recorded it and never re-encodes it. That keeps every frame as it was and keeps the fix fast. It also means the tool doesn’t turn an H.265 video into H.264.

What about the sound?

The sound often needs a small change too, and sometimes it can’t be kept.

Many recorders store sound as G.711, in its A-law or µ-law form. Phones don’t play G.711 inside an MP4, so the tool converts it to AAC, the sound format phones expect. Only the sound is converted; the video is still copied as it is. If the sound is already AAC, it is copied unchanged.

Some cameras record sound as G.722.1. The tool can’t convert G.722.1, so the fixed video is silent. It tells you before you convert, not afterwards. Why the video is silent

If you need the original G.711 sound exactly as recorded, open Advanced and choose “MOV — keep original audio”. You get a MOV file with the sound left untouched.

What nvrvideofix does, and doesn’t do

In short: it changes the box, not what’s inside it.

What it does

  • Reads your file on your device and names what it really is.
  • Copies H.264 or H.265 video into a real MP4, without re-encoding.
  • Converts G.711 sound to AAC and keeps AAC sound as it is.
  • Joins several segments from one camera in recording order, when they match.
  • Shows the SHA-256 values of your original and of the result.

What it doesn’t do

Quick checks before you convert

A minute with the tool tells you which case you have.

  1. Drop the file into the tool and read its diagnosis line. It says what the file really is.

  2. If it says H.265, read the H.265 section above before you share the fixed video.
  3. If it says “Already a standard MP4” and the file still won’t play, the cause is probably H.265, not the container. “Repair container anyway” rebuilds the container if you want a fresh one.

  4. If it says older Hikvision format or encryption, the tool can’t convert the file. Follow the guide linked on its card.

Check your file now, on this device

Sources

  1. libavformat/mpeg.c, the MPEG-PS reader (FFmpeg source code) · raw.githubusercontent.com · accessed October 7, 2026
  2. [FFmpeg-user] Problematic Hikvision video file for conversion ffmpeg (2017) · ffmpeg.org · accessed October 7, 2026
  3. Converting HikVision MP4 to standard MP4 or other format (IP Cam Talk) · ipcamtalk.com · accessed October 7, 2026
  4. hikvision-video-converter README (umeyir061, GitHub, MIT) · github.com · accessed October 7, 2026
  5. H64 Converter (convert.guru) · convert.guru · accessed October 7, 2026
  6. Using HEIF or HEVC media on Apple devices (Apple Support) · support.apple.com · accessed October 7, 2026
  7. Photos app Video Editor error: Can't view this file type (Microsoft Support) · support.microsoft.com · accessed October 7, 2026