libva error [SOLVED]

Have a MythTV related problem? Ask for help from other MythTV users here.

Moderator: Forum Moderators

Post Reply
Caysho
Newcomer
Posts: 5
Joined: Sun Jun 24, 2018 6:26 am
Australia

libva error [SOLVED]

Post by Caysho »

I keep getting a "You can’t post image, email or url links" message, which prevents me submitting this in a more coherent manner, even with "Do not automatically parse URLs" selected.
See attachment for logs and references.

Running new install of Ubuntu 18.04 with updates current as at 23/06/2018, with MythTV from Ubuntu PPA.
Hardware is a NUC7CJYH.

Seeing high CPU use, around 60% to 80% wen viewing both SD and HD content (e.g. h.264 1080p), sometimes higher, when hardware acceleration should be available.
Checked with Totem and VLC, both have CPU usage lower at around 20% and rendering is very smooth, so I figured MythTV is not using the hardware acceleration.

There is a debian bug [1] which describes an issue with libva1 to libva2 transition.
The above occurs with and without Wayland enabled as per [2].
Attachments
libva_issue_details.txt
(4.08 KiB) Downloaded 127 times
Last edited by Caysho on Sat Jun 30, 2018 1:46 pm, edited 1 time in total.
User avatar
stuarta
Developer
Posts: 220
Joined: Wed Feb 05, 2014 5:13 pm
Great Britain

Re: libva error

Post by stuarta »

It looks like the mythtv packages you have are built against the old libva libraries. You will need updated packages built against the newer libva


Regards
Stuart
Caysho
Newcomer
Posts: 5
Joined: Sun Jun 24, 2018 6:26 am
Australia

Re: libva error

Post by Caysho »

These URL's and a filename have been broken with two periods, as I am still getting the message about posting URL's.

The packages are from the Ubuntu MythTV PPA:
http://ppa..launchpadnet/mythbuntu/0.29/ubuntu bionic main

I came across this when searching for mythtv libva2:
https://ubuntu..pkgs..org/18.04/ubuntu-multiverse-i386/mythtv-common_29.1+fixes.20180414.329c235-0ubuntu3_i386.deb.html
which has a dependency on libva2

Tried the following:
1. Uninstalled mythtv
2. Deselected the PPA
3. Reinstalled mythtv from the Ubuntu multiverse repository

Played a video, but still got the same error in the syslog.

At step 1 above, I noticed it listed a set of packages that were not required, including a libva-drm1 (at least, I recall it had drm1 in the name).
So I uninstalled mythtv again, and this time did an autoremove as well.
Then reinstalled and played a video.

Video hardware acceleration now works, and CPU usage is now around 20%, in line with the other media players:

Code: Select all

Jun 27 13:57:40 pvr mythtv.desktop[1515]: libva info: VA-API version 1.1.0
Jun 27 13:57:40 pvr mythtv.desktop[1515]: libva info: va_getDriverName() returns 0
Jun 27 13:57:40 pvr mythtv.desktop[1515]: libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video..so
Jun 27 13:57:40 pvr mythtv.desktop[1515]: libva info: Found init function __vaDriverInit_1_1
Jun 27 13:57:40 pvr mythtv.desktop[1515]: libva info: va_openDriver() returns 0
Jun 27 13:57:40 pvr mythtv.desktop[1515]: 2018-06-27 13:57:39.957917 E  ALSA: snd_pcm_info_get_card: Operation not permitted
Jun 27 13:57:40 pvr mythtv.desktop[1515]: 2018-06-27 13:57:39.986431 N  AudioPlayer: Enabling Audio
Jun 27 13:57:40 pvr mythtv.desktop[1515]: 2018-06-27 13:57:40.039888 I  AFD: codec DTS has 6 channels
Jun 27 13:57:40 pvr mythtv.desktop[1515]: 2018-06-27 13:57:40.039989 I  AFD: Opened codec 0x55c07f44dd20, id(DTS) type(Audio)
Jun 27 13:57:40 pvr mythtv.desktop[1515]: 2018-06-27 13:57:40.040127 I  AFD: Opened codec 0x55c07e371540, id(Unknown Codec ID) type(Subtit
le)
Jun 27 13:57:40 pvr mythtv.desktop[1515]: 2018-06-27 13:57:40.046380 I  VAAPI: Version: 1.1
Jun 27 13:57:40 pvr mythtv.desktop[1515]: 2018-06-27 13:57:40.046393 I  VAAPI: Driver : Intel i965 driver for Intel(R) Gemini Lake - 2.1.0
Jun 27 13:57:40 pvr mythtv.desktop[1515]: 2018-06-27 13:57:40.046419 I  VAAPI: Profile: MPEG2Simple Entrypoints: VLD
Jun 27 13:57:40 pvr mythtv.desktop[1515]: 2018-06-27 13:57:40.046425 I  VAAPI: Profile: MPEG2Main Entrypoints: VLD
Jun 27 13:57:40 pvr mythtv.desktop[1515]: 2018-06-27 13:57:40.046433 I  VAAPI: Profile: H264ConstrainedBase Entrypoints: VLD EncSlice (UNS
UPPORTED) Unknown
Jun 27 13:57:40 pvr mythtv.desktop[1515]: 2018-06-27 13:57:40.046439 I  VAAPI: Profile: H264Main Entrypoints: VLD EncSlice (UNSUPPORTED) Unknown
Jun 27 13:57:40 pvr mythtv.desktop[1515]: 2018-06-27 13:57:40.046446 I  VAAPI: Profile: H264High Entrypoints: VLD EncSlice (UNSUPPORTED) Unknown
Jun 27 13:57:40 pvr mythtv.desktop[1515]: 2018-06-27 13:57:40.046451 I  VAAPI: Profile: Unknown Entrypoints: VLD EncSlice (UNSUPPORTED)
Jun 27 13:57:40 pvr mythtv.desktop[1515]: 2018-06-27 13:57:40.046457 I  VAAPI: Profile: H264StereoHigh Entrypoints: VLD EncSlice (UNSUPPORTED)
Jun 27 13:57:40 pvr mythtv.desktop[1515]: 2018-06-27 13:57:40.046462 I  VAAPI: Profile: VC1Simple Entrypoints: VLD
Jun 27 13:57:40 pvr mythtv.desktop[1515]: 2018-06-27 13:57:40.046466 I  VAAPI: Profile: VC1Main Entrypoints: VLD
Jun 27 13:57:40 pvr mythtv.desktop[1515]: 2018-06-27 13:57:40.046470 I  VAAPI: Profile: VC1Advanced Entrypoints: VLD
Jun 27 13:57:40 pvr mythtv.desktop[1515]: 2018-06-27 13:57:40.046475 I  VAAPI: Profile: None Entrypoints: VideoProc (UNSUPPORTED)
Jun 27 13:57:40 pvr mythtv.desktop[1515]: 2018-06-27 13:57:40.046481 I  VAAPI: Profile: Unknown Entrypoints: VLD Unknown
Jun 27 13:57:40 pvr mythtv.desktop[1515]: 2018-06-27 13:57:40.046486 I  VAAPI: Profile: Unknown Entrypoints: VLD EncSlice (UNSUPPORTED)
Jun 27 13:57:40 pvr mythtv.desktop[1515]: 2018-06-27 13:57:40.046492 I  VAAPI: Profile: HEVCMain Entrypoints: VLD EncSlice (UNSUPPORTED)
Jun 27 13:57:40 pvr mythtv.desktop[1515]: 2018-06-27 13:57:40.046518 I  VAAPI: Profile: HEVCMain10 Entrypoints: VLD EncSlice (UNSUPPORTED)
Jun 27 13:57:40 pvr mythtv.desktop[1515]: 2018-06-27 13:57:40.046527 I  VAAPI: Profile: Unknown Entrypoints: VLD EncSlice (UNSUPPORTED)
Jun 27 13:57:40 pvr mythtv.desktop[1515]: 2018-06-27 13:57:40.046531 I  VAAPI: Profile: Unknown Entrypoints: VLD
Jun 27 13:57:40 pvr mythtv.desktop[1515]: 2018-06-27 13:57:40.047238 I  AFD: Opened codec 0x55c07f44f200, id(H264) type(Video)
User avatar
stuarta
Developer
Posts: 220
Joined: Wed Feb 05, 2014 5:13 pm
Great Britain

Re: libva error

Post by stuarta »

Hmm, that sounds like a problem with the PPA.

This is the standard PPA for Ubuntu -> https://launchpad.net/~mythbuntu/+archive/ubuntu/0.29
Caysho
Newcomer
Posts: 5
Joined: Sun Jun 24, 2018 6:26 am
Australia

Re: libva error

Post by Caysho »

That is the PPA I used.

I tried it again:
1. Removed the application,
2. Ran the autoremove
3. Reactivated the PPA for installation.
4. Ran the installation from the PPA

The good news is that acceleration is now working with the PPA.

This installation started from ubuntu-gnome 16.04 with mythtv 29 from the PPA, and was then updated to 18.04.
Seems not all the library references get updated during the upgrade, but I am not in a position to try replicating the process.
Caysho
Newcomer
Posts: 5
Joined: Sun Jun 24, 2018 6:26 am
Australia

Re: libva error

Post by Caysho »

Someone might find this useful:

Code: Select all

MythTV Version : v29.1-22-g675676b
MythTV Branch : fixes/29
Network Protocol : 91
Library API : 29.20180316-1
QT Version : 5.9.5
Options compiled in:
 linux profile use_hidesyms using_alsa using_oss using_pulse using_pulseoutput using_backend using_bindings_perl using_bindings_python using_bindings_php using_crystalhd using_dvb using_firewire using_frontend using_hdhomerun using_vbox using_ceton using_hdpvr using_ivtv using_joystick_menu using_libcec using_libcrypto using_libdns_sd using_libfftw3 using_libxml2 using_lirc using_mheg using_opengl using_opengl_video using_opengl_themepainter using_qtwebkit using_qtscript using_qtdbus using_taglib using_v4l2 using_x11 using_xrandr using_xv using_profiletype using_systemd_notify using_systemd_journal using_bindings_perl using_bindings_python using_bindings_php using_freetype2 using_mythtranscode using_opengl using_vaapi using_vdpau using_ffmpeg_threads using_mheg using_libass using_libxml2 using_libmp3lame
The previous version info contained:

Code: Select all

QT Version : 5.5.1
Post Reply