mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
[Issue]: NVENC not working after 10.7.7 -> 10.8.0 upgrade #3935
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @peperunas on GitHub (Jun 15, 2022).
Please describe your bug
FFmpeg fails to encode a media file with hardware acceleration on.
Jellyfin on NixOS build,
masterrevb1957596ff1c7aa8c55c4512b7ad1c9672502e8e.jellyfin-ffmpeg:5.0.1jellyfin:1.8.0jellyfin-web:1.8.0Jellyfin Version
10.8.0
if other:
No response
Environment
Please attach any browser or client logs here
No response
Please attach any screenshots here
No response
Code of Conduct
@nyanmisaka commented on GitHub (Jun 15, 2022):
The ffnvcodec header of NixOS's custom ffmpeg is outdated.
a10f1aec1f/libavcodec/nvenc.h (L65-L67)Also ffmpeg needs to be built with following options and patches for Nvidia to keep in line with our jellyfin-ffmpeg5:
https://github.com/jellyfin/jellyfin-ffmpeg/tree/jellyfin/debian/patches
https://github.com/jellyfin/jellyfin-ffmpeg/blob/jellyfin/debian/rules
@justinas commented on GitHub (Jun 17, 2022):
There are versions 10 and 11 in Nixpkgs (if I'm looking at the right thing), but the default is 9. https://search.nixos.org/packages?channel=22.05&from=0&size=50&sort=relevance&type=packages&query=nvenc
Should we override
jellyfin-ffmpegto use version 10?I'll look into adding the other flags in the coming days.
@nyanmisaka commented on GitHub (Jun 17, 2022):
We are using 11 in jellyfin-ffmpeg5, and the required minimum driver version is 470.
Also please add
--disable-ptx-compressionto build configs, which is required by our cuda tonemap filter.@justinas commented on GitHub (Jun 20, 2022):
I have created 3 PRs to Nixpkgs:
Thanks for your guidance. I understand that it sucks getting issue reports from people with "esoteric" setups 😅
@nyanmisaka commented on GitHub (Jun 20, 2022):
Thanks! Any chance you can also add
--enable-opencl, which is required for Intel and AMD to do HW tonemap.@justinas commented on GitHub (Jun 20, 2022):
Already open https://github.com/NixOS/nixpkgs/pull/177438