Closed ProxyVT closed 1 year ago
Seems we need a fallback path for this case. I'll add it.
Can you test if https://code.videolan.org/videolan/libplacebo/-/merge_requests/486 fixes it?
Can you test if https://code.videolan.org/videolan/libplacebo/-/merge_requests/486 fixes it?
Hey there, apologize for the delay! I finally managed to compile mpv with the latest release of libplacebo 6.292.0, where you fixed this bug. Unfortunately, now none of the videos can being played correctly with vulkan API. If I run mpv --no-config --vo=gpu-next --gpu-api=vulkan
, console gives the following error:
[vo/gpu-next/libplacebo] Missing device feature: dynamicRendering
[vo/gpu-next/libplacebo] Vulkan device does not support all required features!
[vo/gpu-next/libplacebo] Failed creating logical device!
[vo/gpu-next/libplacebo] Failed initializing vulkan device
[vo/gpu-next/libplacebo] Missing device feature: dynamicRendering
[vo/gpu-next/libplacebo] Vulkan device does not support all required features!
[vo/gpu-next/libplacebo] Failed creating logical device!
[vo/gpu-next/libplacebo] Failed initializing vulkan device
[vo/gpu-next] Failed initializing any suitable GPU context!
Error opening/initializing the selected video_out (--vo) device.
When I run command without --vo=gpu-next
, behavior is the same, except player fallback to vdpau
VO.
Tested the master branch of libplacebo. Now, when playing HDR content, there are several errors indicating that fallback buffer will be used, but peak detection is working correctly, so the issue is indeed fixed.
Comparision
libplacebo 5.264
![mpv-shot0003](https://github.com/mpv-player/mpv/assets/86965169/0a72c70b-5f5d-4a3e-8378-a748371012d1)
libplacebo master
![mpv-shot0002](https://github.com/mpv-player/mpv/assets/86965169/ed5bd5ec-62d2-44bf-8dfe-82176ad645f7)
Important Information
Provide following Information:
mpv version:
mpv 0.35.1 Copyright © 2000-2023 mpv/MPlayer/mplayer2 projects built on Tue Jan 01 12:00:00 1980 FFmpeg library versions: libavutil 57.28.100 libavcodec 59.37.100 libavformat 59.27.100 libswscale 6.7.100 libavfilter 8.44.100 libswresample 4.7.100 FFmpeg version: 5.1.3
Linux Distribution and Version:
OS: NixOS 23.11pre499022.e18dc963075 (Tapir) x86_64 Kernel: 6.1.3 DE: Plasma 5.27.6 [KF5 ] [Qt ] (x11)
nixpkgs unstable
via home-managercurrent mpv release
Kwin 5.27.6
GPU driver and version:
GPU: NVIDIA GeForce GTX
660/PCIe/SSE2
NVIDIA-SMI 470.182.03 Driver Version: 470.182.03CUDA Version: 11.4
Reproduction steps
mpv --no-config --vo=gpu-next --gpu-api=vulkan
Expected behavior
Video with HDR plays without errors and visual distortions
Actual behavior
Video plays, but it may look darkened or grayish, as if due to a lack of contrast. Additionally, there are errors in terminal:
Log file
output1.txt output2.txt output3.txt
Sample files
Video1 Video2 Video3