Dolby Vision parser rejects valid RPUs whose CRC32 ends in 0x00 (test file linked)

Disclosure: this post was written by Claude Opus 5.5 (xhigh effort), which also did the log analysis and the RPU investigation, wrote the script and created the test file. I reviewed it and can answer questions or run further tests on my Vero.

TL;DR: My Vero V’s Dolby Vision metadata parser rejects RPUs whose CRC32 happens to end in 0x00, although the CRC is correct. That’s about 1 in 256 frames of any Dolby Vision title. With a profile 7 FEL movie (see logs), playback stopped after the fourth rejection and Kodi returned to the menu after a freeze timeout. I’ve had this with quite a lot of files. A synthetic test file (link below) reproduces the rejections exactly, though not the freeze on a manual run afterwards.

Setup

  • Vero V, OSMC 2026.05-2, kernel 4.9.269-93-osmc, vero5-mediacenter-osmc 21.3.0-7 (Kodi 21.3)
  • Vero V → Denon AVC-X4800H → LG OLED77G4, certified HDMI cables; 2160p24, TV-led Dolby Vision
  • MKV files on a NAS via NFS (network and files ruled out, see details)
  • Logs: https://paste.osmc.tv/rimenezudo (the failed playback is at 2026-11-02 00:03 to 00:05)

What happens (UHD Blu-ray remux, Dolby Vision profile 7 FEL; resumed at 13:26, stopped about a minute later)

00:03:50 kernel: DOLBY ERROR: meta(386), pts64(820194000) -> metadata parser process fail
00:04:04 kernel: DOLBY ERROR: meta(386), pts64(834250000) -> metadata parser process fail
00:04:13 kernel: DOLBY ERROR: meta(386), pts64(843301000) -> metadata parser process fail
00:04:30 kernel: DOLBY ERROR: meta(386), pts64(859567000) -> metadata parser process fail
00:04:36 kodi:   CVideoPlayerAudio::Process - stream stalled
00:04:50 kodi:   VideoPlayer: eof, waiting for queues to empty

Cause: the four rejected frames are exactly the ones whose RPU CRC32 ends in 0x00.

pts64 (s) frame RPU CRC32
820.194 19665 0x0c123f00
834.250 20002 0xca09df00
843.301 20219 0x1502bf00
859.567 20609 0xfe492000
  • They are the only such frames in the part that played, and none of the roughly 1,300 other frames produced an error.
  • The CRCs are correct (checked for all 147,148 RPUs of the file), and dovi_tool and FFmpeg 9 parse these frames without complaint. Otherwise they are ordinary mid-shot frames.
  • My guess (unverified): something strips trailing 0x00 bytes from the RPU before it reaches the parser, which cuts off the last byte of the CRC.

Reproducing it without movie content: Dolby Vision P8.1 RPU CRC test pattern.mkv (1.9 MB, download: gofile.io/d/MbUHfUSD) is fully synthetic: an FFmpeg test pattern with generated Dolby Vision profile 8.1 metadata. 28 of its frames have a valid CRC ending in 0x00, at 5.005 s and then every 2.002 s, and each of them has a red border. On my Vero, all 28 are rejected at exactly those timestamps, and no other frame is:

12:40:06 kernel: DOLBY ERROR: meta(194), pts64(5005000) -> metadata parser process fail
12:40:08 kernel: DOLBY ERROR: meta(194), pts64(7007000) -> metadata parser process fail
  ... every 2 s, 28 in total ...
12:41:00 kernel: DOLBY ERROR: meta(194), pts64(59059000) -> metadata parser process fail

On screen, the video plays normally and the red-border frames show up every 2 seconds without any visible glitch. The 60-second file (video only) also plays to the end, so the rejections don’t always stop playback. I can’t tell what turns them into a stop with the movie (FEL, the audio track, the length or something else).

Any Dolby Vision title should also trigger it within a minute or two; the script in the details lists the frames to expect.

Possibly related: Vero V stops playback on Dolby Vision HEVC remux, with the same error and playback stop (meta(194) there, the same value my test file produces).

Possible workaround (untested): play affected titles with Dolby Vision disabled, so only the HDR10 base layer is used.

Details: logs, checks, test file, script

Kernel log around the playback

00:03:35 enable_fel 1
00:03:36 Creating Dolby Vision metadata parser instance success
00:03:36 DV:[0,805847000,12,DOVI,392,1]
00:03:50 DOLBY ERROR: meta(386), pts64(820194000) -> parser process fail
00:03:50 DOLBY ERROR: meta(386), pts64(820194000) -> metadata parser process fail
  (the same pair for 834250000, 843301000 and 859567000)
00:04:50 vdec_release instance 000000003350e65c, total 2 id = 0
00:04:50 enable_fel 0

Ruled out

  • Network: no NFS errors or retransmissions during playback, and the same part of the file reads at about 98 MB/s on the Vero.
  • File damage: an ffmpeg demux pass over 12:00 to 16:30 is clean, and every RPU CRC is valid.
  • HDMI: the errors come from the metadata parser on the Vero, before anything goes out over HDMI, and they follow the frame data exactly.

The file: Dolby Vision profile 7, level 6, BL + EL + RPU (BL compatibility ID 6), CM v2.9, 147,148 frames. 616 of its RPUs have a CRC ending in 0x00, roughly one every 10 seconds. The first three rejections were survived; playback stopped right after the fourth.

meta(N) is constant within a file but doesn’t follow the RPU size by a fixed offset: 386 for the movie’s 362-byte RPUs and 194 for the test file’s 164-byte RPUs (unescaped). So I can’t tell what it measures.

Test file: 2160p23.976, HEVC Main 10, HDR10 base layer, Dolby Vision profile 8.1 (CM v4.0), 1,440 frames (60 s) in 15 shots of 4 s. The trigger frames (120, 168, … 1416) are all mid-shot. All frames differ only in Level 1 avg_pq (1600 to 1900); the triggers use 1676 and 1839, which produce a CRC ending in 0x00. Made with dovi_tool generate (per-frame frame_edits), ffmpeg -f lavfi testsrc and libx265, dovi_tool inject-rpu and mkvmerge.

Checking any file:

ffmpeg -i input.mkv -map 0:v:0 -c:v copy -bsf:v hevc_mp4toannexb -f hevc - | dovi_tool extract-rpu - -o RPU.bin
python3 rpu_crc00.py RPU.bin          # add the frame rate as a second argument if not 23.976

RPU.bin from dovi_tool is in display order, so frame N is at N / fps. The kernel’s pts64 is in microseconds.

#!/usr/bin/env python3
"""List Dolby Vision RPUs whose stored CRC32 ends in 0x00, and verify each CRC.

Input is an RPU.bin from `dovi_tool extract-rpu` (display order).
Usage: python3 rpu_crc00.py RPU.bin [fps]   (fps defaults to 23.976)
"""
import sys


def crc32_mpeg2(data):
    crc = 0xFFFFFFFF
    for b in data:
        crc ^= b << 24
        for _ in range(8):
            crc = (crc << 1) ^ 0x04C11DB7 if crc & 0x80000000 else crc << 1
            crc &= 0xFFFFFFFF
    return crc


def unescape(buf):
    """Remove HEVC emulation prevention bytes (00 00 03 -> 00 00)."""
    out, zeros = bytearray(), 0
    for b in buf:
        if zeros >= 2 and b == 3:
            zeros = 0
            continue
        out.append(b)
        zeros = zeros + 1 if b == 0 else 0
    return bytes(out)


path = sys.argv[1]
fps = float(sys.argv[2]) if len(sys.argv) > 2 else 24000 / 1001
rpus = [r for r in open(path, "rb").read().split(b"\x00\x00\x00\x01") if r]
hits = 0
for i, r in enumerate(rpus):
    if r[:2] == b"\x7c\x01":  # strip NAL header if present
        r = r[2:]
    rbsp = unescape(r).rstrip(b"\x00")  # 0x19 prefix ... crc32 (4 bytes), 0x80
    body, stored = rbsp[1:-5], int.from_bytes(rbsp[-5:-1], "big")
    if stored & 0xFF == 0:
        hits += 1
        t = i / fps
        ok = "valid" if crc32_mpeg2(body) == stored else "MISMATCH"
        print(f"frame {i:6d}  {int(t // 3600)}:{int(t % 3600 // 60):02d}:{t % 60:06.3f}"
              f"  pts64 ~{round(t * 1e6)}  crc {stored:#010x} ({ok})")
print(f"{hits} of {len(rpus)} RPUs have a CRC32 ending in 0x00")

Output on this movie (excerpt):

frame  19665  0:13:40.194  pts64 ~820194375  crc 0x0c123f00 (valid)
frame  20002  0:13:54.250  pts64 ~834250083  crc 0xca09df00 (valid)
frame  20219  0:14:03.301  pts64 ~843300792  crc 0x1502bf00 (valid)
frame  20609  0:14:19.567  pts64 ~859567042  crc 0xfe492000 (valid)
616 of 147148 RPUs have a CRC32 ending in 0x00

Hi,

We’ll look in to this.
Can you upload full logs so we can see which version of OSMC you are running?

Thanks

Sam

Hi Sam,

the logs are here: https://paste.osmc.tv/rimenezudo (the failed playback is at 2026-11-02 00:03 to 00:05)

They were taken with the AVR and TV off/in standby, fyi. Are they detailed enough or is another debug level required (if yes, how shall I set and upload it)?

Thanks for the report. The CRC checking code was written by CoPilot but Claude found the problem and fixed it :smiley: Still, playback should not have stopped - we’re checking how that can happen now.

Please grab this file https://drive.google.com/file/d/1zYkKjql0gBDjE0d66oTOgfRS0PJPL4De/view?usp=sharing

and copy it to /opt/securevero/secureos/apps/ (as videoenhancement.osmcapp) and reboot. See if it fixes things. I’ve only tested it with your synthetic file. We’d be interested in whether you still get the freeze even without the parsing errors.

Thank you for the file and confirmation :slight_smile: ! I copied it over (backed up the previous file to my home folder first) and rebooted. I’ll report back here when the next freeze hits me.

1 Like