Jellyfin im LXC Container

Guybrush

Active Member
Jul 23, 2019
54
4
28
44
Germany
Hi,

habe nun Jellyfin im LXC Container am start.
Leider bekomme ich es mit dem Transcoding nicht hin.

Hardware ist ein Core-i3 8100.

Wie bin ich vorgegangen.

Debian Buster container mit Jellyfin installiert und container editiert.

Code:
root@pve:~# ls -l /dev/dri/*
crw-rw---- 1 root video  226,   0 Oct 13 17:53 /dev/dri/card0
crw-rw---- 1 root render 226, 128 Oct 13 07:03 /dev/dri/renderD128

/dev/dri/by-path:
total 0
lrwxrwxrwx 1 root root  8 Oct 13 17:53 pci-0000:00:02.0-card -> ../card0
lrwxrwxrwx 1 root root 13 Oct 13 07:03 pci-0000:00:02.0-render -> ../renderD128
root@pve:~#

Code:
nano /etc/pve/lxc/103.conf

lxc.cgroup.devices.allow = c 226:128 rwm
lxc.mount.entry: /dev/dri/renderD128 dev/dri/renderD128 none bind,optional,create=file
mp0: /media/Filme,mp=/media/Filme

Auf dem Container sieht es so aus:

Code:
root@Jellyfin:~# ls -l /dev/dri/*crw-rw---- 1 root postdrop 226, 128 Oct 13 05:03 /dev/dri/renderD128

Alles läuft soweit nur leider Transcoding nicht.
So sieht die Fehlermeldung ffmpeg log:

Code:
ffmpeg version 4.2.1 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 8 (Debian 8.3.0-6)
  configuration: --toolchain=hardened --prefix=/usr --target-os=linux --enable-cross-compile --extra-cflags=--static --enable-gpl --enable-static --disable-doc --disable-ffplay --disable-shared --disable-libxcb --disable-sdl2 --disable-xlib --enable-libfontconfig --enable-fontconfig --enable-gmp --enable-gnutls --enable-libass --enable-libbluray --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libwebp --enable-libx264 --enable-libx265 --enable-libzvbi --enable-omx --enable-omx-rpi --enable-version3 --enable-vaapi --enable-vdpau --arch=amd64 --enable-nvenc --enable-nvdec
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
[AVHWDeviceContext @ 0x560ecb4543c0] No VA display found for device /dev/dri/renderD128.
Device creation failed: -22.
Failed to set value '/dev/dri/renderD128' for option 'vaapi_device': Invalid argument
Error parsing global options: Invalid argument

Das einzige was ich im Proxmox und im Container noch installiert habe ist vainfo.

Code:
root@Jellyfin:~# vainfo
error: XDG_RUNTIME_DIR not set in the environment.
error: can't connect to X server!
libva info: VA-API version 1.4.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_4
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.4 (libva 2.4.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Coffee Lake - 2.3.0
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Simple            : VAEntrypointEncSlice
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointEncSliceLP
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileH264High               : VAEntrypointEncSliceLP
      VAProfileH264MultiviewHigh      : VAEntrypointVLD
      VAProfileH264StereoHigh         : VAEntrypointVLD
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileNone                   : VAEntrypointVideoProc
      VAProfileJPEGBaseline           : VAEntrypointVLD
      VAProfileJPEGBaseline           : VAEntrypointEncPicture
      VAProfileVP8Version0_3          : VAEntrypointVLD
      VAProfileHEVCMain               : VAEntrypointVLD
      VAProfileHEVCMain10             : VAEntrypointVLD
      VAProfileVP9Profile0            : VAEntrypointVLD
      VAProfileVP9Profile2            : VAEntrypointVLD
root@Jellyfin:~#

Hat jemand eine Idee??? Wenn wir es zum laufen bringen, könnte ich noch eine installations Anleitung für Jellyfin im LXC Container erstellen. :)

Lg

Edit: Bin schon ein Stückchen weiter, berechtigungen habe ich gesetzt.

Code:
root@Jellyfin:~# chown jellyfin:render /dev/dri/*

root@Jellyfin:~# ls -l /dev/dri
total 0
crw-rw---- 1 jellyfin render 226, 128 Oct 13 05:03 renderD128

Fehler kommt jetzt das hier im ffmpeg log:

Code:
Input #0, matroska,webm, from 'file:/media/Filme/Captain Marvel.mkv':
  Metadata:
    encoder         : libebml v1.3.7 + libmatroska v1.5.0
    creation_time   : 2019-06-02T16:59:16.000000Z
  Duration: 02:03:41.54, start: 0.001000, bitrate: 48006 kb/s
    Chapter #0:0: start 0.000000, end 411.285867
    Metadata:
      title           : Kapitel 01
    Chapter #0:1: start 411.285867, end 847.054533
    Metadata:
      title           : Kapitel 02
    Chapter #0:2: start 847.054533, end 1397.437689
    Metadata:
      title           : Kapitel 03
    Chapter #0:3: start 1397.437689, end 1777.192067
    Metadata:
      title           : Kapitel 04
    Chapter #0:4: start 1777.192067, end 2106.938156
    Metadata:
      title           : Kapitel 05
    Chapter #0:5: start 2106.938156, end 2647.603289
    Metadata:
      title           : Kapitel 06
    Chapter #0:6: start 2647.603289, end 3042.664622
    Metadata:
      title           : Kapitel 07
    Chapter #0:7: start 3042.664622, end 3377.791067
    Metadata:
      title           : Kapitel 08
    Chapter #0:8: start 3377.791067, end 3781.986533
    Metadata:
      title           : Kapitel 09
    Chapter #0:9: start 3781.986533, end 4276.563956
    Metadata:
      title           : Kapitel 10
    Chapter #0:10: start 4276.563956, end 4668.330333
    Metadata:
      title           : Kapitel 11
    Chapter #0:11: start 4668.330333, end 5222.217000
    Metadata:
      title           : Kapitel 12
    Chapter #0:12: start 5222.217000, end 5601.596000
    Metadata:
      title           : Kapitel 13
    Chapter #0:13: start 5601.596000, end 6050.961578
    Metadata:
      title           : Kapitel 14
    Chapter #0:14: start 6050.961578, end 6384.252867
    Metadata:
      title           : Kapitel 15
    Chapter #0:15: start 6384.252867, end 6769.053956
    Metadata:
      title           : Kapitel 16
    Chapter #0:16: start 6769.053956, end 7421.540000
    Metadata:
      title           : Kapitel 17
    Stream #0:0(ger): Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
    Metadata:
      BPS-eng         : 46971205
      DURATION-eng    : 02:03:41.539000000
      NUMBER_OF_FRAMES-eng: 177939
      NUMBER_OF_BYTES-eng: 43574828950
      _STATISTICS_WRITING_APP-eng: mkvmerge v34.0.0 ('Sight and Seen') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-06-02 16:59:16
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:1(ger): Audio: eac3, 48000 Hz, 7.1, fltp (default)
    Metadata:
      BPS-eng         : 1024000
      DURATION-eng    : 02:03:41.536000000
      NUMBER_OF_FRAMES-eng: 231923
      NUMBER_OF_BYTES-eng: 949956608
      _STATISTICS_WRITING_APP-eng: mkvmerge v34.0.0 ('Sight and Seen') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-06-02 16:59:16
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:2(ger): Subtitle: hdmv_pgs_subtitle (default)
    Metadata:
      BPS-eng         : 25879
      DURATION-eng    : 02:02:14.202000000
      NUMBER_OF_FRAMES-eng: 2600
      NUMBER_OF_BYTES-eng: 23725457
      _STATISTICS_WRITING_APP-eng: mkvmerge v34.0.0 ('Sight and Seen') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-06-02 16:59:16
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream mapping:
  Stream #0:0 (hevc) -> overlay:main (graph 0)
  Stream #0:2 (pgssub) -> scale (graph 0)
  scale_vaapi (graph 0) -> Stream #0:0 (h264_vaapi)
  Stream #0:1 -> #0:1 (eac3 (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
[AVHWFramesContext @ 0x7f92d400f2c0] Failed to read image from surface 0x4000018: 20 (the requested function is not implemented).
[hevc @ 0x560359223600] Failed to transfer data to output frame: -5.
Error while processing the decoded data for stream #0:0
[libmp3lame @ 0x560359238840] 3 frames left in the queue on closing
Conversion failed!
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!