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 - fritsch - 2015-09-14

(2015-09-14, 14:42)ggp759 Wrote: Also audio offset when playing is 0.000. Its always been like that.

No - OpenELEC forces a 150 ms delay via advancedsettings.xml - which is not set by you. Therefore I ask: Is it constantly out of sync? E.g. is audio half a second too early or is audio half a second too late?

trsqr Wrote:With these integrated GPUs it does seem to make a significant difference. Coincidentally I was playing last night with the Broadwell i5 NUC (which sucks at HEVC decoding of course). I tried 1x4 GB and 2x2 GB setups and for example in the Cinebench R15 OpenGL test the results improved some 45% when having the dual channel setup in use (all this in Windows of course).

With our EGL approach dual channel does not matter that much as it did before. With GLX we had to copy every single decoded image and here Dual channel improved 4k@60 samples by far > 15 fps ... now with EGL it seems only to play a role with the edge cases, e.g. the number of skips when playing a 3840x2160@60p hevc video ...


RE: New Era: VAAPI with EGL interoperation - ggp759 - 2015-09-14

(2015-09-14, 15:06)fritsch Wrote:
(2015-09-14, 14:42)ggp759 Wrote: Also audio offset when playing is 0.000. Its always been like that.

No - OpenELEC forces a 150 ms delay via advancedsettings.xml - which is not set by you. Therefore I ask: Is it constantly out of sync? E.g. is audio half a second too early or is audio half a second too late?

trsqr Wrote:With these integrated GPUs it does seem to make a significant difference. Coincidentally I was playing last night with the Broadwell i5 NUC (which sucks at HEVC decoding of course). I tried 1x4 GB and 2x2 GB setups and for example in the Cinebench R15 OpenGL test the results improved some 45% when having the dual channel setup in use (all this in Windows of course).

With our EGL approach dual channel does not matter that much as it did before. With GLX we had to copy every single decoded image and here Dual channel improved 4k@60 samples by far > 15 fps ... now with EGL it seems only to play a role with the edge cases, e.g. the number of skips when playing a 3840x2160@60p hevc video ...

I get it now. Audio is always too early. In one case it might be 50ms too early in another it might be 100ms too early ( these are examples). In any case is always too early.


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

Okay, thx for that report. A constant delay I could have explained - this varying offset is more criticial.


RE: New Era: VAAPI with EGL interoperation - Roby77 - 2015-09-14

Maybe i don't get audio problems cause my avr autostnc ? or maybe i am deaf Big Grin


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

Yeah or both.


RE: New Era: VAAPI with EGL interoperation - Roby77 - 2015-09-14

could useful if i provide a log ?


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

(2015-09-14, 16:27)Roby77 Wrote: could useful if i provide a log ?

No - as you don't have a problem ... all fine. You don't got to the doctor if there is no issue, either?


RE: New Era: VAAPI with EGL interoperation - DennisTA - 2015-09-14

(2015-09-13, 21:36)rbej Wrote: DXVA Checker 3.8.0

Decoder Test - HEVC 4k .Intel N3700.

Decoder: LAV Video Decoder
Decoder Device: HEVC_VLD_Main
Frames: 3845
Time: 36,071 sec
FPS: 106,594 [85-131] fps
CPU Usage: 7 [3-12] %

Decoder Test - HEVC 8k. Intel N3700.

Decoder: LAV Video Decoder
Decoder Device: HEVC_VLD_Main
Frames: 3057
Time: 109,138 sec
FPS: 28,010 [0-33] fps
CPU Usage: 7 [3-22] %

Smile

@rbej

Do you have a short explanation how this tool works?


RE: New Era: VAAPI with EGL interoperation - rbej - 2015-09-14

Run DXVA Checker. Go to DirectShow/MediaFoundation Decoder. Check Decoders. Select Media File. Choice any hevc 4k file. Click on righ arrow and decode benchmark.


RE: New Era: VAAPI with EGL interoperation - DennisTA - 2015-09-14

(2015-09-14, 17:12)rbej Wrote: Run DXVA Checker. Go to DirectShow/MediaFoundation Decoder. Check Decoders. Select Media File. Choice any hevc 4k file. Click on righ arrow and decode benchmark.

OK, I have selected the mediafile Big Buck Bunny 4k h.265, but after that nothing happens and there is no option "decode benchmark".

Do I have to use a speciel Media File to proceed the decode Benchmark?


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

It has issues to open mkv - try an mp4 file


RE: New Era: VAAPI with EGL interoperation - rbej - 2015-09-14

(2015-09-14, 17:18)DennisTA Wrote:
(2015-09-14, 17:12)rbej Wrote: Run DXVA Checker. Go to DirectShow/MediaFoundation Decoder. Check Decoders. Select Media File. Choice any hevc 4k file. Click on righ arrow and decode benchmark.

OK, I have selected the mediafile Big Buck Bunny 4k h.265, but after that nothing happens and there is no option "decode benchmark".

Do I have to use a speciel Media File to proceed the decode Benchmark?

Image


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

For me all those decoders are missing - it seems I need to install the LAV codec pack first ... I could only open a stone old mp4 file for now.

Will retry -> Edit: Yeah this works. My pure Broadwell laptop :-( GPU assisted HEVC ... just sucks.


RE: New Era: VAAPI with EGL interoperation - DennisTA - 2015-09-14

It doesn't work.

Even if I install LAV Decoder I get the information unsupported.

Sorry, but now I have to quit this test. There is a lot of other work to do...


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

(2015-09-14, 18:07)DennisTA Wrote: It doesn't work.

Even if I install LAV Decoder I get the information unsupported.

Sorry, but now I have to quit this test. There is a lot of other work to do...

Thanks much - no hurry. A decoder benchmark is not worth much anyways. As most of the time one wants to see what one is decoding. For Encoding purpose a decode + encode benchmark is relevant, though.