forum.gl-inet.cn

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
    查看: 770|回复: 2

    [经验分享] AXT1800 运行 jellyfin

    [复制链接]

    2

    主题

    11

    帖子

    182

    积分

    注册会员

    Rank: 2

    积分
    182
    发表于 2022-11-27 00:02:17 | 显示全部楼层 |阅读模式
    AXT1800 运行 jellyfin
    目前 jellyfin 官方的稳定版本是10.8.7 ,但是用源码编译的最新版本是 10.9.0 ,而且有 arm64-musl 版本,可以在ATX1800上运行成功。
    当然,运行速度肯定比不上 x86 ,但是也勉强够用。

    系统使用大雕64位固件:
    1. https://github.com/coolsnowwolf/openwrt-gl-ax1800.gi
    复制代码

    目前 arm64-musl 版本的 jellyfin 有一个 BUG ,就是 Skia 库无法正常加载,运行过程中涉及到图片处理的时候基本都会报错。在网上找了一圈,没有解决掉,等待官方版本更新。
    1. ..........
    2. [16:27:10] [WRN] [1] Emby.Server.Implementations.ApplicationHost: Skia not available. Will fallback to NullImageEncoder.
    3. ..........

    4. ..........
    5. [13:02:16] [ERR] [53] Emby.Server.Implementations.Dto.DtoService: Failed to determine primary image aspect ratio for /app/data/downloads/jellyfin/foreignFilms/[www.domp4.com]肖申克的救赎.The.Shawshank.Redemption.1994.BD1080p.国英双语.中英双字-poster.jpg
    6. System.NotImplementedException: The method or operation is not implemented.
    7.    at Emby.Drawing.NullImageEncoder.GetImageSize(String path)
    8.    at Emby.Drawing.ImageProcessor.GetImageDimensions(BaseItem item, ItemImageInfo info)
    9.    at Emby.Server.Implementations.Dto.DtoService.GetPrimaryImageAspectRatio(BaseItem item)
    10. [13:02:17] [ERR] [64] Emby.Server.Implementations.Dto.DtoService: Failed to determine primary image aspect ratio for /app/data/downloads/jellyfin/foreignFilms/[www.domp4.com]肖申克的救赎.The.Shawshank.Redemption.1994.BD1080p.国英双语.中英双字-poster.jpg
    11. System.NotImplementedException: The method or operation is not implemented.
    12.    at Emby.Drawing.NullImageEncoder.GetImageSize(String path)
    13.    at Emby.Drawing.ImageProcessor.GetImageDimensions(BaseItem item, ItemImageInfo info)
    14.    at Emby.Server.Implementations.Dto.DtoService.GetPrimaryImageAspectRatio(BaseItem item)
    15. [13:02:18] [ERR] [64] Emby.Server.Implementations.Dto.DtoService: Failed to determine primary image aspect ratio for /app/data/downloads/jellyfin/foreignFilms/[www.domp4.com]肖申克的救赎.The.Shawshank.Redemption.1994.BD1080p.国英双语.中英双字-poster.jpg
    16. System.NotImplementedException: The method or operation is not implemented.
    17.    at Emby.Drawing.NullImageEncoder.GetImageSize(String path)
    18.    at Emby.Drawing.ImageProcessor.GetImageDimensions(BaseItem item, ItemImageInfo info)
    19.    at Emby.Server.Implementations.Dto.DtoService.GetPrimaryImageAspectRatio(BaseItem item)
    20. .........
    复制代码

    使用了 cpulimit 对 jellyfin 进程的 cpu 占用进行了限制。
    1. cpulimit --limit=80 /app/data/jellyfin/start_jellyfin.sh
    复制代码

    需要添加 Swap ,不然肯定运行不起来,会卡死。估计添加 1G 就够用了,我添加了4G。



    运行 jellyfin 需要依赖:icu、 icu-full-data、icu-data-tools、 ffmpeg-custom、libffmpeg-custom。启动脚本:
    1. #!/bin/sh

    2. JELLYFINDIR="/app/data/jellyfin"

    3. cd $JELLYFINDIR

    4. $JELLYFINDIR/jellyfin/jellyfin \
    5. -d $JELLYFINDIR/data \
    6. -C $JELLYFINDIR/cache \
    7. -c $JELLYFINDIR/config \
    8. -l $JELLYFINDIR/log > log.txt
    复制代码

    可以按照我的存放路径修改脚本。
    1. root@OpenWrt:/app/data/jellyfin# pwd
    2. /app/data/jellyfin
    3. root@OpenWrt:/app/data/jellyfin# ls jellyfin/jellyfin
    4. jellyfin/jellyfin
    复制代码

    开机启动:
    1. #!/bin/sh /etc/rc.common

    2. USE_PROCD=1
    3. START=99
    4. STOP=01

    5. start_service() {
    6.     procd_open_instance jellyfin # 给服务实例定义一个名称
    7.     procd_set_param command cpulimit --limit=80 /app/data/jellyfin/start_jellyfin.sh

    8.     # 如果服务意外中止了,定义 redpawn 可以自动重启它,如果服务命令的确只需要运行一次,需要谨慎设定这里
    9.     # 如果进程在 respawn_threshold 定义的时间内结束了,则判定为进程崩溃并尝试重启它,尝试respawn_retry次后会停止重启,每次尝试重启间隔respawn_timeout秒
    10.     procd_set_param respawn ${respawn_threshold:-3600} ${respawn_timeout:-5} ${respawn_retry:-102528}
    11.    
    12.     procd_set_param pidfile /var/run/jellyfin.pid # 在服务启动时写入一个 pid 文件,在停止服务时删除此 pid 文件
    13.     procd_close_instance # 结束服务实例配置
    14. }
    复制代码



    https://wwk.lanzouw.com/b03vimhwj
    密码:et8t




    本帖子中包含更多资源

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

    x
    回复

    使用道具 举报

    1

    主题

    6

    帖子

    61

    积分

    注册会员

    Rank: 2

    积分
    61
    发表于 2022-11-27 11:13:21 | 显示全部楼层
    多谢分享,不过跑jellyfin对axt1800来说算不算是有点儿强人所难啊
    回复

    使用道具 举报

    0

    主题

    834

    帖子

    1684

    积分

    禁止发言

    积分
    1684
    发表于 2023-1-14 02:35:36 | 显示全部楼层
    提示: 作者被禁止或删除 内容自动屏蔽
    回复

    使用道具 举报

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

    本版积分规则

    Archiver|手机版|小黑屋|gl-inet.cn ( 粤ICP备18130956号 )

    GMT+8, 2024-5-5 23:12 , Processed in 0.022196 second(s), 25 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2021, Tencent Cloud.

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