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 - Snippo - 2016-03-21

Alright, I'll post them when I get home.


RE: New Era: VAAPI with EGL interoperation - Swifty - 2016-03-21

@fritsch

Can you advise at all on an issue I'm having with audio and PVR?

I use an STB which has to switch over to the relevant channel when I start a channel in Kodi (I think this is where the issue is caused).
Usually when switching between SD/HD the video playback starts in Kodi but there is no audio, then after a second or two the video playback freezes until I hit stop. I can then launch the exact same channel (STB now doesn't have to switch) and it plays fine..

I think the issue is that there is no audio at the start of the PVR stream as the STB is 'mid switch' then when the channel is tuned Kodi doesn't pickup the audio stream.

I've attached a log - I managed two successful tunes, and then the last tune failed (for reference things go downhill at 20:23:43 in the log).
Any idea how I can get around this issue? (can't get rid of the STB unfortunately!)

Log is here: http://xbmclogs.com/pjammrtti

Thanks!


RE: New Era: VAAPI with EGL interoperation - fritsch - 2016-03-21

Sorry no idea.


RE: New Era: VAAPI with EGL interoperation - Snippo - 2016-03-22

Here are the logs. Pastebinit didn't work for some reason so I used something different.

kodi.log:
http://pasted.co/5dfef35e

dmesg:
http://pasted.co/38554646

journalctl -S "today":
http://pasted.co/ba9158fb

vainfo:
http://pasted.co/8e35e315

The drops only start after about 20 seconds, which can also be seen in the debug log.

Edit:
and pacman -Qs mesa:
local/glu 9.0.0-4
Mesa OpenGL Utility library
local/libtxc_dxtn 1.0.1-6
S3 Texture Compression (S3TC) library for Mesa
local/mesa 11.1.2-1
an open-source implementation of the OpenGL specification
local/mesa-demos 8.3.0-1
Mesa demos and tools
local/mesa-libgl 11.1.2-1
Mesa 3-D graphics library

Let me know if I forgot something.


RE: New Era: VAAPI with EGL interoperation - fritsch - 2016-03-22

Quote:22:58:53 T:140231554627328 DEBUG: Previous line repeats 1243 times.
22:58:53 T:140231554627328 DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - demux unhandled subscription message [descrambleInfo]
22:58:53 T:140231493371648 DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - demux send speed 100
22:59:03 T:140231554627328 DEBUG: Previous line repeats 1302 times.
22:59:03 T:140231554627328 DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - demux unhandled subscription message [descrambleInfo]
22:59:03 T:140231493371648 DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - demux send speed 100
22:59:04 T:140231484978944 DEBUG: Previous line repeats 69 times.
22:59:04 T:140231484978944 DEBUG: CalcFrameRate counted 1000 frames without being able to calculate the framerate, giving up
22:59:04 T:140231493371648 DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - demux send speed 100
22:59:04 T:140231484978944 DEBUG: Previous line repeats 1 times.
22:59:04 T:140231484978944 DEBUG: CVideoPlayerVideo::CalcDropRequirement - dropped in decoder, Sleeptime: 0.040920, Bufferlevel: 3, Gain: 0.080000
22:59:04 T:140231493371648 DEBUG: Previous line repeats 1 times.
22:59:04 T:140231493371648 DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - demux send speed 100
22:59:04 T:140231484978944 DEBUG: Previous line repeats 8 times.
22:59:04 T:140231484978944 DEBUG: CVideoPlayerVideo::CalcDropRequirement - dropped in decoder, Sleeptime: 0.040370, Bufferlevel: 3, Gain: 0.080000
22:59:04 T:140231493371648 DEBUG: Previous line repeats 1 times.
22:59:04 T:140231493371648 DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - demux send speed 100

You have a problem with your backend. Please ask in the tvheadend forum.


RE: New Era: VAAPI with EGL interoperation - Snippo - 2016-03-22

Thanks for the help. I opened an issue on the TVHeadend tracker but I think the problem might be in the addon.
Kodi v16 stable works fine but the latest nightly version has the same problem (using the same TVHeadend version).


RE: New Era: VAAPI with EGL interoperation - negge - 2016-03-22

It seems like Kodi is seeking at certain intervals or something, hence the "demux send speed" calls.


RE: New Era: VAAPI with EGL interoperation - wookl - 2016-03-23

BDMV and iso videoes does not cache from nfs, I have enabled cache of everything to my ssd on a nuc5cpyh with 120gb ssd, mkv caches, but bdmv and iso caches 0 B.


RE: New Era: VAAPI with EGL interoperation - fritsch - 2016-03-23

-> trac.kodi.tv please


RE: New Era: VAAPI with EGL interoperation - negge - 2016-03-23

fritsch Wrote:You have a problem with your backend. Please ask in the tvheadend forum.

This has nothing to with the backend. Kodi triggers "SetSpeed()" on the PVR addon all the time for some reason which causes hiccups. It is not supposed to be called all the time, only when fast-forwarding or rewinding. I'm assuming this could be related to the inputstream work done recently.


RE: New Era: VAAPI with EGL interoperation - fritsch - 2016-03-23

No report from any other backends.


RE: New Era: VAAPI with EGL interoperation - negge - 2016-03-23

Probably because they don't use SetSpeed().


RE: New Era: VAAPI with EGL interoperation - fritsch - 2016-03-23

Or probably they use it in a correct way?


RE: New Era: VAAPI with EGL interoperation - FernetMenta - 2016-03-23

(2016-03-23, 14:18)negge Wrote: It is not supposed to be called all the time, only when fast-forwarding or rewinding.

It is, see ffmpeg demuxer how to handle this.


RE: New Era: VAAPI with EGL interoperation - negge - 2016-03-23

Well, it didn't do that before, right?