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: New Era: VAAPI with EGL interoperation - the-dreamer - 2015-12-02

fritsch, please don't confound me with somebody else again :-)

the sync problems seems to be introduced after r21577. r21577 don't show the issue at all. later releases have sync problems. with the same settings. i have my own xorg.conf in .config only for tearfree. nothing more.
the 25fps problems discussed here don't seems to be a problem for me. as i have written, i need to enable tearfree because of chromium. vsync is also always on.

sync problems seems to be only exists with audio passthrough. mp2 audio has no sync problems for me.


RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-12-02

Quote:xorg.conf in .config only for tearfree. nothing more.

This was proven to exactly cause those sync issues - as we cannot trust the vblank anymore. It is reverted (*) in the latest build I uploaded that morning.

* I was convinced by the developer that this would "not cause" any issues - while still blocking like a vblank aware setup ... the field test (pre latest build) has heavily shown the issues.


RE: New Era: VAAPI with EGL interoperation - the-dreamer - 2015-12-02

but why r21577 don't have this issue? even with tearfree on?


RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-12-02

http://forum.kodi.tv/showthread.php?tid=231955&pid=2175667#pid2175667 <- only change :-)

Check if current version of today works again


RE: New Era: VAAPI with EGL interoperation - the-dreamer - 2015-12-02

no it don't.
Quote:OpenELEC (unofficial) Version: devel-20151202082538-r21587-g8581404
OpenELEC git: 8581404bbf15a91d17d17e6fa7b407ce70970d39

OpenELEC:~ # cat /var/log/Xorg.0.log | grep TearFree
[1644758.642] (**) intel(0): Option "TearFree" "true"
[1644758.645] (**) intel(0): TearFree enabled
but it works with:
Quote:OpenELEC (unofficial) Version: devel-20151118073930-r21577-g3a1af3a
OpenELEC git: 3a1af3a231316402ceaa7ae1b38d0f0cc41f4f3a

OpenELEC:~ # cat /var/log/Xorg.0.log | grep TearFree
[1646656.747] (**) intel(0): Option "TearFree" "true"
[1646656.751] (**) intel(0): TearFree enabled

as i said: there is something else changed. TearFree might be a trigger for this issue but i doubt the root source.

i have also seen, if i set cacheinvideoplayer to false in advancedsettings the latest release will crash kodi very likely.


RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-12-02

That's your personal TearFree setting then ... cause I shipped it only once.

The change that might cause (kodi wise) is: https://github.com/FernetMenta/xbmc/commit/adfa2b8c978754f3824b6a0cb46cd44ca9c43692

Please try _without_ TearFree (your self set Tearfree). It only happens with passthrough? or also without passthrough?

The above commit changes the delay estimation for the passthrough case and was the last one that was added.


RE: New Era: VAAPI with EGL interoperation - the-dreamer - 2015-12-02

yes that is true. my own xorg.conf because of tearings with chromium browser this setting is necessary for me.

Quote:OpenELEC (unofficial) Version: devel-20151202082538-r21587-g8581404
OpenELEC git: 8581404bbf15a91d17d17e6fa7b407ce70970d39
OpenELEC:~ # cat /var/log/Xorg.0.log | grep TearFree
[1648564.325] (==) intel(0): TearFree disabled

sync problem still exists.

pcm or mp2 audio seems always fine. only with passthrough. very much with 2.0 dolby (>1000 ms) and hard to notice with 5.1. In all cases audio is out of sync if transport stream has some picture errors.


RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-12-02

Okay - that makes sense - thx. then the passthrough delay estimation has a little bug somewhere.


RE: New Era: VAAPI with EGL interoperation - darebee - 2015-12-02

I too am having audio sync issues for anything after the devel-20151118073930-r21577-g3a1af3a build while using passthrough. For me, it is even noticeable for 5.1 audio streams. I will test today's build now.


RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-12-02

Today's testbuild won't repair the passthrough sync issues - they just repair general audio / video sync issue introduced by testing intel's "TearFree" option ...


RE: New Era: VAAPI with EGL interoperation - Roby77 - 2015-12-02

since build OpenELEC-Generic.x86_64-6.0-devel-20151202120423-r21589-gcf0c417.tar

i'm having a lot of handshake problem (black screen, hdmi lost)

my setup is: chromebox>avr>tv

avr is in standby

i will post a debug log asap (my son goes to bed)

edit:maybe i found using sync to playback function problem solved


RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-12-02

Not a single change in that regard ...


RE: New Era: VAAPI with EGL interoperation - Jdiesel - 2015-12-02

(2015-12-02, 21:31)Roby77 Wrote: since build OpenELEC-Generic.x86_64-6.0-devel-20151202120423-r21589-gcf0c417.tar

i'm having a lot of handshake problem (black screen, hdmi lost)

my setup is: chromebox>avr>tv

avr is in standby

i will post a debug log asap (my son goes to bed)

edit:maybe i found using sync to playback function problem solved

I am experiencing similar issues on OpenELEC-Generic.x86_64-6.0-devel-20151128110533-r21582-g0c46ef7. When waking my AVR and display from standby it sometimes takes approximately 60 seconds for anything to register on the display. I just started using these testbuilds so I can't comment if this issues existed in older builds but I will try to replicate the issue and post some logs tonight.


RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-12-02

Quote:OpenELEC-Generic.x86_64-6.0-devel-20151128110533

This version's drivers are run by some thousand chromebox users ... not a single complaint concerning AVR/display/on/off until now. Btw. suspend / resume is not supported - it's a kernel thing and kodi has minimalistic support for that.


RE: New Era: VAAPI with EGL interoperation - Roby77 - 2015-12-02

(2015-12-02, 21:32)fritsch Wrote: Not a single change in that regard ...


thank you i will try resetting avr cpu