Jellyfin 打造本地影音库

Docker 启动

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
version: "3.7"

services:
jellyfin:
image: dockerproxy.com/linuxserver/jellyfin:latest
container_name: jellyfin
hostname: RISCX
environment:
- PUID=1000
- PGID=1000
- TZ=Asia/Shanghai
- HTTP_PROXY:'http://192.168.1.9:7890'
- HTTPS_PROXY:'http://192.168.1.9:7890'
volumes:
- /root/sharedfolder/appdata/jellyfin/config:/config
- /root/sharedfolder/media:/media
- /root/sharedfolder/appdata/jellyfin/cache:/cache
devices:
- /dev/dri:/dev/dri
extra_hosts:
- "api.themoviedb.org:108.138.246.55"
- "image.themoviedb.org:104.16.61.155"
- "www.36dm.com:104.21.80.200"
network_mode: "host"
restart: unless-stopped

初始化配置

就不挨个贴图了,建议将页面都设置为中文,有一点需要注意的是选择国家的时候,中国的英文全称是 People’s Republic of China,不是 China,需要仔细找一下。

转码配置

主要配置硬解码,这样可以大大降低 CPU 的使用率,提高播放的流畅度。能够开启硬解需要 GPU 支持,如果 CPU 有核显,那么就可以开启硬解,如果没有,那么就算了吧,跳过。也可以通过下面的命令查看是否支持硬解。

1
cat /proc/cpuinfo | grep "flags"

该命令将输出 CPU 的系统信息,并在输出结果中搜索”flags”(标志)行。如果该行中包含”vme”、”cmov”、”cx8”、”mmx”、”sse”、”sse2”、”sse3”、”ssse3”、”sse4_1”、”sse4_2”、”avx”等关键词,则说明该 CPU 支持视频硬解码。

VSCode 隐藏编辑页面右上角的按钮 使用 Syncthing 多端丝滑同步与备份
You need to set install_url to use ShareThis. Please set it in _config.yml.

评论

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×