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-12-22

It's fixed: https://github.com/FernetMenta/xbmc/commit/8333dd9d1bfb9eb71fa94f9f7c1297a22f8dab4e

Thanks to Fernet!


RE: New Era: VAAPI with EGL interoperation - Milhouse - 2015-12-22

(2015-12-22, 10:58)fritsch Wrote: It's fixed: https://github.com/FernetMenta/xbmc/commit/8333dd9d1bfb9eb71fa94f9f7c1297a22f8dab4e

Thanks to Fernet!

Yep, that's fixed it - many thanks to you both. Smile


RE: New Era: VAAPI with EGL interoperation - Raitsa - 2015-12-22

Fast work fixing the issue guys, thanks a lot for all involved.


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

Yeah - it's christmas - now we all head over to fernet and help him decorating his christmas tree

Image


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

Uploading new build: Needs 40 minutes to go ... (DSL Lite ....)


RE: New Era: VAAPI with EGL interoperation - redbiro - 2015-12-22

(2015-12-22, 11:55)fritsch Wrote: Uploading new build: Needs 40 minutes to go ... (DSL Lite ....)

hm.
i've installed kodi and kodi-bin with apt-get dist-upgrade but intall zip has the same behavior.
did i miss something?
log says the same then earlier.

kodi version:
KODI 17.0-ALPHA1 Git:d5ec039
compiled: Dec 22 2015


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

PPA is rebuild at night ... -> so for you: tomorrow. I only updated the OpenELEC builds.


RE: New Era: VAAPI with EGL interoperation - redbiro - 2015-12-22

(2015-12-22, 13:26)fritsch Wrote: PPA is rebuild at night ... -> so for you: tomorrow. I only updated the OpenELEC builds.

understand, thanks for everything.


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

@fernet
with the lastest builds hd audio bitstream sync is broken again, would you please take a look.
i will provide log later tonight if needed.


RE: New Era: VAAPI with EGL interoperation - jjslegacy - 2015-12-22

Fritsch,

I have a video that seems to have a refresh rate of 29.97 and I just get a bluescreen on my projector.

I tried older versions and the latest and same result so don't mind the debug log of an older version.

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

MediaInfo:
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : [email protected]
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Format settings, GOP : M=1, N=30
Codec ID : V_MPEG4/ISO/AVC
Duration : 2h 54mn
Bit rate mode : Variable
Maximum bit rate : 37.0 Mbps
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 29.970 (30000/1001) fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : MBAFF
Scan type, store method : Interleaved fields
Scan order : Top Field First
Language : English
Default : No
Forced : No


I can confirm this gives me a bluescreen:
/usr/lib/kodi/kodi-xrandr --screen 0 --output HDMI1 --mode 0xdf

kodi-xrandr --verbose: http://sprunge.us/bjVf

Seems it's getting resolutions my setup can't support? Also strange the video is 1920x1080 - why is it trying to use 1920x1200 which I assume my projector can't handle anyways


RE: New Era: VAAPI with EGL interoperation - jjslegacy - 2015-12-22

Here is a debug log using the latest build from the 22nd where the audio is pretty off with passthrough. I believe the audio is ahead of the video in this case

debug: http://sprunge.us/cWPX
journal: http://sprunge.us/YJeK
dmesg: http://sprunge.us/EBFc
vainfo: http://sprunge.us/bKbF


RE: New Era: VAAPI with EGL interoperation - jjslegacy - 2015-12-22

Sorry for all the spamming of posts - finally had some time to play in the theater without anyone home.

Here is a debug log of a video that when i start the kodi screen just freezes up and the audio starts playing - no video ever shows up - i just see the last screen in kodi

If I turn off use VC-1 VAAPI we get farther but I end up with a bluescreen just like the above video.

debug: http://sprunge.us/fjcD

Video
ID : 1
Format : VC-1
Format profile : Advanced@L3
Codec ID : V_MS/VFW/FOURCC / WVC1
Codec ID/Hint : Microsoft
Duration : 2h 8mn
Bit rate : 28.9 Mbps
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 29.970 (30000/1001) fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Interlaced
Scan order : Top Field First
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.465
Stream size : 26.0 GiB (86%)
Language : English
Default : No
Forced : No


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

(2015-12-22, 21:17)jjslegacy Wrote: Sorry for all the spamming of posts - finally had some time to play in the theater without anyone home.

Here is a debug log of a video that when i start the kodi screen just freezes up and the audio starts playing - no video ever shows up - i just see the last screen in kodi

If I turn off use VC-1 VAAPI we get farther but I end up with a bluescreen just like the above video.

debug: http://sprunge.us/fjcD

Video
ID : 1
Format : VC-1
Format profile : Advanced@L3
Codec ID : V_MS/VFW/FOURCC / WVC1
Codec ID/Hint : Microsoft
Duration : 2h 8mn
Bit rate : 28.9 Mbps
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 29.970 (30000/1001) fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Interlaced
Scan order : Top Field First
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.465
Stream size : 26.0 GiB (86%)
Language : English
Default : No
Forced : No
Your projector announces a Mode it does not support. Turn off adjust refreshrate and retry.


RE: New Era: VAAPI with EGL interoperation - jjslegacy - 2015-12-22

I did test that briefly and it seemed to work but the video was choppy as I leave my kodi refresh rate at 23.97 because of the random issues I have switching resolution rates. I suppose this needs to be played at 60hz.

Seems like it's picking the first one that tmatces the refresh rate vs matching the resolution or maybe I am completely wrong

What I don't understand is why would that video choose 1920x1200 - any way for me to cleanup what the projector is supplying? Do I need to lock in an xorg or some other option?


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

(2015-12-22, 23:00)jjslegacy Wrote: I did test that briefly and it seemed to work but the video was choppy as I leave my kodi refresh rate at 23.97 because of the random issues I have switching resolution rates. I suppose this needs to be played at 60hz.

Seems like it's picking the first one that tmatces the refresh rate vs matching the resolution or maybe I am completely wrong

What I don't understand is why would that video choose 1920x1200 - any way for me to cleanup what the projector is supplying? Do I need to lock in an xorg or some other option?

Yes - you cannot play 29.97i at 23hz. Sorry - I cannot support all the crappy hardware out there ... ask the vendor of the projector, why they announce 59.94 hz when they cannot do it.

Quote:14:15:47 T:139884185327552 INFO: Output 'HDMI1' has 42 modes
14:15:47 T:139884185327552 INFO: ID:0x48 Name:1920x1080 Refresh:60.000000 Width:1920 Height:1080
14:15:47 T:139884185327552 INFO: Pixel Ratio: 0.994500
14:15:47 T:139884185327552 INFO: ID:0xe0 Name:1920x1080 Refresh:50.000000 Width:1920 Height:1080
14:15:47 T:139884185327552 INFO: Pixel Ratio: 0.994500
14:15:47 T:139884185327552 INFO: ID:0xe1 Name:1920x1080 Refresh:59.940201 Width:1920 Height:1080
14:15:47 T:139884185327552 INFO: Pixel Ratio: 0.994500
14:15:47 T:139884185327552 INFO: ID:0xe4 Name:1920x1080 Refresh:24.000000 Width:1920 Height:1080
14:15:47 T:139884185327552 INFO: Pixel Ratio: 0.994500
14:15:47 T:139884185327552 INFO: ID:0xe6 Name:1920x1080 Refresh:23.976080 Width:1920 Height:1080
14:15:47 T:139884185327552 INFO: Pixel Ratio: 0.994500
14:15:47 T:139884185327552 INFO: ID:0xdf Name:1920x1200 Refresh:59.950169 Width:1920 Height:1200

See the 59.95 mode ...