mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[Issue]: Video is blank/black screen when hardware tonemapping is enabled #5507
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cooljimy84 on GitHub (Mar 6, 2024).
Please describe your bug
When trying to play a demo HDR10 video, like the "Samsung and RedBull See the Unexpected" i get a blank video. If i open the play backup info menu i can see it being transcoded, and radeontop shows usage.
If i remove the option to tone map the video plays fine, just very washed out (as expected)
Reproduction Steps
fresh install using wget to install unstable debs.
Jellyfin Version
Unstable (master branch)
if other:
10.9
Environment
Jellyfin logs
FFmpeg logs
Please attach any browser or client logs here
No response
Please attach any screenshots here
Code of Conduct
@cooljimy84 commented on GitHub (Mar 6, 2024):
root@jellyfinHDR:/var/log/jellyfin# sudo /usr/lib/jellyfin-ffmpeg/vainfo --display drm --device /dev/dri/renderD128
Trying display: drm
libva info: VA-API version 1.20.0
libva info: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_20
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.20 (libva 2.20.0)
vainfo: Driver version: Mesa Gallium driver 23.2.1 for AMD Radeon Graphics (renoir, LLVM 15.0.7, DRM 3.54, 6.5.13-1-pve)
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileHEVCMain : VAEntrypointVLD
VAProfileHEVCMain : VAEntrypointEncSlice
VAProfileHEVCMain10 : VAEntrypointVLD
VAProfileHEVCMain10 : VAEntrypointEncSlice
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileVP9Profile0 : VAEntrypointVLD
VAProfileVP9Profile2 : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc
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
Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set logging level) with argument 'debug'.
Reading option '-init_hw_device' ... matched as option 'init_hw_device' (initialise hardware device) with argument 'opencl=ocl:.0,device_vendor=AMD'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set logging level) with argument debug.
Applying option init_hw_device (initialise hardware device) with argument opencl=ocl:.0,device_vendor=AMD.
[AVHWDeviceContext @ 0x58ff236216c0] 2 OpenCL platforms found.
[AVHWDeviceContext @ 0x58ff236216c0] 1 OpenCL devices found on platform "Clover".
[AVHWDeviceContext @ 0x58ff236216c0] 0.0: Clover / RENOIR (renoir, LLVM 15.0.7, DRM 3.54, 6.5.13-1-pve)
[AVHWDeviceContext @ 0x58ff236216c0] No devices found on platform "AMD Accelerated Parallel Processing".
[AVHWDeviceContext @ 0x58ff236216c0] The cl_intel_va_api_media_sharing extension is required for QSV to OpenCL mapping.
[AVHWDeviceContext @ 0x58ff236216c0] QSV to OpenCL mapping not usable.
Successfully parsed a group of options.
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
Use -h to get full help or, even better, run 'man ffmpeg'
root@jellyfinHDR:/var/log/jellyfin# sudo /usr/lib/jellyfin-ffmpeg/ffmpeg -v debug -init_hw_device drm=dr:/dev/dri/renderD128 -init_hw_device vulkan@dr
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
Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set logging level) with argument 'debug'.
Reading option '-init_hw_device' ... matched as option 'init_hw_device' (initialise hardware device) with argument 'drm=dr:/dev/dri/renderD128'.
Reading option '-init_hw_device' ... matched as option 'init_hw_device' (initialise hardware device) with argument 'vulkan@dr'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set logging level) with argument debug.
Applying option init_hw_device (initialise hardware device) with argument drm=dr:/dev/dri/renderD128.
[AVHWDeviceContext @ 0x6104ad17e540] Opened DRM device /dev/dri/renderD128: driver amdgpu version 3.54.0.
Applying option init_hw_device (initialise hardware device) with argument vulkan@dr.
[AVHWDeviceContext @ 0x6104ad17ea00] Supported validation layers:
[AVHWDeviceContext @ 0x6104ad17ea00] VK_LAYER_MESA_device_select
Last message repeated 1 times
[AVHWDeviceContext @ 0x6104ad17ea00] VK_LAYER_MESA_overlay
[AVHWDeviceContext @ 0x6104ad17ea00] VK_LAYER_INTEL_nullhw
[AVHWDeviceContext @ 0x6104ad17ea00] VK_LAYER_KHRONOS_validation
[AVHWDeviceContext @ 0x6104ad17ea00] VK_LAYER_MESA_overlay
[AVHWDeviceContext @ 0x6104ad17ea00] GPU listing:
[AVHWDeviceContext @ 0x6104ad17ea00] 0: AMD Radeon Graphics (RADV RENOIR) (integrated) (0x1638)
[AVHWDeviceContext @ 0x6104ad17ea00] 1: AMD Radeon Graphics (RADV RENOIR) (integrated) (0x1638)
[AVHWDeviceContext @ 0x6104ad17ea00] 2: llvmpipe (LLVM 15.0.7, 256 bits) (software) (0x0)
[AVHWDeviceContext @ 0x6104ad17ea00] Requested device: 0x1638
[AVHWDeviceContext @ 0x6104ad17ea00] Device 0 selected: AMD Radeon Graphics (RADV RENOIR) (integrated) (0x1638)
[AVHWDeviceContext @ 0x6104ad17ea00] Queue families:
[AVHWDeviceContext @ 0x6104ad17ea00] 0: graphics compute transfer sparse (queues: 1)
[AVHWDeviceContext @ 0x6104ad17ea00] 1: compute transfer sparse (queues: 4)
[AVHWDeviceContext @ 0x6104ad17ea00] Using device extension VK_KHR_push_descriptor
[AVHWDeviceContext @ 0x6104ad17ea00] Using device extension VK_KHR_sampler_ycbcr_conversion
[AVHWDeviceContext @ 0x6104ad17ea00] Using device extension VK_KHR_synchronization2
[AVHWDeviceContext @ 0x6104ad17ea00] Using device extension VK_KHR_external_memory_fd
[AVHWDeviceContext @ 0x6104ad17ea00] Using device extension VK_EXT_external_memory_dma_buf
[AVHWDeviceContext @ 0x6104ad17ea00] Using device extension VK_EXT_image_drm_format_modifier
[AVHWDeviceContext @ 0x6104ad17ea00] Using device extension VK_KHR_external_semaphore_fd
[AVHWDeviceContext @ 0x6104ad17ea00] Using device extension VK_EXT_external_memory_host
[AVHWDeviceContext @ 0x6104ad17ea00] Using device: AMD Radeon Graphics (RADV RENOIR)
[AVHWDeviceContext @ 0x6104ad17ea00] Alignments:
[AVHWDeviceContext @ 0x6104ad17ea00] optimalBufferCopyRowPitchAlignment: 1
[AVHWDeviceContext @ 0x6104ad17ea00] minMemoryMapAlignment: 4096
[AVHWDeviceContext @ 0x6104ad17ea00] minImportedHostPointerAlignment: 4096
[AVHWDeviceContext @ 0x6104ad17ea00] Using queue family 0 (queues: 1) for graphics
[AVHWDeviceContext @ 0x6104ad17ea00] Using queue family 1 (queues: 4) for compute transfers
Successfully parsed a group of options.
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
Use -h to get full help or, even better, run 'man ffmpeg'
@cooljimy84 commented on GitHub (Mar 6, 2024):
as a side note I get the same issue if i use a Debian bookworm lxc container as well.
@nyanmisaka commented on GitHub (Mar 6, 2024):
Thanks for the feedback. I'll fix it in the next jellyfin-ffmpeg release.
@nyanmisaka commented on GitHub (Mar 6, 2024):
@cooljimy84 We have had a build that should fix the issue. Can you try it out on your system?
(Artifacts -> ubuntu-jammy-amd64)
@cooljimy84 commented on GitHub (Mar 7, 2024):
The colour are correct and the display is no longer blank but... Info saying it's transcoding at 70 FPS, but playback on the device is very choppy/stuttery with grey blocks every where.
If i copy out the TS files they play choppy on any device.
small extract from the ffmpeg log
/videos/9e3c6d6e-be97-29d9-a661-359cc0cc1f57/hls1/main/20.ts
{"Protocol":0,"Id":"9e3c6d6ebe9729d9a661359cc0cc1f57","Path":"/mnt/Demo/Samsung and RedBull See the Unexpected HDR UHD 4K Demo.ts","EncoderPath":null,"EncoderProtocol":null,"Type":0,"Container":"mpegts","Size":1285185108,"Name":"Samsung and RedBull See the Unexpected HDR UHD 4K Demo","IsRemote":false,"ETag":"d4614f2686a6013eb658a407882d5ec6","RunTimeTicks":1976533330,"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":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/90000","CodecTimeBase":null,"Title":null,"VideoRange":2,"VideoRangeType":2,"VideoDoViTitle":null,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"LocalizedHearingImpaired":null,"DisplayTitle":"4K HEVC HDR","NalLengthSize":null,"IsInterlaced":false,"IsAVC":false,"ChannelLayout":null,"BitRate":52017745,"BitDepth":10,"RefFrames":1,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":false,"IsForced":false,"IsHearingImpaired":false,"Height":2160,"Width":3840,"AverageFrameRate":59.94006,"RealFrameRate":59.94006,"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":153,"IsAnamorphic":false},{"Codec":"aac","CodecTag":null,"Language":"und","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/90000","CodecTimeBase":null,"Title":null,"VideoRange":0,"VideoRangeType":0,"VideoDoViTitle":null,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"LocalizedHearingImpaired":null,"DisplayTitle":"AAC - 5.1","NalLengthSize":null,"IsInterlaced":false,"IsAVC":false,"ChannelLayout":"5.1","BitRate":383802,"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":"LC","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}],"MediaAttachments":[],"Formats":[],"Bitrate":52401547,"Timestamp":null,"RequiredHttpHeaders":{},"TranscodingUrl":null,"TranscodingSubProtocol":null,"TranscodingContainer":null,"AnalyzeDurationMs":null,"DefaultAudioStreamIndex":null,"DefaultSubtitleStreamIndex":null}
/usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 200M -probesize 1G -ss 00:01:00.000 -init_hw_device drm=dr:/dev/dri/renderD128 -init_hw_device vaapi=va@dr -init_hw_device vulkan=vk@dr -filter_hw_device vk -hwaccel vaapi -hwaccel_output_format vaapi -autorotate 0 -i file:"/mnt/Demo/Samsung and RedBull See the Unexpected HDR UHD 4K Demo.ts" -autoscale 0 -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 9616000 -maxrate 9616000 -bufsize 19232000 -sei -a53_cc -force_key_frames:0 "expr:gte(t,n_forced*3)" -vf "setparams=color_primaries=bt2020:color_trc=smpte2084:colorspace=bt2020nc,hwmap=derive_device=vulkan,format=vulkan,libplacebo=upscaler=none:downscaler=none:w=1920:h=1080:format=bgra:tonemapping=bt.2390:peak_detect=0:color_primaries=bt709:color_trc=bt709:colorspace=bt709,hwmap=derive_device=vaapi,format=vaapi,scale_vaapi=format=nv12" -codec:a:0 libfdk_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 20 -hls_segment_filename "/var/cache/jellyfin/transcodes/1502a933bcc1cac70290a8fa96dd405f%d.ts" -hls_playlist_type vod -hls_list_size 0 -y "/var/cache/jellyfin/transcodes/1502a933bcc1cac70290a8fa96dd405f.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
[aac @ 0x63cee7efd8c0] This stream seems to incorrectly report its last channel as LFE[3], mapping to LFE[0]
[mpegts @ 0x63cee7c19a40] stream 0 : no PTS found at end of file, duration not set
Input #0, mpegts, from 'file:/mnt/Demo/Samsung and RedBull See the Unexpected HDR UHD 4K Demo.ts':
Duration: 00:03:17.65, start: 1.066722, bitrate: 52017 kb/s
Program 1
Stream #0:0[0x101]: Video: hevc (Main 10) ([36][0][0][0] / 0x0024), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9], 59.94 fps, 59.94 tbr, 90k tbn
Stream #0:10x102: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, 5.1, fltp, 373 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (hevc (native) -> h264 (h264_vaapi))
Stream #0:1 -> #0:1 (aac (native) -> aac (libfdk_aac))
Press [q] to stop, [?] for help
[aac @ 0x63cee828f280] channel element 0.0 is not allocated
Error while decoding stream #0:1: Invalid data found when processing input
[aac @ 0x63cee828f280] This stream seems to incorrectly report its last channel as LFE[3], mapping to LFE[0]
[hevc @ 0x63ceffbbe500] Could not find ref with POC -61
[hevc @ 0x63ceffbbe500] Could not find ref with POC -62
[hevc @ 0x63ceffbbe500] Could not find ref with POC -63
[hevc @ 0x63ceffbbe500] Could not find ref with POC -72
[hevc @ 0x63cee82adf80] Could not find ref with POC -61
[hevc @ 0x63cee82adf80] Could not find ref with POC -62
[hevc @ 0x63cee82adf80] Could not find ref with POC -72
[hevc @ 0x63cee7e472c0] Could not find ref with POC -61
[hevc @ 0x63cee7e472c0] Could not find ref with POC -72
[hevc @ 0x63cee7baff80] Could not find ref with POC -61
[hevc @ 0x63ceee0608c0] Could not find ref with POC -61
[hevc @ 0x63ceffbbe500] Could not find ref with POC -61
[hevc @ 0x63cee82adf80] Could not find ref with POC -61
[hevc @ 0x63cee7e472c0] Could not find ref with POC -61
[hevc @ 0x63cee7baff80] Could not find ref with POC -61
[hevc @ 0x63ceee0608c0] Could not find ref with POC -61
[hevc @ 0x63ceffbbe500] Could not find ref with POC -61
[hevc @ 0x63cee82adf80] Could not find ref with POC -61
[hevc @ 0x63cee7e472c0] Could not find ref with POC -61
[h264_vaapi @ 0x63cee7d7f840] Driver does not support some wanted packed headers (wanted 0xd, found 0x1).
Output #0, hls, to '/var/cache/jellyfin/transcodes/1502a933bcc1cac70290a8fa96dd405f.m3u8':
Metadata:
encoder : Lavf60.3.100
Stream #0:0: Video: h264 (High), vaapi(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 9616 kb/s, 59.94 fps, 90k tbn
Metadata:
encoder : Lavc60.3.100 h264_vaapi
Stream #0:1: Audio: aac, 48000 Hz, stereo, s16, 384 kb/s
Metadata:
encoder : Lavc60.3.100 libfdk_aac
frame= 0 fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A
.....
.....
[hevc @ 0x63ceffbbe500] Error parsing NAL unit #2.
[hevc @ 0x63cee82adf80] Could not find ref with POC 52
[hevc @ 0x63cee82adf80] Could not find ref with POC 44
[hevc @ 0x63cee82adf80] Could not find ref with POC 54
[hevc @ 0x63cee82adf80] Could not find ref with POC 56
[hevc @ 0x63cee82adf80] get_buffer() failed
[hevc @ 0x63cee82adf80] thread_get_buffer() failed
[hevc @ 0x63cee82adf80] Error constructing the frame RPS.
[hevc @ 0x63cee82adf80] Error parsing NAL unit #2.
Error while decoding stream #0:0: Cannot allocate memory
[hevc @ 0x63cee7e472c0] Could not find ref with POC 54
[hevc @ 0x63cee7e472c0] Could not find ref with POC 44
[hevc @ 0x63cee7e472c0] Could not find ref with POC 56
[hevc @ 0x63cee7e472c0] Could not find ref with POC 60
[hevc @ 0x63cee7e472c0] get_buffer() failed
[hevc @ 0x63cee7e472c0] thread_get_buffer() failed
[hevc @ 0x63cee7e472c0] Error constructing the frame RPS.
[hevc @ 0x63cee7e472c0] Error parsing NAL unit #2.
Error while decoding stream #0:0: Cannot allocate memory
[hevc @ 0x63cee7baff80] Could not find ref with POC 56
[hevc @ 0x63cee7baff80] Could not find ref with POC 55
[hevc @ 0x63cee7baff80] Could not find ref with POC 44
[hevc @ 0x63cee7baff80] Could not find ref with POC 60
Error while decoding stream #0:0: Cannot allocate memory
[hevc @ 0x63ceee0608c0] Could not find ref with POC 56
[hevc @ 0x63ceee0608c0] get_buffer() failed
[hevc @ 0x63ceee0608c0] thread_get_buffer() failed
[hevc @ 0x63ceee0608c0] Error constructing the frame RPS.
[hevc @ 0x63ceee0608c0] Error parsing NAL unit #2.
Error while decoding stream #0:0: Cannot allocate memory
[hevc @ 0x63ceffbbe500] Could not find ref with POC 57
[hevc @ 0x63ceffbbe500] Could not find ref with POC 44
[hevc @ 0x63ceffbbe500] Could not find ref with POC 60
[hevc @ 0x63cee82adf80] Could not find ref with POC 60
Error while decoding stream #0:0: Cannot allocate memory
[hevc @ 0x63cee7e472c0] Could not find ref with POC 60
Error while decoding stream #0:0: Cannot allocate memory
[hevc @ 0x63cee7baff80] Could not find ref with POC 60
[hevc @ 0x63ceee0608c0] Could not find ref with POC 60
[hevc @ 0x63ceffbbe500] Could not find ref with POC 60
[hevc @ 0x63cee82adf80] Could not find ref with POC 60
[hevc @ 0x63cee7e472c0] Could not find ref with POC 60
[hevc @ 0x63cee7baff80] Could not find ref with POC 60
[hevc @ 0x63ceee0608c0] Could not find ref with POC 60
[hevc @ 0x63ceffbbe500] Could not find ref with POC 60
[hevc @ 0x63cee82adf80] Could not find ref with POC 60
[hevc @ 0x63cee7e472c0] Could not find ref with POC 60
[hevc @ 0x63cee7baff80] Could not find ref with POC 60
[hevc @ 0x63ceee0608c0] Could not find ref with POC 60
[hevc @ 0x63ceffbbe500] Could not find ref with POC 60
[hevc @ 0x63cee82adf80] Could not find ref with POC 60
[hls @ 0x63cee82a3200] Opening '/var/cache/jellyfin/transcodes/1502a933bcc1cac70290a8fa96dd405f65.ts' for writing
frame= 8252 fps=162 q=-0.0 Lsize=N/A time=00:02:16.99 bitrate=N/A dup=4372 drop=0 speed= 2.7x
video:160518kB audio:6457kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
@nyanmisaka commented on GitHub (Mar 7, 2024):
@cooljimy84 Please try this build and see if it helps.
I tested it with
Samsung and RedBull See the Unexpected HDR UHD 4K Demo.tsand it works fine now.@cooljimy84 commented on GitHub (Mar 7, 2024):
Awesome ! works great now.
Now to sit with fingers and toes crossed for that little bit more performance. Can't quite get 4k HDR 60fps to transcode at 1080 60fps 40Mbps, it hovers around 58-59 fps transcode speed
@nyanmisaka commented on GitHub (Mar 8, 2024):
Unfortunately, the decoding and encoding stages of the AMD Renoir/Cezanne APU share the same VCN engine, which means that the encoding speed is affected by the decoder load. So the ~4k@60fps transcoding has pushed it to its limits. This is not the case on Intel and Nvidia as their decoders and encoders engines are independent of each other.
@cooljimy84 commented on GitHub (Mar 8, 2024):
Ooooo thanks for that snippet, might see if a small overclock to the GPU can get me that extra few FPS, or use software encoding to free up the VCN engine a bit....
for those wondering, no, the cpu can't software encode quick enough (either x265 or x264)
also pushing the iGPU from 1400Mhz (default for some reason in my bios) to 2200Mhz didn't gain me a single FPS, nor did pushing from mt RAM from 3600Mhz to 4000Mhz (same timings and keeping the iGPU overclock)
Radiontop shows 35-45 % usage, so suspect other limiting factors at play.