Kodi Community Forum
Linux VAAPI: Nuc, Chromebox, HSW, IVB, Baytrail with Ubuntu 14.04 - 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: Linux VAAPI: Nuc, Chromebox, HSW, IVB, Baytrail with Ubuntu 14.04 (/showthread.php?tid=165707)



RE: vaapi-sse4: Deinterlacing Testing - fritsch - 2014-05-27

Old ... won't help us on HSW and certainly not without a proper VPP implementation.


RE: vaapi-sse4: Deinterlacing Testing - Schasan - 2014-05-30

I am trying the VPP branch.

Symptom: I just see BOB as available Deinterlacing method.

The first thing I discovered was that the deint methods from the XBMC logs showed confusing integers.
The mismatch is in /usr/include/va/va_vpp.h against ~/xbmc/xbmc/cores/dvdplayer/DVDCodecs/Video/VAAPI.h, with swapped locations of Weave and Bob. I am using stock Trusty in the moment at libva 0.35 (Intel i965 driver - 1.3.0).

Now I am getting familiar numbers matching my own capabilities queries done earlier this day.
Still I am not seeing the two methods in the GUI, could you point me to a location, how the Deint methods are mapped to the user frontend?

Code:
17:42:37 T:139979493078784   DEBUG: VAAPI_VPP - Successfully initialized deinterlacer 1. Need 1 forward and 0 backward refs.
17:42:37 T:139979493078784   DEBUG: VAAPI_VPP - Method 1 is supported!
...
17:42:37 T:139979493078784   DEBUG: VAAPI_VPP - Successfully initialized deinterlacer 3. Need 1 forward and 0 backward refs.
17:42:37 T:139979493078784   DEBUG: VAAPI_VPP - Method 3 is supported!

BTW: Why would a BOB deinterlacer - method 1 above - report to need 1 forward ref, it does every frame on its own.


RE: vaapi-sse4: Deinterlacing Testing - fritsch - 2014-05-30

Post a complete log. MADI, MACI are disabled by default and are only to be enabled via advancedsettings.xml
Code:
<advancedsettings>
<video>
<vaapiadvanceddeint>true</vaapiadvanceddeint>
</video>
</advancedsettings>

VPP was (as in that code you use) just a test. A test that failed, cause performance sucked heavily.


RE: vaapi-sse4: Deinterlacing Testing - Schasan - 2014-05-30

I thought VPP just has issues with Haswell.
But anyway, I am heavily in love with VPP so I would like to see it on my own screen.

So I collected the log, to me it still gives no clue.

(OOPS, I dont find the attach button)


RE: vaapi-sse4: Deinterlacing Testing - fritsch - 2014-05-30

Link to a pastebin - you can easily try VPP from an OpenELEC image, that I posted in another thread.
One cannot be in love with something that never really worked (despite BOB).


RE: vaapi-sse4: Deinterlacing Testing - Schasan - 2014-05-30

Here we are: http://pastebin.com/y8UaELs5

(2014-05-30, 18:58)fritsch Wrote: Link to a pastebin - you can easily try VPP from an OpenELEC image, that I posted in another thread.
One cannot be in love with something that never really worked (despite BOB).

I was motivated by your post http://forum.xbmc.org/showthread.php?tid=165707&pid=1713568#pid1713568
Quote: "flawless"


RE: vaapi-sse4: Deinterlacing Testing - fritsch - 2014-06-01

Ah yes :-) IVB is working quite nice, but only if you have a HD4000. Stay tuned on that topic.


RE: vaapi-sse4: Deinterlacing Testing - Schasan - 2014-06-01

(2014-06-01, 13:34)fritsch Wrote: Ah yes :-) IVB is working quite nice, but only if you have a HD4000. Stay tuned on that topic.

Thats exactly what I have, would not have started testing it otherwise.
Any hints for my system to get into debugging?
Why would, if capbilities are found according to the log, nothing show up in the GUI?
I cannot locate the position in XBMC code, where the capabilities are mapped into display text.


RE: vaapi-sse4: Deinterlacing Testing - fritsch - 2014-06-01

the capabilities are enumerated in VAAPI_VPP.cpp and called via LinuxRenderGL - see here: https://github.com/BtbN/xbmc/commit/21234c43afca2133202ac81a37c015b2acfd1cf2#diff-d31e743689833f58acd0e09379a5c53fR3542


RE: vaapi-sse4: Deinterlacing Testing - Schasan - 2014-06-01

I do have it up and running now. I cannot fully reproduce my problems, but it may have been a mixture of:
  • The enumeration mismatch mentioned earlier in this thread originating from different va_vpp.h and
  • not understanding the mechanics of using advancedsettings.xml properly.
Thank you very much.


RE: vaapi-sse4: Deinterlacing Testing - fritsch - 2014-06-01

What about the MADI quality in comparison to Yadif? Do you like it?

(I ask that everybody).

Here are some nice samples to compare those: http://samples.ffmpeg.org/MPEG2/interlaced/burosch1.mpg http://samples.ffmpeg.org/MPEG2/interlaced/burosch2.mpg

Don't forget to enable them properly.


RE: vaapi-sse4: Deinterlacing Testing - Schasan - 2014-06-05

A short feedback:

TV looks ok, trying interlaced DVB-S transport streams in SD and HD. But difficult to judge by nature.
The recommended Burosch samples currently dump, I shall be trying something fresher than stock Trusty bundled VAAPI throughout the next weekend.

Code:
tv-i3:~$ xbmc
Running DIL (3.22.0) Version
DtsDeviceOpen: Opening HW in mode 0
DtsDeviceOpen: Create File Failed
libva info: VA-API version 0.35.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_35
libva info: va_openDriver() returns 0
libva info: VA-API version 0.35.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_35
libva info: va_openDriver() returns 0
xbmc.bin: i965_post_processing.c:4209: gen7_pp_nv12_dndi_initialize: Assertion `previous_in_obj_surface && previous_in_obj_surface->bo' failed.
Aborted (core dumped)



RE: vaapi-sse4: Deinterlacing Testing - fritsch - 2014-06-05

Stock trusty works fine for me. Please provide more info about what you are doing. It seems you run the preliminary VPP builds. Please open a separate issue with those, as this thread is (not yet) about VPP.

Edit: It won't help to provide a second thread as this VPP code is not maintained, btbn gave up on it - so time to change onto the yadif solution proposed in this thread.


RE: vaapi-sse4: Deinterlacing Testing - FernetMenta - 2014-06-05

I am working on a version which can do vpp and ffmpeg filters. And it will allow switching between those methods on-the-fly.


RE: vaapi-sse4: Deinterlacing Testing - wsnipex - 2014-06-05

(2014-06-05, 10:26)FernetMenta Wrote: I am working on a version which can do vpp and ffmpeg filters. And it will allow switching between those methods on-the-fly.

Cool