본문 바로가기
AndroidOverLinux

Jellyfin 설치하기 (dockerpull / no HW transcoding)

by ㅋㅋ잠자 2020. 3. 1.
반응형

안녕하세요? 


Emby Media Server 오픈소스 상태에서 마지막 버전을 포크한 Jellyfin 을 설치해 보겠습니다.


현재 emby 쪽이 유료화로 진행하면서 소스를 닫은 상태라 오픈소스인 Jellyfin에 마음이 기울 뿐입니다.


한편, 일단 HW 트랜스코딩 동작하지 않고, 많이 무겁습니다.





0. repo 주소 한국으로 수정


요즘 해외망 속도가 좋지 않아서 아래와 같이 repo 주소를 한국 주소로 바꿉니다. (이 주소도 조만간 작동이 멈출 수 있으니 조심하시길 바랍니다.)


ftp.lanet.kr 은 armhf 저장소도 가지고 있는 몇 안되는 국내 repo 주소입니다. ㅠㅠ


root@AOL-Debian:~# sed -i -e "s/httpredir.debian.org/ftp.lanet.kr/g" /etc/apt/sources.list

root@AOL-Debian:~# apt update

Ign:1 http://ftp.lanet.kr/debian stretch InRelease

Get:2 http://ftp.lanet.kr/debian stretch-backports InRelease [91.8 kB]

Get:3 http://ftp.lanet.kr/debian stretch-updates InRelease [91.0 kB]

Get:4 http://ftp.lanet.kr/debian stretch Release [118 kB]

Get:5 http://ftp.lanet.kr/debian stretch Release.gpg [2,410 B]

Ign:6 https://downloads.plex.tv/repo/deb public InRelease   





1. dockerpull 명령 다운로드


root@AOL-Debian:~# wget https://github.com/djjproject/android_over_linux/raw/master/aolothercommand/download-docker-image-rootfs.sh -O /usr/local/bin/dockerpull


root@AOL-Debian:~# chmod a+x /usr/local/bin/dockerpull


root@AOL-Debian:~# apt install jq golang-go





2. linuxserver/jellyfin docker 다운로드


https://hub.docker.com/r/linuxserver/jellyfin


root@AOL-Debian:~# mkdir jellyfin

root@AOL-Debian:~# dockerpull /root/jellyfin linuxserver/jellyfin:arm32v7-latest

Downloading 'linuxserver/jellyfin:arm32v7-latest@arm32v7-latest' (6 layers)...

######################################################################## 100.0%

######################################################################## 100.0%

######################################################################## 100.0%

######################################################################## 100.0%

######################################################################## 100.0%

######################################################################## 100.0%

Download of layers into '/root/jellyfin_tmp' complete.
Extract RootFS into '/root/jellyfin' complete.





3. 파일 야매 복사


root@AOL-Debian:~# mv jellyfin/usr/lib/jellyfin /usr/lib

root@AOL-Debian:~# mv jellyfin/usr/lib/jellyfin-ffmpeg /usr/lib

root@AOL-Debian:~# mv jellyfin/etc/jellyfin /etc

root@AOL-Debian:~# mv jellyfin/etc/default/jellyfin /etc/default/

root@AOL-Debian:~# mv jellyfin/etc/init.d/jellyfin /etc/init.d/

root@AOL-Debian:~# mv jellyfin/usr/bin/jellyfin /usr/bin/





4. init 스크립트 점검


root@AOL-Debian:~# nano /etc/default/jellyfin 


# Application username

JELLYFIN_USER="root"

# Full application command

JELLYFIN_ARGS="$JELLYFIN_RESTART_OPT $JELLYFIN_FFMPEG_OPT $JELLYFIN_SERVICE_OPT $JELLFIN_NOWEBAPP_OPT"


root@AOL-Debian:~# update-rc.d jellyfin defaults

root@AOL-Debian:~# service jellyfin start
[ ok ] Starting Jellyfin Media Server: jellyfin.





5. 파일 정리 및 ffmpeg 설치


root@AOL-Debian:~# rm -rf jellyfin/


배포본 버전에는 rpi의 mmal 이 같이 컴파일 되어 관련 라이브러리가 필요해서 버전을 낮춰서 다운받습니다.


root@AOL-Debian:~# wget https://github.com/jellyfin/jellyfin-ffmpeg/releases/download/v4.2.1-1/jellyfin-ffmpeg_4.2.1-1-stretch_armhf.deb

root@AOL-Debian:~# dpkg -i jellyfin-ffmpeg_4.2.1-1-stretch_armhf.deb 

Selecting previously unselected package jellyfin-ffmpeg.

(Reading database ... 43494 files and directories currently installed.)

Preparing to unpack jellyfin-ffmpeg_4.2.1-5-stretch_armhf.deb ...

Unpacking jellyfin-ffmpeg (4.2.1-5-stretch) ...

dpkg: dependency problems prevent configuration of jellyfin-ffmpeg:

 jellyfin-ffmpeg depends on libass5 (>= 0.13.0); however:

  Package libass5 is not installed.

 jellyfin-ffmpeg depends on libfribidi0 (>= 0.19.2); however:

  Package libfribidi0 is not installed.


dpkg: error processing package jellyfin-ffmpeg (--install):

 dependency problems - leaving unconfigured

Errors were encountered while processing:

 jellyfin-ffmpeg


root@AOL-Debian:~# apt install -f

Reading package lists... Done

Building dependency tree       

Reading state information... Done

Correcting dependencies... Done

The following additional packages will be installed:

  libass5 libfribidi0 libgraphite2-3 libharfbuzz0b

The following NEW packages will be installed:

  libass5 libfribidi0 libgraphite2-3 libharfbuzz0b

0 upgraded, 4 newly installed, 0 to remove and 78 not upgraded.

1 not fully installed or removed.

Need to get 839 kB of archives.

After this operation, 1,340 kB of additional disk space will be used.

Do you want to continue? [Y/n] 

Get:1 http://ftp.lanet.kr/debian stretch/main armhf libfribidi0 armhf 0.19.7-1+deb9u1 [43.9 kB]

Get:2 http://ftp.lanet.kr/debian stretch/main armhf libgraphite2-3 armhf 1.3.10-1 [72.3 kB]

Get:3 http://ftp.lanet.kr/debian stretch/main armhf libharfbuzz0b armhf 1.4.2-1 [647 kB]

Get:4 http://ftp.lanet.kr/debian stretch/main armhf libass5 armhf 1:0.13.4-2 [76.0 kB]

Fetched 839 kB in 2s (396 kB/s)

Selecting previously unselected package libfribidi0:armhf.

(Reading database ... 43501 files and directories currently installed.)

Preparing to unpack .../libfribidi0_0.19.7-1+deb9u1_armhf.deb ...

Unpacking libfribidi0:armhf (0.19.7-1+deb9u1) ...

Selecting previously unselected package libgraphite2-3:armhf.

Preparing to unpack .../libgraphite2-3_1.3.10-1_armhf.deb ...

Unpacking libgraphite2-3:armhf (1.3.10-1) ...

Selecting previously unselected package libharfbuzz0b:armhf.

Preparing to unpack .../libharfbuzz0b_1.4.2-1_armhf.deb ...

Unpacking libharfbuzz0b:armhf (1.4.2-1) ...

Selecting previously unselected package libass5:armhf.

Preparing to unpack .../libass5_1%3a0.13.4-2_armhf.deb ...

Unpacking libass5:armhf (1:0.13.4-2) ...

Setting up libgraphite2-3:armhf (1.3.10-1) ...

Processing triggers for libc-bin (2.24-11+deb9u4) ...

Setting up libfribidi0:armhf (0.19.7-1+deb9u1) ...

Setting up libharfbuzz0b:armhf (1.4.2-1) ...

Setting up libass5:armhf (1:0.13.4-2) ...

Setting up jellyfin-ffmpeg (4.2.1-5-stretch) ...

Processing triggers for libc-bin (2.24-11+deb9u4) ...


root@AOL-Debian:~# rm jellyfin-ffmpeg_4.2.1-1-stretch_armhf.deb





6. 테스트


http://ipaddr:8096/
















7. 모바일 테스트


플레이스토어에 jellyfin 이라고 검색합니다. TV 용 앱도 있네요.


https://play.google.com/store/apps/details?id=org.jellyfin.mobile



Emby 일때도 앱 자체는 거의 웹뷰에 가까워서 호환성은 매우 좋습니다.















8. 마치며


아무래도 개인적인 판단으로는


비디오 / 영화 등은 PLEX 

음악은 Subsonic 입니다. ㅎㅎ


감사합니다.


반응형

댓글