[ Jellyfin ] The Free Software Media System

Discussion on apps, protocols, APIs, specifications, and more. You are welcome to join us as a TOS app developer!
User avatar
ajkaramba
Posts: 20
Joined: 26 Dec 2024, 00:20
Germany

Re: [ Jellyfin ] The Free Software Media System

Post by ajkaramba »

outkastm wrote: 27 Dec 2024, 19:54 can you rund these commands in terminal and post the result ?

Code: Select all

dmesg | grep i915
[ 50.331078] i915 0000:00:02.0: vgaarb: deactivate vga console
[ 50.331138] i915 0000:00:02.0: [drm] Transparent Hugepage support is recommended for optimal performance on this platform!
[ 50.331927] i915 0000:00:02.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=io+mem:owns=io+mem
[ 50.334990] [drm] Initialized i915 1.6.0 20201103 for 0000:00:02.0 on minor 0
[ 50.345000] i915 0000:00:02.0: [drm] Finished loading DMC firmware i915/icl_dmc_ver1_09.bin (v1.9)
[ 50.385314] i915 0000:00:02.0: [drm] Cannot find any crtc or sizes
[ 50.435803] i915 0000:00:02.0: [drm] Cannot find any crtc or sizes
[ 50.487914] i915 0000:00:02.0: [drm] Cannot find any crtc or sizes
[25046.946672] i915 0000:00:02.0: [drm] Resetting vcs0 for CS error
[25046.946760] i915 0000:00:02.0: [drm] ffmpeg[449693] context reset due to GPU hang
[25046.946899] i915 0000:00:02.0: [drm] GPU HANG: ecode 11:4:3b7f7f7f, in ffmpeg [449693]
[25053.268877] i915 0000:00:02.0: [drm] Resetting vcs0 for preemption time out
[25053.268965] i915 0000:00:02.0: [drm] ffmpeg[449693] context reset due to GPU hang
[25053.270263] i915 0000:00:02.0: [drm] GPU HANG: ecode 11:4:a8ffff7d, in ffmpeg [449693]
[25136.142521] i915 0000:00:02.0: [drm] Resetting vcs0 for CS error
[25136.142607] i915 0000:00:02.0: [drm] ffmpeg[451115] context reset due to GPU hang
[25136.143942] i915 0000:00:02.0: [drm] GPU HANG: ecode 11:4:3b7f7f7f, in ffmpeg [451115]
[25136.193009] i915 0000:00:02.0: [drm] Resetting vcs0 for CS error
[25136.193090] i915 0000:00:02.0: [drm] ffmpeg[451115] context reset due to GPU hang
[25136.194384] i915 0000:00:02.0: [drm] GPU HANG: ecode 11:4:3b7f7f7f, in ffmpeg [451115]
[25203.283657] i915 0000:00:02.0: [drm] Resetting vcs0 for preemption time out
[25203.283739] i915 0000:00:02.0: [drm] ffmpeg[452109] context reset due to GPU hang
[25203.285030] i915 0000:00:02.0: [drm] GPU HANG: ecode 11:4:a8ffff7d, in ffmpeg [452109]
[25203.332067] i915 0000:00:02.0: [drm] Resetting vcs0 for CS error
[25203.332153] i915 0000:00:02.0: [drm] ffmpeg[452109] context reset due to GPU hang
[25203.333443] i915 0000:00:02.0: [drm] GPU HANG: ecode 11:4:3b7f7f7f, in ffmpeg [452109]
[25260.371193] i915 0000:00:02.0: [drm] Resetting vcs0 for preemption time out
[25260.371910] i915 0000:00:02.0: [drm] *ERROR* vcs0 reset request timed out: {request: 00000001, RESET_CTL: 00000001}
[25260.373161] i915 0000:00:02.0: [drm] GPU HANG: ecode 11:4:abffefff, in ffmpeg [453159]
[25274.579514] i915 0000:00:02.0: [drm] GPU HANG: ecode 11:4:abffefff, in ffmpeg [453159]
[25274.580570] i915 0000:00:02.0: [drm] Resetting vcs0 for stopped heartbeat on vcs0
[25274.581279] i915 0000:00:02.0: [drm] *ERROR* vcs0 reset request timed out: {request: 00000001, RESET_CTL: 00000001}
[25274.581345] i915 0000:00:02.0: [drm] Resetting chip for stopped heartbeat on vcs0
[25274.684398] i915 0000:00:02.0: [drm] *ERROR* vcs0 reset request timed out: {request: 00000001, RESET_CTL: 00000001}
[25274.685127] i915 0000:00:02.0: [drm] *ERROR* vcs0 reset request timed out: {request: 00000001, RESET_CTL: 00000001}
[25274.685250] i915 0000:00:02.0: [drm] ffmpeg[453159] context reset due to GPU hang
[25279.711495] Fence expiration time out i915-0000:00:02.0:ffmpeg[453159]:8!
[25279.711510] Fence expiration time out i915-0000:00:02.0:ffmpeg[453159]:6!
[25280.403030] i915 0000:00:02.0: [drm] Resetting vcs0 for preemption time out
[25280.403119] i915 0000:00:02.0: [drm] ffmpeg[453159] context reset due to GPU hang
[25280.404550] i915 0000:00:02.0: [drm] GPU HANG: ecode 11:4:a8ffff7d, in ffmpeg [453159]
[25388.562206] i915 0000:00:02.0: [drm] Resetting vcs0 for preemption time out
[25388.562919] i915 0000:00:02.0: [drm] *ERROR* vcs0 reset request timed out: {request: 00000001, RESET_CTL: 00000001}
[25388.564152] i915 0000:00:02.0: [drm] GPU HANG: ecode 11:4:abffefff, in ffmpeg [455245]
[25402.578607] i915 0000:00:02.0: [drm] GPU HANG: ecode 11:4:abffefff, in ffmpeg [455245]
[25402.579687] i915 0000:00:02.0: [drm] Resetting vcs0 for stopped heartbeat on vcs0
[25402.580397] i915 0000:00:02.0: [drm] *ERROR* vcs0 reset request timed out: {request: 00000001, RESET_CTL: 00000001}
[25402.580463] i915 0000:00:02.0: [drm] Resetting chip for stopped heartbeat on vcs0
[25402.683513] i915 0000:00:02.0: [drm] *ERROR* vcs0 reset request timed out: {request: 00000001, RESET_CTL: 00000001}
[25402.684244] i915 0000:00:02.0: [drm] *ERROR* vcs0 reset request timed out: {request: 00000001, RESET_CTL: 00000001}
[25402.684355] i915 0000:00:02.0: [drm] ffmpeg[455245] context reset due to GPU hang
[25406.289992] i915 0000:00:02.0: [drm] Resetting vcs0 for preemption time out
[25406.290708] i915 0000:00:02.0: [drm] *ERROR* vcs0 reset request timed out: {request: 00000001, RESET_CTL: 00000001}
[25406.291963] i915 0000:00:02.0: [drm] GPU HANG: ecode 11:4:abffefff, in ffmpeg [455245]
[25407.917442] Fence expiration time out i915-0000:00:02.0:ffmpeg[455245]:8!
[25407.917450] Fence expiration time out i915-0000:00:02.0:ffmpeg[455245]:6!
[25417.618478] i915 0000:00:02.0: [drm] GPU HANG: ecode 11:4:abffefff, in ffmpeg [455245]
[25417.619559] i915 0000:00:02.0: [drm] Resetting vcs0 for stopped heartbeat on vcs0
[25417.620269] i915 0000:00:02.0: [drm] *ERROR* vcs0 reset request timed out: {request: 00000001, RESET_CTL: 00000001}
[25417.620329] i915 0000:00:02.0: [drm] Resetting chip for stopped heartbeat on vcs0
[25417.724666] i915 0000:00:02.0: [drm] *ERROR* vcs0 reset request timed out: {request: 00000001, RESET_CTL: 00000001}
[25417.725395] i915 0000:00:02.0: [drm] *ERROR* vcs0 reset request timed out: {request: 00000001, RESET_CTL: 00000001}
[25417.725503] i915 0000:00:02.0: [drm] ffmpeg[455245] context reset due to GPU hang
[25428.305947] i915 0000:00:02.0: [drm] Resetting vcs0 for preemption time out
[25428.306030] i915 0000:00:02.0: [drm] ffmpeg[455829] context reset due to GPU hang
[25428.307384] i915 0000:00:02.0: [drm] GPU HANG: ecode 11:4:a8ffff7d, in ffmpeg [455829]
[25428.356159] i915 0000:00:02.0: [drm] Resetting vcs0 for CS error
[25428.356243] i915 0000:00:02.0: [drm] ffmpeg[455829] context reset due to GPU hang
[25428.357527] i915 0000:00:02.0: [drm] GPU HANG: ecode 11:4:3b7f7f7f, in ffmpeg [455829]
User avatar
ajkaramba
Posts: 20
Joined: 26 Dec 2024, 00:20
Germany

Re: [ Jellyfin ] The Free Software Media System

Post by ajkaramba »

Can you already say if it's an error on my side or a problem of the ffmpeg/jellyfin application?
User avatar
outkastm
Gold Member
Posts: 1457
Joined: 29 Dec 2020, 23:52

Re: [ Jellyfin ] The Free Software Media System

Post by outkastm »

Well, is not easy to investigate, especially if no other user is reporting this issue. Maybe I will have some time to upgrade my F4-423 to TOS6 for some local tests.
From your log, it seems that the GPU hang and this can be related to kernel, GPU driver or the media played.
Have you tried to play different files? Same issue? I will provide soon a new app with updated media driver
User avatar
ajkaramba
Posts: 20
Joined: 26 Dec 2024, 00:20
Germany

Re: [ Jellyfin ] The Free Software Media System

Post by ajkaramba »

outkastm wrote: 31 Dec 2024, 05:02 Well, is not easy to investigate, especially if no other user is reporting this issue. Maybe I will have some time to upgrade my F4-423 to TOS6 for some local tests.
From your log, it seems that the GPU hang and this can be related to kernel, GPU driver or the media played.
Have you tried to play different files? Same issue? I will provide soon a new app with updated media driver
I updated the NAS to a newer version, here is a newer output:
[ 49.399015] i915 0000:00:02.0: vgaarb: deactivate vga console
[ 49.399078] i915 0000:00:02.0: [drm] Transparent Hugepage support is recommended for optimal performance on this platform!
[ 49.400001] i915 0000:00:02.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=io+mem:owns=io+mem
[ 49.403217] [drm] Initialized i915 1.6.0 20201103 for 0000:00:02.0 on minor 0
[ 49.410347] i915 0000:00:02.0: [drm] Finished loading DMC firmware i915/icl_dmc_ver1_09.bin (v1.9)
[ 49.454813] i915 0000:00:02.0: [drm] Cannot find any crtc or sizes
[ 49.504814] i915 0000:00:02.0: [drm] Cannot find any crtc or sizes
[ 49.558593] i915 0000:00:02.0: [drm] Cannot find any crtc or sizes

What I can say if I watch the logs in Jellyfin I only see Remux or DirecStream when a stream is working. Everytime I see FFmpeg.Transcode it shows "Conversion failed!" with many movies I tested. When I try to set streaming bitrate below 4 Mbit/s, every movie should be transcoded. That way, I wasn*t able to play a single movie.
User avatar
ajkaramba
Posts: 20
Joined: 26 Dec 2024, 00:20
Germany

Re: [ Jellyfin ] The Free Software Media System

Post by ajkaramba »

Here is a part of the Jellyfin Log where transcoding failed:

ffmpeg version 5.1.3 Copyright (c) 2000-2022 the FFmpeg developers
built with gcc 7.2.0 (Buildroot 2017.11.2)
configuration: --pkg-config=pkg-config --prefix=/usr/local/ffmpeg51/sys --arch=x86_64 --target-os=linux --cross-prefix=x86_64-tnas-linux-gnu- --enable-cross-compile --extra-cflags='-O2 -I/usr/local/ffmpeg/sys/include' --extra-ldflags=-L/usr/local/ffmpeg/sys/lib --enable-static --enable-gpl --enable-version3 --libdir=/usr/local/ffmpeg51/sys/lib --shlibdir=/usr/local/ffmpeg51/sys/lib --enable-libcelt --enable-fontconfig --enable-gnutls --enable-hwaccels --enable-vaapi --enable-iconv --enable-libass --enable-libbluray --enable-libdc1394 --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libxvid --enable-libmodplug --enable-libopus --enable-shared --enable-pthreads --enable-libopenjpeg --disable-libopencv --enable-avisynth --enable-libgme --enable-libcaca --enable-libx264 --enable-libx265 --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --extra-libs=-latomic --cpu=nocona --enable-libdrm --enable-libmfx --enable-libvpx
libavutil 57. 28.100 / 57. 28.100
libavcodec 59. 37.100 / 59. 37.100
libavformat 59. 27.100 / 59. 27.100
libavdevice 59. 7.100 / 59. 7.100
libavfilter 8. 44.100 / 8. 44.100
libswscale 6. 7.100 / 6. 7.100
libswresample 4. 7.100 / 4. 7.100
libpostproc 56. 6.100 / 56. 6.100
Unrecognized option 'svtav1-params:0'.
Error splitting the argument list: Option not found
User avatar
Ricarant78
Posts: 2
Joined: 02 Jan 2025, 03:24
United States of America

Re: [ Jellyfin ] The Free Software Media System

Post by Ricarant78 »

Hi,I also have a TerraMaster F4-423 with TOS6 and your latest apps from the community store and hardware transcoding is not working on my device, i did ran the commands that you posted previously and this is what i got
110.897635] i915 0000:00:02.0: vgaarb: deactivate vga console
[ 110.897696] i915 0000:00:02.0: [drm] Transparent Hugepage support is recommended for optimal performance on this platform!
[ 110.898600] i915 0000:00:02.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=io+mem:owns=io+mem
[ 110.899435] i915 0000:00:02.0: [drm] Finished loading DMC firmware i915/icl_dmc_ver1_09.bin (v1.9)
[ 110.905993] [drm] Initialized i915 1.6.0 20201103 for 0000:00:02.0 on minor 0
[ 110.952941] i915 0000:00:02.0: [drm] Cannot find any crtc or sizes
[ 110.996860] i915 0000:00:02.0: [drm] Cannot find any crtc or sizes
[ 111.042876] i915 0000:00:02.0: [drm] Cannot find any crtc or sizes
[ 3026.583072] i915 0000:00:02.0: [drm] Resetting rcs0 for preemption time out
[ 3026.583153] i915 0000:00:02.0: [drm] faceCluster[44806] context reset due to GPU hang
[ 3026.625039] i915 0000:00:02.0: [drm] GPU HANG: ecode 11:1:85dffdfb, in faceCluster [44806]
User avatar
outkastm
Gold Member
Posts: 1457
Joined: 29 Dec 2020, 23:52

Re: [ Jellyfin ] The Free Software Media System

Post by outkastm »

After running some tests locally on F4-423, it seems that GuC/HuC firmware are not loaded by the kernel. These are required for hw transcoding. Wait for updated version of Jellyfin app that will force the load of these drivers.
User avatar
outkastm
Gold Member
Posts: 1457
Joined: 29 Dec 2020, 23:52

Re: [ Jellyfin ] The Free Software Media System

Post by outkastm »

Install the latest ModBase1 and Jellyfin apps. HW transcoding should work now on Fx-423. NAS reboot is required after Jellyfin install. If still issue, send the start_log file
User avatar
ajkaramba
Posts: 20
Joined: 26 Dec 2024, 00:20
Germany

Re: [ Jellyfin ] The Free Software Media System

Post by ajkaramba »

Yes, with many files I tested it is working now. I still found a few movies where hardware transcoding isn't working. Here is the log for it:

ffmpeg version 7.0.2-Jellyfin Copyright (c) 2000-2024 the FFmpeg developers
built with gcc 14.2.0 (crosstool-NG 1.26.0.120_4d36f27)
configuration: --prefix=/ffbuild/prefix --pkg-config=pkg-config --pkg-config-flags=--static --cross-prefix=x86_64-ffbuild-linux-gnu- --arch=x86_64 --target-os=linux --extra-version=Jellyfin --extra-cflags= --extra-cxxflags= --extra-ldflags= --extra-ldexeflags=-pie --extra-libs=-ldl --enable-gpl --enable-version3 --disable-ffplay --disable-debug --disable-doc --disable-ptx-compression --disable-sdl2 --disable-libxcb --disable-xlib --enable-lto=auto --enable-iconv --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-libxml2 --enable-openssl --enable-lzma --enable-fontconfig --enable-libharfbuzz --enable-libvorbis --enable-opencl --enable-amf --enable-chromaprint --enable-libdav1d --enable-libfdk-aac --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc --enable-libass --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvpl --enable-libvpx --enable-libwebp --enable-libopenmpt --disable-rkmpp --disable-rkrga --enable-libsrt --enable-libsvtav1 --enable-libdrm --enable-vaapi --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libx264 --enable-libx265 --enable-libzimg --enable-libzvbi
libavutil 59. 8.100 / 59. 8.100
libavcodec 61. 3.100 / 61. 3.100
libavformat 61. 1.100 / 61. 1.100
libavdevice 61. 1.100 / 61. 1.100
libavfilter 10. 1.100 / 10. 1.100
libswscale 8. 1.100 / 8. 1.100
libswresample 5. 1.100 / 5. 1.100
libpostproc 58. 1.100 / 58. 1.100
libva info: VA-API version 1.16.0
libva info: Trying to open /usr/local/ModBase1/sys/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_16
libva info: va_openDriver() returns 0
[AVHWDeviceContext @ 0x55d209743880] Failed to get number of OpenCL platforms: -1001.
Device creation failed: -19.
Failed to set value 'opencl=ocl@va' for option 'init_hw_device': No such device
Error parsing global options: No such device
User avatar
Ricarant78
Posts: 2
Joined: 02 Jan 2025, 03:24
United States of America

Re: [ Jellyfin ] The Free Software Media System

Post by Ricarant78 »

It is working for me too, wow that was really fast thank you so much
Post Reply

Return to “Developer Discussion Room”