Kodi Community Forum
Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server (/showthread.php?tid=231955)



RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - fritsch - 2018-02-08

(2018-02-07, 22:31)schrackin Wrote: Smile

In the meantime, i managed to solve it. I disabled pulse audio globally, so i can use alsa instead and now it works as expected. 

Thanks for your help.
 See - this howto does not install pulse at all.


RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - Rumpelstiltskin - 2018-03-10

Hi fritsch!

Need your help : in my kodi machine the videos are jerky Sad
I don't know why, I think it's all configured properly!

my htpc is this : ZBOX CI323 nano , It is connected to my synto (only at 1080p) and by synto goes to tv (it is a 4K Samunsg)
know that I can't see videos in 4 k but at least I would like to see movies in 1080 p so perfect

I installed ubuntu 17.10 minimal and do turn kodi (the latest version, but also with old I have the same situation) with this systemd script :
Quote:[Unit]
 Description=Job that runs Kodi
 After=default.target graphical.target getty.target sound.target
[Service]
 User=kodi
 Restart=always
 RestartSec=1s
AE_SINK=ALSA
ExecStart = /usr/bin/xinit /usr/bin/dbus-launch --exit-with-session /usr/bin/kodi-standalone -- :0 -nolisten tcp vt7
[Install]
 WantedBy=default.target

Sorry for my English, I am using a translator Sad

Here the log u need :

dpkg -l |grep mesa
DISPLAY=:0 vainfo 
cat ~/.kodi/temp/kodi.log​​​​​​​
dmesg | pastebinit​​​​​​​
id | pastebinit​​​​​​​
amixer | pastebinit​​​
cat /var/log/Xorg.0.log


RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - FernetMenta - 2018-03-10

use intel driver instead of modesetting


Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - Rumpelstiltskin - 2018-03-10

?? How?


RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - wsnipex - 2018-03-10

sudo apt install xserver-xorg-video-intel


RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - Rumpelstiltskin - 2018-03-10

fatez@BlackBox:~$ sudo apt install xserver-xorg-video-intel
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze
Lettura informazioni sullo stato... Fatto
xserver-xorg-video-intel is already the newest version (2:2.99.917+git20170309-0ubuntu1).


RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - FernetMenta - 2018-03-10

you have to froce the driver in xorg.conf


Section "Device"
Identifier "Intel Graphics"
Driver "intel"
EndSection


RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - Rumpelstiltskin - 2018-03-10

Thanks but i don't have xorg.conf :

fatez@BlackBox:~$ sudo locate xorg.conf
/usr/share/X11/xorg.conf.d
/usr/share/X11/xorg.conf.d/10-amdgpu.conf
/usr/share/X11/xorg.conf.d/10-quirks.conf
/usr/share/X11/xorg.conf.d/10-radeon.conf
/usr/share/X11/xorg.conf.d/40-libinput.conf
/usr/share/X11/xorg.conf.d/70-wacom.conf
/usr/share/doc/xserver-xorg-video-intel/xorg.conf
/usr/share/man/man5/xorg.conf.5.gz
/usr/share/man/man5/xorg.conf.d.5.gz


So i created these file :

/usr/share/X11/xorg.conf.d/40-libinput.conf
 
Quote:Section "InputClass"
        Identifier "libinput pointer catchall"
        MatchIsPointer "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

Section "InputClass"
        Identifier "libinput keyboard catchall"
        MatchIsKeyboard "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

Section "InputClass"
        Identifier "libinput touchpad catchall"
        MatchIsTouchpad "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

Section "InputClass"
        Identifier "libinput touchscreen catchall"
        MatchIsTouchscreen "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

Section "InputClass"
        Identifier "libinput tablet catchall"
        MatchIsTablet "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection
And this :

/usr/share/X11/xorg.conf.d//51-mysinaptics.conf
Quote:Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "Screen0" 0 0
#    InputDevice    "Mouse0" "CorePointer"
#    InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
    ModulePath   "/usr/lib/xorg/modules"
    FontPath     "/usr/share/fonts/X11/misc"
    FontPath     "/usr/share/fonts/X11/cyrillic"
    FontPath     "/usr/share/fonts/X11/100dpi/:unscaled"
    FontPath     "/usr/share/fonts/X11/75dpi/:unscaled"
    FontPath     "/usr/share/fonts/X11/Type1"
    FontPath     "/usr/share/fonts/X11/100dpi"
    FontPath     "/usr/share/fonts/X11/75dpi"
    FontPath     "built-ins"
EndSection

Section "Module"
    Load  "glx"
EndSection

Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "kbd"
EndSection

Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
    Option        "Protocol" "auto"
    Option        "Device" "/dev/input/mice"
    Option        "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
    Identifier   "Monitor0"
    VendorName   "Monitor Vendor"
    ModelName    "Monitor Model"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
    Identifier  "Intel Graphics"
    Driver      "intel"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device     "Card0"
    Monitor    "Monitor0"
    SubSection "Display"
        Viewport   0 0
        Depth     1
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     4
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     8
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     15
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     16
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     24
    EndSubSection
EndSection


This is the log : Kodi.log

And i have a little judder


RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - wsnipex - 2018-03-10

Code:
cd /etc/X11/xorg.conf.d/
sudo ln -s /usr/share/doc/xserver-xorg-video-intel/xorg.conf 10-intel.conf
reboot



RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - Rumpelstiltskin - 2018-03-10

(2018-03-10, 19:36)wsnipex Wrote:
Code:
cd /etc/X11/xorg.conf.d/
sudo ln -s /usr/share/doc/xserver-xorg-video-intel/xorg.conf 10-intel.conf
reboot
Thanks, this is the kodi.log  after xorg conf;
I have a lot of judder... 

in video settings i have :
Quote:Deinterlace method : off
Video scaling method Bilinear

in player setting :
Quote:Adjust display refresh rate : on start /stop
Sync playback to dispay : off
Enable HQ scaler : 0%
VDPAU : off
Allow hardware acceleration - VAAPI : on
User Mpeg2 VAAPI : on
Use Mpeg4 VAAPI : on
Prefer VAAPI render method : on

in system display :
Quote:Resolution : 1920x1080p
Refresh rate : 60Hz
Blank other display : on
Delay after change refresh rate : 0.5 seconds
Use limited color range : off
Dithering : off
Color mangment : off

Number of buffers used by graphics card : 2 



RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - FernetMenta - 2018-03-11

I see what's happening. If you turn off passthrough audio, video gets smooth right?


Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - Rumpelstiltskin - 2018-03-11

(2018-03-11, 13:29)FernetMenta Wrote: I see what's happening. If you turn off passthrough audio, video gets smooth right?


They are better, what’s happening?


RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - FernetMenta - 2018-03-11

(2018-03-11, 13:46)Rumpelstiltskin Wrote:
(2018-03-11, 13:29)FernetMenta Wrote: I see what's happening. If you turn off passthrough audio, video gets smooth right?


They are better, what’s happening? 
 First, running kodi-x11 without a window manager is not a supported environment. It may work but I have seen a lot of trouble with it.
This issue can be related to running without a wm. Before going any further, I suggest to fix the basics.


Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - Rumpelstiltskin - 2018-03-11

I run it :

Quote:[Unit]
 Description=Job that runs Kodi
 After=default.target graphical.target getty.target sound.target
[Service]
 User=kodi
 Restart=always
 RestartSec=1s
AE_SINK=ALSA
ExecStart = /usr/bin/xinit /usr/bin/dbus-launch --exit-with-session /usr/bin/kodi-standalone -- :0 -nolisten tcp vt7
[Install]
 WantedBy=default.target

So i dont have a wm


RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - fritsch - 2018-03-11

(2018-03-11, 15:57)Rumpelstiltskin Wrote: I run it :

Quote:[Unit]
 Description=Job that runs Kodi
 After=default.target graphical.target getty.target sound.target
[Service]
 User=kodi
 Restart=always
 RestartSec=1s
AE_SINK=ALSA
ExecStart = /usr/bin/xinit /usr/bin/dbus-launch --exit-with-session /usr/bin/kodi-standalone -- :0 -nolisten tcp vt7
[Install]
 WantedBy=default.target

So i dont have a wm

Why not following this how-to you currently highjack? :-)