-
Notifications
You must be signed in to change notification settings - Fork 3k
hwdec=vaapi
not working with vo=dmabuf-wayland
on my system
#16223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Try |
The compositor doesn't support nv12. So we have to autoconvert the format.
hwdec looks like it's working to me though. What's the actual problem? In the log, I see this gets spammed.
Shouldn't have anything to do with hwdec though should just be the stream. |
|
That's true but looks like my gpu not happy with [ 2.862][e][ffmpeg] filter: Hardware does not support output format bgr0.
I checked with |
Interestingly enough I have a mpv --no-config --vo=dmabuf-wayland --hwdec=vaapi --gpu-debug --log-file=test_3.log Downloads/4K\ HEVC\ 59.940\ Broadcast\ Capture\ Sample.mkv Log |
This does a conversion via software first. bgr0 not working for you would just be a hardware limitation most likely.
That's a totally different format. |
Used to work with |
Did v0.39 pick bgr0 for that file? |
I don't think it we constrain our format selection based on conversion capabilities. So this will fallback to software decoding. But since only supported formats are rgb once, I doubt if we add logic to fallback to other one it would help in this case.
Possibly we could fallback to cpu conversion, but this require hwdownload and hwupload. Could you share 0.39.0 log? What it was doing? |
No
Downgraded to mpv --no-config --vo=dmabuf-wayland --hwdec=vaapi --gpu-debug --log-file=test_4.log 'https://www.twitch.tv/videos/2314819556?collection=bL1PZGrMDBgM6Q' Log No issues in this case, maybe I should've bisected this release before opening this issue, my mistake. |
Exactly @kasper93 . |
Hmm, look like |
Thanks @kasper93 |
hwdec=vaapi
not working with vo=dmabuf-wayland
no my systemhwdec=vaapi
not working with vo=dmabuf-wayland
on my system
We did change some format selection stuff (should have been all fixes) in between releases but I'm not sure why you would go from picking rgb0 to bgr0. If anything, it should have been picking bgr0 before. |
@morialo3 Could you share log of |
Here: mpv --no-config --vo=dmabuf-wayland --hwdec=no --vf=format=fmt=bgr0 --log-file=test_5.log 'https://www.twitch.tv/videos/2314819556?collection=bL1PZGrMDBgM6Q' Log Log |
mpv Information
Other Information
Reproduction Steps
No hardware acceleration happens, throws error, and video plays.
mpv --no-config --vo=dmabuf-wayland --hwdec=vaapi 'https://www.twitch.tv/videos/2314819556?collection=bL1PZGrMDBgM6Q'
Hardware accelerated(?), no errors, video plays normally.
mpv --no-config --vo=dmabuf-wayland --hwdec=vaapi --vf=format=fmt=nv12 'https://www.twitch.tv/videos/2314819556?collection=bL1PZGrMDBgM6Q'
Expected Behavior
vaapi
should work without this workaround--vf=format=fmt=nv12
Actual Behavior
No hardware acceleration.
Log File
Case - 1
Debug without workaroundtest_1.log
Case - 2
Debug with the workaroundtest_2.log
Sample Files
No response
I carefully read all instruction and confirm that I did the following:
--log-file=output.txt
.The text was updated successfully, but these errors were encountered: