[PATCH] Deinterlacing support for DXVA2 accelerated playback

  Thread Rating:
  • 3 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
vhusso Offline
Junior Member
Posts: 2
Joined: Mar 2011
Reputation: 0
Location: Finland
Smile    Post: #21
Hi Everybody,

I just got my Aspire 522 netbook(amd fusion c-50) for htpc use and tried XBMC for first time and it works great with DXVA2 acceleration. Only problem for me is lack of deinterlacing when using DXVA2. I googled about it and found this thread which encouraged me to get sources for XBMC 10.1 release version and I got it to build quite easily. Then I went forward to patch 10.1 sources with these patches which resulted in bunch of conflicts. Is there any straight forward way to apply this patch to dharma branch source code?

Cheers Ville!
find quote
spiff Offline
Grumpy Bastard Developer
Posts: 12,187
Joined: Nov 2003
Reputation: 82
Post: #22
nope. you have to work out the conflicts by hand.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
alturismo Offline
Junior Member
Posts: 25
Joined: Jul 2009
Reputation: 0
Location: Kaiserslautern, Germany
Post: #23
wow, exactly what i was looking for, would it be a huge effort to compile with PVR addons (Mediaportal) ?

cause then i finally could switch back to windows version again ...

tested sample .ts files SDTV, HDTV 1080i, all runs perfect with 50 fps Big Grin
find quote
darwin Offline
Senior Member
Posts: 115
Joined: Feb 2009
Reputation: 0
Post: #24
I installed the build from above..

GOOD NEWS :

- Deinterlacing works great for DXVA content!

BAD NEWS :

- "17:10:54 T:4972 M:2485157888 ERROR: InputStream: Error opening, 0/smb://<etc>"

For every file on smb in my media library with this build and my mysql media library. Also, this build upgraded my schema to version 46, so none of the other boxes in the house work either. This is.. somewhat inconvenient.. as even builds from a few days ago are not on db schema version 46.

I understand this was my foolish mistake for installing a testing build, but this issue almost seems unrelated? alanwww1, hope you come back and save me/us (I saw a guy on another thread using your build with the same issue, apparently) soon! Big Grin

Other than the above, this patch rocks!!

=darwin
find quote
vhusso Offline
Junior Member
Posts: 2
Joined: Mar 2011
Reputation: 0
Location: Finland
Post: #25
Couldn't get 10.1 patched but I made patched build from Master branch which works great on amd c-50. Options are little strange (Auto select, Bob(odd), Bob(even), [empty], [empty]). Those string are not exact. There is at least two selections without text and I thought that amd would support something more than just BOB.
(This post was last modified: 2011-03-26 14:04 by vhusso.)
find quote
alanwww1 Offline
Team-XBMC Member
Posts: 1,299
Joined: Nov 2008
Reputation: 31
Location: Hungary
Post: #26
I made a build with patch_4. The patch did not apply cleanly to the latest git so i had to modify it like this:

http://pastebin.com/JnuPbRPw

Binary:

http://jkft.info/xbmc/Winbuilds/XBMCSetu...patch4.exe

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
a11599 Offline
Team-XBMC Member
Posts: 254
Joined: Sep 2010
Reputation: 2
Location: Budapest, Hungary
Post: #27
vhusso Wrote:Couldn't get 10.1 patched but I made patched build from Master branch which works great on amd c-50. Options are little strange (Auto select, Bob(odd), Bob(even), [empty], [empty]). Those string are not exact. There is at least two selections without text and I thought that amd would support something more than just BOB.

You have to copy english strings.xml from your build directory, then those two options will display ”Best available”. With that selected the patch will use the best quality deinterlacer reported by the video hardware.

The actual deinterlacer selected can be checked in the log if you turn on debug logging.
find quote
a11599 Offline
Team-XBMC Member
Posts: 254
Joined: Sep 2010
Reputation: 2
Location: Budapest, Hungary
Post: #28
darwin: I´m 99% sure, that the problem you are experiencing is not related to the patch.
find quote
darwin Offline
Senior Member
Posts: 115
Joined: Feb 2009
Reputation: 0
Post: #29
a11599 Wrote:darwin: I´m 99% sure, that the problem you are experiencing is not related to the patch.

Well, I installed the new patched version and it works, so you are likely right. Smile

=darwin
find quote
alturismo Offline
Junior Member
Posts: 25
Joined: Jul 2009
Reputation: 0
Location: Kaiserslautern, Germany
Post: #30
i tested now this patch with 3 builds

xbmc source, opdenkamp source (setup.xml fail to patch), margo source

xbmc source testfiles played just fine, but no PVR additions
opdenkamp source here pvr mediaportal only works with local mediaport installed,
playback is ... well, only sdtv seems stable to run at 50fps, hdtv very choppy and
when channel list is open frames dropping to 10 fps
margo source mediaportal pvr addon works also remotely, playback seems best but
also still lotsa playback issues on hdtv, 720p and 1080i, both sometimes play fine,
sometimes not, not really easy to reproduce, applying the patch here didnt result
in any errors but when i check my git tree here i see some failed compiles from vs.

/xbmc/cores/dvdplayer/dvdplayer.cpp
/xbmc/cores/dvdplayer/dvdcodecs/video/dxva.cpp
/xbmc/cores/dvdplayer/dvdcodecs/video/dxva.h
/xbmc/cores/videorenderers/rendermanager.cpp
/xbmc/cores/videorenderers/winrenderer.cpp
/xbmc/settings/videosettings.h
/xbmc/video/dialogs/GUIDialogVideoSettings.cpp
/xbmc/language/english/string.xml

they all have this error mark in all builds

all those are marked red, no idea what this means Wink may helps
find quote
Post Reply