Posts: 41
Joined: Dec 2009
Reputation:
0
spykos
Junior Member
Posts: 41
Hello developers
Let me first say a big thanks to all of you for giving us such a great piece of software.
I need your help in changing VDPAU.cpp file but I don't have enough knowledge of XBMC & programming to do that. What I want to do is to stop XBMC using dcff-mpeg4_vdpau for XVID files as I get a green screen with my nVidia G210. Instead I want to force XBMC to use plain dcff-mpeg4 (leaving the render option on auto detect or vdpau). This of course will be for my own usage. I am on Arch Linux using latest SVNs. Of course I might be wrong and the change I need to make is not in VDPAU.cpp file. I tried a couple of tricks but compilation always fails. Any help will be really appreciated.
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
solution is simply to configure ffmpeg with --disable-decoder=mpeg4_vdpau (or thereabout, can't recall what the decoder is named exactly).
Posts: 41
Joined: Dec 2009
Reputation:
0
spykos
Junior Member
Posts: 41
I had a look in the configure file of ffmpeg and found the following
mpeg4_vdpau_decoder_deps="vdpau_vdpau_h vdpau_vdpau_x11_h vdpau_mpeg4_support"
mpeg4_vdpau_decoder_select="vdpau mpeg4_decoder"
so I guess i have to just add --disable-decoder=mpeg4_vdpau into the ./configure line of the build_xbmc.sh file inside the below directory, correct ?
/home/builds/xbmc-svn/src/XBMC/xbmc/cores/dvdplayer/Codecs/ffmpeg
Posts: 1,104
Joined: Oct 2007
Reputation:
2
theuni
Team-XBMC Communication Manager
Posts: 1,104
See /configure.in ~line 1193
TheUni
Posts: 1,104
Joined: Oct 2007
Reputation:
2
theuni
Team-XBMC Communication Manager
Posts: 1,104
I'm looking at trunk, don't know where you are. Anyway, grep for:
XB_CONFIG_MODULE([xbmc/cores/dvdplayer/Codecs/ffmpeg
At HEAD it's line 1142.
TheUni
Posts: 318
Joined: Jun 2004
Reputation:
0
where exactly is that configure.in file? I just checked out the svn source, but can't find it..
1: Nvidia Shield TV (2017) 16GB - 2: Beelink MinixMXIII II - 3: Beelink MinixMXIII II - 4: Beelink MinixMXIII II
NAS: unRAID 6.3 Pro • Case (NZXT H440) • MB (MBD-X7SBE with SIM1U+) • CPU (Xeon X3360) • RAM (4x2GB DDR2) • SATA (6 On MB, 8 AOC-SAT2-MV8) • PSU (EVGA SUPERNOVA 650 G2) • HDD (2 x Toshiba 3TB parity, 6 x WD Red 3TB xfs, 1 x 512GB SSD cache) • UPS (APC BR1000G)
Posts: 318
Joined: Jun 2004
Reputation:
0
Never mind, got it to work..
1: Nvidia Shield TV (2017) 16GB - 2: Beelink MinixMXIII II - 3: Beelink MinixMXIII II - 4: Beelink MinixMXIII II
NAS: unRAID 6.3 Pro • Case (NZXT H440) • MB (MBD-X7SBE with SIM1U+) • CPU (Xeon X3360) • RAM (4x2GB DDR2) • SATA (6 On MB, 8 AOC-SAT2-MV8) • PSU (EVGA SUPERNOVA 650 G2) • HDD (2 x Toshiba 3TB parity, 6 x WD Red 3TB xfs, 1 x 512GB SSD cache) • UPS (APC BR1000G)
Posts: 41
Joined: Dec 2009
Reputation:
0
spykos
Junior Member
Posts: 41
The configure.in is an input file for autoconf which is used by XBMC during compilation to configure all its elements/modules (This is my guess as I am not developer!). I found this after trying to add spiff's suggestion about disabling mpeg4_vdpau.There might be other way of achieving this but it is the only one I found.
So i put the disable decoder like below
XB_CONFIG_MODULE([xbmc/cores/dvdplayer/Codecs/ffmpeg], [
(lines omitted)
`if test "$use_vdpau" = "yes"; then echo --enable-vdpau; else echo --disable-vdpau; fi` \
--disable-decoder=mpeg4_vdpau \
make sure you put it under the else section and not in apple section (if test "$host_vendor" = "apple" ; then)
Posts: 88
Joined: Jul 2009
Reputation:
0
what a dumbass oversight from my part, sorry for wasting your time making you point out the obvious.
xbmc-pvr-ppa-odk68, Gentoo x86 3.0.7-pf, xorg-server-1.11.2, mesa-7.11, nvidia-drivers-290.10
Posts: 1,522
Joined: Dec 2008
Reputation:
0
Would this be the cause of the green hue I've seen in recent builds?
I kept a backup of my old build per usual so I was able to roll back, but even after applying this fix it's still and issue. :/