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 - FernetMenta - 2015-12-23

(2015-12-22, 19:30)sat4all Wrote: @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.

shrugs. what do you expect from that? that PA alsa mixing crap has never worked.

09:34:57 7.963799 T:140251741231168 NOTICE: Device 1
09:34:57 7.963868 T:140251741231168 NOTICE: m_deviceName : pulse
09:34:57 7.963873 T:140251741231168 NOTICE: m_displayName : PulseAudio Sound Server


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

Switched from milhouse to fritsch build which have no pulse audio alsa mixing crap, but unfortunately no change regarding the problem.

Code:
17:14:05 T:140295571949504  NOTICE: Found 1 Lists of Devices
17:14:05 T:140295571949504  NOTICE: Enumerated ALSA devices:
17:14:05 T:140295571949504  NOTICE:     Device 1
17:14:05 T:140295571949504  NOTICE:         m_deviceName      : hdmi:CARD=HDMI,DEV=0
17:14:05 T:140295571949504  NOTICE:         m_displayName     : HDA Intel
17:14:05 T:140295571949504  NOTICE:         m_displayNameExtra: DON DENON-AVR on HDMI
17:14:05 T:140295571949504  NOTICE:         m_deviceType      : AE_DEVTYPE_HDMI
17:14:05 T:140295571949504  NOTICE:         m_channels        : FL,FR,LFE,FC,BL,BR,BC,BLOC,BROC
17:14:05 T:140295571949504  NOTICE:         m_sampleRates     : 32000,44100,48000,88200,96000,176400,192000
17:14:05 T:140295571949504  NOTICE:         m_dataFormats     : AE_FMT_RAW,AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_RAW
17:14:05 T:140295571949504  NOTICE:         m_streamTypes     : STREAM_TYPE_AC3,STREAM_TYPE_DTSHD,STREAM_TYPE_DTSHD_CORE,STREAM_TYPE_DTS_1024,STREAM_TYPE_DTS_2048,STREAM_TYPE_DTS_512,STREAM_TYPE_EAC3,STREAM_TYPE_TRUEHD
17:14:05 T:140295571949504  NOTICE:     Device 2
17:14:05 T:140295571949504  NOTICE:         m_deviceName      : hdmi:CARD=HDMI,DEV=1
17:14:05 T:140295571949504  NOTICE:         m_displayName     : HDA Intel
17:14:05 T:140295571949504  NOTICE:         m_displayNameExtra: HDMI
17:14:05 T:140295571949504  NOTICE:         m_deviceType      : AE_DEVTYPE_HDMI
17:14:05 T:140295571949504  NOTICE:         m_channels        : FL,FR,LFE,FC,BC,BL,BR,FLOC,FROC,BLOC,BROC,TFC,TC,TFL,TFR,UNKNOWN1
17:14:05 T:140295571949504  NOTICE:         m_sampleRates     : 32000,44100,48000,88200,96000,176400,192000
17:14:05 T:140295571949504  NOTICE:         m_dataFormats     : AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_RAW
17:14:05 T:140295571949504  NOTICE:         m_streamTypes     : STREAM_TYPE_AC3,STREAM_TYPE_DTSHD,STREAM_TYPE_DTSHD_CORE,STREAM_TYPE_DTS_1024,STREAM_TYPE_DTS_2048,STREAM_TYPE_DTS_512,STREAM_TYPE_EAC3,STREAM_TYPE_TRUEHD
17:14:05 T:140295571949504  NOTICE:     Device 3
17:14:05 T:140295571949504  NOTICE:         m_deviceName      : @:CARD=PCH,DEV=0
17:14:05 T:140295571949504  NOTICE:         m_displayName     : HDA Intel PCH
17:14:05 T:140295571949504  NOTICE:         m_displayNameExtra: ALC283 Analog
17:14:05 T:140295571949504  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
17:14:05 T:140295571949504  NOTICE:         m_channels        : FL,FR
17:14:05 T:140295571949504  NOTICE:         m_sampleRates     : 48000
17:14:05 T:140295571949504  NOTICE:         m_dataFormats     : AE_FMT_S32NE
17:14:05 T:140295571949504  NOTICE:         m_streamTypes     : No passthrough capabilities



RE: New Era: VAAPI with EGL interoperation - FernetMenta - 2015-12-23

when did it break?


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

(2015-12-23, 09:48)fritsch Wrote:
(2015-12-23, 04:58)jjslegacy Wrote: Interesting the Life movie in VLC reports resolution 1920x1088 and is VC1
Frozen planet reports: 1920x1090 mpeg-4 avc

Debug log for Life video: http://sprunge.us/PXLe

Video plays with hardware acceleration turned off for VC1 but it's choppy at times as a single core hits 100% repeatedly so not quite watchable although close.

VAAPI still cannot decode VC-1 Interlaced content. This is a driver bug intel won't fix. We cannot do anything about it.

I suggest: Convert this 1080i VC1 files to progressive using ffmpeg and yadif deinterlacer and done ...


Thanks again Fritsch - I will look at converting and as always - appreciate all the help!


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

(2015-12-23, 19:43)FernetMenta Wrote: when did it break?

2 weeks ago i think, I will try to find what was the last working build. Btw the bug doesn't apply on ac3 and dts only HD formats if that helps.


RE: New Era: VAAPI with EGL interoperation - the-dreamer - 2015-12-23

@fernet: since the support of Multiple Timers the multiple timers are not detected from kodi as timers any more. The results are that the RTC is not programmed and kodi is shutdown during recordings. Is that already known?


RE: New Era: VAAPI with EGL interoperation - Oshan Ruiz - 2015-12-23

(2015-12-23, 19:44)jjslegacy Wrote:
(2015-12-23, 09:48)fritsch Wrote:
(2015-12-23, 04:58)jjslegacy Wrote: Interesting the Life movie in VLC reports resolution 1920x1088 and is VC1
Frozen planet reports: 1920x1090 mpeg-4 avc

Debug log for Life video: http://sprunge.us/PXLe

Video plays with hardware acceleration turned off for VC1 but it's choppy at times as a single core hits 100% repeatedly so not quite watchable although close.

VAAPI still cannot decode VC-1 Interlaced content. This is a driver bug intel won't fix. We cannot do anything about it.

I suggest: Convert this 1080i VC1 files to progressive using ffmpeg and yadif deinterlacer and done ...


Thanks again Fritsch - I will look at converting and as always - appreciate all the help!

Could I check out these Frozen planet/life videos?
Is there a link I could be directed to?


Been away from this thread for awhile but still think about you guys ^_^


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

Link: https://bugs.freedesktop.org/show_bug.cgi?id=77386 his fix was to return an error: http://cgit.freedesktop.org/vaapi/intel-driver/tree/src/i965_decoder_utils.c#n1094


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

(2015-12-23, 22:27)oshan Wrote:
(2015-12-23, 19:44)jjslegacy Wrote:
(2015-12-23, 09:48)fritsch Wrote: VAAPI still cannot decode VC-1 Interlaced content. This is a driver bug intel won't fix. We cannot do anything about it.

I suggest: Convert this 1080i VC1 files to progressive using ffmpeg and yadif deinterlacer and done ...


Thanks again Fritsch - I will look at converting and as always - appreciate all the help!

Could I check out these Frozen planet/life videos?
Is there a link I could be directed to?


Been away from this thread for awhile but still think about you guys ^_^


I am not sure if they are available anywhere online - I have bluray copies of them I had ripped to my media server with makemkv.
You want a sample or something?


RE: New Era: VAAPI with EGL interoperation - Oshan Ruiz - 2015-12-24

(2015-12-23, 23:46)jjslegacy Wrote:
(2015-12-23, 22:27)oshan Wrote:
(2015-12-23, 19:44)jjslegacy Wrote: Thanks again Fritsch - I will look at converting and as always - appreciate all the help!

Could I check out these Frozen planet/life videos?
Is there a link I could be directed to?


Been away from this thread for awhile but still think about you guys ^_^


I am not sure if they are available anywhere online - I have bluray copies of them I had ripped to my media server with makemkv.
You want a sample or something?

Sure, If its no trouble.
I got lots of time to obsess over video this weekend..


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

Let me see what I can do - not sure I know a quick way to create a sample


RE: New Era: VAAPI with EGL interoperation - Matt Devo - 2015-12-24

(2015-12-24, 01:33)jjslegacy Wrote: Let me see what I can do - not sure I know a quick way to create a sample

mkvmerge (free, part of mkvtoolnix) can do this easily, just give it a beginning/ending timestamp


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

Thanks Matt - was already on it after a bit of googling

https://www.dropbox.com/sh/xges0vikcxecw41/AADXs_xokbKxSq4NImDChgm9a?dl=0

There is a 500mb sample - should be good enough


RE: New Era: VAAPI with EGL interoperation - Oshan Ruiz - 2015-12-24

Cool! I'll check it out and look for any issues.
What am I looking for, banding, sync, etc?

Still catching up on all the development the has been done on: "NEW ERA OF VAPPI" ^_^


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

That video won't actually play unless you turn off VC1 hardware acceleration. Unfortunately my chromebox doesn't have enough juice to handle it in software so I am converting them all to something I can do in hardware.
Not sure it's really worth messing with but have at it