flippyfingw 0 Posted April 19, 2023 Share Posted April 19, 2023 Playback hangs and eventually fails when playing hdr videos in browser (firefox 112.0, windows 11), with hdr tonemapping enabled (either hardware only or hardware and software) in emby server transcode settings. Server running on Unraid, Alder lake (Intel i3 12100) with iGPU mapped as a device. Hardware decode and encode works in all other cases, once hdr tonemapping is disabled. Going through embyserver logs, the ffmpeg command is being executed as 2023-04-20 00:33:19.096 Info App: ProcessRun 'StreamTranscode ec85a1' Execute: /bin/ffmpeg -loglevel +timing -y -print_graphs_file "/config/logs/ffmpeg-transcode-ec85a1cc-cbdf-49ac-9655-3ae6a7b25375_1graph.txt" -copyts -start_at_zero -f matroska,webm -c:v:0 hevc -hwaccel:v:0 vaapi -hwaccel_device:v:0 /dev/dri/renderD128 -hwaccel_output_format:v:0 vaapi -i "/mnt/Movies/Knives Out (2019)/Knives Out (2019).mkv" -filter_complex "[0:0]tonemap_vaapi@f1=format=nv12:matrix=bt709:primaries=bt709:transfer=bt709[f1_out0]" -map [f1_out0] -map 0:1 -sn -c:v:0 h264_vaapi -b:v:0 59616000 -g:v:0 72 -maxrate:v:0 59616000 -bufsize:v:0 119232000 -keyint_min:v:0 72 -r:v:0 23.976024627685547 -profile:v:0 high -level:v:0 5.1 -c:a:0 aac -ab:a:0 192000 -ac:a:0 2 -metadata:s:a:0 language=eng -disposition:a:0 default -max_delay 5000000 -avoid_negative_ts disabled -f segment -map_metadata -1 -map_chapters -1 -segment_format mpegts -segment_list "/config/transcoding-temp/211285/211285.m3u8" -segment_list_type m3u8 -segment_time 00:00:03.000 -segment_start_number 0 -individual_header_trailer 0 -write_header_trailer 0 -segment_write_temp 1 "/config/transcoding-temp/211285/211285_%d.ts" Manually running the above command in the docker container outputs 00:50:28.852 Could not write header for output file #0 (incorrect codec parameters ?): No such file or directory 00:50:28.852 Error initializing output stream 0:0 - Let me know if you require more info to debug this. Thanks.. Link to comment Share on other sites More sharing options...
Luke 37156 Posted April 19, 2023 Share Posted April 19, 2023 hi there, please attach complete log file examples. Thanks. Link to comment Share on other sites More sharing options...
flippyfingw 0 Posted April 20, 2023 Author Share Posted April 20, 2023 embyserver.txt 聽 Attached server logs when attempting same action. Thanks.. Link to comment Share on other sites More sharing options...
Luke 37156 Posted April 24, 2023 Share Posted April 24, 2023 @flippyfingw聽can you please attach the corresponding ffmpeg log as well? Thanks. Link to comment Share on other sites More sharing options...
pektoral 17 Posted April 24, 2023 Share Posted April 24, 2023 Hi, like i wrote in another thread already, there is a bug with vaapi encoding and some 4K material. You can just select a different encoder to fix this or you use the new Beta 30. There are new tonemapping options, here you need to choose a different tonemappping for vaapi. In my case is choose OpenCL and Hable. This fixes the issue.. Kind Regards pektoral Link to comment Share on other sites More sharing options...
flippyfingw 0 Posted April 24, 2023 Author Share Posted April 24, 2023 3 hours ago, Luke said: @flippyfingw聽can you please attach the corresponding ffmpeg log as well? Thanks. Sure, added emby server聽 logs, 3 ffmpeg logs that were generated during the same period (I assume due to retries, as I can see emby server trying to retry) and the hardware detection files. LMK if you require anything alse ffmpeg-transcode-5687503e-e24a-4926-a8ea-842d93ac4842_1.txt ffmpeg-transcode-bc843552-a140-4922-a574-4b2ea714df3a_1.txt hardware_detection-63817936763.txt embyserver.txt ffmpeg-transcode-45183031-e601-41c5-8fcf-50a9ba28111c_1.txt Link to comment Share on other sites More sharing options...
flippyfingw 0 Posted April 24, 2023 Author Share Posted April 24, 2023 2 hours ago, pektoral said: Hi, like i wrote in another thread already, there is a bug with vaapi encoding and some 4K material. You can just select a different encoder to fix this or you use the new Beta 30. There are new tonemapping options, here you need to choose a different tonemappping for vaapi. In my case is choose OpenCL and Hable. This fixes the issue.. Kind Regards pektoral Thanks kind stranger. I tried out the 4.8.0.30-beta tag and that added a new tonemapping tab in the ui. Enabled hardware accelerated TM and set it to Extra - T - OpenCL / Hable and it does seem to work, at the cost of higher CPU usage and power consumption. Enabling VAAPI tonemapping however fails with same issue, which as far as my knowledge would be a lower power solution and would not be using the compute cores of the gpu, rather the fixed function video processing block on the gpu. It would be great if that could be fixed. For now I'll revert back to the "latest" tag and wait for a fix. Thanks again Link to comment Share on other sites More sharing options...
pektoral 17 Posted April 24, 2023 Share Posted April 24, 2023 (edited) Sorry to hear that, maybe your problem is a little bit more complex as mine. I have still that issues with vaapi and the default tonemapping, a lot of 4k hdr stops playing after 10-15 sec. and consimung a lot cpu power. Edited April 24, 2023 by pektoral Link to comment Share on other sites More sharing options...
Luke 37156 Posted April 25, 2023 Share Posted April 25, 2023 On 4/24/2023 at 3:18 AM, flippyfingw said: Sure, added emby server聽 logs, 3 ffmpeg logs that were generated during the same period (I assume due to retries, as I can see emby server trying to retry) and the hardware detection files. LMK if you require anything alse ffmpeg-transcode-5687503e-e24a-4926-a8ea-842d93ac4842_1.txt 18.43 kB聽路聽0 downloads ffmpeg-transcode-bc843552-a140-4922-a574-4b2ea714df3a_1.txt 18.39 kB聽路聽0 downloads hardware_detection-63817936763.txt 211.17 kB聽路聽0 downloads embyserver.txt 157.28 kB聽路聽0 downloads ffmpeg-transcode-45183031-e601-41c5-8fcf-50a9ba28111c_1.txt 18.47 kB聽路聽0 downloads Alder Lake support will be in the upcoming 4.8 server release. Feel free to try the beta and provide feedback in the testing area. Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now