[RELEASE] TED Talks (Video) Plugin
#31
I have the same exact problem with the VDPAU enabled. I am running on a Acer Revo 3610 with Minimal Karmic, XBMC 9.11 RC1 and Version 2.1.4 of the Ted Talks script.

I switch to Software Rendering instead of VDPAU and it plays fine.

Now let me preface this by saying I am not a python developer and certainly not a XBMC Plugin/Script developer but I think I have a working solution, or at least one that works for me.

I thought the plugin could switch the setting from "VDPAU" to "Software" and back automatically. So I edited the ted_talks.py file to do exactly that using xbmc.executehttpapi calls.

In the file you will find the following line in the checkMode function of the Main class:
PHP Code:
UI().playVideo() 

I replaced it with:
PHP Code:
# Get current RendorMethod 
iCurrentRenderMethod int(xbmc.executehttpapi("GetGUISetting(0;VideoPlayer.RenderMethod)").replace("<li>",""))

# If RenderMethod is is 4 (RENDER_METHOD_VDPAU) set it to 3 (RENDER_METHOD_SOFTWARE).  See http://trac.xbmc.org/browser/trunk/xbmc/GUISettings.h for other values.
if iCurrentRenderMethod == 4:
    
xbmc.executehttpapi("SetGUISetting(0;VideoPlayer.RenderMethod;3)")

UI().playVideo()
            
#Pause long enough for mplayer to start
import time
time
.sleep(5)
            
# Set back to the current RendorMethod 
xbmc.executehttpapi("SetGUISetting(0;VideoPlayer.RenderMethod,%d)" % ( iCurrentRenderMethod, )) 

Not a perfect solution and I'm sure someone could write the code more efficiently or even a more elegant solution, but this worked for me.

Comments and suggestions welcome.
Reply


Messages In This Thread
[No subject] - by dsvensson - 2008-09-10, 00:16
[No subject] - by bnc87 - 2009-08-14, 22:36
[No subject] - by Rando - 2009-09-03, 17:14
[No subject] - by futwick - 2009-09-19, 17:34
[No subject] - by rwparris2 - 2009-10-04, 21:29
[No subject] - by rwparris2 - 2009-10-04, 21:30
[No subject] - by rwparris2 - 2009-10-09, 15:44
PERSISTENT download location? - by wikiped - 2009-10-27, 15:40
[No subject] - by rwparris2 - 2009-10-28, 13:51
Longer Episode Titles - by Ippie - 2009-10-29, 08:57
[No subject] - by rwparris2 - 2009-10-29, 10:47
[No subject] - by sho - 2009-10-30, 17:55
[No subject] - by rwparris2 - 2009-10-30, 19:05
[No subject] - by adsoto - 2009-11-10, 23:46
[No subject] - by rwparris2 - 2009-11-11, 01:41
[No subject] - by wookietv - 2009-11-11, 06:12
[No subject] - by rwparris2 - 2009-11-11, 06:39
[No subject] - by adsoto - 2009-11-11, 12:45
[No subject] - by BlueCop - 2009-11-11, 18:26
[No subject] - by wookietv - 2009-11-14, 21:39
[No subject] - by wild_oscar - 2009-11-16, 01:54
[No subject] - by rwparris2 - 2009-11-16, 15:11
[No subject] - by wild_oscar - 2009-11-16, 15:16
[No subject] - by rwparris2 - 2009-11-16, 15:51
[No subject] - by forumache - 2009-12-03, 12:58
[No subject] - by Allu74 - 2009-12-14, 13:40
[No subject] - by rwparris2 - 2009-12-15, 07:03
[No subject] - by forumache - 2009-12-15, 21:31
[No subject] - by Zarquon - 2009-12-24, 06:47
[No subject] - by bobb0 - 2009-12-25, 18:49
it's a vdpau (driver) isssue - by dafLOh - 2009-12-29, 17:39
[No subject] - by forumache - 2009-12-29, 17:49
[No subject] - by bkund12 - 2010-01-28, 23:27
Favorites Fix - by deathinator - 2010-04-11, 20:33
Speakers fix - by deathinator - 2010-05-19, 19:51
[No subject] - by spiff - 2010-06-14, 17:30
[No subject] - by valent - 2010-07-18, 14:26
[No subject] - by valent - 2010-07-18, 14:36
[No subject] - by BSSLoK - 2010-07-22, 14:23
[No subject] - by spiff - 2010-07-22, 14:27
[No subject] - by transcender - 2010-08-11, 22:04
[No subject] - by pike - 2010-08-31, 02:51
[No subject] - by mavrrr - 2010-10-03, 02:38
Subtitled version - by hojel - 2010-10-11, 23:25
[No subject] - by crazytony - 2010-10-19, 00:30
[No subject] - by agarg - 2010-10-19, 07:46
[No subject] - by crazytony - 2010-10-19, 10:10
[No subject] - by timdog82001 - 2010-12-03, 09:25
[No subject] - by Rad_ - 2010-12-03, 22:07
[No subject] - by timdog82001 - 2010-12-04, 03:25
[No subject] - by Rad_ - 2010-12-04, 05:33
[No subject] - by jhsrennie - 2010-12-05, 11:11
[No subject] - by silvine - 2010-12-05, 14:52
[No subject] - by jhsrennie - 2010-12-05, 17:23
[No subject] - by amet - 2010-12-05, 17:28
[No subject] - by silvine - 2010-12-05, 20:47
[No subject] - by eisbaer128 - 2010-12-30, 23:58
[No subject] - by jabba_29 - 2011-07-14, 15:17
[No subject] - by amet - 2011-07-14, 15:23
[No subject] - by jabba_29 - 2011-07-14, 15:42
[No subject] - by bharath23 - 2011-07-22, 06:20
Broken? - by Mr. Orange - 2011-07-29, 00:14
[No subject] - by zedDB - 2011-07-30, 18:31
[No subject] - by Mr. Orange - 2011-07-30, 19:28
[No subject] - by zedDB - 2011-07-30, 22:03
[No subject] - by Mr. Orange - 2011-07-30, 22:33
[No subject] - by spiff - 2011-07-31, 21:49
[No subject] - by zedDB - 2011-07-31, 22:34
TED talks from tags as well - by thevikas - 2011-08-21, 07:09
[No subject] - by zedDB - 2011-08-28, 12:33
Current Talks issue - by moreginger - 2011-10-29, 22:10
[No subject] - by zedDB - 2011-11-19, 18:18
RE: - by ingeon - 2012-09-17, 20:36
RE: - by moreginger - 2012-09-24, 22:53
RE: - by drhopton - 2013-04-01, 14:58
[No subject] - by phileas50 - 2011-11-22, 09:26
Addon in PreEden - by haiiyaa - 2011-11-29, 11:13
Can not play any TED videos - by aleck - 2011-12-30, 17:43
[No subject] - by m3g4tr0n - 2012-01-02, 16:24
[No subject] - by haiiyaa - 2012-01-02, 16:42
[No subject] - by spiff - 2012-01-02, 17:45
[No subject] - by unknown_inc - 2012-01-06, 00:52
[No subject] - by haiiyaa - 2012-01-06, 01:15
[No subject] - by leinadhok - 2012-01-30, 17:44
[No subject] - by joeyjoejoe - 2012-02-17, 16:39
[No subject] - by Reptielll - 2012-02-22, 23:26
[No subject] - by Amadeus - 2012-02-25, 21:27
the solution - by jiz_king - 2012-02-26, 00:53
[No subject] - by Amadeus - 2012-02-26, 01:55
[No subject] - by User 46219 - 2012-02-28, 06:07
[No subject] - by PatK - 2012-02-28, 07:17
[No subject] - by Amadeus - 2012-02-28, 10:15
RE: - by moreginger - 2012-04-05, 22:46
RE: - by Amadeus - 2012-04-09, 19:19
Logout Mark Read Team Forum Stats Members Help
[RELEASE] TED Talks (Video) Plugin5