Libmpv hardware decoding performances on AMD GPU and Linux #15024
Unanswered
leon-costa
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
When I render a video to an OpenGL framebuffer with libmpv on an AMD GPU on Linux I cannot find any
hwdec
that has performances similar to usingnvdec
orcuda
on an Nvidia GPU.The video I tested with is encoded with HEVC at 5400x2700. On an Nvidia 1080 with
hwdec=nvdec
the call tompv_render_context_render
takes about 0.5 ms. With an AMD Radeon RX 7900 I cannot get anything less than 2.7 ms with any of thehwdec
listed in the mpv documentation, which is also the timing I get when I selectno
ashwdec
. (I can also get worse: withvaapi-copy
orvdpau-copy
I get about 3.3 ms)Is it possible to get render times as good as with
nvdec
on an AMD GPU on Linux? Am I doing something wrong?With the mpv CLI player I get variable "frame timings" when I play the same video and press "I" (I'm not sure what these timings represent though). The best average frame timing I could get with the AMD GPU is about 900 µs with
hwdec=vdpau
. Withhwdec=vaapi
I get about 1500 µs average. So it looks like vdpau could provide good performances. Strangely, with the Nvidia 1080 I get worse average timings with--hwdec=cuda -vo=gpu
: about 2400 µs, so I'm not sure these values are relevant.I'm using mpv 0.39.0.
Beta Was this translation helpful? Give feedback.
All reactions