前言
受限于jellyfin对rk3399等ARM处理器视频硬件解码的支持,搭建的Jellyfin服务都采用客户端解码。
docker部署Jellifin
docker-compose.yml文件
version: '3.3'
services:
jellyfin:
image: jellyfin/jellyfin
container_name: jellyfin
network_mode: 'host'
volumes:
- ./config:/config
- ./cache:/cache
- ./media:/media
# - /path/to/media2:/media2:ro
restart: 'unless-stopped'
# Optional - alternative address used for autodiscovery
environment:
- JELLYFIN_PublishedServerUrl=http://example.com
#- http_proxy=http://127.0.0.1:7890
#- https_proxy=http://127.0.0.1:7890
# Optional - may be necessary for docker healthcheck to pass if running in host network mode
# extra_hosts:
# - 'host.docker.internal:host-gateway'
一些说明:
- 采用了host模式,无需进行端口映射
- https端口8920,http端口8096
- 可通过环境变量配置http和https代理
部署https证书
- 阿里云申请免费证书,有效期3个月,服务器类型选IIS
- 上传证书到./config文件夹中
- 在Jellyfin页面中配置证书文件地址和密码
禁用用户播放硬件解码
如果服务器性能一般,可考虑禁用硬件解码功能,管理-控制台-用户-选中用户-媒体播放,关闭允许播放需要转码的音频、允许播放需要转码的视频、允许播放需转换但无需重新编码的视频
Jellyfin客户端解码配置
windows
windows无需过多配置,默认开启了客户端解码
安卓
参考Jellyfin解决硬解问题 – 哔哩哔哩 (bilibili.com)
ios
目前ios中的jellyfin官方客户端在升级ios17.2以后存在开启客户端解码但是无效的bug,具体问题可参考https://github.com/jellyfin/jellyfin-expo/issues/471
可以考虑使用Swiftfin客户端
docker部署aliyun-webdev
docker-compose.yml文件
version: '3.3'
services:
aliyundrive-webdav:
container_name: aliyundrive-webdav
restart: unless-stopped
ports:
- '8080:8080'
environment:
- 'REFRESH_TOKEN='
image: messense/aliyundrive-webdav
获取REFRESH_TOKEN
python脚本实现下载文件夹下的所有资源
特性
- 自动下载文件夹下的目录中的文件
- 自动忽略重复文件
docker部署qbittorrent
docker-compose.yml文件
version: '3.3'
services:
qbittorrent:
image: linuxserver/qbittorrent:4.5.3
container_name: qbittorrent
environment:
- PUID=1000
- PGID=1000
- TZ=Asia/Shanghai
- WEBUI_PORT=8082
- TORRENTING_PORT=6881
volumes:
- ./appdata/config:/config
- ./downloads:/downloads
ports:
- 8082:8082
- 6881:6881
restart: unless-stopped
部署https证书
apache证书格式
证书***_public.crt
密钥***.key