You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Case:
a video with format is 4K HEVC YUV444P10, which d3d11 can only decode it with software, but with cost of 80-90% CPU usage.
After test:
the hw itself is able to hw decode the 4K HEVC YUV444P10, under vulkan and nvdec.
my test verfied on hevc yuv444p10, avcyuv420, 4k:
nvdec is very in-efficient, uses a lot more memory, more cpu and more gpu 3D useage, than hwdec=vulkan
d3d11va use the least cpu and especially memory and gpu
vulkan use a little more cpu, some more memory and almost same gpu than d3dva11, but there is always 1% gpu copy useage there forever.
vulkan-copy and nvdec-copy is similar with vulkan and nvdec, but with more cpu and more memory useage, so not recommend.
Actual happened:
The hwdec=auto always only result in vulkan-copy, but which is not the best option that mpv can use.
the current workaround method like below which is unable to covery all situations and is annoying to need you to casually to update the conf:
hwdec=d3d11va
gpu-api=d3d11
[444]
profile-cond=p["video-params/pixelformat"] == "yuv444p10"
hwdec=vulkan
gpu-api=vulkan
Excepted:
The hw-decode should always be prefered than sw-decode, and d3d11va should be used/tried at first before trying vulkan to save power consuming.
But the right Solution that to try the best to use hw-dec:
hwdec=d3d11va,vulkan
gpu-api=d3d11,vulkan
cant achieve this, which will fail and faillback to software-decode, it seems because: mpv created window using d3d11 gpu-api then tried hwdec in order but vulkan failed when mpv try it bc vulkan can't work with d3d11
How to make mpv be able to always try the best to turn on hw-dec before sw-dec, Without using that workaround method of profile-cond like above actual happened I figured out?
Should I open an issue for mpv able to prefer try the best to hw-decode than sw-decode or?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
mpv version: 0.41
win10
Case:
a video with format is
4K HEVC YUV444P10, which d3d11 can only decode it with software, but with cost of 80-90% CPU usage.After test:
the hw itself is able to hw decode the 4K HEVC YUV444P10, under
vulkanandnvdec.my test verfied on hevc yuv444p10, avcyuv420, 4k:
Actual happened:
The
hwdec=autoalways only result in vulkan-copy, but which is not the best option that mpv can use.the current workaround method like below which is unable to covery all situations and is annoying to need you to casually to update the conf:
hwdec=d3d11va
gpu-api=d3d11
[444]
profile-cond=p["video-params/pixelformat"] == "yuv444p10"
hwdec=vulkan
gpu-api=vulkan
Excepted:
The hw-decode should always be prefered than sw-decode, and d3d11va should be used/tried at first before trying vulkan to save power consuming.
But the right Solution that to try the best to use hw-dec:
cant achieve this, which will fail and faillback to software-decode, it seems because: mpv created window using d3d11 gpu-api then tried hwdec in order but vulkan failed when mpv try it bc vulkan can't work with d3d11
How to make mpv be able to always try the best to turn on hw-dec before sw-dec, Without using that workaround method of
profile-condlike above actual happened I figured out?Should I open an issue for mpv able to prefer try the best to hw-decode than sw-decode or?
Beta Was this translation helpful? Give feedback.
All reactions