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 - CrazyCoder - 2014-02-20

Here is the log: http://pastebin.com/ZSAwhh2M .
I can see that there is some buffering issue that goes away after I toggle deinterlacing at the end of the log.


RE: vaapi-sse4: Deinterlacing Testing - fritsch - 2014-02-20

Thx. Version from day before yesterday works?


RE: vaapi-sse4: Deinterlacing Testing - CrazyCoder - 2014-02-20

I've tried the yesterday's version and the version before yesterday and they showed the same issue, so it was not a regression. I've rebooted the system and it went away with all the 3 latest versions. Sorry for the false alert.


RE: vaapi-sse4: Deinterlacing Testing - soulchar - 2014-02-28

Hi,
I have some questions about the interlacing method/detection in LiveTV.
Does xbmc/yadif take care of progressive (segmented) frames?

I can see the same cpu load on those movies compared to real interlaced frames(sports mostly) so I think the deinterlacer is deinterlacing but since those frames are temporal the same it shouldn't be necessary.

So for the video detection: Is it possible to differ between progressive segmented frames and real interlaced video?

Thank you


RE: vaapi-sse4: Deinterlacing Testing - FernetMenta - 2014-02-28

As long as you have set deinterlacing mode not to "On" which forces deinterlacing there won't be any deinterlacing for progressive material.


RE: vaapi-sse4: Deinterlacing Testing - soulchar - 2014-02-28

Hi, thank you for your reply.
As recommended my setting is "Auto". As I live in germany we have mixed formats. There is 720p, 1080i and sd interlaced, so "Auto" is the only and best choice.
The problem I see is for example the channel Sky Cinema(Movies all the time). It broadcasts in 1080i/50 but no movie is really interlaced. Both frames are temporal the same, so put them together you get 25p.

Descibed for example here: http://en.wikipedia.org/wiki/Progressive_segmented_frame

But watching the channel and watching the cpu load shows clearly the deinterlacer is working as it only detects 50i.


RE: vaapi-sse4: Deinterlacing Testing - FernetMenta - 2014-02-28

There is no inverse telecine detection in the sw filter like we have in vdpau. I don't think quality suffers from deinterlacing in this case, does it?


RE: vaapi-sse4: Deinterlacing Testing - RipT - 2014-03-01

(2014-02-20, 10:53)RipT Wrote: Looks like the latest nightly for both the mainline and fernetmenta branches fixes the crash during stepforward.

Sorry, I was wrong about this, it does still crash when doing StepForward. It actually does seem to be dependent upon the passthough setting, happening when passthrough is disabled and channels are set to greater than 2.0. This doesn't seem to indicate a problem with de-interlacing, so I'll do some more experiments and maybe start a new thread. Just wanted to follow up here in case it sparks some insight. Thanks again.


RE: vaapi-sse4: Deinterlacing Testing - soulchar - 2014-03-01

(2014-02-28, 19:37)FernetMenta Wrote: There is no inverse telecine detection in the sw filter like we have in vdpau. I don't think quality suffers from deinterlacing in this case, does it?

Yes, quality does suffer but it's something that you won't really notice in watching LiveTV. But when you compare recordings, switching deinterlacing on/off you can see that in the above mentioned movies the deinterlacer(yadif) PRODUCES interlace artifacts in detailed edges/corners/circles. But when you say that SW Filters are not able to detect the real kind of the content I think there is no solution.

Nevertheless I am very happy with current status of deinterlacing on intel platforms.
Thank you for all your work!


RE: vaapi-sse4: Deinterlacing Testing - decaturguy - 2014-03-01

Thanks you so much guys Big Grin this really works, you guys are the best please keep up the good work.
I just replaced my old htpc from 2005 a Pentium D with Intel NUC Haswell i3 tall version. I have usb dvb-t and dvb-s2 cards connected to the NUC and tested many interlaced channels up to 1080i and it works great. Although its connected to a 10 year old 46" lcd tv with highest resolution of 1366x768 so i can't test different refresh rates.

The only problem that i had so far is tearing problem, nothing to do with vaapi-sse4 deintelacing.
My OS is Archlinux 64-bit, kernel 3.13.5., xf86-video-intel 2.99.910, libva-intel-driver 1.2.2, vdr 2.0.5 and LXDE desktop environment.
I have disabled composite, tried even switching between sna and uxa AccelMethod and it does not help.

This helps:
Option "TearFree" "true"

But i read somewhere this introduces triple buffering or something which i don't really understand.
Is there any other way to fix tearing?

How did you fix your tearing problem? Or am i the only one with this problem?


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

No! Please no. TearFree introduces TripleBuffers - we don't want this. Xbmc uses glxSwapBuffers ( swap front and back buffer) to update screen, that highly interfers.

The real issue is arch shipping on supported SDL version wich includes broken patches, google for backing store.

Ubuntu 13.10 which this howto sets as a base does not tear at all. There is another thread in this linux forum which names the arch patches that make that issue.


RE: vaapi-sse4: Deinterlacing Testing - decaturguy - 2014-03-01

Thanks fritsch!

I have found workaround for this on Archlinux forum:
https://bbs.archlinux.org/viewtopic.php?id=176651
Package: sdl-nobackingstore 1.2.15-5 -> https://aur.archlinux.org/packages/sdl-nobackingstore/

I'll try it first thing in the morning.


RE: vaapi-sse4: Deinterlacing Testing - decaturguy - 2014-03-02

No tearing after installing sdl-nobackingstore package but it only works with sdl apps. I mostly watch everything in xbmc but i am into anime, asian dramas and movies which i mostly watch online.
There are allot of addons for this out there but most of them are not stable, some doesn't work or missing. It's best watching using web browser.

But i am quite happy with sdl tearing fix and with my new NUC and of course vaapi-ss4 deinterlacing.

If you guys know any other way of getting rid of tearing which works in every application without using tearfree option please let me know.

Thank you for all your assistance and hard work. Smile


RE: vaapi-sse4: Deinterlacing Testing - KRA77 - 2014-03-02

decaturguy, I'm using compton for tear free enviroment and unlike other compositors it seems to work fine with xbmc and vaapi-ss4.


RE: vaapi-sse4: Deinterlacing Testing - bkuhls - 2014-03-02

(2014-02-03, 22:49)bkuhls Wrote:
(2014-02-01, 13:16)fritsch Wrote: Btw. we recently switched to ffmpeg 2.x
to test it I need the following repos, right?
https://github.com/FernetMenta/xbmc/commits/master
https://github.com/FernetMenta/FFmpeg/commits/xbmc-master
Hi,

for ffmpeg 2.2 this branch is the current one, right?
https://github.com/FernetMenta/FFmpeg/commits/release/2.2-xbmc