环境说明
unraid6.9.2 gtx1650

显卡未直通

驱动安装

查询显卡支持linux驱动

选择驱动版本 https://www.nvidia.com/en-us/drivers/unix/

驱动

查看支持列表,一般7系列之后都支持

https://www.nvidia.com/Download/driverResults.aspx/191961/en-us/

支持n卡解码编码

https://developer.nvidia.com/video-encode-decode-gpu-support-matrix

编码能力

插件安装

nvidia driver 安装过程中不要关闭安装界面,会下载几百兆驱动,等待下载完

gpu statistics 非必须,用于仪表盘显示gpu信息

nvtop 非必须,用于cli命令行显示gpu信息

插件应用

安装完三个插件后,在设置找到对应功能

打开nvidia driver ,正常情况可以看到显卡信息及驱动信息,说明驱动已正常安装

此处需注意 记下显卡id (GPU-xxxxxxxxxxxxxxxxxxxxxxxxxxxx)

打开GPU Statistics,设置仪表盘显示n卡信息

设置完后,在仪表盘可查看显卡运行信息,之后加速emby时,可以通过仪表盘判断emby是否调用独显加速

打开终端命令行,输入nvtop命令,可通过命令行查看显卡运行信息

emby/jellyfin 设置

编辑

jellyfin docker配置,打开高级视图,额外参数 修改为 --runtime=nvidia

添加变量  

NVIDIA_VISIBLE_DEVICES GPU-xxxxxxxxxxxxxxxxxxxxxx(nvidia driver 应用显示的gpuid)

NVIDIA_DRIVER_CAPABILITIES all

--runtime=nvidiaNVIDIA_VISIBLE_DEVICES GPU-xxxxxxxxxxxxxxxxxxxxxx(nvidia driver 应用显示的gpuid)NVIDIA_DRIVER_CAPABILITIES all

重启jellyfin,进入jellyfin后台管理页面,设置转码

播放一个视频,修改码率,验证独显是否进行转码,查看仪表盘显卡运行信息,查看jellyfin后台播报信息

至此安装完成

原文链接: https://post.smzdm.com/p/ad96gd9n/

参考链接: https://forums.unraid.net/topic/98978-plugin-nvidia-driver/

https://page.sm.cn/blm/midpage-317/index?id=11_5550d39a1cac6db3625e7d5cf8025473&h=post.smzdm.com&uc_param_str=dnntnwvepffrbijbprsvchgputdemennosstodcaaagidsdieini&q=n%E5%8D%A1%E9%85%8D%E7%BD%AEemby&title=Nas+%E7%AF%87%E4%B8%80%EF%BC%9Aunraid+%E5%AE%89%E8%A3%85+nvidia%E9%A9%B1%E5%8A%A8%E5%8A%A0%E9%80%9F+emby%2Fjellyfin_NAS%E5%AD%98%E5%82%A8_%E4%BB%80%E4%B9%88%E5%80%BC%E5%BE%97%E4%B9%B0&from=kkframenew&bucket=ab_pc_search%3Doff%26medical_article_insert_v2%3Db2%26medical_bs2%3Don%26medical_business_consult_trigger%3Db1%26medical_cls_tag_faq_recall_only%3Don%26medical_cls_tag_skip_cache_for_entity%3Don%26medical_dedup%3Dexp3%26medical_dedup2%3Dexp3%26medical_dedup3%3Dexp3%26medical_dedup4%3Dexp4%26medical_dia_ir%3Don%26medical_hos_zyy%3Don%26medical_l4_model%3Dmodel2%26medical_query_recommend%3Dbucket_5%26medical_ranker%3Dv1%26medical_rerank%3Dv3%26medical_rerank2%3Dbase2%26medical_safe%3Don%26&isShare=true