VP9 frame loss on RK3588
The MPP video library bundled with jellyfin-ffmpeg silently drops about 30 % of a long VP9 transcode on RK3588 boards (first measured with a 10-bit title; 8-bit is affected too). One reverted line exposes it. Measured 3 October 2026 on an Orange Pi 5B. Update, 19 October 2026: the root cause is found and fixed (see Fix and workaround), and it has since been confirmed on a second board (RK3588, Orange Pi 5 Plus).
What a user sees
A long title transcodes perfectly for about forty minutes, then starts freezing for up to six seconds at a time, repeatedly, for the rest of playback. Nothing appears in the Jellyfin log. ffmpeg reports no errors and exits cleanly. The container's timestamps still span the full runtime, so the player shows the correct duration with holes in it. It looks exactly like a bad file or a failing disk.
Underneath, the video decoder is faulting and the kernel is resetting it hundreds of times a minute. Frames decoded during each reset are never produced, and nothing in the API says so.
The cause: one reverted line
Rockchip disabled parallel VP9 decode for the RK3588 upstream in August 2023, in hal_vp9d. The fork of MPP that jellyfin-ffmpeg builds from reverts that guard:
cfg->support_fast_mode = 1;
if (mpp_get_soc_type() == ROCKCHIP_SOC_RK3588)
- cfg->support_fast_mode = 0; // upstream: one decode task at a time
+ cfg->cfg->status.hal_task_count = 2; // fork: two, across both decoder cores
That is the only behavioural change to the VP9 decoder among the eleven commits the fork carries above upstream. jellyfin-ffmpeg pins it in builder/scripts.d/50-rkmpp.sh, identically on 7.1.4-3 and every 8.x release including the current one.
The guard is VP9-specific on purpose
Worth stating, because it rules out the obvious alternative — that the chip simply cannot decode two things at once. It can, for HEVC. Every H.265 path in MPP enables parallel decode on this SoC with no exception, in both upstream and the fork. VP9 is the only codec Rockchip guards here. The measurements agree: HEVC Main 10 ran 70,464 frames clean, zero resets, on the very library that fails on VP9 at around 65,000.
Measurements
| Decoder path | Input | Frames out / in | Resets | What ffmpeg said |
|---|---|---|---|---|
jellyfin-ffmpeg 8.1.3-1, bundled MPP | synthetic 1080p60 VP9 Profile 2, 72,600 frames | 71,382 / 72,600 | 70 | “0 decode errors”, exit 0 |
| system ffmpeg → VA-API → upstream-lineage MPP | the same clip | 72,600 / 72,600 | 0 | clean, exit 0 |
jellyfin-ffmpeg 8.1.3-1, full pipeline to a file | real 4K24 VP9 Profile 2 title, 143,641 frames | 100,131 / 143,641 | 11,520 | 0 error lines, exit 0 |
| system ffmpeg → VA-API → upstream-lineage MPP | the same title | 143,641 / 143,641 | 0 | clean, exit 0 |
All on one Orange Pi 5B, RK3588S, Armbian vendor kernel 6.1.172, both decoder cores verified evenly loaded. The failure begins after roughly 65,000 frames in a single job: about 18 minutes at 60 fps, about 45 at 24. Short items never reach it, because every job starts a fresh decoder.
The synthetic clip matters: it is a testsrc2 pattern at 1080p, so the trigger is the number of frames decoded in one session — not 4K, not HDR metadata, not any particular file.
Not affected
HEVC Main 10 and H.264 (their frame labels restart at every keyframe), direct play (which never touches the server's decoder), and anything short. 8-bit VP9 is affected; it merely crosses the wall less often in short sessions, and on a second board it did so with 8-bit YouTube in Chromium. VP9 Profile 2 sources are mostly YouTube-origin HDR downloads, which is why libraries rarely hit this and why it looks like a bad file when they do.
Reproduce it in ten minutes
Any RK3588 board with jellyfin-ffmpeg and a VP9 file longer than about 20 minutes (10-bit is the most reliable trigger). To make one:
ffmpeg -f lavfi -i "testsrc2=size=1920x1080:rate=60:duration=1210,format=yuv420p10le" \
-c:v libvpx-vp9 -profile:v 2 -pix_fmt yuv420p10le -deadline realtime \
-cpu-used 8 -row-mt 1 -b:v 1500k test.webm
Then watch the kernel while it decodes:
sudo journalctl -k --since now -f | grep --line-buffered 'resetting for err' &
/usr/lib/jellyfin-ffmpeg/ffmpeg -c:v vp9_rkmpp -i test.webm -an -f null -
Compare the final frame= against the file's real frame count (ffprobe -count_packets -select_streams v:0 -show_entries stream=nb_read_packets test.webm). On an affected build the resets begin partway through and the count comes up short. On an unaffected MPP the numbers match and nothing is printed.
A negative result is just as useful. If your board stays silent and the frame counts match, please say so. The failure itself was measured on one bench, by one person; the fix has since been confirmed on a second board, and reports either way are still welcome.
Fix and workaround
Root cause, found after this page was first written (October 2026). VP9 has no picture order count, so MPP's parser labels each frame with a counter that never wraps, and the hardware writes those labels to the multi-core reference registers. The RK3588's two decoder cores behave as if they compare them in 16 bits when one core waits for a frame on the other, so once the counter passes 65,535 the wait breaks: the reset storm above. That is why upstream guards VP9 to one core on this chip. Keeping the label within 16 bits removes the fault and keeps both cores: with that one change, mpi_dec_test at 4K ran 77,400 jobs (10-bit) and 73,200 (8-bit) past the wrap with zero resets, 25–29 % faster than the single-core guard, and Chromium, Firefox and mpv played 4K60 VP9 past the old failure point with no resets. The same change ran clean on a second board (RK3588, Orange Pi 5 Plus).
- Fix: wrap the frame label at 16 bits on RK3588 and keep both cores. Submitted upstream as rockchip-linux/mpp#976 (open); shipped in Plaid Pi 5.0's MPP build (
librockchip-mpp1 … +pd33, patch 0008 in its source package). - Fix without the patch: drop the revert, restoring
support_fast_mode = 0for RK3588. Measured cost on a real title: about 106 fps instead of 120, because one decode task runs at a time. A rebuilt library with only that change decoded 116,787 frames with zero resets. - Workaround without rebuilding:
echo 1 > /proc/mpp_service/rkvdec-core1/disable_work— one decoder core, clean to 115,062 frames, roughly 17 % slower.
Scope beyond Jellyfin
The same revert is carried by the two Ubuntu PPAs most RK3588 desktop images use for MPP, so browsers and players on those images meet it too during long VP9 playback, 8- or 10-bit — YouTube at 4K60 reaches the threshold in about eighteen minutes. With the fix, 25-minute YouTube 4K60 VP9 sessions ran with 0 resets and 0.25 % (Chromium) and 0.57 % (Firefox) of frames dropped, measured with the players' own statistics. Pi-Desktop 4.0 ships an upstream-lineage MPP with the guard intact and is not affected; that is the green line in the chart. Plaid Pi 5.0 ships the fix above and runs VP9 on both cores.
Reports and corrections
Filed as jellyfin/jellyfin-ffmpeg#765 and rockchip-linux/mpp#972. The first could not be reproduced by the maintainer and was closed; the second I closed myself at the time, having concluded upstream was not at fault; that was wrong — the bug is in upstream MPP's VP9 parser and the guard only hides it. With the root cause found, the fix is now proposed upstream as rockchip-linux/mpp#976, with a comment on #972. An earlier version of my evidence table had two mislabelled rows; both issues now carry a correction, and the corrected figures are the ones on this page.
Logs, the test scripts, the frame-gap analysis and frame grabs from either side of the failure are available on request.
An LLM assistant (Claude) did the source analysis and wrote the test harness; the hardware testing and the measurements are mine, and I am responsible for them.