VAAPI Issues

For discussion of topics specific to MythTV on linux
Post Reply
kbocek
Senior
Posts: 114
Joined: Mon Jul 20, 2015 4:42 pm
United States of America

VAAPI Issues

Post by kbocek » Mon Nov 04, 2019 9:55 pm

Brand new frontend: Intel Nuc NUC5i3RYH, 4GB RAM, 128GB storage. Ubuntu 18.04.3 LTS and Myth 29.1.

I am unable to select VAAPI Normal as a playback profile. Myth says "Unable to initialize video." Playback *does* work under both OpenGL and VDPAU however there is a very slight stutter to playback. My older NUC is able to select VAAPI just fine.

VAAPI is installed:

Code: Select all

# vainfo
error: XDG_RUNTIME_DIR not set in the environment.
error: can't connect to X server!
libva info: VA-API version 1.1.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_1
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.1 (libva 2.1.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Broadwell - 2.1.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
      VAProfileVP8Version0_3          : VAEntrypointVLD
And the Intel driver is being loaded:

Code: Select all

[    11.885] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
        i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
        915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
        Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
        GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[    11.886] (II) intel: Driver for Intel(R) HD Graphics
[    11.886] (II) intel: Driver for Intel(R) Iris(TM) Graphics
[    11.886] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics
[    11.886] xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
[    11.886] (II) intel(0): Using Kernel Mode Setting driver: i915, version 1.6.0 20171023
[    11.886] (II) intel(0): SNA compiled: xserver-xorg-video-intel 2:2.99.917+git20171229-1 (Timo Aaltonen <tjaalton@debian.org>)
[    11.886] (II) intel(0): SNA compiled for use with valgrind
[    11.904] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[    11.919] (--) intel(0): Integrated Graphics Chipset: Intel(R) HD Graphics 5500
So any thought on the playback error under VAAPI? I think that'll fix my stuttering issue.

kbocek
Senior
Posts: 114
Joined: Mon Jul 20, 2015 4:42 pm
United States of America

Re: VAAPI Issues

Post by kbocek » Thu Nov 07, 2019 7:20 pm

Well I wish there was someone here who's an expert on the Intel i915 driver. I think I solved it with an optimization I installed years ago on my older, less powerful frontends. In /etc/rc.local:

Code: Select all

echo 32768 | sudo tee /proc/asound/card0/pcm3p/sub0/prealloc
echo 'performance' | sudo tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
That seems to help. But I would still like to know why I can't select the VAAPI Normal playback profile. The difference I see is X on the newer hardware is saying:

Code: Select all

[    11.919] (--) intel(0): Integrated Graphics Chipset: Intel(R) HD Graphics 5500
And on the older:

Code: Select all

[     5.080] (--) intel(0): Integrated Graphics Chipset: Intel(R) HD Graphics 500

Post Reply