•  Previous
  • 1
  • 2
  • 3(current)
  • 4
  • 5
  • 15
  • Next 
 
Thread Rating:
  • 5 Vote(s) - 3.2 Average
[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
#32
While I love the TED Talks plugin, I have the same VDPAU corruption issue. Interestingly, I also have the TED Talks RSS feed setup as a source and when I play videos via that there is no issue. The only problem there is that XBMC seems to buffer a lot of the video before playing it, causing a significant delay sometimes.
Reply
#33
hello

realized after installing xbmc live 9.11 on my ion board, that the said faulty rendering occured when using the ted plugin.
i also have a selfmade re-encoding of a star trek 11 rip which shows the same error. perhaps this is a nvidia driver issue and has something to do with h264 options?

-fLOh

Edit: I just realized that the ted videos have a resolution of about 85x x xxx. My re-encoding has also got a resolution of 854 x 352. Perhaps the nvidia vdpau drivers have an issue with certain resolutions?
Reply
#34
dafLOh Wrote:hello

realized after installing xbmc live 9.11 on my ion board, that the said faulty rendering occured when using the ted plugin.
i also have a selfmade re-encoding of a star trek 11 rip which shows the same error. perhaps this is a nvidia driver issue and has something to do with h264 options?

-fLOh

Yes, this has nothing to do with TED plugin, even files downloaded manually from TED website exhibit the problem.

Anyway, the bug (see where I provide the trac link earlier in this thread) is fixed in the current SVN. It will be available for everyone in XBMC 10.05 (or, hopefully, in a 9.11.1 release)
Reply
#35
Just installed XBMC and finally figured out how to get the plugins. Added video plugins - Revision3, YouTube and TED Talks to test.

Revision 3 displays fine with audio
YouTube and TED Talks have sound but the video display is garbled green snow

I guess this a driver problem, but can't find anything here in the forums

Any help or leads appreciated

system info
Asrock ION330HT-BD connected to Sony KDL-Z5800 via hdmi
Ubuntu karmic (kubuntu flavour) latest
XBMC 9.11 r26018
Transparency! v2.11
System info: Asrock ION330HT-BD (Intel Atom 330 4 core i686) connected to Sony KDL-Z5800 TV using hdmi via Onkyo TX-SR507 AV Amp. [Old Config Ubuntu 12.04. (Linux 3.2.0-32-generic-pae ) XBMCBuntu (Eden 11.0 Git:unknown Compiled Mar 24 2012). OpenGL 3.3.0 NVIDIA 280.13] New Config unknown - no working XBMC at moment!
Reply
#36
you can check the status of TED Talk plugin here...
http://forum.xbmc.org/showthread.php?tid...lks&page=4
Reply
#37
Hey All,

Ever since I added speakers to my ted favorites the plugin with threw an exception:
Code:
Traceback (most recent call last):
14:20:39 T:140292598515984 M:4815851520  NOTICE:   File "/home/doug/.xbmc/plugins/video/TED Talks/default.py", line 27, in ?
14:20:39 T:140292598515984 M:4815851520  NOTICE: ted_talks.Main()
14:20:39 T:140292598515984 M:4815851520  NOTICE:   File "/home/guest/.xbmc/plugins/video/TED Talks/resources/lib/ted_talks.py", line 173, in __init__
14:20:39 T:140292598515984 M:4815851520  NOTICE:   File "/home/guest/.xbmc/plugins/video/TED Talks/resources/lib/ted_talks.py", line 242, in checkMode
14:20:39 T:140292598515984 M:4815851520  NOTICE:   File "/home/guest/.xbmc/plugins/video/TED Talks/resources/lib/ted_talks.py", line 160, in favorites
14:20:39 T:140292598515984 M:4815851520  NOTICE:   File "/home/doug/.xbmc/plugins/video/TED Talks/resources/lib/ted_talks_scraper.py", line 193, in getFavoriteTalks
14:20:39 T:140292598515984 M:4815851520  NOTICE: title = talk.h4.a.string
14:20:39 T:140292598515984 M:4815851520  NOTICE: AttributeError
14:20:39 T:140292598515984 M:4815851520  NOTICE: :
14:20:39 T:140292598515984 M:4815851520  NOTICE: 'NoneType' object has no attribute 'string'
14:20:39 T:140292598515984 M:4815851520   ERROR: Scriptresult: Error

After investigation I noted an additional filter would be required to exclude "favorite speakers". ( something like "entityType=talks" to the SoupStrainer call, but I don't know the API that well to achieve this.) As a quick hack I check if talk.h4.a is valid object otherwise I continue the loop. See diff:
Code:
--- /tmp/TED Talks/resources/lib/ted_talks_scraper.py    2010-04-11 14:14:48.000000000 -0400
+++ ted_talks_scraper.py    2010-04-11 14:27:51.000000000 -0400
@@ -190,7 +190,11 @@
                 talkContainer = SoupStrainer(attrs = {'class':re.compile('box clearfix')})
                 for talk in BeautifulSoup(html, parseOnlyThese = talkContainer):
                     title = talk.h4.a.string
-                    link = URLTED+talk.dt.a['href']
+                    if talk.h4.a:          
+                        title = talk.h4.a.string            
+                        link = URLTED+talk.dt.a['href']
+                    else:
+                        continue
                     pic = resizeImage(talk.find('img', attrs = {'src':re.compile('.+?\.jpg')})['src'])
                     yield {'url':link, 'Title':title, 'Thumb':pic}
             else:

What are your thoughts on this solution? How do I go about submitting this patch ? (if it is the correct thing to implement)

Thanks
Reply
#38
All,
Below is a fix for the speakers menu. It was crashing when processing "Teresa Carreno Youth Orchestra"
Code:
diff -ruw ted/resources/lib/ted_talks.py /home/guest/.xbmc/plugins/video/TED Talks/resources/lib/ted_talks.py
--- ted/resources/lib/ted_talks.py    2010-05-19 13:45:55.172519115 -0400
+++ /home/guest/.xbmc/plugins/video/TED Talks/resources/lib/ted_talks.py    2010-04-17 17:11:56.034944896 -0400
@@ -49,6 +49,8 @@
         info.setdefault('Thumb', 'None')
         info.setdefault('Icon', info['Thumb'])
         #create params for xbmcplugin module
+        if   info['url'] == "http://www.ted.com/speakers/the_teresa_carreno_youth_orchestra.html":
+            return False
         u = sys.argv[0]+\
    '?url='+urllib.quote_plus(info['url'])+\
             '&mode='+urllib.quote_plus(info['mode'])+\

Thanks.
Reply
#39
now available in the add-ons browser.
Reply
#40
I have the same issue, I guess it is something to do with decoding flash video and VDPAU support in NVidia drivers, right?
Reply
#41
bobb0 Wrote:While I love the TED Talks plugin, I have the same VDPAU corruption issue. Interestingly, I also have the TED Talks RSS feed setup as a source and when I play videos via that there is no issue. The only problem there is that XBMC seems to buffer a lot of the video before playing it, causing a significant delay sometimes.

Strange, I have issues with both RSS feed and TED plugin.

I see no option for changing VDPAU to software decoding in TED plugin Sad
So only option is to use TED script?
Reply
#42
Yeah it is a h264+VDPAU issue. I have the same issue with the same hardware. You can disable VPDAU. Looks good but playback is jerky. Otherwise you can try getting the plugin to download a different quality video which usually works.
For example on YouTube, "high quality" videos often do this to me, but 720p or "normal" videos are fine.
Reply
#43
uhm, semi-recent versions (since right after camelot) disables vdpau if the widths are within the silicon bug values. ted talks works just fine for me, without disabling vdpau (it's cpu decoded).
Reply
#44
Zarquon; so this switches the setting midstream while the vid is still playing each time a video is selected to play?

Zarquon Wrote: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.
Search first, provide details and keep forums clean. Mark things solved, to close them out and acknowledge helpful volunteers who share. If I have helped, click the plus button.
Reply
#45
nice plugin, a short while ago I tried to locate a specific speaker, so I tried to enter "Speakers", I get an alert and script fails, see relevant logging here:

http://pastebin.com/xLGd5fAD

EDIT: my addon was stuck at 2.1.5, I forced an update and now it works..

sorry for crying wolf
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.


Image
Reply
  •  Previous
  • 1
  • 2
  • 3(current)
  • 4
  • 5
  • 15
  • Next 



[RELEASE] TED Talks (Video) Plugin3.25