[PR #5107] [MERGED] Fix for NVDEC decoder and improvements for VAAPI tonemap #10403

Closed
opened 2026-02-07 06:19:41 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/5107
Author: @nyanmisaka
Created: 1/25/2021
Status: Merged
Merged: 2/10/2021
Merged by: @joshuaboniface

Base: masterHead: enhanced-nvdec-vpp-tonemap


📝 Commits (5)

  • 326fa8c add an enhanced nvdec decoder
  • 09b9fa3 add vpp tonemapping for vaapi
  • b0e0e19 add cuda format converter
  • 3052068 hybird vpp tonemapping for QSV on Linux
  • 22e8667 Apply suggestions from code review

📊 Changes

5 files changed (+486 additions, -279 deletions)

View changed files

📝 MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs (+429 -279)
📝 MediaBrowser.Controller/MediaEncoding/IMediaEncoder.cs (+8 -0)
📝 MediaBrowser.MediaEncoding/Encoder/EncoderValidator.cs (+32 -0)
📝 MediaBrowser.MediaEncoding/Encoder/MediaEncoder.cs (+11 -0)
📝 MediaBrowser.Model/Configuration/EncodingOptions.cs (+6 -0)

📄 Description

Web changes:
https://github.com/jellyfin/jellyfin-web/pull/2350

ffmpeg fix:
https://github.com/jellyfin/jellyfin-ffmpeg/pull/59

Changes

  • Add enhanced NVDEC decoder and format converter
    fix green or corrupted frames when decoding some HDR contents. improve transcoding speed.
  • Add VPP tonemapping for VAAPI and QuickSync on Linux
    faster tonemapping speed, 70-120fps 1080p and 30-50fps 4k on HD630 when doing 4k H2S.
    Intel opencl runtime is not required by this method. only available on Intel VAAPI and QSV for now.
    as for AMD VAAPI see https://gitlab.freedesktop.org/mesa/mesa/-/issues/3865
Prerequisites
1 Intel KabyLake/GeminiLake chips or newer, such as i3-7100 and J4105
2 Intel media-driver(iHD) 20.1 or newer
3 libva 2.4 or newer
4 the ffmpeg fix linked above
5 HEVC videos with valid HDR10 metadata

Issues
Fixes #4879
Fixes #4947
Fixes # https://github.com/jellyfin/jellyfin-meta/issues/1#issuecomment-739138464


🔄 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/5107 **Author:** [@nyanmisaka](https://github.com/nyanmisaka) **Created:** 1/25/2021 **Status:** ✅ Merged **Merged:** 2/10/2021 **Merged by:** [@joshuaboniface](https://github.com/joshuaboniface) **Base:** `master` ← **Head:** `enhanced-nvdec-vpp-tonemap` --- ### 📝 Commits (5) - [`326fa8c`](https://github.com/jellyfin/jellyfin/commit/326fa8ce384d4e0c433007e02f3f68b8d5538e55) add an enhanced nvdec decoder - [`09b9fa3`](https://github.com/jellyfin/jellyfin/commit/09b9fa3ce12e8837605c00f7b8f963e649c7ecc7) add vpp tonemapping for vaapi - [`b0e0e19`](https://github.com/jellyfin/jellyfin/commit/b0e0e19468eeadcff0c3a16b47607ce2620227af) add cuda format converter - [`3052068`](https://github.com/jellyfin/jellyfin/commit/305206816163515907f9a20f26d1c7a06f9132d1) hybird vpp tonemapping for QSV on Linux - [`22e8667`](https://github.com/jellyfin/jellyfin/commit/22e86671052841eb3ce949074fba465f48c9c236) Apply suggestions from code review ### 📊 Changes **5 files changed** (+486 additions, -279 deletions) <details> <summary>View changed files</summary> 📝 `MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs` (+429 -279) 📝 `MediaBrowser.Controller/MediaEncoding/IMediaEncoder.cs` (+8 -0) 📝 `MediaBrowser.MediaEncoding/Encoder/EncoderValidator.cs` (+32 -0) 📝 `MediaBrowser.MediaEncoding/Encoder/MediaEncoder.cs` (+11 -0) 📝 `MediaBrowser.Model/Configuration/EncodingOptions.cs` (+6 -0) </details> ### 📄 Description Web changes: https://github.com/jellyfin/jellyfin-web/pull/2350 ffmpeg fix: https://github.com/jellyfin/jellyfin-ffmpeg/pull/59 **Changes** - Add enhanced NVDEC decoder and format converter fix green or corrupted frames when decoding some HDR contents. improve transcoding speed. <img src="https://user-images.githubusercontent.com/14953024/106266394-53137300-6263-11eb-89e7-528aeae883bf.jpg" width = "1080" align=center /> - Add VPP tonemapping for VAAPI and QuickSync on Linux faster tonemapping speed, **70-120fps 1080p and 30-50fps 4k on HD630** when doing 4k H2S. Intel opencl runtime is not required by this method. only available on Intel VAAPI and QSV for now. as for AMD VAAPI see https://gitlab.freedesktop.org/mesa/mesa/-/issues/3865 | | Prerequisites | | ---- | ---- | | 1 | Intel KabyLake/GeminiLake chips or newer, such as i3-7100 and J4105 | | 2 | Intel media-driver(iHD) 20.1 or newer | | 3 | libva 2.4 or newer | | 4 | the ffmpeg fix linked above | | 5 | HEVC videos with valid HDR10 metadata | <img src="https://user-images.githubusercontent.com/14953024/106266536-83f3a800-6263-11eb-9a83-818933ee5579.png" width = "1080" align=center /> **Issues** Fixes #4879 Fixes #4947 Fixes # https://github.com/jellyfin/jellyfin-meta/issues/1#issuecomment-739138464 --- <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 06:19:41 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#10403