You are not logged in.

#26 2019-07-01 00:59:50

Tedster
Member
From: Edinburgh, UK
Registered: 2019-06-07
Posts: 15

Re: Optimising OBS VA-API usage with AMD and Intel GPUs

Lone_Wolf wrote:

Nothing weird in that log except the last 2 lines, and those appear to be after a considerable amount of time has passed.

DRI3 appears to be working fine, so I doubt switcihng to dri2 does anything.
Let's try to figure out if va-api for intel is working at all.

Change "Initial Display Output" to use the iGPU .
boot, start X and post

vainfo

output .

vainfo: VA-API version: 1.4 (libva 2.4.1)
vainfo: Driver version: Intel i965 driver for Intel(R) Haswell Desktop - 2.3.0
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Simple            :	VAEntrypointEncSlice
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSlice
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointEncSlice
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointEncSlice
      VAProfileH264MultiviewHigh      :	VAEntrypointVLD
      VAProfileH264MultiviewHigh      :	VAEntrypointEncSlice
      VAProfileH264StereoHigh         :	VAEntrypointVLD
      VAProfileH264StereoHigh         :	VAEntrypointEncSlice
      VAProfileVC1Simple              :	VAEntrypointVLD
      VAProfileVC1Main                :	VAEntrypointVLD
      VAProfileVC1Advanced            :	VAEntrypointVLD
      VAProfileNone                   :	VAEntrypointVideoProc
      VAProfileJPEGBaseline           :	VAEntrypointVLD

Offline

#27 2019-07-01 09:23:24

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,911

Re: Optimising OBS VA-API usage with AMD and Intel GPUs

so that works.

Keep the intel GPU as primary for now , run

DRI_PRIME=1 LIBVA_DRIVER_NAME=radeonsi vainfo

Also use your system as you normally do and estimate how usable it is on intel gpu as primary.
Don't include graphics-heavy stuff in that estimate.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#28 2019-07-01 17:27:36

Tedster
Member
From: Edinburgh, UK
Registered: 2019-06-07
Posts: 15

Re: Optimising OBS VA-API usage with AMD and Intel GPUs

Lone_Wolf wrote:

so that works.

Keep the intel GPU as primary for now , run

DRI_PRIME=1 LIBVA_DRIVER_NAME=radeonsi vainfo

Also use your system as you normally do and estimate how usable it is on intel gpu as primary.
Don't include graphics-heavy stuff in that estimate.

[tedster@BlackYeti ~]$ DRI_PRIME=1 LIBVA_DRIVER_NAME=radeonsi vainfo
vainfo: VA-API version: 1.4 (libva 2.4.1)
vainfo: Driver version: Mesa Gallium driver 19.1.1 for AMD Radeon HD 7900 Series (TAHITI, DRM 3.30.0, 5.1.15-arch1-1-ARCH, LLVM 8.0.0)
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileNone                   :	VAEntrypointVideoProc

Wholly unusable.
The experience even just running Chromium and typing this reply is pretty horrible with the iGPU as primary - the screen'll go a word or two behind when I'm typing quickly.
I also can't watch YouTube smoothly at above 480p - I'm dropping more than half of frames there.

Offline

#29 2019-07-02 19:09:31

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,911

Re: Optimising OBS VA-API usage with AMD and Intel GPUs

So your system can handle intel va-aapi only when the intel card is the primary one, but amd va-api works both as secondary & primary card.
Also the intel gpu is not powerful enough to drive your 3 screens.

Switch back to amd as primary and intel as secondary.

One thing you could try is install the LTS kernel (coexist with normal kernel) and boot into that to see if intel va-api as secondary card works when using older kernel modules.

the amdgpu driver is now set up as well as we can make it.
OBS does support another HW acceleration method : vdpau.
It was started by nvidia and hasn't seen much (maybe none) development since 2015, but does tend to support more encodings then va-api for amd cards.

install vdpauinfo and mesa-vdpau .
Run vdpauinfo to get an idea what your amd card supports with vdpau .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

Board footer

Powered by FluxBB