找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 764|回复: 32

Jellyfin 中国特别优化版--比官方更好的jellyfin 镜像选择

[复制链接]
本帖最后由 clion007 于 2024-4-26 18:41 编辑

折腾缘由:

这两年开始折腾Nas和使用docker,在自己的All in one上,搭建了Jellyfin媒体服务器,手机和电视配合相关的APP使用还是蛮不错的。不过使用的过程中发现,官方的镜像和另一个常用的linuxserver维护的镜像都有一些问题,比如中文乱码,硬件加速驱动问题等,网上有个大神做了个中国特别版的,我看拉下来看了一下,体积特别的大,白白占用很大的磁盘空间,实在没有必要。于是,这两天花了点时间,参考nyanmisaka和linuxserver的镜像,自己做了一个基于alpine(最新版v3.19基础镜像只有7M)的Jellyfin docker镜像,并放到了阿里云的docker公开仓库上。




镜像特点:

  • 镜像体积比起能在网上找到的主流镜像都小得多,阿里云仓库国内拉取镜像也快;
  • 自带硬件解码加速驱动,开箱即用,只做了支持X86的,不支持其它平台;
  • 添加相关中文字体库,解决了栏目封面和字幕中文乱码的问题;
  • 默认以jellyfin用户运行容器jellyfin进程,非root运行,更加安全;
  • 支持配置文件本地化保存,避免重新运行容器时配置丢失;
  • 没有其它任何多余的东西,所有软件版本都更新到最新版本。





相关构建的源代码放到了github上面,并用gitaction自动构建推送,感兴趣的可以自己去看,项目地址:https://github.com/clion007/docker-jellyfin

下面有关于本镜像相关的详细介绍,放出来分享给有需要的坛友,有喜欢的自取就好,详细的使用方法和拉取存储库可见docker cli部分,如果是在unraid上部署,可以直接用linuxserver的模板,改一下存储库为我的存储库就好。

Github项目上的说明介绍:

Jellyfin is a Free Software Media System that puts you in control of managing and streaming your media. It is an alternative to the proprietary Emby and Plex, to provide media from a dedicated server to end-user devices via multiple apps. Jellyfin is descended from Emby's 3.5.2 release and ported to the .NET Core framework to enable full cross-platform support. There are no strings attached, no premium licenses or features, and no hidden agendas: just a team who want to build something better and work together to achieve it.

This clion/jellyfin docker image supply you a better choice for the jellyfin container than offical image. It is builded base on latest alpine, with smaller size and fix the ffmpg decode, hardware drivers and chinese shown in garbled problems et,al.

Application Setup
  • Webui can be found at http://:8096
  • More information can be found on the official documentation.

Hardware Acceleration


Many desktop applications need access to a GPU to function properly and even some Desktop Environments have compositor effects that will not function without a GPU. However this is not a hard requirement and all base images will function without a video device mounted into the container.
For Intel/ATI/AMD to leverage hardware acceleration you will need to mount /dev/dri video device inside of the container.
  1. --device=/dev/dri:/dev/dri
复制代码
I will automatically ensure the jellyfin user inside of the container has the proper permissions to access this device.

Usage


To help you get started creating a container from this image you can either use docker-compose or the docker cli.

Image pull

  1. docker pull registry.cn-chengdu.aliyuncs.com/clion/jellyfin
复制代码

Parameters

Containers are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate : respectively. For example, -p 8080:80 would expose port 80 from inside the container to be accessible from the host's IP on port 8080 outside the container.

  • -p 8096 Http webUI.
  • -p 8920 Optional - Https webUI (you need to set up your own certificate).
  • -p 7359/udp Optional - Allows clients to discover Jellyfin on the local network.
  • -p 1900/udp Optional - Service discovery used by DNLA and clients.
  • -e PUID=1000 for UserID - see below for explanation.
  • -e PUID=1000 for GroupID - see below for explanation.
  • -e TZ=Asia/Shanghai specify a timezone to use in your local area.
  • -e JELLYFIN_PublishedServerUrl=192.168.0.5 Set the autodiscovery response domain or IP address.
  • -v /config Jellyfin data storage location. This can grow very large, 50gb+ is likely for a large collection.
  • -v /video Media goes here. Add as many as needed e.g. /video/movies, /video/tv, etc.

Umask for running applications

For all of my images I provide the ability to override the default umask settings for services started within the containers using the optional -e UMASK=022 setting. Keep in mind umask is not chmod it subtracts from permissions based on it's value it does not add.

本帖子中包含更多资源

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

×
我的恩山、我的无线 The best wifi forum is right here.
支持大佬        
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

大佬啊,请问服务端解决了,客户端有版本推荐吗?主要安卓手机和TCL智能电视。

点评

客户端直接用官方的就很好用,手机可以设置综合解码或者外部播放器解码,基本不会有问题的,电视端的话,现在电视的解码能力都很强的,我还没有遇到过解码有问题的  详情 回复 发表于 2024-4-21 19:39
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

来自手机 | 显示全部楼层
谢谢大佬分享,必须顶你,感谢
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

来自手机 | 显示全部楼层
测试了一下,配置文件夹会生成乱码文件夹,docker无法启动

点评

我用的unraid测试一切正常,可以看看日志有没有报错,会不会是和之前的配置文件有冲突?  详情 回复 发表于 2024-4-21 19:41
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

谢谢大佬分享,必须顶你,感谢
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
BL1ACH 发表于 2024-4-21 06:51
大佬啊,请问服务端解决了,客户端有版本推荐吗?主要安卓手机和TCL智能电视。 ...

客户端直接用官方的就很好用,手机可以设置综合解码或者外部播放器解码,基本不会有问题的,电视端的话,现在电视的解码能力都很强的,我还没有遇到过解码有问题的

点评

我家电视配置很拉跨,谢谢了。  详情 回复 发表于 2024-4-23 06:34
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
ziyangboy 发表于 2024-4-21 13:32
测试了一下,配置文件夹会生成乱码文件夹,docker无法启动

我用的unraid测试一切正常,可以看看日志有没有报错,会不会是和之前的配置文件有冲突?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

本帖最后由 hwlon 于 2024-4-21 22:31 编辑

谢谢大佬分享,下载看看
738.5 MB

官方的 979.5 MB





点评

嗯嗯,官方的还不包含ffmpeg包,并且中文字幕和封面的中文显示为乱码方框,nyanmisaka大神的包倒是解决了这些问题,但是这个包足足有1.2还是1.4个G,几乎是我这个的两倍。  详情 回复 发表于 2024-4-22 18:10
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

过2天用rk3399看能跑得怎样
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

过2天用rk3399看能跑得怎样
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

过2天用rk3399看能跑得怎样
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

谢谢大佬分享,必须顶你,感谢
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
本帖最后由 clion007 于 2024-4-22 18:13 编辑
hwlon 发表于 2024-4-21 22:16
谢谢大佬分享,下载看看
738.5 MB

嗯嗯,官方的镜像还不包含显卡驱动包,据说是因为两方的协议冲突的原因,并且中文字幕和封面的中文显示为乱码方框,nyanmisaka大神的镜像倒是解决了这些问题,但是镜像的体积足足有1.2还是1.4个G,几乎是我这个的两倍。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

请问如何添加非文件夹媒体库?
我想创建一个豆瓣 top250 的媒体库,内容直接从其它媒体库关联,就像 jrellyfin 自己创建的合集媒体库一样,请问能不能创建?如何创建呢?

点评

没有用过这种功能,不太清楚哦,这个版本媒体库功能保持和官方的一致  详情 回复 发表于 2024-4-22 21:58
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-5-4 01:22

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

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