2024-07-24, 04:13 AM
Reverted Proxmox back to kernel 6.8.4-3-pve, it seems going forward is not a good option for Proxmox as the ZFS file system they use is not supported in the new kernels (I think bit over my head there). It seems to work... for most videos...
For anyone with this issue in the future, here are the commands to revert to an older Kernel.
Now like i said most of the videos work, slight delay when they start, but I am sure that's just what you get with transcending. not really an issue.
the real issue is 1 video file is stuck in a black screen with the loading circle constantly spinning. The video loads and plays in the Jellyfin app but not in the web player (have not checked other devices yet).
FFmpeg log
I can now see the gpu working with intel_gpu_top, and there are .mp4 files being generated in the transcode directory.
Again thank you for the help, If you would like me to open another post with this 2nd issue i would be happy to.
For anyone with this issue in the future, here are the commands to revert to an older Kernel.
Code:
#list current kernels on your server
proxmox-boot-tool kernel list
#if the kernel you want is NOT listed
#in my case I wanted pve-kernel-6.8.4-3-pve
apt install pve-kernel-<kernel version you want>
#add the new kernel to the list of kernels
#in my case kernel version was 6.8.4-3-pve
proxmox-boot-tool kernel add <kernel version>
#on reboot load the new kernel ONCE (this way if it does not work, or fails some how a reboot will revert to a good kernel)
proxmox-boot-tool kernel pin <kernel version> --next-boot
#refresh the boot tool to make the change to boot records.
#note: the proxmox docs tell you to refresh, however the tool asked me to refresh. I refreshed by hand anyways
proxmox-boot-tool refresh
then reboot your system
#if you want to make the kernel used permanently (until you change it)
proxmox-boot-tool kernel pin <kernel version>
#to removed a pin kernel and let the system use the newest kernel
proxmox-boot-tool kernel unpin
Now like i said most of the videos work, slight delay when they start, but I am sure that's just what you get with transcending. not really an issue.
the real issue is 1 video file is stuck in a black screen with the loading circle constantly spinning. The video loads and plays in the Jellyfin app but not in the web player (have not checked other devices yet).
FFmpeg log
Code:
{"Protocol":0,"Id":"e20b8ead2521ad0eaa21ba1368296043","Path":"/mnt/movies/Godzilla.Minus.One.2023.UHD.BDRIP.x265.HDR.AC3-AOC/Godzilla.Minus.One.2023.UHD.BDRIP.x265.HDR.AC3-AOC.mkv","EncoderPath":null,"EncoderProtocol":null,"Type":0,"Container":"mkv","Size":9186607387,"Name":"Godzilla.Minus.One.2023.UHD.BDRIP.x265.HDR.AC3-AOC","IsRemote":false,"ETag":"26c3a941486d33795ca8e8382ed0c684","RunTimeTicks":74856870000,"ReadAtNativeFramerate":false,"IgnoreDts":false,"IgnoreIndex":false,"GenPtsInput":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"OpenToken":null,"RequiresClosing":false,"LiveStreamId":null,"BufferMs":null,"RequiresLooping":false,"SupportsProbing":true,"VideoType":0,"IsoType":null,"Video3DFormat":null,"MediaStreams":[{"Codec":"subrip","CodecTag":null,"Language":null,"ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":null,"Title":null,"VideoRange":0,"VideoRangeType":0,"VideoDoViTitle":null,"AudioSpatialFormat":0,"LocalizedUndefined":"Undefined","LocalizedDefault":"Default","LocalizedForced":"Forced","LocalizedExternal":"External","LocalizedHearingImpaired":"Hearing Impaired","DisplayTitle":"Undefined - SUBRIP - External","NalLengthSize":null,"IsInterlaced":false,"IsAVC":false,"ChannelLayout":null,"BitRate":null,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":false,"IsForced":false,"IsHearingImpaired":false,"Height":0,"Width":0,"AverageFrameRate":null,"RealFrameRate":null,"Profile":null,"Type":2,"AspectRatio":null,"Index":0,"Score":null,"IsExternal":true,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Path":"/mnt/movies/Godzilla.Minus.One.2023.UHD.BDRIP.x265.HDR.AC3-AOC/Godzilla.Minus.One.2023.UHD.BDRIP.x265.HDR.AC3-AOC.srt","PixelFormat":null,"Level":0,"IsAnamorphic":null},{"Codec":"hevc","CodecTag":null,"Language":null,"ColorRange":null,"ColorSpace":"bt2020nc","ColorTransfer":"smpte2084","ColorPrimaries":"bt2020","DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":null,"Title":null,"VideoRange":2,"VideoRangeType":2,"VideoDoViTitle":null,"AudioSpatialFormat":0,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"LocalizedHearingImpaired":null,"DisplayTitle":"4K HEVC HDR","NalLengthSize":null,"IsInterlaced":false,"IsAVC":false,"ChannelLayout":null,"BitRate":9817784,"BitDepth":10,"RefFrames":1,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":true,"IsForced":false,"IsHearingImpaired":false,"Height":1608,"Width":3840,"AverageFrameRate":23.976025,"RealFrameRate":23.976025,"Profile":"Main 10","Type":1,"AspectRatio":"2.40:1","Index":1,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":"yuv420p10le","Level":186,"IsAnamorphic":false},{"Codec":"ac3","CodecTag":null,"Language":"jpn","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":null,"Title":null,"VideoRange":0,"VideoRangeType":0,"VideoDoViTitle":null,"AudioSpatialFormat":0,"LocalizedUndefined":null,"LocalizedDefault":"Default","LocalizedForced":null,"LocalizedExternal":"External","LocalizedHearingImpaired":null,"DisplayTitle":"Japanese - Dolby Digital - 5.1 - Default","NalLengthSize":null,"IsInterlaced":false,"IsAVC":false,"ChannelLayout":"5.1","BitRate":640000,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":6,"SampleRate":48000,"IsDefault":true,"IsForced":false,"IsHearingImpaired":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"Profile":null,"Type":0,"AspectRatio":null,"Index":2,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null}],"MediaAttachments":[],"Formats":[],"Bitrate":10457784,"Timestamp":null,"RequiredHttpHeaders":{},"TranscodingUrl":null,"TranscodingSubProtocol":0,"TranscodingContainer":null,"AnalyzeDurationMs":null,"DefaultAudioStreamIndex":null,"DefaultSubtitleStreamIndex":null}
/usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 200M -probesize 1G -init_hw_device vaapi=va:,kernel_driver=i915,driver=iHD -init_hw_device qsv=qs@va -init_hw_device opencl=ocl@va -filter_hw_device qs -hwaccel vaapi -hwaccel_output_format vaapi -noautorotate -i file:"/mnt/movies/Godzilla.Minus.One.2023.UHD.BDRIP.x265.HDR.AC3-AOC/Godzilla.Minus.One.2023.UHD.BDRIP.x265.HDR.AC3-AOC.mkv" -noautoscale -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_qsv -low_power 1 -preset veryfast -look_ahead 0 -b:v 16362973 -maxrate 16362973 -bufsize 32725946 -g:v:0 72 -keyint_min:v:0 72 -vf "setparams=color_primaries=bt2020:color_trc=smpte2084:colorspace=bt2020nc,scale_vaapi=w=1920:h=804:extra_hw_frames=24,hwmap=derive_device=opencl,tonemap_opencl=format=nv12:p=bt709:t=bt709:m=bt709:tonemap=bt2390:peak=100:desat=0,hwmap=derive_device=qsv:reverse=1:extra_hw_frames=16,format=qsv" -codec:a:0 libfdk_aac -ac 2 -ab 256000 -af "volume=2" -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type fmp4 -hls_fmp4_init_filename "f096d4d32b1156dd1e2f3a104e1f48a0-1.mp4" -start_number 0 -hls_segment_filename "/var/cache/jellyfin/transcodes/f096d4d32b1156dd1e2f3a104e1f48a0%d.mp4" -hls_playlist_type vod -hls_list_size 0 -y "/var/cache/jellyfin/transcodes/f096d4d32b1156dd1e2f3a104e1f48a0.m3u8"
ffmpeg version 6.0.1-Jellyfin Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 12 (Debian 12.2.0-14)
configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-ptx-compression --disable-static --disable-libxcb --disable-sdl2 --disable-xlib --enable-lto --enable-gpl --enable-version3 --enable-shared --enable-gmp --enable-gnutls --enable-chromaprint --enable-opencl --enable-libdrm --enable-libass --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libopenmpt --enable-libdav1d --enable-libsvtav1 --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --enable-libfdk-aac --arch=amd64 --enable-libshaderc --enable-libplacebo --enable-vulkan --enable-vaapi --enable-amf --enable-libvpl --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc
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
libva info: VA-API version 1.21.0
libva info: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0
libva info: VA-API version 1.21.0
libva info: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0
libva info: VA-API version 1.21.0
libva info: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0
libva info: VA-API version 1.21.0
libva info: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0
Input #0, matroska,webm, from 'file:/mnt/movies/Godzilla.Minus.One.2023.UHD.BDRIP.x265.HDR.AC3-AOC/Godzilla.Minus.One.2023.UHD.BDRIP.x265.HDR.AC3-AOC.mkv':
Metadata:
encoder : libebml v1.4.5 + libmatroska v1.7.1
creation_time : 2024-05-02T21:37:42.000000Z
MOVIE/ENCODER : HandBrake 1.7.3 2024021000
Duration: 02:04:45.69, start: 0.000000, bitrate: 9817 kb/s
Chapters:
Chapter #0:0: start 0.000000, end 7.090000
Metadata:
title : Chapter 1
Chapter #0:1: start 7.090000, end 794.294000
Metadata:
title : Chapter 2
Chapter #0:2: start 794.294000, end 1200.658000
Metadata:
title : Chapter 3
Chapter #0:3: start 1200.658000, end 1824.573000
Metadata:
title : Chapter 4
Chapter #0:4: start 1824.573000, end 2686.601000
Metadata:
title : Chapter 5
Chapter #0:5: start 2686.601000, end 3141.013000
Metadata:
title : Chapter 6
Chapter #0:6: start 3141.013000, end 3935.014000
Metadata:
title : Chapter 7
Chapter #0:7: start 3935.014000, end 4485.314000
Metadata:
title : Chapter 8
Chapter #0:8: start 4485.314000, end 4672.710000
Metadata:
title : Chapter 9
Chapter #0:9: start 4672.710000, end 5135.005000
Metadata:
title : Chapter 10
Chapter #0:10: start 5135.005000, end 5774.143000
Metadata:
title : Chapter 11
Chapter #0:11: start 5774.143000, end 7131.875000
Metadata:
title : Chapter 12
Chapter #0:12: start 7131.875000, end 7483.685000
Metadata:
title : Chapter 13
Chapter #0:13: start 7483.685000, end 7485.687000
Metadata:
title : Chapter 14
Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x1608 [SAR 1:1 DAR 160:67], 23.98 fps, 23.98 tbr, 1k tbn (default)
Metadata:
BPS : 9176396
DURATION : 02:04:45.687000000
NUMBER_OF_FRAMES: 179477
NUMBER_OF_BYTES : 8586454453
_STATISTICS_WRITING_APP: mkvmerge v83.0 ('Circle Of Friends') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2024-05-02 21:37:42
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:1(jpn): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s (default)
Metadata:
BPS : 640000
DURATION : 02:04:38.208000000
NUMBER_OF_FRAMES: 233694
NUMBER_OF_BYTES : 598256640
_STATISTICS_WRITING_APP: mkvmerge v83.0 ('Circle Of Friends') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2024-05-02 21:37:42
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream mapping:
Stream #0:0 -> #0:0 (hevc (native) -> h264 (h264_qsv))
Stream #0:1 -> #0:1 (ac3 (native) -> aac (libfdk_aac))
Press [q] to stop, [?] for help
libva info: VA-API version 1.21.0
libva info: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0
libva info: VA-API version 1.21.0
libva info: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0
libva info: VA-API version 1.21.0
libva info: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0
libva info: VA-API version 1.21.0
libva info: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0
[hls @ 0x631de747f180] Opening '/var/cache/jellyfin/transcodes/f096d4d32b1156dd1e2f3a104e1f48a0-1.mp4' for writing
Output #0, hls, to '/var/cache/jellyfin/transcodes/f096d4d32b1156dd1e2f3a104e1f48a0.m3u8':
Metadata:
encoder : Lavf60.3.100
Stream #0:0: Video: h264, qsv(tv, bt709, progressive), 1920x804 [SAR 1:1 DAR 160:67], q=2-31, 16362 kb/s, 23.98 fps, 24k tbn (default)
Metadata:
encoder : Lavc60.3.100 h264_qsv
Side data:
cpb: bitrate max/min/avg: 16362973/0/16362973 buffer size: 32725946 vbv_delay: N/A
Stream #0:1: Audio: aac, 48000 Hz, stereo, s16, 256 kb/s (default)
Metadata:
encoder : Lavc60.3.100 libfdk_aac
frame= 154 fps=0.0 q=12.0 size=N/A time=00:00:00.66 bitrate=N/A speed=0.927x
[hls @ 0x631de747f180] Opening '/var/cache/jellyfin/transcodes/f096d4d32b1156dd1e2f3a104e1f48a00.mp4' for writing
[hls @ 0x631de747f180] Opening '/var/cache/jellyfin/transcodes/f096d4d32b1156dd1e2f3a104e1f48a01.mp4' for writing
[mp4 @ 0x631de74ffe40] Track 1 starts with a nonzero dts 334288, while the moov already has been written. Set the delay_moov flag to handle this case.
[hls @ 0x631de747f180] Opening '/var/cache/jellyfin/transcodes/f096d4d32b1156dd1e2f3a104e1f48a02.mp4' for writing
frame= 280 fps=229 q=17.0 size=N/A time=00:00:05.95 bitrate=N/A speed=4.88x
[hls @ 0x631de747f180] Opening '/var/cache/jellyfin/transcodes/f096d4d32b1156dd1e2f3a104e1f48a03.mp4' for writing
[hls @ 0x631de747f180] Opening '/var/cache/jellyfin/transcodes/f096d4d32b1156dd1e2f3a104e1f48a04.mp4' for writing
frame= 430 fps=250 q=14.0 size=N/A time=00:00:12.31 bitrate=N/A speed=7.15x
[hls @ 0x631de747f180] Opening '/var/cache/jellyfin/transcodes/f096d4d32b1156dd1e2f3a104e1f48a05.mp4' for writing
[hls @ 0x631de747f180] Opening '/var/cache/jellyfin/transcodes/f096d4d32b1156dd1e2f3a104e1f48a06.mp4' for writing
[hls @ 0x631de747f180] Opening '/var/cache/jellyfin/transcodes/f096d4d32b1156dd1e2f3a104e1f48a07.mp4' for writing
frame= 607 fps=273 q=16.0 size=N/A time=00:00:19.65 bitrate=N/A speed=8.85x
I can now see the gpu working with intel_gpu_top, and there are .mp4 files being generated in the transcode directory.
Again thank you for the help, If you would like me to open another post with this 2nd issue i would be happy to.