我的服务器是矿渣锐角云,利用docker部署jellyfin并实现硬解转码

docker run -d \
  --name=jellyfin \
  -e PUID=1000 \
  -e PGID=1000 \
  -e TZ=Asia/Shanghai \
  -e JELLYFIN_PublishedServerUrl=192.168.1.15 `#optional` \
  -p 8096:8096 \
  -p 8920:8920 `#optional` \
  -p 7359:7359/udp `#optional` \
  -p 1900:1900/udp `#optional` \
  -v /media/ssd/docker/jellyfin:/config \
  -v /media:/media \
  --restart unless-stopped \
  --device=/dev/dri:/dev/dri \
  linuxserver/jellyfin:10.8.12

安装字体

apt install fonts-noto-cjk-extra

显卡直通确认

ls /dev/dri

2024-01-06T15:42:46.png

驱动安装

apt install intel-media-va-driver

解码支持确认

/usr/lib/jellyfin-ffmpeg/vainfo

2024-01-06T15:51:58.png
2024-01-06T15:53:48.png

安装显卡的OpenCL运行库:
intel显卡:

apt install intel-opencl-icd

NVIDIA显卡:

apt install nvidia-opencl-icd

安装之后重启容器生效

硬解设置:
2024-01-06T16:08:21.png