News:

--

Main Menu

DXVA2 experimental hw decoding

Started by mean, November 06, 2016, 10:41:54 AM

Previous topic - Next topic

mean

and with libva ?
(you need the libva / vdpau wrapper installed)

eumagga0x2a

Done: the same CPU load (~28% ââ,¬â€œ ~30%) for 720p h264 25fps videos. Both decoder and display driver are set to LIBVA, which requires disabling VDPAU in the preference settings to prevent it from taking over.

mean

Coud it be the window manager messing up with  the performances again ?

Jan Gruuthuse

Hard to tell: libva seems to spread the load more evenly over the threads.

Jan Gruuthuse

Website is very slow responding.
"Service Temporarily Unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later."
Under attack?

eumagga0x2a

Quote from: mean on November 15, 2016, 01:45:51 PM
Coud it be the window manager messing up with  the performances again ?

Unlikely, because turning hwaccel off adds only ~10% to the CPU load (it grows to ~40%) and dedicated media players like MPlayer and mpv consume only ~5% of CPU when playing 720p h264 videos (in a window, not fullscreen) via VDPAU in the same gnome-shell setup.

mean

Redraw problem should be fixed
Just the mm patch to look at and it is ready for testing

mm0359

Quote from: mean on November 16, 2016, 06:49:24 PM
Just the mm patch to look at and it is ready for testing

After the current PR, I'll do at least 1 more patch wrt Dxva init...

Fttb, (init succeeds then) decoding doesn't seem to succeed on my computer:
Quote
  Avidemux v2.6.14 (161115_eb280212ed3) .

Operating System: Microsoft Windows Vista Home Premium Service Pack 2 (6.0.6002; 32-bit)

[uncompress] [DXVA] --No picture 

mean

It's maybe normal
There is a delay of a few frames at the beginning

mm0359

Quote from: mean on November 17, 2016, 04:41:10 PM
It's maybe normal
There is a delay of a few frames at the beginning

Agreed: on second look, decoder seems to (then) succeed.
Quote
Surface to admImage = 095232C0
Retrieving image pitch=768 width=720 height=576
Align 576,16 => 576
Paint event

Yet, while Audio was fine, Video seemed as if (very) slowed down, and cpu may have been (much) higher than without Dxva.
But I'll try it again, with a newer build...

Decoder and Renderer can be used independently, can't they?
(Maybe we could had a few (raw) statistics: decoded frames, displayed frames, ...?)

mean

with the current D3D9 they are always independant, with an extra copy as consequence

harrym


mean