如果你在 Docker 中安装 Jellyfin,很可能遇到下面这种情况:
![image.png](https://i.typlog.com/shun/8373431987_567793.png?x-oss-process=image/auto-orient,1/interlace,1/resize,m_lfit,w_1920/quality,q_90/format,webp)
(封面图里的中文字变方块)
![image.png](https://i.typlog.com/shun/8373431873_693876.png?x-oss-process=image/auto-orient,1/interlace,1/resize,m_lfit,w_1920/quality,q_90/format,webp)
(ASS字幕里的中文字变方块)
下面来解决。
- 在容器中安装中文字体
![](https://i.typlog.com/shun/8373478039_82523.png?x-oss-process=image/auto-orient,1/interlace,1/resize,m_lfit,w_1920/quality,q_90/format,webp)
进入容器的选住jellyfin点详情进入终端机,点新增出现 bash,右侧依次输入以下命令:
apt update
apt install fonts-noto-cjk-extra
重启容器。
在封面图上选择“修改图片”,删除已有的封面图。然后在进入控制台“扫描所有媒体”,重新生成封面图即可解决。
![image.png](https://i.typlog.com/shun/8373431148_808148.png?x-oss-process=image/auto-orient,1/interlace,1/resize,m_lfit,w_1920/quality,q_90/format,webp)
- 为字幕添加中文备用字体
在 Jellyfin 挂载的目录中,新建一个文件夹 fonts。我放在了挂载的配置文件 config 目录中。
首先下载字体包推荐去https://www.fonts.net.cn/下载,找你喜欢的字体下载到本地。
将解压后的字体文件复制到上面说的 fonts 目录中。
然后在控制台-播放中设置备用字体的文件路径并启用备用字体:
![image.png](https://i.typlog.com/shun/8373430657_923401.png?x-oss-process=image/auto-orient,1/interlace,1/resize,m_lfit,w_1920/quality,q_90/format,webp)
再播放试试:
![image.png](https://i.typlog.com/shun/8373430459_5406475.png?x-oss-process=image/auto-orient,1/interlace,1/resize,m_lfit,w_1920/quality,q_90/format,webp)
字幕也没问题了。
你还可以收集更多字体放到这个目录中,丰富ASS特效字幕的效果。
评论前必须登录!
注册