[PR #13313] [MERGED] Use nv15 as intermediate format for 2-pass rkrga scaling #13531

Closed
opened 2026-02-07 07:14:34 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/13313
Author: @gnattu
Created: 1/2/2025
Status: Merged
Merged: 1/3/2025
Merged by: @crobibero

Base: release-10.10.zHead: fix-rkrga-tonemap


📝 Commits (4)

  • 86737c1 Use nv15 as intermediate format for 2-pass rkrga scaling
  • 9388012 Clarify comments
  • 496777d Force the intermediate frame to be divisible by 4
  • 9e1d438 Clarify the format choice is a kernel driver bug

📊 Changes

1 file changed (+5 additions, -1 deletions)

View changed files

📝 MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs (+5 -1)

📄 Description

It seems like RKRGA is expecting no zero padding bits during 2 pass scaling which distorts P010 frames after scale. This breaks trickplay image generation for HDR videos. Workaround this by specifying nv15 frame format.

This might cause issues with other ffmpeg implementations, as NV15 is not supported everywhere. However, rockchip users should use jellyfin-ffmpeg for proper hardware acceleration anyway.

Changes

Issues

Fixes this:
image


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/jellyfin/jellyfin/pull/13313 **Author:** [@gnattu](https://github.com/gnattu) **Created:** 1/2/2025 **Status:** ✅ Merged **Merged:** 1/3/2025 **Merged by:** [@crobibero](https://github.com/crobibero) **Base:** `release-10.10.z` ← **Head:** `fix-rkrga-tonemap` --- ### 📝 Commits (4) - [`86737c1`](https://github.com/jellyfin/jellyfin/commit/86737c1e5b9cfd489f30aa10f8a602ed37a03399) Use nv15 as intermediate format for 2-pass rkrga scaling - [`9388012`](https://github.com/jellyfin/jellyfin/commit/938801259d9b6bbbd2ee7fa1dbd08502fc9beeaa) Clarify comments - [`496777d`](https://github.com/jellyfin/jellyfin/commit/496777d2402b21c2339a27cbb4e997c77b3c7ed2) Force the intermediate frame to be divisible by 4 - [`9e1d438`](https://github.com/jellyfin/jellyfin/commit/9e1d4388649db1e89a9c73f78ff1b6b03396b603) Clarify the format choice is a kernel driver bug ### 📊 Changes **1 file changed** (+5 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs` (+5 -1) </details> ### 📄 Description It seems like RKRGA is expecting no zero padding bits during 2 pass scaling which distorts P010 frames after scale. This breaks trickplay image generation for HDR videos. Workaround this by specifying nv15 frame format. This might cause issues with other ffmpeg implementations, as NV15 is not supported everywhere. However, rockchip users should use jellyfin-ffmpeg for proper hardware acceleration anyway. <!-- Ensure your title is short, descriptive, and in the imperative mood (Fix X, Change Y, instead of Fixed X, Changed Y). For a good inspiration of what to write in commit messages and PRs please review https://chris.beams.io/posts/git-commit/ and our documentation. --> **Changes** <!-- Describe your changes here in 1-5 sentences. --> **Issues** <!-- Tag any issues that this PR solves here. ex. Fixes # --> Fixes this: ![image](https://github.com/user-attachments/assets/2d851582-5b8d-44f8-bd3e-1919b97359c6) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-07 07:14:34 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#13531