Replies: 2 comments 10 replies
-
10% of a core sounds very much expected. There's still plenty of work to do. And What you should do is compare your CPU usage with and without hwdec on and see how much you're saving. And yes, if you're decoding a low resolution clip in a simple codec, you won't be saving much. Compare 4K HEVC to see a real difference. |
Beta Was this translation helpful? Give feedback.
-
As another datapoint: ffplay in ffmpeg 7. ffplay didn't have it before this release but can, since v7, hardware decode on a vulkan surface. I have yet to compile this version but i'll definitely give it a shot! |
Beta Was this translation helpful? Give feedback.
-
Hi,
These options allow you to play a video with hardware acceleration (if your pc has support for it through vaapi that is).
In my case i have hardware acceleration support for (vainfo command output):
Playback of a video (say h264, h265, vp9) just works fine and uses vaapi.
However, the CPU usage while playing is still ~10%.
When profiling this i stumble upon this:
Which seems to indicate copies to userspace and those taking up some percentage of cpu resources.
That makes me wonder, is there a combination of features in mpv that gives a "zerocopy" playback?
I expect zerocopy to have barely any cpu resources (at most a couple percent) as the heavy parts should be offloaded. Vaapi would handle the decoding and the gpu the presentation on screen.
Beta Was this translation helpful? Give feedback.
All reactions