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 - mbosner - 2015-10-28

After playing with skylake was a bit frustrating i installed my "old" Broadwell System ( NUC5i5RYK with i3-5010U) and had the issue that i don't have modes other than 1080p 60hz ...

Any idea? Tested with latest build from the 26th (OpenELEC-Generic.x86_64-6.0-devel-20151026080928-r21542-gbc1ad49).

kodi debug log:
http://xbmclogs.com/p6pti3dcm

dmesg:
http://xbmclogs.com/paw9tleqq

xrandr:
http://xbmclogs.com/ppcgacgkx


RE: New Era: VAAPI with EGL interoperation - icebaer - 2015-10-28

I'm having the same problem. Only one mode: 1080p60
It does occur, if the computer is turned on, after the display is on.
It doen't occur, if the computer ist turned on, before the display is on.

There is no real solution yet. Maybe it's caused by an xorg / intel driver issue.
My "solution" is to turn my receiver off and on again. Then Kodi recognises the missing refresh rates.


RE: New Era: VAAPI with EGL interoperation - mbosner - 2015-10-28

It does not happen with my latest skylake setup ...

UPDATE:

It does work for me. When i power up the NUC first all modes are in place.

Thank you.

BTW.: There is a big performance boost compared to the current OE "stable" version.


RE: New Era: VAAPI with EGL interoperation - lexi81 - 2015-10-29

The Jarvis Intelbump build seems more stable. I haven't been able to reproduce the flashing gui, locked up gui, black screen, or crashing video playback on start. I'll run this build for some time, let's see if it keeps up or if I just had luck tonight.


RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-10-29

Only single change in this build: the intel xserver driver ...


RE: New Era: VAAPI with EGL interoperation - lexi81 - 2015-10-29

(2015-10-29, 20:59)fritsch Wrote: Only single change in this build: the intel xserver driver ...

Yes I know


RE: New Era: VAAPI with EGL interoperation - jingo_man - 2015-10-29

having gotten a new 4k TV, i am looking at the upgrades for my Kodi device to keep pace.

"simple" question is: is the work being done here to enable 4k@60 / 2160p@60? or just to enable HW decoding of hevc / h.265 (probably at 2160p/30)? or to get highest of either profile with HW decoding?

i have been looking at the asrock n3000 (preferred as silent) or n3150. this thread is long, and also i am unable to search for just "60" as the search criteria is 4 characters plus. also do not think the information is contained in the opening threads.

i understand that video playback really only requires 30fps, but trying to future-proof as much as is possible, whilst also maintaining a reasonable budget...

thanks


RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-10-29

I don't understand your questions, they don't make any sense - retry, please.


RE: New Era: VAAPI with EGL interoperation - jingo_man - 2015-10-29

let me try to rephrase... when i say "this thread" or similar, i mean to encompass the work you are doing generally.

1. this thread is to [only] enable HW decoding of 4K / UHD? rather than CPU decoding.
2. what profile / quality is either possible or the goal with this thread? 2160p at 60fps, 2160p at 30fps, or something else?
3. which devices are capable of profiles above?
4. i have seen posts here, and elsewhere online, that the ASRock N3000/3150 is only capable of 30 fps. is this a HW restriction, or something you are resolving with this thread / work? this is the device i have been researching the most currently.
5. what is lost / gained with only 30 fps? video playback should be fine at this level, from what i read.

hope its clearer...(?)


RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-10-29

1.) yes
2.) Decoding 4k@60 hevc and 4k@60 h264 - output with N3000 / N3150 max 30 fps at 4k (hw hdmi limitation of those chips)
3.) None if you consider to output 4k@60p you need an Nvidia / AMD Gpu
4.) The N3000 / N3150 can only output 30 fps at 4k which is a limitation of the hdmi chip. It can decode 4k@60 h264 and hevc
5.) You drop half the fps if you have 4k @ 60p content ... I don't suggest to run the device in 4k@30 mode anyways cause most content is not 4k at all


RE: New Era: VAAPI with EGL interoperation - fab67 - 2015-10-29

(2015-10-29, 22:52)jingo_man Wrote: having gotten a new 4k TV, i am looking at the upgrades for my Kodi device to keep pace.

"simple" question is: is the work being done here to enable 4k@60 / 2160p@60? or just to enable HW decoding of hevc / h.265 (probably at 2160p/30)? or to get highest of either profile with HW decoding?

i have been looking at the asrock n3000 (preferred as silent) or n3150. this thread is long, and also i am unable to search for just "60" as the search criteria is 4 characters plus. also do not think the information is contained in the opening threads.

i understand that video playback really only requires 30fps, but trying to future-proof as much as is possible, whilst also maintaining a reasonable budget...

thanks
I also have a 4K TV and a N3150.
Asrock beebox can only output at 4k@30 ( HDMI or DP)
But I try some 4K@60 sample ( H264 and HEVC ) and they are decoded fine but output at 1080p60 on the TV.


RE: New Era: VAAPI with EGL interoperation - jingo_man - 2015-10-29

thanks guys. very helpful with a very long thread.

i will keep following before making my purchase decision, if any. purely for silent HTPC video playback, so this should be what i am after on a reasonable budget (circa £130 for barebones...).

just trying to get up to speed.


RE: New Era: VAAPI with EGL interoperation - meowmoo - 2015-10-30

I start watching some random old tv shows,

and on one 25fps show (old avi) the tv framerate change to 24 and a few sec later to 50

log http://xbmclogs.com/pjxrlveiq#line-1761

media info
Code:
Format                                   : AVI
Format/Info                              : Audio Video Interleave
Dateigröße                               : 206 MiB
Dauer                                    : 21min
Modus der Gesamtbitrate                  : variabel
Gesamte Bitrate                          : 1 352 Kbps
Kodierendes Programm                     : VirtualDubMod 1.5.10.2 (build 2540/release)
verwendete Encoder-Bibliothek            : VirtualDubMod build 2540/release

Video
ID                                       : 0
Format                                   : MPEG-4 Visual
Format-Profil                            : Advanced Simple@L5
Format-Einstellungen für BVOP            : 2
Format-Einstellungen für Qpel            : Nein
Format-Einstellungen für GMC             :  Keine warppoints
Format-Einstellungen für Matrix          : Default (H.263)
Muxing-Modus                             : Packed bitstream
Codec-ID                                 : XVID
Codec-ID/Hinweis                         : XviD
Dauer                                    : 21min
Bitrate                                  : 1 019 Kbps
Breite                                   : 576 Pixel
Höhe                                     : 416 Pixel
Bildseitenverhältnis                     : 1,385
Bildwiederholungsrate                    : 25,000 FPS
originale Bildwiederholungsrate          : 23,976 FPS
ColorSpace                               : YUV
ChromaSubsampling                        : 4:2:0
BitDepth/String                          : 8 bits
Scantyp                                  : progressiv
Bits/(Pixel*Frame)                       : 0.170
Stream-Größe                             : 156 MiB (75%)
verwendete Encoder-Bibliothek            : XviD 1.2.0.dev47 (UTC 2006-11-01)

Audio #1
ID                                       : 1
Format                                   : MPEG Audio
Format-Version                           : Version 1
Format-Profil                            : Layer 3
Format_Settings_Mode                     : Joint stereo
Format_Settings_ModeExtension            : MS Stereo
Codec-ID                                 : 55
Codec-ID/Hinweis                         : MP3
Dauer                                    : 21min
Bitraten-Modus                           : variabel
Bitrate                                  : 183 Kbps
nominale Bitrate                         : 192 Kbps
Kanäle                                   : 2 Kanäle
Samplingrate                             : 48,0 KHz
Stream-Größe                             : 27,8 MiB (13%)
Ausrichtung                              : Ausgerichtet an Interleaves
Interleave, Dauer                        : 24 ms (0,60 Video-Frame)
Interleave, Vorlaufsdauer                : 100 ms
verwendete Encoder-Bibliothek            : LAME3.99r
Kodierungseinstellungen                  : -m j -V 4 -q 2 -lowpass 18.6 --abr 192

Audio #2
ID                                       : 2
Format                                   : MPEG Audio
Format-Version                           : Version 1
Format-Profil                            : Layer 3
Format_Settings_Mode                     : Joint stereo
Format_Settings_ModeExtension            : MS Stereo
Codec-ID                                 : 55
Codec-ID/Hinweis                         : MP3
Dauer                                    : 21min
Bitraten-Modus                           : variabel
Bitrate                                  : 129 Kbps
nominale Bitrate                         : 160 Kbps
Kanäle                                   : 2 Kanäle
Samplingrate                             : 48,0 KHz
Stream-Größe                             : 19,7 MiB (10%)
Ausrichtung                              : Ausgerichtet an Interleaves
Interleave, Dauer                        : 24 ms (0,60 Video-Frame)
Interleave, Vorlaufsdauer                : 142 ms
verwendete Encoder-Bibliothek            : LAME3.98r
Kodierungseinstellungen                  : -m j -V 4 -q 2 -lowpass 17.5 --abr 160

edit:
just noticed "originale Bildwiederholungsrate : 23,976 FPS" first time i see this Huh

so basically kodi just did the job right? and ist a file issue?


RE: New Era: VAAPI with EGL interoperation - jjslegacy - 2015-10-30

Did the intelbump jarvis build disappear? I didn't have a chance to pull it down. Any chance anyone still has it?

or did it make it into the main builds?


RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-10-30

It made it into the main builds, it's the latest one in Isengard and the latest one in the other builds.

Btw. I can reproduce the "Modes issue", the problem here is, that after starting up the xserver the Heads don't seem to be ready and they only provide the KMS refreshrate. An ugly workaround is putting an xorg.conf to /etc/X11/ or alternatively to /storage/.config/

Here is a working one, you might need to change HDMI1 to HDMI2 in both locations:

Code:
# put me to /etc/X11/xorg.conf or to /storage/.config/xorg.conf
# don't forget to adjust HDMI1 to your output in Screen _and_ in Monitor section
Section "Device"
  Identifier  "Device0"
  Driver      "intel"
  VendorName  "INTEL Corporation"
EndSection

Section "Screen"
  Identifier  "Screen0"
  Device      "Device0"
  # Change me to HDMI2 / DP2 whatever if needed
  Monitor     "HDMI1"
  DefaultDepth  24
  SubSection "Display"
    Depth       24
    Modes     "1920x1080@50p" "[email protected]" "1920x1080@23p" "1920x1080@24p" "1920x1080@60p"
  EndSubSection
EndSection

Section "Monitor"
  # Change me to HDMI2 / DP2 whatever if needed
  Identifier  "HDMI1"
  HorizSync   14.0 - 70.0
  VertRefresh 24.0 - 62.0
  Option "PreferredMode" "1920x1080@50p"
  Modeline    "1920x1080@23p"     74.176 1920 2558 2602 2750 1080 1084 1089 1125 +hsync +vsync
  Modeline    "1920x1080@24p"     74.250 1920 2558 2602 2750 1080 1084 1089 1125 +hsync +vsync
  Modeline    "1920x1080@50p"    148.500 1920 2448 2492 2640 1080 1084 1094 1125 +hsync +vsync
  Modeline    "[email protected]" 148.352 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync
  Modeline    "1920x1080@60p"    148.500 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync
EndSection

Section "Extensions"
  Option      "Composite"           "Disable"
EndSection