【jellyfin docker部署】

民工心事  金牌会员 | 4 天前 | 来自手机 | 显示全部楼层 | 阅读模式
打印 上一主题 下一主题

主题 824|帖子 824|积分 2472

docker安装

  1. sudo docker run -d \
  2.   --privileged \
  3.   --name=jellyfin \
  4.   --volume /opt/1panel/apps/jellyfin/config:/config \
  5.   --volume /media/devmon/新加卷/jellyfin/cache:/cache \
  6.   --volume /media/devmon/新加卷/media:/media \
  7.   --volume /media/devmon/新加卷/jellyfin/fonts:/usr/share/fonts/truetype/dejavu \
  8.   --user root \
  9.   --publish 8096:8096 \
  10.   --publish 8920:8920 \
  11.   --restart=unless-stopped \
  12.   --device /dev/dri:/dev/dri \
  13.   --device /dev/dma_heap:/dev/dma_heap \
  14.   --device /dev/mali0:/dev/mali0 \
  15.   --device /dev/rga:/dev/rga \
  16.   --device /dev/mpp_service:/dev/mpp_service \
  17.   $(for dev in dma_heap mali0 iep mpp-service vpu_service vpu-service \
  18.        hevc_service hevc-service rkvdec rkvenc vepu h265e; do \
  19.     [ -e "/dev/$dev" ] && echo "--device=/dev/$dev"; \
  20.   done) \
  21.   jellyfin/jellyfin
复制代码
将装备映射到 Docker 容器

装备名称说明用途/dev/driDirect Rendering Interface,提供 GPU 的直接渲染接口。GPU 硬件加快,常用于 VA-API 或 DRM 驱动的图形渲染和视频解码。/dev/dma_heap动态内存分配堆,常用于视频帧缓冲区等内存密集型操作。帧缓冲区管理、共享内存等。/dev/mali0Mali GPU 装备接口(用于 ARM Mali 系列 GPU)。图形处置惩罚、OpenCL 加快。/dev/rgaRockchip 的 RGA(Raster Graphic Acceleration)硬件加快器。图像缩放、旋转、颜色空间转换等操作。/dev/mpp_serviceMedia Process Platform (MPP) 的紧张控制接口。用于硬件视频编解码服务。 这些装备用于 GPU 和 VPU 的硬件加快,Jellyfin 在使用 FFmpeg 处置惩罚视频时会使用它们
jellyfin容器内置ffmpeg


FFmpeg硬件装备初始化

  1. /usr/lib/jellyfin-ffmpeg/ffmpeg -v debug -init_hw_device rkmpp=rk -init_hw_device opencl=ocl@rk
  2. ffmpeg version 7.0.2-Jellyfin Copyright (c) 2000-2024 the FFmpeg developers
  3.   built with gcc 12 (Debian 12.2.0-14)
  4.   configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-ptx-compression --disable-static --disable-libxcb --disable-sdl2 --disable-xlib --enable-lto=auto --enable-gpl --enable-version3 --enable-shared --enable-gmp --enable-gnutls --enable-chromaprint --enable-opencl --enable-libdrm --enable-libxml2 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libharfbuzz --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libopenmpt --enable-libdav1d --enable-libsvtav1 --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --enable-libfdk-aac --arch=arm64 --cross-prefix=/usr/bin/aarch64-linux-gnu- --toolchain=hardened --enable-cross-compile --enable-rkmpp --enable-rkrga
  5.   libavutil      59.  8.100 / 59.  8.100
  6.   libavcodec     61.  3.100 / 61.  3.100
  7.   libavformat    61.  1.100 / 61.  1.100
  8.   libavdevice    61.  1.100 / 61.  1.100
  9.   libavfilter    10.  1.100 / 10.  1.100
  10.   libswscale      8.  1.100 /  8.  1.100
  11.   libswresample   5.  1.100 /  5.  1.100
  12.   libpostproc    58.  1.100 / 58.  1.100
  13. Splitting the commandline.
  14. Reading option '-v' ... matched as option 'v' (set logging level) with argument 'debug'.
  15. Reading option '-init_hw_device' ... matched as option 'init_hw_device' (initialise hardware device) with argument 'rkmpp=rk'.
  16. Reading option '-init_hw_device' ... matched as option 'init_hw_device' (initialise hardware device) with argument 'opencl=ocl@rk'.
  17. Finished splitting the commandline.
  18. Parsing a group of options: global .
  19. Applying option v (set logging level) with argument debug.
  20. Applying option init_hw_device (initialise hardware device) with argument rkmpp=rk.
  21. Applying option init_hw_device (initialise hardware device) with argument opencl=ocl@rk.
  22. arm_release_ver: g13p0-01eac0, rk_so_ver: 10
  23. [AVHWDeviceContext @ 0x559de810d0] 1 OpenCL platforms found.
  24. [AVHWDeviceContext @ 0x559de810d0] 1 OpenCL devices found on platform "ARM Platform".
  25. [AVHWDeviceContext @ 0x559de810d0] 0.0: ARM Platform / Mali-G610 r0p0
  26. [AVHWDeviceContext @ 0x559de810d0] cl_arm_import_memory found as platform extension.
  27. [AVHWDeviceContext @ 0x559de810d0] cl_khr_image2d_from_buffer found as platform extension.
  28. [AVHWDeviceContext @ 0x559de810d0] DRM to OpenCL mapping on ARM function found (clImportMemoryARM).
  29. Successfully parsed a group of options.
  30. Universal media converter
  31. usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
  32. Use -h to get full help or, even better, run 'man ffmpeg'
复制代码

转码设置



免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

0 个回复

倒序浏览

快速回复

您需要登录后才可以回帖 登录 or 立即注册

本版积分规则

民工心事

金牌会员
这个人很懒什么都没写!

标签云

快速回复 返回顶部 返回列表