Skip to content

drm and dri exposed but no hardware acceleration #56

@gmsotavio

Description

@gmsotavio

Hello guys,

I would like to share my situation. I've been trying to enable hardware acceleration for my Jellyfin server using the instructions provided in this file Installation_TrueNAS_GUI.md. While I can see the dri and drm nodes inside my jails, videos requiring transcoding simply do not load. Below are the configurations of my system and the procedures I've followed:

System Configuration

  • Jellyfin installed in a Jail (with VNET), created and managed with iocage.
  • FreeBSD 13.2-RELEASE amd64
  • CPU: Intel i3-10105 (8) @ 3.700GHz
  • Intel iGPU: CometLake-S GT2 [UHD Graphics 630]
  • pciconf -vl returns:
vgapci0@pci0:0:2:0:     class=0x030000 rev=0x03 hdr=0x00 vendor=0x8086 device=0x9bc8 subvendor=0x1462 subdevice=0x7d20
    vendor     = 'Intel Corporation'
    device     = 'CometLake-S GT2 [UHD Graphics 630]'
    class      = display
    subclass   = VGA

Procedures Performed (Host)

Jail Creation and Jellyfin Installation

  1. Created the Jail with vnet=on and allow_mlock=1:

    iocage create -n jellyfin vnet=on allow_mlock=1 \
    ip4_addr="vnet0|192.168.31.131/24" \
    defaultrouter="192.168.31.1" \
    interfaces="vnet0:vm-public" \
    --release 13.2-RELEASE
    
  2. Installed Jellyfin inside the Jail:

    iocage pkg jellyfin update
    iocage pkg jellyfin install -y jellyfin
    iocage exec jellyfin mkdir /mnt/media
    iocage fstab --add jellyfin /tank2/media /mnt/media nullfs rw 0 0
    iocage exec jellyfin sysrc jellyfin_enable=TRUE
    iocage exec jellyfin service jellyfin start
    

drm-kmod Installation and Module Loading

  1. Installed the drm-kmod package:

    pkg install drm-kmod
    
  2. Added i915kms to the kld_list in /etc/rc.conf:

    sysrc kld_list+=i915kms
    
  3. Rebooted the system to load the new modules.

Verification of Loaded Modules and Device Nodes

  1. Confirmed that the modules i915kms and drm were loaded using kldstat:
# kldstat
Id Refs Address                Size Name
 1   86 0xffffffff80200000  1f3e2d0 kernel
 2    1 0xffffffff8213f000   579de0 vmm.ko
 3    1 0xffffffff826ba000     a4a0 cryptodev.ko
 4    1 0xffffffff826c5000   59dfa8 zfs.ko
 5    1 0xffffffff83210000   1858b8 i915kms.ko
 6    1 0xffffffff83396000    739e0 drm.ko
 7    2 0xffffffff8340a000     5220 linuxkpi_gplv2.ko
 8    3 0xffffffff83410000     62d8 dmabuf.ko
 9    1 0xffffffff83417000     3378 acpi_wmi.ko
10    1 0xffffffff8341b000     3250 ichsmb.ko
11    1 0xffffffff8341f000     2180 smbus.ko
12    1 0xffffffff83422000    31a80 linux.ko
13    4 0xffffffff83454000     be88 linux_common.ko
14    1 0xffffffff83460000    14b98 netlink.ko
15    1 0xffffffff83475000    2dca0 linux64.ko
16    1 0xffffffff834a3000     2260 pty.ko
17    1 0xffffffff834a6000     3530 fdescfs.ko
18    1 0xffffffff834aa000     73b0 linprocfs.ko
19    1 0xffffffff834b2000     3284 linsysfs.ko
20    1 0xffffffff834b6000     21cc nmdm.ko
21    1 0xffffffff834b9000     7638 if_bridge.ko
22    1 0xffffffff834c1000     60d8 bridgestp.ko
23    1 0xffffffff834c8000     2a08 mac_ntpd.ko
24    1 0xffffffff834cb000     4700 nullfs.ko
  1. Verified the creation of the nodes /dev/drm and /dev/dri:

    # ls -la /dev/dr
    dri/ drm/
    
    # ls -la /dev/dr*
    /dev/dri:
    total 1
    dr-xr-xr-x   2 root  wheel  512 Jul 30 23:33 .
    dr-xr-xr-x  13 root  wheel  512 Jul 30 20:33 ..
    lrwxr-xr-x   1 root  wheel    8 Jul 30 23:33 card0 -> ../drm/0
    lrwxr-xr-x   1 root  wheel   10 Jul 30 23:33 renderD128 -> ../drm/128
    

Devfs Rules Configuration

  1. Created the file /etc/devfs.rules with the following content:

    # cat /etc/devfs.rules
    [devfsrules_bpfjail=101]
    add path 'bpf*' unhide
    
    [plex_drm=10]
    add include $devfsrules_hide_all
    add include $devfsrules_unhide_basic
    add include $devfsrules_unhide_login
    add include $devfsrules_jail
    add include $devfsrules_bpfjail
    add path 'dri*' unhide
    add path 'dri/*' unhide
    add path 'drm*' unhide
    add path 'drm/*' unhide
    
  2. Restarted the devfs service:

    service devfs restart
    
  3. Applied the ruleset 10 to the Jellyfin Jail:

iocage set devfs_ruleset=10 jellyfin

Inside the Jellyfin Jail

Properties of the Jellyfin jail:

# iocage get all jellyfin
********************************************************************************
fdescfs(5) is not mounted, performance may suffer. Please run:
mount -t fdescfs null /dev/fd
You can also permanently mount it in /etc/fstab with the following entry:
fdescfs /dev/fd  fdescfs  rw  0  0
********************************************************************************

CONFIG_VERSION:27
allow_chflags:0
allow_mlock:1
allow_mount:0
allow_mount_devfs:0
allow_mount_fusefs:0
allow_mount_nullfs:0
allow_mount_procfs:0
allow_mount_tmpfs:0
allow_mount_zfs:0
allow_quotas:0
allow_raw_sockets:0
allow_set_hostname:1
allow_socket_af:0
allow_sysvipc:0
allow_tun:0
allow_vmm:0
assign_localhost:0
available:readonly
basejail:0
boot:0
bpf:0
children_max:0
cloned_release:13.2-RELEASE
comment:none
compression:lz4
compressratio:readonly
coredumpsize:off
count:1
cpuset:off
cputime:off
datasize:off
dedup:off
defaultrouter:192.168.31.1
defaultrouter6:auto
depends:none
devfs_ruleset:1006
dhcp:0
enforce_statfs:2
exec_clean:1
exec_created:/usr/bin/true
exec_fib:0
exec_jail_user:root
exec_poststart:/usr/bin/true
exec_poststop:/usr/bin/true
exec_prestart:/usr/bin/true
exec_prestop:/usr/bin/true
exec_start:/bin/sh /etc/rc
exec_stop:/bin/sh /etc/rc.shutdown
exec_system_jail_user:0
exec_system_user:root
exec_timeout:60
host_domainname:none
host_hostname:jellyfin
host_hostuuid:jellyfin
host_time:1
hostid:611573d9-2402-ce1d-a84a-d8bbc1509368
hostid_strict_check:0
interfaces:vnet0:vm-public
ip4:new
ip4_addr:vnet0|192.168.31.131/24
ip4_saddrsel:1
ip6:new
ip6_addr:none
ip6_saddrsel:1
ip_hostname:0
jail_zfs:0
jail_zfs_dataset:iocage/jails/jellyfin/data
jail_zfs_mountpoint:none
last_started:2023-07-31 22:24:02
localhost_ip:none
login_flags:-f root
mac_prefix:1cfd08
maxproc:off
memorylocked:off
memoryuse:off
min_dyn_devfs_ruleset:1000
mount_devfs:1
mount_fdescfs:1
mount_linprocfs:0
mount_procfs:0
mountpoint:readonly
msgqqueued:off
msgqsize:off
nat:0
nat_backend:ipfw
nat_forwards:none
nat_interface:none
nat_prefix:172.16
nmsgq:off
notes:none
nsem:off
nsemop:off
nshm:off
nthr:off
openfiles:off
origin:readonly
owner:root
pcpu:off
plugin_name:none
plugin_repository:none
priority:99
pseudoterminals:off
quota:none
readbps:off
readiops:off
release:13.2-RELEASE
reservation:none
resolver:/etc/resolv.conf
rlimits:off
rtsold:0
securelevel:2
shmsize:off
stacksize:off
state:up
stop_timeout:30
swapuse:off
sync_state:none
sync_target:none
sync_tgt_zpool:none
sysvmsg:new
sysvsem:new
sysvshm:new
template:0
type:jail
used:readonly
vmemoryuse:off
vnet:1
vnet0_mac:1cfd0829d59a 1cfd0829d59b
vnet1_mac:none
vnet2_mac:none
vnet3_mac:none
vnet_default_interface:auto
vnet_interfaces:none
wallclock:off
writebps:off
writeiops:off

Starting the Jellyfin jail:

# iocage start jellyfin
********************************************************************************
fdescfs(5) is not mounted, performance may suffer. Please run:
mount -t fdescfs null /dev/fd
You can also permanently mount it in /etc/fstab with the following entry:
fdescfs /dev/fd  fdescfs  rw  0  0
********************************************************************************

No default gateway found for ipv6.
* Starting jellyfin
  + Started OK
  + Using devfs_ruleset: 1006 (cloned from devfs_ruleset 10)
  + Configuring VNET OK
  + Using IP options: vnet
  + Starting services OK
  + Executing poststart OK

Installing the packages:

pkg install ffmpeg
pkg install libva-utils
pkg install libva-intel-media-driver

Versions of the installed packages:

root@jellyfin:/dev # pkg info libva-utils ffmpeg libva-intel-media-driver jellyfin
libva-utils-2.18.1
ffmpeg-6.0,1
libva-intel-media-driver-22.4.3_1
jellyfin-10.8.10_1

FFmpeg config:

root@jellyfin:~ # ffmpeg 
ffmpeg version 6.0 Copyright (c) 2000-2023 the FFmpeg developers
  built with FreeBSD clang version 13.0.0 ([email protected]:llvm/llvm-project.git llvmorg-13.0.0-0-gd7b669b3a303)
  configuration: --prefix=/usr/local --mandir=/usr/local/man --datadir=/usr/local/share/ffmpeg --docdir=/usr/local/share/doc/ffmpeg --pkgconfigdir=/usr/local/libdata/pkgconfig --disable-static --disable-libcelt --enable-shared --enable-pic --enable-gpl --cc=cc --cxx=c++ --disable-alsa --disable-libopencore-amrnb --disable-libopencore-amrwb --enable-libaom --disable-libaribb24 --enable-asm --enable-libass --disable-libbs2b --disable-libcaca --disable-libcdio --disable-libcodec2 --enable-libdav1d --disable-libdavs2 --disable-libdc1394 --disable-debug --enable-htmlpages --enable-libdrm --disable-libfdk-aac --disable-libflite --enable-fontconfig --enable-libfreetype --enable-frei0r --disable-libfribidi --disable-gcrypt --disable-libglslang --disable-libgme --enable-gmp --enable-gnutls --enable-version3 --disable-libgsm --enable-iconv --disable-libilbc --disable-libjack --enable-libjxl --disable-libklvanc --disable-libkvazaar --disable-ladspa --enable-libmp3lame --enable-lcms2 --disable-liblensfun --disable-libbluray --enable-libplacebo --disable-librsvg --disable-librtmp --enable-libxml2 --disable-lto --disable-lv2 --disable-mbedtls --disable-libmfx --disable-libmodplug --disable-libmysofa --enable-network --disable-nonfree --enable-nvenc --disable-openal --disable-opencl --disable-opengl --disable-libopenh264 --disable-libopenjpeg --disable-libopenmpt --disable-openssl --disable-libopenvino --enable-optimizations --enable-libopus --disable-pocketsphinx --disable-libpulse --disable-librabbitmq --disable-librav1e --disable-librist --enable-runtime-cpudetect --disable-librubberband --disable-sdl2 --enable-libshaderc --disable-libsmbclient --disable-libsnappy --disable-sndio --disable-libsoxr --disable-libspeex --disable-libsrt --disable-libssh --enable-libsvtav1 --disable-libtensorflow --disable-libtesseract --disable-libtheora --disable-libtwolame --disable-libuavs3d --enable-libv4l2 --enable-vaapi --disable-vapoursynth --enable-vdpau --disable-libvidstab --enable-libvmaf --enable-libvorbis --disable-libvo-amrwbenc --disable-libvpl --enable-libvpx --enable-vulkan --enable-libwebp --enable-libx264 --enable-libx265 --disable-libxavs2 --enable-libxcb --disable-libxvid --disable-outdev=xv --disable-libzimg --disable-libzmq --disable-libzvbi
  libavutil      58.  2.100 / 58.  2.100
  libavcodec     60.  3.100 / 60.  3.100
  libavformat    60.  3.100 / 60.  3.100
  libavdevice    60.  1.100 / 60.  1.100
  libavfilter     9.  3.100 /  9.  3.100
  libswscale      7.  1.100 /  7.  1.100
  libswresample   4. 10.100 /  4. 10.100
  libpostproc    57.  1.100 / 57.  1.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Confirming that the jail can see the drm and dri nodes:

root@jellyfin:/dev # ls -la
total 11
dr-xr-xr-x  13 root  wheel       512 Jul 31 19:23 .
drwxr-xr-x  18 root  wheel        22 Jun 20 20:57 ..
crw-------   1 root  wheel      0x1f Jul 31 19:24 bpf
lrwxr-xr-x   1 root  wheel         3 Jul 31 19:23 bpf0 -> bpf
crw-rw-rw-   1 root  wheel      0x50 Jul 31 19:17 crypto
dr-xr-xr-x   2 root  wheel       512 Jul 31 19:23 dri
dr-xr-xr-x   2 root  wheel       512 Jul 31 19:23 drm
dr-xr-xr-x   2 root  wheel       512 Jul 31 19:17 fd
crw-rw-rw-   1 root  wheel      0x23 Jul 31 19:33 null
crw-rw-rw-   1 root  wheel     0x1e6 Jul 31 19:17 ptmx
dr-xr-xr-x   2 root  wheel       512 Jul 31 19:23 pts
crw-r--r--   1 root  wheel       0x7 Jul 31 16:17 random
lrwxr-xr-x   1 root  wheel         4 Jul 31 19:23 stderr -> fd/2
lrwxr-xr-x   1 root  wheel         4 Jul 31 19:23 stdin -> fd/0
lrwxr-xr-x   1 root  wheel         4 Jul 31 19:23 stdout -> fd/1
lrwxr-xr-x   1 root  wheel         6 Jul 31 19:23 urandom -> random
crw-rw-rw-   1 root  wheel      0x24 Jul 31 19:17 zero
crw-rw-rw-   1 root  operator   0x4d Jul 31 19:17 zfs
root@jellyfin:~ # ls -la /dev/dri
total 1
dr-xr-xr-x   2 root  wheel  512 Jul 31 19:23 .
dr-xr-xr-x  13 root  wheel  512 Jul 31 19:23 ..
lrwxr-xr-x   1 root  wheel    8 Jul 31 19:23 card0 -> ../drm/0
lrwxr-xr-x   1 root  wheel   10 Jul 31 19:23 renderD128 -> ../drm/128

Result of the command vainfo:

root@jellyfin:~ # vainfo 
Trying display: wayland
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
Trying display: x11
error: can't connect to X server!
Trying display: drm
libva info: VA-API version 1.18.0
libva info: Trying to open /usr/local/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_18
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.18 (libva 2.18.1)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 22.4.3 (intel-media-22.4.3)
vainfo: Supported profiles and entrypoints
      VAProfileNone                   : VAEntrypointVideoProc
      VAProfileNone                   : VAEntrypointStats
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Simple            : VAEntrypointEncSlice
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointFEI
      VAProfileH264Main               : VAEntrypointEncSliceLP
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileH264High               : VAEntrypointFEI
      VAProfileH264High               : VAEntrypointEncSliceLP
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileJPEGBaseline           : VAEntrypointVLD
      VAProfileJPEGBaseline           : VAEntrypointEncPicture
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline: VAEntrypointFEI
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
      VAProfileVP8Version0_3          : VAEntrypointVLD
      VAProfileVP8Version0_3          : VAEntrypointEncSlice
      VAProfileHEVCMain               : VAEntrypointVLD
      VAProfileHEVCMain               : VAEntrypointEncSlice
      VAProfileHEVCMain               : VAEntrypointFEI
      VAProfileHEVCMain10             : VAEntrypointVLD
      VAProfileHEVCMain10             : VAEntrypointEncSlice
      VAProfileVP9Profile0            : VAEntrypointVLD
      VAProfileVP9Profile2            : VAEntrypointVLD

Added the user jellyfin to the group video:

pw groupmod -n video -m jellyfin

Created the file /usr/local/bin/lffmpeg with the following content:

root@jellyfin:~ # cat /usr/local/bin/lffmpeg

#!/bin/sh
echo "$@" > /tmp/params
ffmpeg -hwaccel vaapi "$@"

Added execute permission to the file /usr/local/bin/lffmpeg:

chmod +x /usr/local/bin/lffmpeg

root@jellyfin:~ # ls -la /usr/local/bin/lffmpeg:

-rwxr-xr-x  1 root  wheel  201 Jul 30 23:19 /usr/local/bin/lffmpeg

Playback settings on Jellyfin web:

Image 1

Image 2

When trying to load a movie, I notice that it never leaves the loading screen (it keeps spinning indefinitely with the loading circle):

Screenshot_20230731_194704

The transcode log:

[2023-07-31 19:44:38.289 -03:00] [INF] [115] Jellyfin.Api.Helpers.MediaInfoHelper: StreamBuilder.BuildVideoItem( Profile="Anonymous Profile", Path="/mnt/downloads/1917 (2019) [2160p] [4K] [BluRay] [7.1] [YTS.MX]/1917.2019.2160p.4K.BluRay.x265.10bit.AAC7.1-[YTS.MX].mkv", AudioStreamIndex=1, SubtitleStreamIndex=2 ) => ( PlayMethod=Transcode, TranscodeReason=VideoCodecNotSupported, AudioCodecNotSupported ) "media:/videos/f4601d32-8b44-0985-a3d4-ab66e93459b5/master.m3u8?MediaSourceId=f4601d328b440985a3d4ab66e93459b5&VideoCodec=h264&AudioCodec=aac&AudioStreamIndex=1&VideoBitrate=139616000&AudioBitrate=384000&AudioSampleRate=48000&MaxFramerate=23.976025&api_key=<token>&TranscodingMaxAudioChannels=2&RequireAvc=false&Tag=c5b1f3b099e2d7d1a2f27b9476348e46&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&hevc-level=150&hevc-videobitdepth=10&hevc-profile=main10&hevc-audiochannels=8&aac-profile=lc&TranscodeReasons=VideoCodecNotSupported,%20AudioCodecNotSupported"
[2023-07-31 19:44:38.775 -03:00] [INF] [111] Jellyfin.Api.Controllers.DynamicHlsController: Current HLS implementation doesn't support non-keyframe breaks but one is requested, ignoring that request
[2023-07-31 19:44:38.776 -03:00] [INF] [111] Jellyfin.Api.Helpers.TranscodingJobHelper: "/usr/local/bin/lffmpeg" "-analyzeduration 200M  -i file:\"/mnt/downloads/1917 (2019) [2160p] [4K] [BluRay] [7.1] [YTS.MX]/1917.2019.2160p.4K.BluRay.x265.10bit.AAC7.1-[YTS.MX].mkv\" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_vaapi -rc_mode VBR -b:v 6584206 -maxrate 6584206 -bufsize 13168412 -force_key_frames:0 \"expr:gte(t,0+n_forced*3)\" -vf \"setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale=trunc(min(max(iw\,ih*a)\,min(3840\,1606*a))/2)*2:trunc(min(max(iw/a\,ih)\,min(3840/a\,1606))/2)*2,format=nv12,hwupload=derive_device=vaapi\" -codec:a:0 aac -ac 2 -ab 384000 -ar 48000 -af \"volume=2\" -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type mpegts -start_number 0 -hls_segment_filename \"/var/db/jellyfin/transcodes/983a1407df13114b421e601e7585edcb%d.ts\" -hls_playlist_type vod -hls_list_size 0 -y \"/var/db/jellyfin/transcodes/983a1407df13114b421e601e7585edcb.m3u8\""

More logs:

/usr/local/bin/lffmpeg -analyzeduration 200M  -i file:"/mnt/downloads/1917 (2019) [2160p] [4K] [BluRay] [7.1] [YTS.MX]/1917.2019.2160p.4K.BluRay.x265.10bit.AAC7.1-[YTS.MX].mkv" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_vaapi -rc_mode VBR -b:v 6584206 -maxrate 6584206 -bufsize 13168412 -force_key_frames:0 "expr:gte(t,0+n_forced*3)" -vf "setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale=trunc(min(max(iw\,ih*a)\,min(3840\,1606*a))/2)*2:trunc(min(max(iw/a\,ih)\,min(3840/a\,1606))/2)*2,format=nv12,hwupload=derive_device=vaapi" -codec:a:0 aac -ac 2 -ab 384000 -ar 48000 -af "volume=2" -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type mpegts -start_number 0 -hls_segment_filename "/var/db/jellyfin/transcodes/983a1407df13114b421e601e7585edcb%d.ts" -hls_playlist_type vod -hls_list_size 0 -y "/var/db/jellyfin/transcodes/983a1407df13114b421e601e7585edcb.m3u8"


ffmpeg version 6.0 Copyright (c) 2000-2023 the FFmpeg developers
  built with FreeBSD clang version 13.0.0 ([email protected]:llvm/llvm-project.git llvmorg-13.0.0-0-gd7b669b3a303)
  configuration: --prefix=/usr/local --mandir=/usr/local/man --datadir=/usr/local/share/ffmpeg --docdir=/usr/local/share/doc/ffmpeg --pkgconfigdir=/usr/local/libdata/pkgconfig --disable-static --disable-libcelt --enable-shared --enable-pic --enable-gpl --cc=cc --cxx=c++ --disable-alsa --disable-libopencore-amrnb --disable-libopencore-amrwb --enable-libaom --disable-libaribb24 --enable-asm --enable-libass --disable-libbs2b --disable-libcaca --disable-libcdio --disable-libcodec2 --enable-libdav1d --disable-libdavs2 --disable-libdc1394 --disable-debug --enable-htmlpages --enable-libdrm --disable-libfdk-aac --disable-libflite --enable-fontconfig --enable-libfreetype --enable-frei0r --disable-libfribidi --disable-gcrypt --disable-libglslang --disable-libgme --enable-gmp --enable-gnutls --enable-version3 --disable-libgsm --enable-iconv --disable-libilbc --disable-libjack --enable-libjxl --disable-libklvanc --disable-libkvazaar --disable-ladspa --enable-libmp3lame --enable-lcms2 --disable-liblensfun --disable-libbluray --enable-libplacebo --disable-librsvg --disable-librtmp --enable-libxml2 --disable-lto --disable-lv2 --disable-mbedtls --disable-libmfx --disable-libmodplug --disable-libmysofa --enable-network --disable-nonfree --enable-nvenc --disable-openal --disable-opencl --disable-opengl --disable-libopenh264 --disable-libopenjpeg --disable-libopenmpt --disable-openssl --disable-libopenvino --enable-optimizations --enable-libopus --disable-pocketsphinx --disable-libpulse --disable-librabbitmq --disable-librav1e --disable-librist --enable-runtime-cpudetect --disable-librubberband --disable-sdl2 --enable-libshaderc --disable-libsmbclient --disable-libsnappy --disable-sndio --disable-libsoxr --disable-libspeex --disable-libsrt --disable-libssh --enable-libsvtav1 --disable-libtensorflow --disable-libtesseract --disable-libtheora --disable-libtwolame --disable-libuavs3d --enable-libv4l2 --enable-vaapi --disable-vapoursynth --enable-vdpau --disable-libvidstab --enable-libvmaf --enable-libvorbis --disable-libvo-amrwbenc --disable-libvpl --enable-libvpx --enable-vulkan --enable-libwebp --enable-libx264 --enable-libx265 --disable-libxavs2 --enable-libxcb --disable-libxvid --disable-outdev=xv --disable-libzimg --disable-libzmq --disable-libzvbi
  libavutil      58.  2.100 / 58.  2.100
  libavcodec     60.  3.100 / 60.  3.100
  libavformat    60.  3.100 / 60.  3.100
  libavdevice    60.  1.100 / 60.  1.100
  libavfilter     9.  3.100 /  9.  3.100
  libswscale      7.  1.100 /  7.  1.100
  libswresample   4. 10.100 /  4. 10.100
  libpostproc    57.  1.100 / 57.  1.100
[matroska,webm @ 0x85ad3a280] Could not find codec parameters for stream 3 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (200000000) and 'probesize' (5000000) options
[matroska,webm @ 0x85ad3a280] Could not find codec parameters for stream 4 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (200000000) and 'probesize' (5000000) options
[matroska,webm @ 0x85ad3a280] Could not find codec parameters for stream 5 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (200000000) and 'probesize' (5000000) options
Input #0, matroska,webm, from 'file:/mnt/downloads/1917 (2019) [2160p] [4K] [BluRay] [7.1] [YTS.MX]/1917.2019.2160p.4K.BluRay.x265.10bit.AAC7.1-[YTS.MX].mkv':
  Metadata:
    ENCODER         : Lavf58.41.100
  Duration: 01:58:59.51, start: 0.000000, bitrate: 6584 kb/s
  Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv), 3840x1606 [SAR 1:1 DAR 1920:803], 23.98 fps, 23.98 tbr, 1k tbn (default)
    Metadata:
      ENCODER         : Lavc58.75.100 libx265
      DURATION        : 01:58:59.509000000
  Stream #0:1: Audio: aac (LC), 48000 Hz, 7.1, fltp (default)
    Metadata:
      ENCODER         : Lavc58.75.100 libfdk_aac
      DURATION        : 01:58:59.509000000
  Stream #0:2(eng): Subtitle: subrip (default)
    Metadata:
      title           : English-SRT
      BPS-eng         : 34
      DURATION-eng    : 01:45:44.619000000
      NUMBER_OF_FRAMES-eng: 934
      NUMBER_OF_BYTES-eng: 27417
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      DURATION        : 01:47:15.419000000
  Stream #0:3(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title           : English-SDH-PGS
      BPS-eng         : 27959
      DURATION-eng    : 01:45:49.468000000
      NUMBER_OF_FRAMES-eng: 2202
      NUMBER_OF_BYTES-eng: 22191030
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      DURATION        : 01:47:15.431000000
  Stream #0:4(fre): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title           : French-PGS
      BPS-eng         : 22671
      DURATION-eng    : 01:57:50.856000000
      NUMBER_OF_FRAMES-eng: 1888
      NUMBER_OF_BYTES-eng: 20038011
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      DURATION        : 01:58:39.448000000
  Stream #0:5(spa): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title           : Spanish-PGS
      BPS-eng         : 21293
      DURATION-eng    : 01:57:50.856000000
      NUMBER_OF_FRAMES-eng: 2022
      NUMBER_OF_BYTES-eng: 18820204
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      DURATION        : 01:58:39.448000000
Stream mapping:
  Stream #0:0 -> #0:0 (hevc (native) -> h264 (h264_vaapi))
  Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help

I appreciate any tips you may have to offer. Thank you in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions