What is the difference between hvc1 and hev1?
Inside an MP4, each video track has a ‘sample entry’ (the stsd box), and its name is a four-character code. HEVC is written as one of two codes: hvc1 or hev1. Under the specification (ISO 14496-15),hvc1 is known to mean the parameter sets (VPS, SPS, PPS) are kept only in the header, while hev1 means they may also appear in the middle of the video data. The compression is the same; only the label differs. The problem is that there are repeated reports that Apple’s playback stack (the QuickTime family) does not accept HEVC labeled hev1. Putting HEVC into an MP4 with FFmpeg is known to sometimes write hev1, which is how you end up with a file that plays in VLC or Chrome on Windows but not on an iPhone or Mac.
What this tool does
- Reads the label: it reads the sample entry name of the video track (hvc1, hev1, dvh1, dvhe, avc1 and so on) from the moov header of an MP4 or MOV. It does not read the video data, so even a large file finishes quickly.
- Verdict: hev1 is shown as ‘Tag needs fixing’, hvc1 and dvh1 as ‘Tag is fine’, dvhe as ‘Needs a closer look’, and anything that is not HEVC as not applicable.
- Header check: it reads whether the hvcC box holds VPS, SPS and PPS. If the file is hev1 but the header has no SPS, changing only the label may not fix it, so it is shown as ‘Needs a closer look’.
- Other things to check besides the tag: it shows the profile, chroma (whether it is 4:2:0), bit depth, HDR, resolution and level. These are the candidates when the file still won’t open after the label is fixed.
- Builds the command: for hev1 it builds
ffmpeg -i input -c copy -tag:v hvc1 output and an ffprobe command that checks the converted result.
How to use it
- Pick the MP4 that won’t open and look at the verdict.
- If it says ‘Tag needs fixing’, run the copied command in a terminal (PowerShell, cmd or bash). If you want to add other options, use the FFmpeg command builder.
- Run the same tool on the new file, or run the ffprobe command the tool gave you, and check that it reports
hvc1. - If it still won’t open, follow ‘Other things to check besides the tag’ and check the profile, 10-bit and resolution. If the video is something the device can’t decode, such as 10-bit, HDR or 4:2:2, the HEVC/AV1 to H.264 compatibility conversion size planner can help you estimate the size after conversion.
-c copy moves the compressed video over as it is, so the quality does not change and the time is about that of copying the file once. The original file is not touched, so you can clean up after you have confirmed the new file opens. The same option works when moving an MKV into an MP4, and if the MKV holds a codec that MP4 can’t, the MKV to MP4 remux feasibility checker tells you first.
Other reasons it may still not open
There are also forum reports that after changing to hvc1, a file played on some models and not on others. The label is only one of the necessary conditions. Besides the items this tool shows, here are other candidates to check.
- Audio codec: the video may be fine while the audio is a codec that is hard to play in MP4, such as DTS or FLAC. This tool looks at the video track; the playability checker looks at the whole file.
- Profile and chroma: if it is not Main or Main 10, or it is 4:2:2 or 4:4:4, support varies by device.
- Resolution and level: older devices may not be able to decode high resolutions or frame rates. Work out the level you need with the H.264/HEVC level calculator.
- No HEVC support at all: the device or app can’t decode HEVC. For the Windows side of this, see the Windows HEVC/AV1 extension guide (Korean). To see what this browser supports, use Codec support check.
- Damaged file: a file cut off in the middle of recording has no header (moov), and this tool can’t read it either.
Is this the same as hvc1 in a codec string?
They look alike but are used in different places. A codec string such as hvc1.2.4.L153.B0 is the notation used when asking a browser whether it can play something, whereas this tool reads the sample entry name inside the file. To learn how to read codec strings, see the codec string decoder. For how much smaller HEVC makes a file than H.264, the data is in Is HEVC really 50% smaller than H.264? A measurement.
Limits worth knowing
- This site has not tested playback on a real iPhone or Mac. The claim that ‘Apple rejects hev1, and switching to hvc1 fixes it’ rests on repeated reports in the FFmpeg issue tracker and developer forums, and it may have changed with OS versions. Do the final check on the target device.
- This tool reads only the label and the header; it does not check whether the video data is intact. A fragmented MP4 can be read, but the frame count and bitrate per track are not available.
- It reads only the first sample entry. A special file with several entries in one track may look different.
- For dvhe (Dolby Vision) it does not build a command. How to change only the tag while keeping the Dolby Vision metadata depends on the FFmpeg version, and this site has not verified it.
- The tool does not modify or save files and does not run commands. The file and its name are never sent to a server; the name appears only in the command that is built.
- It can’t read MKV or WebM. MKV has no hvc1/hev1 distinction; it is decided when you move the video into an MP4.