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 - dofl - 2015-09-12

I'm having some trouble with the AC3 Transcode. It's happening on a a new ASRock N3150-ITX motherboard.

My audio is going to a Sonos Playbar, which doesn't support DTS. I've enable my SPDIF as passthrough device and set yes to the AC3 capability and AC3 transcoding.
Whenever the transcoding is selected (which is required for 5.0 sound), the audio 'cracks' very loudly about every second. It's not always happening right at the beginning of the video, but it will come after a couple of seconds. This does not happen when the AC3 transcode is turned off (AC3 passthrough kept on).

CPU usage during ac3 transcoding enable video is around 10% per core (out of 4), 300 kb/s io load.
I have tried all the options in the first post, even up/downgrading to the kernel 4.1.6.

DPKG | MESA http://paste.ubuntu.com/12366729/
DISPLAY | vainfo http://paste.ubuntu.com/12366732/
kodi.log http://paste.ubuntu.com/12366739/
dmesg http://paste.ubuntu.com/12366743/


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

(2015-09-12, 15:43)fab67 Wrote: fritsch,

now all is ok for videos up to1080p. they are displayed at 1080p.

But 3840*2160@24p are displayed at 4096x2160 and not at 3840*2160.
And with sintel 4096x1744 I have the known problem but one other thing I see : sintel 4096x1744 is displayed at 4096x2160 so original size ( no need of rescaling ) but it seems that the video scaling is enabled. Should it be enabled in this case ? because with lanczos method -> lots of skips and drops.

Here the log when I try that : http://www.xbmclogs.com/poawuz43k

Can you also please get me the kodi-xrandr output again? The mode it is setting are not shown in your log from yesterday.


RE: New Era: VAAPI with EGL interoperation - fab67 - 2015-09-12

verbose logging ffmpeg,audio, video -> http://www.xbmclogs.com/pd2aujwui

Did I need to set something else ?


RE: New Era: VAAPI with EGL interoperation - fab67 - 2015-09-12

(2015-09-12, 16:02)fritsch Wrote:
(2015-09-12, 15:43)fab67 Wrote: fritsch,

now all is ok for videos up to1080p. they are displayed at 1080p.

But 3840*2160@24p are displayed at 4096x2160 and not at 3840*2160.
And with sintel 4096x1744 I have the known problem but one other thing I see : sintel 4096x1744 is displayed at 4096x2160 so original size ( no need of rescaling ) but it seems that the video scaling is enabled. Should it be enabled in this case ? because with lanczos method -> lots of skips and drops.

Here the log when I try that : http://www.xbmclogs.com/poawuz43k

Can you also please get me the kodi-xrandr output again? The mode it is setting are not shown in your log from yesterday.

http://pastebin.com/uM5uWy5H


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

I found my bug! Damn.


RE: New Era: VAAPI with EGL interoperation - fab67 - 2015-09-12

I see this in the log :

13:15:59 T:139852372367104 DEBUG: CRenderManager::Configure - change configuration. 4096x1744. display: 4095x1744. framerate: 24.00. format: VAAPI

Why display: 4095x1744


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

Why: Your pixel ratio is not 1.0 it is 0.97 something -> i workaround that and ignore it, cause it's just one pixel off.

Will post a new build in some minutes.


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

@fab67:
http://fritsch.fruehberger.net/openelec/OpenELEC-Generic.x86_64-6.0-devel-20150912161703-r21278-gbe69d8e.tar

That will spam the log, quite curious.


RE: New Era: VAAPI with EGL interoperation - fab67 - 2015-09-12

http://www.xbmclogs.com/przvr8p7w


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

@fab67: That still won't work, but now we can find the bugger: http://fritsch.fruehberger.net/openelec/OpenELEC-Generic.x86_64-6.0-devel-20150912170153-r21278-gbe69d8e.tar


RE: New Era: VAAPI with EGL interoperation - fab67 - 2015-09-12

http://www.xbmclogs.com/pmfvdaosa


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

I am totally buffled how std::abs can produce -1280 ... but never the less, this might be some OE ccache issue ...

Here is another version, this should actually work :-)

Thanks for testing, btw: http://fritsch.fruehberger.net/OpenELEC-Generic.x86_64-6.0-devel-20150912173918-r21278-gbe69d8e.tar

Edit: Argh (wait 3 minutes to download, here is the md5sum: e0f59efbb90dea67c10786ba08f8f7ea I pressed the reply button too early, before upload was finished).

Edit: Online now btw. can you join IRC - it's a bit boring :-)


RE: New Era: VAAPI with EGL interoperation - fab67 - 2015-09-12

fritsch

The requested URL /OpenELEC-Generic.x86_64-6.0-devel-20150912173918-r21278-gbe69d8e.tar was not found on this server.

btw I must go in 15 min.
I can join IRC on monday


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

http://fritsch.fruehberger.net/openelec/OpenELEC-Generic.x86_64-6.0-devel-20150912173918-r21278-gbe69d8e.tar


RE: New Era: VAAPI with EGL interoperation - fab67 - 2015-09-12

(2015-09-12, 18:06)fritsch Wrote: http://fritsch.fruehberger.net/openelec/OpenELEC-Generic.x86_64-6.0-devel-20150912173918-r21278-gbe69d8e.tar

fritsch

with this build 3840x2160p24 is now displayed at 3840x2160p24 Smile

I'll come back on monday if you need me