RE: Jellyfin web player can't play some transcoded files - frankjrix - 2024-06-13
As for the opencl, I already rebooted after installing and it doesn't work.
Ran that command on the video, the output file still doesn't play. Here's the log:
Code: {"Protocol":0,"Id":"79f05c2e33d77c2647bd5ebb7ef8d5e0","Path":"/mnt/jelly/radarr/x265-NAHOM-re.mkv","EncoderPath":null,"EncoderProtocol":null,"Type":0,"Container":"mkv","Size":20340017840,"Name":"x265-NAHOM-re","IsRemote":false,"ETag":"69f593a320d96b600c581ac6a670daba","RunTimeTicks":63237830000,"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":"hevc","CodecTag":null,"Language":"eng","ColorRange":null,"ColorSpace":"bt2020nc","ColorTransfer":"smpte2084","ColorPrimaries":"bt2020","DvVersionMajor":1,"DvVersionMinor":0,"DvProfile":8,"DvLevel":6,"RpuPresentFlag":1,"ElPresentFlag":0,"BlPresentFlag":1,"DvBlSignalCompatibilityId":1,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":null,"Title":null,"VideoRange":2,"VideoRangeType":5,"VideoDoViTitle":"DV Profile 8.1 (HDR10)","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":25731455,"BitDepth":10,"RefFrames":1,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":true,"IsForced":false,"IsHearingImpaired":false,"Height":2160,"Width":3840,"AverageFrameRate":23.976025,"RealFrameRate":23.976025,"Profile":"Main 10","Type":1,"AspectRatio":"16:9","Index":0,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":"yuv420p10le","Level":150,"IsAnamorphic":false},{"Codec":"ac3","CodecTag":null,"Language":"eng","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":null,"LocalizedForced":null,"LocalizedExternal":null,"LocalizedHearingImpaired":null,"DisplayTitle":"English - Dolby Digital - 5.1","NalLengthSize":null,"IsInterlaced":false,"IsAVC":false,"ChannelLayout":"5.1","BitRate":448000,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":6,"SampleRate":48000,"IsDefault":false,"IsForced":false,"IsHearingImpaired":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"Profile":null,"Type":0,"AspectRatio":null,"Index":1,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null},{"Codec":"ac3","CodecTag":null,"Language":"ita","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":null,"LocalizedForced":null,"LocalizedExternal":null,"LocalizedHearingImpaired":null,"DisplayTitle":"Italian - Dolby Digital - 5.1 - Default","NalLengthSize":null,"IsInterlaced":false,"IsAVC":false,"ChannelLayout":"5.1","BitRate":448000,"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},{"Codec":"subrip","CodecTag":null,"Language":"eng","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":"Non Definito","LocalizedDefault":"Predefinito","LocalizedForced":"Forzato","LocalizedExternal":"Esterno","LocalizedHearingImpaired":"con problemi di udito","DisplayTitle":"English - SUBRIP","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":3,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null},{"Codec":"subrip","CodecTag":null,"Language":"eng","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":"SDH","VideoRange":0,"VideoRangeType":0,"VideoDoViTitle":null,"AudioSpatialFormat":0,"LocalizedUndefined":"Non Definito","LocalizedDefault":"Predefinito","LocalizedForced":"Forzato","LocalizedExternal":"Esterno","LocalizedHearingImpaired":"con problemi di udito","DisplayTitle":"SDH - English - SUBRIP","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":4,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null},{"Codec":"subrip","CodecTag":null,"Language":"ita","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":"Non Definito","LocalizedDefault":"Predefinito","LocalizedForced":"Forzato","LocalizedExternal":"Esterno","LocalizedHearingImpaired":"con problemi di udito","DisplayTitle":"Italian - SUBRIP","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":5,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null},{"Codec":"subrip","CodecTag":null,"Language":"ita","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":"Forced","VideoRange":0,"VideoRangeType":0,"VideoDoViTitle":null,"AudioSpatialFormat":0,"LocalizedUndefined":"Non Definito","LocalizedDefault":"Predefinito","LocalizedForced":"Forzato","LocalizedExternal":"Esterno","LocalizedHearingImpaired":"con problemi di udito","DisplayTitle":"Forced - Italian - Predefinito - SUBRIP","NalLengthSize":null,"IsInterlaced":false,"IsAVC":false,"ChannelLayout":null,"BitRate":null,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":true,"IsForced":false,"IsHearingImpaired":false,"Height":0,"Width":0,"AverageFrameRate":null,"RealFrameRate":null,"Profile":null,"Type":2,"AspectRatio":null,"Index":6,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null}],"MediaAttachments":[],"Formats":[],"Bitrate":26627455,"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 -filter_hw_device qs -hwaccel vaapi -hwaccel_output_format vaapi -noautorotate -i file:"x265-NAHOM-re.mkv" -noautoscale -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:2 -map -0:s -codec:v:0 h264_qsv -preset veryfast -look_ahead 0 -b:v 42885758 -maxrate 42885758 -bufsize 85771516 -g:v:0 72 -keyint_min:v:0 72 -vf "setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale_vaapi=format=nv12:extra_hw_frames=24,hwmap=derive_device=qsv,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 "615618c8ca3ad26986c5d9c22d1e88ba-1.mp4" -start_number 0 -hls_segment_filename "/mnt/transcodes/615618c8ca3ad26986c5d9c22d1e88ba%d.mp4" -hls_playlist_type vod -hls_list_size 0 -y "/mnt/transcodes/615618c8ca3ad26986c5d9c22d1e88ba.m3u8"
ffmpeg version 6.0.1-Jellyfin Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 11 (Ubuntu 11.4.0-1ubuntu1~22.04)
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
Input #0, matroska,webm, from 'file:x265-NAHOM-re.mkv':
Metadata:
ENCODER : Lavf60.3.100
Duration: 01:45:23.78, start: 0.000000, bitrate: 25731 kb/s
Stream #0:0(eng): Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn (default) (original)
Metadata:
BPS : 24837733
NUMBER_OF_FRAMES: 151591
NUMBER_OF_BYTES : 19629906300
_STATISTICS_WRITING_APP: mkvmerge v79.0 ('Funeral Pyres NON-OFFICIAL') 32-bit
_STATISTICS_WRITING_DATE_UTC: 2023-09-29 00:18:44
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
DURATION : 01:45:22.607000000
Side data:
DOVI configuration record: version: 1.0, profile: 8, level: 6, rpu flag: 1, el flag: 0, bl flag: 1, compatibility id: 1
Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s
Metadata:
BPS : 1509000
NUMBER_OF_FRAMES: 590575
NUMBER_OF_BYTES : 1188237020
_STATISTICS_WRITING_APP: mkvmerge v79.0 ('Funeral Pyres NON-OFFICIAL') 32-bit
_STATISTICS_WRITING_DATE_UTC: 2023-09-29 00:18:44
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
ENCODER : Lavc59.18.100 ac3
DURATION : 01:45:23.782000000
Stream #0:2(ita): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s (default)
Metadata:
BPS : 1091317
NUMBER_OF_FRAMES: 65620
NUMBER_OF_BYTES : 859339787
_STATISTICS_WRITING_APP: mkvmerge v79.0 ('Funeral Pyres NON-OFFICIAL') 32-bit
_STATISTICS_WRITING_DATE_UTC: 2023-09-29 00:18:44
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
ENCODER : Lavc59.18.100 ac3
DURATION : 01:45:23.783000000
Stream #0:3(eng): Subtitle: subrip
Metadata:
BPS : 84
NUMBER_OF_FRAMES: 1964
NUMBER_OF_BYTES : 65898
_STATISTICS_WRITING_APP: mkvmerge v79.0 ('Funeral Pyres NON-OFFICIAL') 32-bit
_STATISTICS_WRITING_DATE_UTC: 2023-09-29 00:18:44
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
DURATION : 01:45:04.490000000
Stream #0:4(eng): Subtitle: subrip
Metadata:
title : SDH
BPS : 92
NUMBER_OF_FRAMES: 2163
NUMBER_OF_BYTES : 71993
_STATISTICS_WRITING_APP: mkvmerge v79.0 ('Funeral Pyres NON-OFFICIAL') 32-bit
_STATISTICS_WRITING_DATE_UTC: 2023-09-29 00:18:44
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
DURATION : 01:45:04.537000000
Stream #0:5(ita): Subtitle: subrip
Metadata:
BPS : 74
NUMBER_OF_FRAMES: 1372
NUMBER_OF_BYTES : 57843
_STATISTICS_WRITING_APP: mkvmerge v79.0 ('Funeral Pyres NON-OFFICIAL') 32-bit
_STATISTICS_WRITING_DATE_UTC: 2023-09-29 00:18:44
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
DURATION : 01:45:21.590000000
Stream #0:6(ita): Subtitle: subrip (default)
Metadata:
title : Forced
BPS : 0
NUMBER_OF_FRAMES: 21
NUMBER_OF_BYTES : 648
_STATISTICS_WRITING_APP: mkvmerge v79.0 ('Funeral Pyres NON-OFFICIAL') 32-bit
_STATISTICS_WRITING_DATE_UTC: 2023-09-29 00:18:44
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
DURATION : 01:34:10.741000000
Stream mapping:
Stream #0:0 -> #0:0 (hevc (native) -> h264 (h264_qsv))
Stream #0:2 -> #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
[hls @ 0x652c501e2880] Opening '/mnt/transcodes/615618c8ca3ad26986c5d9c22d1e88ba-1.mp4' for writing
Output #0, hls, to '/mnt/transcodes/615618c8ca3ad26986c5d9c22d1e88ba.m3u8':
Metadata:
encoder : Lavf60.3.100
Stream #0:0: Video: h264, qsv(tv, bt709, progressive), 3840x2160 [SAR 1:1 DAR 16:9], q=2-31, 42885 kb/s, 23.98 fps, 24k tbn (default) (original)
Metadata:
encoder : Lavc60.3.100 h264_qsv
Side data:
cpb: bitrate max/min/avg: 42885758/0/42885758 buffer size: 85771516 vbv_delay: N/A
DOVI configuration record: version: 1.0, profile: 8, level: 6, rpu flag: 1, el flag: 0, bl flag: 1, compatibility id: 1
Stream #0:1: Audio: aac, 48000 Hz, stereo, s16, 256 kb/s (default)
Metadata:
encoder : Lavc60.3.100 libfdk_aac
[hls @ 0x652c501e2880] Opening '/mnt/transcodes/615618c8ca3ad26986c5d9c22d1e88ba0.mp4' for writing
[hls @ 0x652c501e2880] Opening '/mnt/transcodes/615618c8ca3ad26986c5d9c22d1e88ba1.mp4' for writing
[hls @ 0x652c501e2880] Opening '/mnt/transcodes/615618c8ca3ad26986c5d9c22d1e88ba2.mp4' for writing
[hls @ 0x652c501e2880] Opening '/mnt/transcodes/615618c8ca3ad26986c5d9c22d1e88ba3.mp4' for writing
frame= 565 fps= 66 q=15.0 size=N/A time=00:00:00.52 bitrate=N/A speed=0.0609x
[hls @ 0x652c501e2880] Opening '/mnt/transcodes/615618c8ca3ad26986c5d9c22d1e88ba4.mp4' for writing
[hls @ 0x652c501e2880] Opening '/mnt/transcodes/615618c8ca3ad26986c5d9c22d1e88ba5.mp4' for writing
[hls @ 0x652c501e2880] Opening '/mnt/transcodes/615618c8ca3ad26986c5d9c22d1e88ba6.mp4' for writing
[hls @ 0x652c501e2880] Opening '/mnt/transcodes/615618c8ca3ad26986c5d9c22d1e88ba7.mp4' for writing
[mp4 @ 0x652c501860c0] Track 1 starts with a nonzero dts 1164112, while the moov already has been written. Set the delay_moov flag to handle this case.
frame= 595 fps= 66 q=16.0 size=N/A time=00:00:01.48 bitrate=N/A speed=0.163x
frame= 631 fps= 66 q=26.0 size=N/A time=00:00:02.99 bitrate=N/A speed=0.313x
[hls @ 0x652c501e2880] Opening '/mnt/transcodes/615618c8ca3ad26986c5d9c22d1e88ba8.mp4' for writing
frame= 667 fps= 66 q=26.0 size=N/A time=00:00:04.48 bitrate=N/A speed=0.446x
frame= 702 fps= 66 q=26.0 size=N/A time=00:00:05.93 bitrate=N/A speed=0.562x
[hls @ 0x652c501e2880] Opening '/mnt/transcodes/615618c8ca3ad26986c5d9c22d1e88ba9.mp4' for writing
frame= 740 fps= 67 q=9.0 size=N/A time=00:00:07.53 bitrate=N/A speed=0.68x
frame= 776 fps= 67 q=11.0 size=N/A time=00:00:09.03 bitrate=N/A speed=0.779x
[hls @ 0x652c501e2880] Opening '/mnt/transcodes/615618c8ca3ad26986c5d9c22d1e88ba10.mp4' for writing
frame= 811 fps= 67 q=11.0 size=N/A time=00:00:10.48 bitrate=N/A speed=0.866x
frame= 846 fps= 67 q=9.0 size=N/A time=00:00:11.95 bitrate=N/A speed=0.948x
[hls @ 0x652c501e2880] Opening '/mnt/transcodes/615618c8ca3ad26986c5d9c22d1e88ba11.mp4' for writing
frame= 881 fps= 67 q=11.0 size=N/A time=00:00:13.42 bitrate=N/A speed=1.02x
frame= 916 fps= 67 q=11.0 size=N/A time=00:00:14.85 bitrate=N/A speed=1.09x
[hls @ 0x652c501e2880] Opening '/mnt/transcodes/615618c8ca3ad26986c5d9c22d1e88ba12.mp4' for writing
frame= 938 fps= 56 q=11.0 size=N/A time=00:00:15.88 bitrate=N/A speed=0.952x
frame= 978 fps= 57 q=9.0 size=N/A time=00:00:17.45 bitrate=N/A speed=1.02x
[hls @ 0x652c501e2880] Opening '/mnt/transcodes/615618c8ca3ad26986c5d9c22d1e88ba13.mp4' for writing
frame= 1016 fps= 57 q=17.0 size=N/A time=00:00:19.05 bitrate=N/A speed=1.08x
frame= 1047 fps= 58 q=29.0 size=N/A time=00:00:20.33 bitrate=N/A speed=1.12x
frame= 1081 fps= 58 q=26.0 size=N/A time=00:00:21.81 bitrate=N/A speed=1.17x
[hls @ 0x652c501e2880] Opening '/mnt/transcodes/615618c8ca3ad26986c5d9c22d1e88ba14.mp4' for writing
frame= 1117 fps= 58 q=25.0 size=N/A time=00:00:23.24 bitrate=N/A speed=1.21x
frame= 1152 fps= 58 q=21.0 size=N/A time=00:00:24.71 bitrate=N/A speed=1.25x
[hls @ 0x652c501e2880] Opening '/mnt/transcodes/615618c8ca3ad26986c5d9c22d1e88ba15.mp4' for writing
frame= 1187 fps= 59 q=19.0 size=N/A time=00:00:26.16 bitrate=N/A speed=1.29x
frame= 1223 fps= 59 q=15.0 size=N/A time=00:00:27.65 bitrate=N/A speed=1.34x
[hls @ 0x652c501e2880] Opening '/mnt/transcodes/615618c8ca3ad26986c5d9c22d1e88ba16.mp4' for writing
frame= 1258 fps= 59 q=10.0 size=N/A time=00:00:29.12 bitrate=N/A speed=1.37x
frame= 1294 fps= 60 q=10.0 size=N/A time=00:00:30.64 bitrate=N/A speed=1.41x
[hls @ 0x652c501e2880] Opening '/mnt/transcodes/615618c8ca3ad26986c5d9c22d1e88ba17.mp4' for writing
frame= 1329 fps= 60 q=11.0 size=N/A time=00:00:32.07 bitrate=N/A speed=1.44x
frame= 1364 fps= 60 q=19.0 size=N/A time=00:00:33.54 bitrate=N/A speed=1.47x
[hls @ 0x652c501e2880] Opening '/mnt/transcodes/615618c8ca3ad26986c5d9c22d1e88ba18.mp4' for writing
frame= 1400 fps= 60 q=22.0 size=N/A time=00:00:35.05 bitrate=N/A speed=1.51x
frame= 1435 fps= 60 q=22.0 size=N/A time=00:00:36.53 bitrate=N/A speed=1.54x
[hls @ 0x652c501e2880] Opening '/mnt/transcodes/615618c8ca3ad26986c5d9c22d1e88ba19.mp4' for writing
frame= 1470 fps= 61 q=19.0 size=N/A time=00:00:37.96 bitrate=N/A speed=1.56x
frame= 1506 fps= 61 q=18.0 size=N/A time=00:00:39.47 bitrate=N/A speed=1.59x
[hls @ 0x652c501e2880] Opening '/mnt/transcodes/615618c8ca3ad26986c5d9c22d1e88ba20.mp4' for writing
frame= 1541 fps= 61 q=21.0 size=N/A time=00:00:40.94 bitrate=N/A speed=1.62x
frame= 1576 fps= 61 q=22.0 size=N/A time=00:00:42.37 bitrate=N/A speed=1.64x
[hls @ 0x652c501e2880] Opening '/mnt/transcodes/615618c8ca3ad26986c5d9c22d1e88ba21.mp4' for writing
frame= 1611 fps= 61 q=21.0 size=N/A time=00:00:43.84 bitrate=N/A speed=1.67x
frame= 1647 fps= 61 q=21.0 size=N/A time=00:00:45.36 bitrate=N/A speed=1.69x
[hls @ 0x652c501e2880] Opening '/mnt/transcodes/615618c8ca3ad26986c5d9c22d1e88ba22.mp4' for writing
frame= 1682 fps= 62 q=19.0 size=N/A time=00:00:46.83 bitrate=N/A speed=1.72x
frame= 1716 fps= 62 q=23.0 size=N/A time=00:00:48.24 bitrate=N/A speed=1.74x
[hls @ 0x652c501e2880] Opening '/mnt/transcodes/615618c8ca3ad26986c5d9c22d1e88ba23.mp4' for writing
frame= 1752 fps= 62 q=23.0 size=N/A time=00:00:49.73 bitrate=N/A speed=1.76x
frame= 1786 fps= 62 q=19.0 size=N/A time=00:00:51.14 bitrate=N/A speed=1.78x
[hls @ 0x652c501e2880] Opening '/mnt/transcodes/615618c8ca3ad26986c5d9c22d1e88ba24.mp4' for writing
frame= 1821 fps= 62 q=24.0 size=N/A time=00:00:52.61 bitrate=N/A speed=1.79x
frame= 1855 fps= 62 q=24.0 size=N/A time=00:00:54.02 bitrate=N/A speed=1.81x
[hls @ 0x652c501e2880] Opening '/mnt/transcodes/615618c8ca3ad26986c5d9c22d1e88ba25.mp4' for writing
frame= 1889 fps= 62 q=24.0 size=N/A time=00:00:55.43 bitrate=N/A speed=1.83x
frame= 1924 fps= 62 q=24.0 size=N/A time=00:00:56.90 bitrate=N/A speed=1.84x
[hls @ 0x652c501e2880] Opening '/mnt/transcodes/615618c8ca3ad26986c5d9c22d1e88ba26.mp4' for writing
frame= 1958 fps= 62 q=20.0 size=N/A time=00:00:58.31 bitrate=N/A speed=1.86x
frame= 1993 fps= 63 q=22.0 size=N/A time=00:00:59.78 bitrate=N/A speed=1.88x
[hls @ 0x652c501e2880] Opening '/mnt/transcodes/615618c8ca3ad26986c5d9c22d1e88ba27.mp4' for writing
frame= 2027 fps= 63 q=23.0 size=N/A time=00:01:01.19 bitrate=N/A speed=1.89x
frame= 2063 fps= 63 q=25.0 size=N/A time=00:01:02.70 bitrate=N/A speed=1.91x
[hls @ 0x652c501e2880] Opening '/mnt/transcodes/615618c8ca3ad26986c5d9c22d1e88ba28.mp4' for writing
frame= 2098 fps= 63 q=22.0 size=N/A time=00:01:04.17 bitrate=N/A speed=1.92x
frame= 2133 fps= 63 q=26.0 size=N/A time=00:01:05.60 bitrate=N/A speed=1.94x
[hls @ 0x652c501e2880] Opening '/mnt/transcodes/615618c8ca3ad26986c5d9c22d1e88ba29.mp4' for writing
frame= 2167 fps= 63 q=26.0 size=N/A time=00:01:07.05 bitrate=N/A speed=1.95x
frame= 2202 fps= 63 q=22.0 size=N/A time=00:01:08.48 bitrate=N/A speed=1.96x
[hls @ 0x652c501e2880] Opening '/mnt/transcodes/615618c8ca3ad26986c5d9c22d1e88ba30.mp4' for writing
frame= 2236 fps= 63 q=26.0 size=N/A time=00:01:09.93 bitrate=N/A speed=1.98x
frame= 2270 fps= 63 q=25.0 size=N/A time=00:01:11.34 bitrate=N/A speed=1.99x
frame= 2304 fps= 63 q=25.0 size=N/A time=00:01:12.77 bitrate=N/A speed= 2x
[hls @ 0x652c501e2880] Opening '/mnt/transcodes/615618c8ca3ad26986c5d9c22d1e88ba31.mp4' for writing
frame= 2339 fps= 63 q=25.0 size=N/A time=00:01:14.22 bitrate=N/A speed=2.01x
frame= 2373 fps= 63 q=25.0 size=N/A time=00:01:15.63 bitrate=N/A speed=2.02x
[hls @ 0x652c501e2880] Opening '/mnt/transcodes/615618c8ca3ad26986c5d9c22d1e88ba32.mp4' for writing
frame= 2408 fps= 63 q=26.0 size=N/A time=00:01:17.10 bitrate=N/A speed=2.03x
frame= 2442 fps= 64 q=22.0 size=N/A time=00:01:18.51 bitrate=N/A speed=2.04x
[hls @ 0x652c501e2880] Opening '/mnt/transcodes/615618c8ca3ad26986c5d9c22d1e88ba33.mp4' for writing
frame= 2476 fps= 64 q=26.0 size=N/A time=00:01:19.92 bitrate=N/A speed=2.05x
frame= 2510 fps= 64 q=22.0 size=N/A time=00:01:21.35 bitrate=N/A speed=2.06x
[hls @ 0x652c501e2880] Opening '/mnt/transcodes/615618c8ca3ad26986c5d9c22d1e88ba34.mp4' for writing
frame= 2544 fps= 64 q=26.0 size=N/A time=00:01:22.76 bitrate=N/A speed=2.07x
frame= 2578 fps= 64 q=23.0 size=N/A time=00:01:24.16 bitrate=N/A speed=2.08x
[hls @ 0x652c501e2880] Opening '/mnt/transcodes/615618c8ca3ad26986c5d9c22d1e88ba35.mp4' for writing
frame= 2612 fps= 64 q=26.0 size=N/A time=00:01:25.61 bitrate=N/A speed=2.09x
frame= 2647 fps= 64 q=23.0 size=N/A time=00:01:27.04 bitrate=N/A speed= 2.1x
[hls @ 0x652c501e2880] Opening '/mnt/transcodes/615618c8ca3ad26986c5d9c22d1e88ba36.mp4' for writing
frame= 2683 fps= 64 q=21.0 size=N/A time=00:01:28.56 bitrate=N/A speed=2.11x
frame= 2719 fps= 64 q=21.0 size=N/A time=00:01:30.05 bitrate=N/A speed=2.12x
[hls @ 0x652c501e2880] Opening '/mnt/transcodes/615618c8ca3ad26986c5d9c22d1e88ba37.mp4' for writing
EDIT: relevant log for tonemapping:
Code: [AVHWDeviceContext @ 0x588a8efc4200] 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
RE: Jellyfin web player can't play some transcoded files - TheDreadPirate - 2024-06-13
On the host system what packages are installed for intel?
Is "intel-media-va-driver-non-free" installed? If not, "sudo apt install intel-media-va-driver-non-free".
Also look over our LXC documentation.
https://jellyfin.org/docs/general/administration/hardware-acceleration/intel/#lxc-and-lxd-container
RE: Jellyfin web player can't play some transcoded files - frankjrix - 2024-06-13
First of all I wanted to thank you for your help and your patience, even though both issues are unresolved. I installed all the drivers on the proxmox host, and reinstalled them on the container too to no avail. I took the chance to install intel_gpu_top too and the hwa transcoding itself works.
The "problem video" gets stuck (freezing the web player completely) even after the repackaging, and enabling tone mapping (with or without vpp checked) causes fatal playback errors on every single HDR video in my library.
These are the (I think) relevant packages on the proxmox host:
vainfo/stable,now 2.12.0+ds1-1 amd64 [installed]
intel-gpu-tools/stable,now 1.27.1-1 amd64 [installed]
intel-media-va-driver-non-free/stable,now 23.1.1+ds1-1 amd64 [installed]
intel-microcode/now 3.20240312.1~deb12u1 amd64 [installed,local] (probably not relevant)
intel-opencl-icd/stable,now 22.43.24595.41-1 amd64 [installed]
And these are the ones on the jellyfin lxc:
va-driver-all/jammy,now 2.14.0-1 amd64 [installed]
vainfo/jammy,now 2.12.0+ds1-1 amd64 [installed]
intel-gpu-tools/jammy,now 1.26-2 amd64 [installed]
intel-media-va-driver-non-free/jammy-updates,now 22.3.1+ds1-1ubuntu0.1 amd64 [installed]
intel-opencl-icd/jammy,now 22.14.22890-1 amd64 [installed]
EDIT: I experimented some more, and trying to get the windows client (which would play it directly) to play it at a lower bitrate causes it to get stuck for a while and then eventaully start (tried 480p - 1.5Mbps).
EDIT2: Maybe there's something wrong with how the file is encoded? It appears that it might just take a very long time to process the 4k stream, even though other files of similar (or even better) bitrate get processed way faster.
EDIT3: back to opencl, I think this might relevant:
Code: root@jellyfin:~# sudo /usr/lib/jellyfin-ffmpeg/ffmpeg -v verbose -init_hw_device vaapi=va:/dev/dri/renderD128 -init_hw_device opencl@va
ffmpeg version 6.0.1-Jellyfin Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 11 (Ubuntu 11.4.0-1ubuntu1~22.04)
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
[AVHWDeviceContext @ 0x6138a0adf6c0] libva: VA-API version 1.21.0
[AVHWDeviceContext @ 0x6138a0adf6c0] libva: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/iHD_drv_video.so
[AVHWDeviceContext @ 0x6138a0adf6c0] libva: Found init function __vaDriverInit_1_21
[AVHWDeviceContext @ 0x6138a0adf6c0] libva: va_openDriver() returns 0
[AVHWDeviceContext @ 0x6138a0adf6c0] Initialised VAAPI connection: version 1.21
[AVHWDeviceContext @ 0x6138a0adf6c0] VAAPI driver: Intel iHD driver for Intel(R) Gen Graphics - 24.2.3 (7c1c775).
[AVHWDeviceContext @ 0x6138a0adf6c0] Driver not found in known nonstandard list, using standard behaviour.
[AVHWDeviceContext @ 0x6138a0b050c0] Failed to get number of OpenCL platforms: -1001.
Device creation failed: -19.
Failed to set value 'opencl@va' for option 'init_hw_device': No such device
Error parsing global options: No such device
RE: Jellyfin web player can't play some transcoded files - TheDreadPirate - 2024-06-13
Give me a bit. I'm setting up an LXC for testing. My main jellyfin is a bare metal install and my two test instances are in Docker so this is new territory for me.
I may not get back to you until later tonight or tomorrow depending how long it takes me to figure out plain LXC.
RE: Jellyfin web player can't play some transcoded files - frankjrix - 2024-06-13
Again thank you very much, I really appreciate it. I hope this is gonna be useful to others as well.
I'm gonna try experimenting with permissions too, in regard to the opencl issue, and I'm gonna update this post with any findings.
One more question about the problem file, do you think it might be worth trying to reencode it (still in HEVC) with ffmpeg?
RE: Jellyfin web player can't play some transcoded files - TheDreadPirate - 2024-06-14
I'm banging my head with user ID mapping and just getting access to a directory is a PITA, now I have to figure out how to give it access to the render device?
My conclusion is that the LXC needs to be privileged if it isn't already.
RE: Jellyfin web player can't play some transcoded files - frankjrix - 2024-06-14
For directory access I used bind mounts, and as for the device access I mapped the ownnership of the device to the video (for the "card" one) and the render (for the renderD128 one) groups in the container, and in fact hwa transcoding other than tonemapping works without issues.
Anyways while it would be nice to have, I'm not too concerned about tonemapping.
My main issue is with the problem video, and understanding if it's a jellyfin thing or a file issue. I tried reencoding it with ffmpeg and it still won't play on firefox. Should I open an issue on github at this point?
RE: Jellyfin web player can't play some transcoded files - TheDreadPirate - 2024-06-14
Go ahead and open an issue, though I suspect it is a problem with the file. You could try straight up re-encoding it instead of repackaging it like we did earlier.
RE: Jellyfin web player can't play some transcoded files - frankjrix - 2024-06-14
Yeah, I actually think so too. I tried a fast fixed bitrate encode and it still wouldn't work properly though, so I'm currently doing a proper slow one to clear any doubts. If this fails, I'm gonna open an issue. Again, thank you very much for your help and your time.
|