Author Topic: DXVA2 experimental hw decoding  (Read 1661 times)

mean

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10914
Re: DXVA2 experimental hw decoding
« Reply #15 on: November 15, 2016, 11:00:05 AM »
and with libva ?
(you need the libva / vdpau wrapper installed)

eumagga0x2a

  • Hero Member
  • *****
  • Posts: 1216
Re: DXVA2 experimental hw decoding
« Reply #16 on: November 15, 2016, 11:28:11 AM »
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

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10914
Re: DXVA2 experimental hw decoding
« Reply #17 on: November 15, 2016, 01:45:51 PM »
Coud it be the window manager messing up with  the performances again ?

Jan Gruuthuse

  • Hero Member
  • *****
  • Posts: 5389
Re: DXVA2 experimental hw decoding
« Reply #18 on: November 15, 2016, 01:58:34 PM »
Hard to tell: libva seems to spread the load more evenly over the threads.

Jan Gruuthuse

  • Hero Member
  • *****
  • Posts: 5389
Re: DXVA2 experimental hw decoding
« Reply #19 on: November 15, 2016, 02:05:30 PM »
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

  • Hero Member
  • *****
  • Posts: 1216
Re: DXVA2 experimental hw decoding
« Reply #20 on: November 15, 2016, 07:49:47 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

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10914
Re: DXVA2 experimental hw decoding
« Reply #21 on: November 16, 2016, 06:49:24 PM »
Redraw problem should be fixed
Just the mm patch to look at and it is ready for testing

mm0359

  • Full Member
  • ***
  • Posts: 168
Re: DXVA2 experimental hw decoding
« Reply #22 on: November 17, 2016, 03:45:22 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

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10914
Re: DXVA2 experimental hw decoding
« Reply #23 on: November 17, 2016, 04:41:10 PM »
It's maybe normal
There is a delay of a few frames at the beginning

mm0359

  • Full Member
  • ***
  • Posts: 168
Re: DXVA2 experimental hw decoding
« Reply #24 on: November 18, 2016, 01:56:56 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

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10914
Re: DXVA2 experimental hw decoding
« Reply #25 on: November 18, 2016, 05:51:00 PM »
with the current D3D9 they are always independant, with an extra copy as consequence

harrym

  • Newbie
  • *
  • Posts: 35
Re: DXVA2 experimental hw decoding
« Reply #26 on: December 21, 2016, 05:06:04 PM »
And what NVRESIZE? Supported?

mean

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10914
Re: DXVA2 experimental hw decoding
« Reply #27 on: December 21, 2016, 07:46:22 PM »
on linux , with vdpau