How to get the best deinterlacing with OpenELEC?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
MC_D Offline
Junior Member
Posts: 4
Joined: Nov 2012
Reputation: 0
Post: #1
Hi everyone,

I just bought an Intel Celeron 847 based mainboard, because I wanted to setup an OpenELEC "appliance" with Tvheadend and XBMC.
Thus the quality of live tv is very important to me.
I picked an Intel plattform because I thought Intel was working better with Linux than AMD.

However I now found out that deinterlacing is very bad with this system.
When using VAAPI I get a lot of frame drops, with Bob there are no drops but the picture quality is very bad.

I also got an AMD E350 based Windows computer where I installed XBMC.
With this plattform I get perfect deinterlacing streaming from my Tvheadend server on the OpenELEC box.
(I used DXVAChecker to enable Vectore Adaptive Deinterlacing and the picture quality is very good)

As I can still return the Intel hardware I would like to ask if there is anyone who got deinterlacing running under OpenELEC with a quality comparable to what a Windows system can do and which hardware is recommended for OpenELEC + deinterlacing.
find quote
teeedubb Offline
Donor
Posts: 2,494
Joined: Mar 2010
Reputation: 59
Location: Down Under
Post: #2
I don't know if its my eyes but nvidia + Linux gives me a clearer picture than the same hardware with windows 7. Nvidia has the best features and is very well supported under Linux.

My Add-ons, only available for XBMC:
Steam Launcher|Music Party Mode|Reboot2oOS|Triple J Radio
find quote
fritsch Offline
Team-XBMC Developer
Posts: 5,721
Joined: Aug 2011
Reputation: 135
Location: Karlsruhe
Post: #3
In short: You don't.

Intel has currently immense problems with their VPP (Video Post Processing), all the advanced methods (Motion Adaptive Deinterlacing, Motion Completion Deinterlacing) are broken. On Haswell even beyond repair. The only thing working is BOB, which is the method VPP-Auto. This you should have via OpenELEC 3.2 series and also in later Generic nightlies.

On the E350 Platform, we suppport BOB on 3.2.4 and even Temporal deinterlacing on the nightlies, which is a new VDPAU implementation - VDPAU on AMD, yes.

If you want the best possible deinterlacing, you have to get an NVIDA card. There we you have Temp + Spat.
Concerning Intel. We were really happy to get BOB going as it is now, we even had to patch the libva-driver-intel. Sad state here currently. Your Celeron should do 1080i50 quite fine. Don't keep the codec info open all the times, only check from time to time. I have tested VAAPI-Auto (VPP BOB) on exact this hardware and it was really fine. Make additionally sure, that your Vertical Blank Sync is set to "Let Driver choose" and restart after changing did, or the swapBuffers might block.

There might be some updates concerning this topic, the next days, but it's too early to tell anything about.
find quote
nickr Offline
Donor
Posts: 7,927
Joined: May 2009
Reputation: 135
Location: Christchurch NZ
Post: #4
Yep, I am a long time mythtv user. This is all based on aprocryphal evidence, ie my own experience and observations. I am also basing this solely on linux experience, as I don't use windows for serious stuff like watching video.

Both myth and xbmc are excellent systems. However XBMC hasn't been used all that much for interlaced content as it hasn't had a PVR system until recently. Therefore XBMC users have been less interested in deinterlacing capability than myth users. The three main manufacturers can produce good video results for progressive video, but nvidia rules when it comes to deinterlacing. This is certainly what is recommended for myth because myth's core purpose is to record TV, and most TV is still interlaced. Unfortunately 1080i is far more common than 720p in broadcast TV.

In short - for watching TV, go nVidia.

PS fritsch and others are doing great development stuff, but are hampered by sucky vendor implementations. Go fritsch!

If I have helped you or increased your knowledge, click the plus button and increase my reputation :)
(This post was last modified: 2013-12-18 11:52 by nickr.)
find quote
FernetMenta Online
Team-Kodi Developer
Posts: 3,082
Joined: Jul 2010
Reputation: 62
Location: Munich
Post: #5
Recently I tried DXV2 (Windows) on Intel HD4000 (i7) and was shocked how bad this performed. I got good results with sw decoding/deinterlaing on this machine or after switching XBMC to the NVidia gfx (optimus).

EDIT: hmm, did the test again on Windows and HD4000. Now as we have DXVA-HD it performs good.
(This post was last modified: 2013-12-18 20:58 by FernetMenta.)
find quote
dr88dr88 Offline
Junior Member
Posts: 49
Joined: Feb 2012
Reputation: 0
Post: #6
@FernetMenta What do you mean with "On Haswell even beyond repair".
I was looking into buying a Intel NUC.
I cannot find any decent small HTPC with a Nvidia GPU.
find quote
fritsch Offline
Team-XBMC Developer
Posts: 5,721
Joined: Aug 2011
Reputation: 135
Location: Karlsruhe
Post: #7
The new OpenELEC builds starting from tomorrow, will have a new option for VAAPI, which is named: Use SW filters for VAAPI. In Short, we copy the Frame back to memory and then you can use all sw filters you'd like. Especially Yadif (Deinterlace <- that's the name of it) will be available for intel.

The quality is perfect. That way we could rule out the shortcomings of the Intel driver policy. 1080i50 with Yadif works correctly on my Celeron 1007 - so every haswell nuc out there should have enough boost to use it. That's really best deinterlacing quality I have seen so far.

The copy is done by SSE4.1 intrinsics and uses approx 1 ms per Frame :-)
(This post was last modified: 2013-12-25 01:08 by fritsch.)
find quote
dr88dr88 Offline
Junior Member
Posts: 49
Joined: Feb 2012
Reputation: 0
Post: #8
@fritsch I thought that Yadif only support up-to bob deinterlace and not the advance deinterlace Temp + Spat.
(This post was last modified: 2013-12-28 00:42 by dr88dr88.)
find quote
fritsch Offline
Team-XBMC Developer
Posts: 5,721
Joined: Aug 2011
Reputation: 135
Location: Karlsruhe
Post: #9
You think completely wrong: http://www.avidemux.org/admWiki/doku.php...lter_yadif

Btw. What a lot of people are missing, mostly audiophiles and videophiles, too. What really matters at then end is: what do you like when hearing it and what do you like when actually seeing it.

And in that case: Just compare them.

Edit: http://guru.multimedia.cx/deinterlacing-filters/ <- with pictures.
(This post was last modified: 2013-12-28 00:49 by fritsch.)
find quote
dr88dr88 Offline
Junior Member
Posts: 49
Joined: Feb 2012
Reputation: 0
Post: #10
@fritsch When I last tried Yadif on xbmc version 12 on OSX I could only get bob are lower so there my confusion started.
Does your Yadif on Linux use a different version then the one used in OSX ?
find quote
fritsch Offline
Team-XBMC Developer
Posts: 5,721
Joined: Aug 2011
Reputation: 135
Location: Karlsruhe
Post: #11
No. We use what ffmpeg gives us. If you use hw acceleration it's pretty clear that you don't get it. That's what we newly implemented - Getting the frames back from video mem to system mem. It only works with VAAPI and Linux.
find quote