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 - scf2k - 2015-12-26

(2015-12-25, 22:09)fritsch Wrote: Edit: I have disabled the RSS feed obviously - as that one is causing load by design.

huh how is that? Huh


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

(2015-12-26, 17:04)scf2k Wrote:
(2015-12-25, 22:09)fritsch Wrote: Edit: I have disabled the RSS feed obviously - as that one is causing load by design.

huh how is that? Huh
Constant texture creating and subsequent rendering.


RE: New Era: VAAPI with EGL interoperation - scf2k - 2015-12-26

(2015-12-26, 17:44)fritsch Wrote: Constant texture creating and subsequent rendering.

But but but... 40-50% cpu?


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

(2015-12-26, 17:46)scf2k Wrote:
(2015-12-26, 17:44)fritsch Wrote: Constant texture creating and subsequent rendering.

But but but... 40-50% cpu?
60 times a second ...


RE: New Era: VAAPI with EGL interoperation - john.cord - 2015-12-26

(2015-12-23, 18:09)ilovethakush Wrote:
(2015-12-23, 09:50)fritsch Wrote:
(2015-12-23, 06:33)ilovethakush Wrote: On my chromebox, when I update from 6.0.98 to the latest test build, I lose a lot of my database. Even tried updating to the earliest available test build after restoring backup and still I lose a lot of my database.

Database version is bumped - rescan your content. If you use mysql, make sure that your server supports creating a new DB. Besides that - not a single idea without your logfiles ...

That's definitely the reason why, no need for logfiles here. I could always just rescan my content, but I'd rather not cause it's not just a loss of scanned content, I changed all of the artwork and some sorting for my movies/tv as well, and I lose all of that too.

Isn't there a version I can update to that won't lose the database, and then another, and then another until I get to the latest build. Or am I mistaking about that?
Normally the Database should be migrated. In your case something went wrong with that...


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

(2015-12-26, 18:21)john.cord Wrote:
(2015-12-23, 18:09)ilovethakush Wrote:
(2015-12-23, 09:50)fritsch Wrote: Database version is bumped - rescan your content. If you use mysql, make sure that your server supports creating a new DB. Besides that - not a single idea without your logfiles ...

That's definitely the reason why, no need for logfiles here. I could always just rescan my content, but I'd rather not cause it's not just a loss of scanned content, I changed all of the artwork and some sorting for my movies/tv as well, and I lose all of that too.

Isn't there a version I can update to that won't lose the database, and then another, and then another until I get to the latest build. Or am I mistaking about that?
Normally the Database should be migrated. In your case something went wrong with that...

And no one can tell without the Debug Log ... so stop caring ...


RE: New Era: VAAPI with EGL interoperation - wizziwig - 2015-12-27

(2015-12-25, 09:31)fritsch Wrote: Guys, it's quite easy. Sync was redone completely, it is working perfectly now for PCM now. For Passthrough such a method is missing (be it IEC burstpackages) or more advanced things. You are all welcome to implement it ... Concerning the drop / dupe - this was never a solution, not for an audiophile ... dropping means "psssssst", duplicating means sending same package number twice and a high percentage (> 20) of AVRs loosing the signal.

Until the code you are running hits the streets it is > 12 months to go. So there are no excuses like "I cannot code" or "I am too lazy". If you want it perfect, exactly now is the time to stand up and contribute a feature you (!) are using ...

Not sure what you mean. AC3 frames have no inter-frame dependency. Each 32ms frame in independent and can be repeated or dropped at will. An AVR is not going to care as long as it sees a new frame before its buffer runs dry. Single dropped frames are usually difficult to hear. Repeated frames are more obvious. But I'm only suggesting this method for systems that have very accurately matched a/v clocks to begin with. Let those people decide if they want to keep bitstreaming at the cost of a resync every few hours. If your AV clocks are very mismatched compared to the content, then I agree re-sampling PCM is preferred.

(2015-12-25, 10:54)FernetMenta Wrote:
(2015-12-25, 03:29)wizziwig Wrote: While I have a receiver with HDMI, I'm sure there are still plenty of users with older receivers that are limited to optical/coax surround. If you eliminate passthrough, you're forcing them to PCM stereo or reducing their quality (and increasing CPU usage) but having to decode AC3/DTS to multi-channel PCM and then re-encode back to AC3. Dropping or repeating video frames or AC3/DTS audio frames as was done on the older versions seems preferable if it doesn't happen very frequently (as is the case on Haswell or never Intel hardware that have very accurate a/v clocks).

You did not understand the problem. Until 16.0 PVR needed pre-buffering of streams which did not work well. Buffer level was set to a default that was too small for many systems. Increasing that value made others complain because channel switching times increased as well. The problem with real-time streams is that (as the name real-time implies) they come in with the same speed as they play. Means that buffers won't fill once playback was stated. This resulted quite often in a stalled audio stream, buffering, etc. I don't call this good quality.
Now VideoPlayer starts a realtime stream as early as possible and observes buffers levels. If the stream is about to run dry, it changes playspeed slightly and buffers will fill again. This is not possible when doing passthrough.

Ok. I did not realize we were talking only about live TV. Live TV is a challenge if your playback speed does not match content rate since your buffer will eventually underflow or overflow. For that case, I agree that PCM is probably the cleanest solution when dealing with a PC. Otherwise, you would need a larger buffer before starting playback and it would still run into problems if you stay too long on same channel (best to pause and refill buffer in that case). But for people who have very accurate playback clocks (exactly 59.940 or 50.000), they should probably have the option of just dropping and repeating frames to maintain sync. If resync happens every few hours I doubt anyone will complain.

Regarding buffer size, it should be based on stream-time not bytes. I'm not too familiar with how Kodi buffers live TV, but it should buffer until it has n seconds (based on stream timestamps, not wall clock) before it starts playing. You can't buffer until a fixed byte count because that tells you nothing about the time duration stored inside the buffer.


RE: New Era: VAAPI with EGL interoperation - sat4all - 2015-12-27

something is wrong with the last build, kodi doesn't show any kind of picture (posters,menu thumbs, addon thumbs..etc) if it was added after installing this build.

Code:
18:36:10 T:139920622475008   ERROR: Failed to CreateThumbnailFromSurface for special://masterprofile/Thumbnails/4/477a9f25.jpg
18:36:11 T:139921340217088   ERROR: Your are missing a working encoder for format: 62
18:36:11 T:139921340217088   ERROR: Failed to CreateThumbnailFromSurface for special://masterprofile/Thumbnails/b/b62342c9.png
18:36:12 T:139920622475008   ERROR: Your are missing a working encoder for format: 8
18:36:12 T:139920622475008   ERROR: Failed to CreateThumbnailFromSurface for special://masterprofile/Thumbnails/4/477a9f25.jpg
18:36:18 T:139921340217088   ERROR: Your are missing a working encoder for format: 62
18:36:18 T:139921340217088   ERROR: Failed to CreateThumbnailFromSurface for special://masterprofile/Thumbnails/b/b4c55092.png
18:36:19 T:139921340217088   ERROR: Your are missing a working encoder for format: 8
18:36:19 T:139921340217088   ERROR: Failed to CreateThumbnailFromSurface for special://masterprofile/Thumbnails/b/b9e7e744.jpg
18:36:20 T:139921340217088   ERROR: Your are missing a working encoder for format: 62
18:36:20 T:139921340217088   ERROR: Failed to CreateThumbnailFromSurface for special://masterprofile/Thumbnails/5/5a63be54.png
18:36:20 T:139920622475008   ERROR: Your are missing a working encoder for format: 62
18:36:20 T:139920622475008   ERROR: Failed to CreateThumbnailFromSurface for special://masterprofile/Thumbnails/b/b4c55092.png
18:36:20 T:139921889150720   ERROR: Your are missing a working encoder for format: 8
18:36:20 T:139921889150720   ERROR: Failed to CreateThumbnailFromSurface for special://masterprofile/Thumbnails/b/b9e7e744.jpg
18:36:20 T:139921340217088   ERROR: Your are missing a working encoder for format: 62
18:36:20 T:139921340217088   ERROR: Failed to CreateThumbnailFromSurface for special://masterprofile/Thumbnails/0/06642e2e.png
18:36:21 T:139920622475008   ERROR: Your are missing a working encoder for format: 62
18:36:21 T:139920622475008   ERROR: Failed to CreateThumbnailFromSurface for special://masterprofile/Thumbnails/1/16a031e3.png
18:36:21 T:139921511675648   ERROR: Your are missing a working encoder for format: 8
18:36:21 T:139921511675648   ERROR: Failed to CreateThumbnailFromSurface for special://masterprofile/Thumbnails/6/65ad121f.jpg
18:36:21 T:139921889150720   ERROR: Your are missing a working encoder for format: 62
18:36:21 T:139921889150720   ERROR: Failed to CreateThumbnailFromSurface for special://masterprofile/Thumbnails/e/efb318e7.png
18:36:22 T:139920622475008   ERROR: Your are missing a working encoder for format: 62
18:36:22 T:139920622475008   ERROR: Failed to CreateThumbnailFromSurface for special://masterprofile/Thumbnails/e/efb318e7.png
18:36:25 T:139921511675648   ERROR: Your are missing a working encoder for format: 8
18:36:25 T:139921511675648   ERROR: Failed to CreateThumbnailFromSurface for special://masterprofile/Thumbnails/0/051f7e6f.jpg
18:36:26 T:139920622475008   ERROR: Your are missing a working encoder for format: 62
18:36:26 T:139920622475008   ERROR: Failed to CreateThumbnailFromSurface for special://masterprofile/Thumbnails/1/16a031e3.png
18:36:26 T:139920622475008   ERROR: Your are missing a working encoder for format: 62
18:36:26 T:139920622475008   ERROR: Failed to CreateThumbnailFromSurface for special://masterprofile/Thumbnails/e/efb318e7.png
18:36:27 T:139920622475008   ERROR: Your are missing a working encoder for format: 8
18:36:27 T:139920622475008   ERROR: Failed to CreateThumbnailFromSurface for special://masterprofile/Thumbnails/2/21f2ccb4.jpg
18:36:28 T:139920622475008   ERROR: Your are missing a working encoder for format: 8
18:36:28 T:139920622475008   ERROR: Failed to CreateThumbnailFromSurface for special://masterprofile/Thumbnails/b/b7f477ef.jpg
18:36:28 T:139921340217088   ERROR: Your are missing a working encoder for format: 62
18:36:28 T:139921340217088   ERROR: Failed to CreateThumbnailFromSurface for special://masterprofile/Thumbnails/d/d73c491f.png
18:36:28 T:139921511675648   ERROR: Your are missing a working encoder for format: 8
18:36:28 T:139921511675648   ERROR: Failed to CreateThumbnailFromSurface for special://masterprofile/Thumbnails/3/3804e0a6.jpg
18:36:29 T:139921889150720   ERROR: Your are missing a working encoder for format: 8
18:36:29 T:139921889150720   ERROR: Failed to CreateThumbnailFromSurface for special://masterprofile/Thumbnails/b/b7f477ef.jpg
18:36:29 T:139921511675648   ERROR: Your are missing a working encoder for format: 62
18:36:29 T:139921511675648   ERROR: Failed to CreateThumbnailFromSurface for special://masterprofile/Thumbnails/b/bfbc4643.png
18:36:29 T:139921511675648   ERROR: Your are missing a working encoder for format: 8
18:36:29 T:139921511675648   ERROR: Failed to CreateThumbnailFromSurface for special://masterprofile/Thumbnails/5/5d90a022.jpg
18:36:30 T:139921511675648   ERROR: Your are missing a working encoder for format: 8
18:36:30 T:139921511675648   ERROR: Failed to CreateThumbnailFromSurface for special://masterprofile/Thumbnails/d/d05d3308.jpg
18:36:31 T:139921340217088   ERROR: Your are missing a working encoder for format: 62
18:36:31 T:139921340217088   ERROR: Failed to CreateThumbnailFromSurface for special://masterprofile/Thumbnails/9/98d0c1a2.png
18:36:31 T:139921511675648   ERROR: Your are missing a working encoder for format: 8

crash log


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

Jo - mjpeg, png encoder missing in ffmpeg.

Edit: I have forgotten them, currently uploading a fixed build.


RE: New Era: VAAPI with EGL interoperation - sat4all - 2015-12-27

thanks much & enjoy the holidays


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

ETA: 1 hour :-) last day with dsl lite, though ... getting better tonight / tomorrow.


RE: New Era: VAAPI with EGL interoperation - luna_s - 2015-12-27

Apologies if slightly OT but can anyone tell me how to install the kodi splash screen on this build ? Maybe include it on the first post ?

And thanks for all the work on this Smile


RE: New Era: VAAPI with EGL interoperation - menno - 2015-12-27

I got 2 tvheadends backends working and did the trick to use use the addon twice. pvr.hts and pvr2.hts.
I run into a probem with my remote backend since releases of 12 dec and later. (by the way both yours and milhouses').

My local tvheadend works great, but my remote one gives severe initialization problems. If i re-install a pre 12-dec release all is fine again!
Playback falls back to like 6fps. I see the pvr.hts didnt change from pre 12-12 to post 12-2 (at least not around that date, for milhouse releases), so I am not sure what causes it.

Debug log: http://sprunge.us/JKOG

Also I noticed on your latest release, I cannot control the audio level anymore (I use passthrough). I am not sure if that is the desirable behaviour.!

Thanks for all the effort!


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

With latest build PPA/ubuntu and openelec, I have very slow buffering and freeze when I seek.

Debug Log : http://xbmclogs.com/pc4nsxhyf


RE: New Era: VAAPI with EGL interoperation - porkchop999 - 2015-12-27

Same issue

http://pastebin.com/gzScMp9y