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 - 2016-03-14

No Debug Log / all other required logfiles from first post including journalctl -a no issue - you are off topic here. Open your own thread.


RE: New Era: VAAPI with EGL interoperation - Markus_23 - 2016-03-14

@fritsch

Many thanks for your last links :-)
Tried a new xenial install with infos from post #1 and your additional info xserver-xorg-legacy.
Then installed your xorg.conf , and custom edid and boot line in grub -> working in 50Hz now :-)
Also kodi-pvr-hts is at 3.2.0 now, so I can fully use / test kodi now.

btw. Do I have to use the nightly tvheadend repo with kodi 17 / pvr.hts 3.2.0 , or is the stable 4.0.8 also suitable ?

Again thanks for the links - sometimes one just need a little help in finding stuff :-)


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

Sorry - no idea about tvheadend. Avoid it or use latest and greatest master and update daily ...


RE: New Era: VAAPI with EGL interoperation - the-dreamer - 2016-03-14

@fritsch: short info from latest git version: playing recordings via vnsi doesn't work. short debug overview said:

Code:
22:23:42 T:140046284990528  NOTICE: VideoPlayer: Opening: pvr://recordings/active/Jupiter Ascending, TV (Sky Cinema HD), 20160312_122000.pvr
22:23:42 T:140046284990528 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
22:23:42 T:140043767240448  NOTICE: Creating InputStream
22:23:43 T:140043767240448  NOTICE: Creating Demuxer
22:23:44 T:140043767240448  NOTICE: Opening stream: 0 source: 256
22:23:44 T:140043767240448  NOTICE: Creating video codec with codec id: 28
22:23:44 T:140043767240448  NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
22:23:44 T:140043767240448  NOTICE: Creating video thread
22:23:44 T:140043767240448  NOTICE: Opening stream: 1 source: 256
22:23:44 T:140043767240448  NOTICE: Finding audio codec for: 86019
22:23:44 T:140043767240448  NOTICE: Creating audio thread
22:23:44 T:140043767240448  NOTICE: Opening stream: 0 source: 1024
22:23:44 T:140044438329088  NOTICE: running thread: video_thread
22:23:44 T:140044916483840  NOTICE: running thread: CVideoPlayerAudio::Process()

but nothing happend at first. after a long time:
Code:
22:26:38 T:140043767240448   ERROR: Action - thread VideoPlayer, Unhandled exception caught in thread process, aborting. auto delete: 0
22:26:38 T:140043767240448  NOTICE: CVideoPlayer::OnExit()
22:26:38 T:140043767240448  NOTICE: VideoPlayer: eof, waiting for queues to empty
22:26:38 T:140043767240448  NOTICE: Closing stream player 1
22:26:38 T:140043767240448  NOTICE: Waiting for audio thread to exit
22:26:38 T:140044916483840   ERROR: Got MSGQ_ABORT or MSGO_IS_ERROR return true
22:26:38 T:140044916483840  NOTICE: thread end: CVideoPlayerAudio::OnExit()
22:26:38 T:140043767240448  NOTICE: Closing audio device
22:26:38 T:140043767240448  NOTICE: Deleting audio codec
22:26:38 T:140043767240448  NOTICE: Closing stream player 2
22:26:38 T:140043767240448  NOTICE: waiting for video thread to exit
22:26:38 T:140044438329088   ERROR: Got MSGQ_ABORT or MSGO_IS_ERROR return true
22:26:38 T:140044438329088  NOTICE: thread end: video_thread
22:26:38 T:140043767240448  NOTICE: deleting video codec
22:26:38 T:140046284990528  NOTICE: CVideoPlayer::CloseFile()
22:26:38 T:140046284990528  NOTICE: VideoPlayer: waiting for threads to exit
22:26:38 T:140046284990528  NOTICE: VideoPlayer: finished waiting
22:26:38 T:140046284990528  NOTICE: CVideoPlayer::CloseFile()
22:26:38 T:140046284990528  NOTICE: VideoPlayer: waiting for threads to exit
22:26:38 T:140046284990528  NOTICE: VideoPlayer: finished waiting

tomorrow you get a regular debug log if necessary.

btw: codec info: frame drop seems to counting all my frames in 1080i. ;-)
720p is fine. video playback seems better then last week for all videos types. (less skips at first view)


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

Works fine - no issues. Do you have TearFree force enabled again or set the number of buffers in a wrong way in the settings?

If yes - just ignore the display. I pushed some minutes ago.


Edit: Sorry, you are right. I see it - thought it seems to not have any visual impact.


RE: New Era: VAAPI with EGL interoperation - mule1 - 2016-03-15

@fritsch: Would be great if you can update the VNSI addon with the latest master version within your next build. This should allow testing the new timer types in conjunction with vdr.


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

Yeah, currently uploading a fixed build (ETA 3:00 minutes)


RE: New Era: VAAPI with EGL interoperation - mule1 - 2016-03-15

Wow, this was lightning fast, thanks once again!


RE: New Era: VAAPI with EGL interoperation - Markus_23 - 2016-03-15

So everything is working right now with VAAPI/EGL :-)

Sadly I have to come back to my refresh rate switching "problem".
I've tested your switching commands on my new install.

When executing "xrandr -d :0 -r 24" the HDMI Signal LED on my Receiver went off, after 2 sec the LED went on, and after another 5sec the TV shows Picture.
My TV isn't the fastest when switching Refreshrate, but it there is around 7sec in total when switching :-(

Is there anything I can tune und test ? Why is it, that first the HDMI Signal went away for 2secs (AV-Receiver LED) ? Isn't signal change instant from the Gfx-card side ?
Or is it simply a dumb problem of my PC / AV-Receiver / TV combination ?

Update:

Came into a strange Audio Problem: all audio except 48000hz wont play via AV-Receiver - can't find anything in kodi.log.
Tried to switch to direct hdmi connection to tv. Now audio is working 44100/48000 pcm and passthrough (via sp/dif from tv to receiver). ALSO refreshrate switching is down to 3sec !

Any hints on this ? Apart from that I will switch to direct TV connection with SP/Dif to AVR instead.


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

Nope - it's your personal hardware issue - has nothing to do with kodi.


RE: New Era: VAAPI with EGL interoperation - the-dreamer - 2016-03-15

@fritsch: Okay, i have now a clue what happend. there seems to be a memory leak. When starting a recording i see in debug lines on screen my memory counting down... actually i have 8gb ram so it takes some time until no ram is left and the videoplayer is stopping.

http://sprunge.us/TCDV

i am on your git version r22302 including vnsi 902a3cd


Image


crashing of chromium remote is only a side effect

this happend only on recordings via pvr. playback directly from file is working. this issue is maybe more something for fernet.


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

-> please file this bug for vnsi at: https://github.com/kodi-pvr/pvr.vdr.vnsi/issues with all relevant logfiles, please.


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

(2016-03-15, 10:09)fritsch Wrote: -> please file this bug for vnsi at: https://github.com/kodi-pvr/pvr.vdr.vnsi/issues with all relevant logfiles, please.

please don't recommend filing mainline bugs on vnsi repo


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

No problem with that. Where to file instead?


RE: New Era: VAAPI with EGL interoperation - schamane - 2016-03-15

Hi,

I cant change subtitles or audio track for the last 5 version or so.

Is this known? I read something about disabled Subtitles