[RELEASE] PBS (Video) Addon

  Thread Rating:
  • 2 Votes - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
SorryGoFish Offline
Member
Posts: 51
Joined: Sep 2012
Reputation: 0
Post: #181
(2012-11-14 05:06)stacked Wrote:  
(2012-11-14 03:26)SorryGoFish Wrote:  I now get freezes, as captured in this error log. While frozen, XBMC is unresponsive (as if the plugin is blocking UI). If it ever recovers, the video is quite corrupt.

Is this due to my low bandwidth, or something I can try to fix (with your help)?

My searches return a bunch of things related to VDPAU, and other issues, but I don't have any problem watching videos generally. Has anybody encountered this? I'll keep googling for now.

Thanks again.

I just played that same video and didn't have an issue. Try playing the video again or update XBMC.

Thanks for the reply. It happens with all the videos I've tried, unfortunately. Is there some way to control the amount of buffering? I have a pretty slow connection, and typically need to pause YouTube videos, for example, to ensure they don't need to buffer mid-way through.

Thanks again.
(This post was last modified: 2012-11-14 22:01 by SorryGoFish.)
find quote
stacked Offline
Skilled Python Coder
Posts: 802
Joined: Jun 2007
Reputation: 18
Post: #182
(2012-11-14 21:59)SorryGoFish Wrote:  
(2012-11-14 05:06)stacked Wrote:  
(2012-11-14 03:26)SorryGoFish Wrote:  I now get freezes, as captured in this error log. While frozen, XBMC is unresponsive (as if the plugin is blocking UI). If it ever recovers, the video is quite corrupt.

Is this due to my low bandwidth, or something I can try to fix (with your help)?

My searches return a bunch of things related to VDPAU, and other issues, but I don't have any problem watching videos generally. Has anybody encountered this? I'll keep googling for now.

Thanks again.

I just played that same video and didn't have an issue. Try playing the video again or update XBMC.

Thanks for the reply. It happens with all the videos I've tried, unfortunately. Is there some way to control the amount of buffering? I have a pretty slow connection, and typically need to pause YouTube videos, for example, to ensure they don't need to buffer mid-way through.

Thanks again.

Sorry, there is no way for me to do that within the addon. XBMC handles the play back of the video. The addon just provides the links to the video.

Try pausing the video when it starts.
find quote
stacked Offline
Skilled Python Coder
Posts: 802
Joined: Jun 2007
Reputation: 18
Post: #183
I've noticed a few errors reported from users playing PBS Kids videos. It looks like PBS made some more changes on how PBS Kids videos are handled. I'm going to be posting fixes to issues like this on a daily basis to my repo. Updates will be pushed to the official xbmc repo on a weekly basis.

Version 2.0.4

- Fixed HTTP 404 Error on PBS Kids videos
- Fixed "object of type 'NoneType' has no len()" error
- Fixed "list indices must be integers, not str" error
(This post was last modified: 2012-11-29 02:13 by stacked.)
find quote
PatK Offline
Donor
Posts: 2,997
Joined: Mar 2010
Reputation: 72
Location: Canada
Post: #184
(2012-11-11 21:49)stacked Wrote:  
(2012-11-11 20:12)Gull Wrote:  Well developer I don't see any repo or link for your addon for downloading. Further wanna know that whether the contents of your addon are geoblocked? can we watch the PBS content outside USA/UK, thanks.

Sorry. I believe the content is geo-blocked. I just tried playing a video with a UK proxy and got a message that "This content is unavailable...". I've been meaning to add a notification warning users outside of USA.

Can you play the videos from here?
http://video.pbs.org/
Got the latest update from the repository, and noted (I'm in Canada) that I was geo blocked (message on screen) so I rolled back 2 versions... to 2.0.1 and was pleasantly surprised most work. So something is right/wrong on that version, but will be the version of choice for a while Smile

And NO http://video.pbs.org/ videos are geo blocked from FF
(This post was last modified: 2012-12-01 19:12 by PatK.)
find quote
stacked Offline
Skilled Python Coder
Posts: 802
Joined: Jun 2007
Reputation: 18
Post: #185
(2012-12-01 19:10)PatK Wrote:  
(2012-11-11 21:49)stacked Wrote:  
(2012-11-11 20:12)Gull Wrote:  Well developer I don't see any repo or link for your addon for downloading. Further wanna know that whether the contents of your addon are geoblocked? can we watch the PBS content outside USA/UK, thanks.

Sorry. I believe the content is geo-blocked. I just tried playing a video with a UK proxy and got a message that "This content is unavailable...". I've been meaning to add a notification warning users outside of USA.

Can you play the videos from here?
http://video.pbs.org/
Got the latest update from the repository, and noted (I'm in Canada) that I was geo blocked (message on screen) so I rolled back 2 versions... to 2.0.1 and was pleasantly surprised most work. So something is right/wrong on that version, but will be the version of choice for a while Smile

And NO http://video.pbs.org/ videos are geo blocked from FF

Can you find one video that works in 2.0.1 but doesn't in the latest build? I need to recreate the problem so I can fix it.

Also, please post the debug log of you attempting to play that video in both builds.
find quote
PatK Offline
Donor
Posts: 2,997
Joined: Mar 2010
Reputation: 72
Location: Canada
Post: #186
(2012-12-01 20:18)stacked Wrote:  Can you find one video that works in 2.0.1 but doesn't in the latest build? I need to recreate the problem so I can fix it.
Also, please post the debug log of you attempting to play that video in both builds.
With the best of intentions, debug on... clean log, I set out to be some assisstance, only to find that 2.0.1 and 2.0.3 offer slightly different scrapes of the content... I zeroed in on 'Antiques Road Show' Cats & Dogs, played well on 2.0.1 and went looking for it in 2.0.3 and couldn't find it over the forest of Appraisals but a search within the add-on found it and it played well too... to my dismay, but Frontline|Poorkids game me the geo locked requester, I tried to find it in V2.0.1 and ended up searching for it.... it found it and it too was locked (the req was slightly diff, but locked). Did the same for 'The Dust Bowl (locked with a geo voice notice this time) in V2.0.1 I searched and found various Dust Bowl programs and they seemed to play... but none exactly the same spelling as the 'locked' in the root of 2.0.6

So I guess I jumped a little too high when I saw a Geo Locked req when I had never seen one before... (mostly an antiques Road Show guy) and now susepct it's on PBS broadcast web site side, and not your add-on.... of course it would be nice to get a geo work around, but I'll not hold my breath.

The Add-on is still terrific and a staple of my streaming video cadre, many thanks for your good work.
find quote
vijayk416 Offline
Senior Member
Posts: 186
Joined: Apr 2011
Reputation: 1
Post: #187
Certain PBS content is available internationally, for example Austin City Limits. I'll try to locate a list of what content is not geoblocked but from a quick test it appears that any program with an icon/fanart against it is accessible. This is not the case with PBS Kids though, I can see icons there for all shows but content doesn't play.

Would it be possible to add a section for add-on settings for a proxy server?
(This post was last modified: 2012-12-02 20:50 by vijayk416.)
find quote
vijayk416 Offline
Senior Member
Posts: 186
Joined: Apr 2011
Reputation: 1
Post: #188
Whoops looks like I was wrong, any full length Nature show is also geoblocked.
find quote
bharath23 Offline
Senior Member
Posts: 118
Joined: May 2011
Reputation: 0
Post: #189
I am wondering if something broke PBS addon. I am unable to play any of the video. Here is the error from the log

Code:
11:40:32 T:2838891328  NOTICE: -->Python Interpreter Initialized<--
11:40:32 T:2838891328  NOTICE: CommonFunctions-1.5.1
11:40:32 T:2838891328  NOTICE: PBS - FRONTLINE - Climate of Doubt
11:40:32 T:2838891328  NOTICE: <smil xmlns="http://www.w3.org/2001/SMIL20/Language" xmlns:tp="http://xml.theplatform.com/mps/metadata/content/custom" xmlns:tpOwner="http://xml.theplatform.com/mps/metadata/owner/custom">^M
                                                <head>^M
                                                        <meta base="rtmp://sdwfchwqitj2v.cloudfront.net/cfx/st/" />^M
                                                </head>^M
                                                <body>^M
                                                        <ref src="cove2.0/frontline/2295533310/hd-mezzanine-16x9/00003021-web-16x9.mp4?player=&amp;mediaID=2295533310" title="Climate of Doubt" author="Thomas v1" abstract="db.cove_id=54511" copyright="(c) 2011 PBS" dur="3227392ms" width="640" height="360" guid="ei8kiJFKijuZF6p1lZHYN5OTMe6z9HDQ" provider="PBS COVE Next Gen Master" type="video/mp4" tp:AspectRatio="unknown" tp:ContentLevel="Parent" tp:ContentType="Episode" tpOwner:DefaultCategories="Distribution/National"/>^M
                                                </body>^M
                                            </smil>
11:40:32 T:2990226176  NOTICE: DVDPlayer: Opening: rtmp://sdwfchwqitj2v.cloudfront.net/cfx/st/cove2.0/frontline/2295533310/hd-mezzanine-16x9/00003021-web-16x9.mp4?player=&mediaID=2295533310
11:40:32 T:2990226176 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
11:40:32 T:2719513408  NOTICE: Creating InputStream
11:40:33 T:2719513408   ERROR: Closing connection: NetStream.Play.StreamNotFound
11:40:33 T:2719513408   ERROR: CDVDPlayer::OpenInputStream - error opening [rtmp://sdwfchwqitj2v.cloudfront.net/cfx/st/cove2.0/frontline/2295533310/hd-mezzanine-16x9/00003021-web-16x9.mp4?player=&mediaID=2295533310]
11:40:33 T:2719513408  NOTICE: CDVDPlayer::OnExit()
11:40:33 T:2719513408  NOTICE: CDVDPlayer::OnExit() deleting input stream
11:40:33 T:2990226176   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.pbs/?plot=Four+years+ago%2C+climate+change+was+a+hot+issue+and+politicians+from+both​+sides+seemed+poised+to+act.+Today+public+opinion+on+the+climate+issue+has+coole​d+considerably.+Politicians+either+ignore+it+or+proclaim+their+skepticism.+What%​E2%80%99s+behind+this+massive+reversal%3F+FRONTLINE+goes+inside+the+organization​s+that+fought+the+scientific+establishment+to+shift+the+direction+of+the+climate​+debate.&thumb=http%3A%2F%2Fpbs.merlin.cdn.prod.s3.amazonaws.com%2FVideo%2520Asset%2F​pbs%2Ffrontline%2F54511%2Fimages%2F420593_Mezzanine_3021prmez.jpg&backup_url=http%3A%2F%2Frelease.theplatform.com%2Frelease%2Fcontent.mp4%3Fpi​d%3DFzcJN4KWqJbUbVBP1VgA2i1Web_Hlk5M&url=http%3A%2F%2Frelease.theplatform.com%2Frelease%2Fcontent.mp4%3Fpid%3DfFA​rgToC2m9v6RCYlvfBgzaYqcZF_tXs&studio=FRONTLINE&mode=5&name=Climate+of+Doubt&]
11:40:33 T:2990226176  NOTICE: CDVDPlayer::CloseFile()
11:40:33 T:2990226176 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
11:40:33 T:2990226176  NOTICE: DVDPlayer: waiting for threads to exit
11:40:33 T:2990226176  NOTICE: DVDPlayer: finished waiting
find quote
stacked Offline
Skilled Python Coder
Posts: 802
Joined: Jun 2007
Reputation: 18
Post: #190
(2013-01-05 19:03)bharath23 Wrote:  I am wondering if something broke PBS addon. I am unable to play any of the video. Here is the error from the log

Enable debugging (Settings -> System -> Debugging) and attempt to play the same video. Then post the full log on pastebin.

That video plays fine on my end.
(This post was last modified: 2013-01-05 19:29 by stacked.)
find quote
bharath23 Offline
Senior Member
Posts: 118
Joined: May 2011
Reputation: 0
Post: #191
(2013-01-05 19:28)stacked Wrote:  
(2013-01-05 19:03)bharath23 Wrote:  I am wondering if something broke PBS addon. I am unable to play any of the video. Here is the error from the log

Enable debugging (Settings -> System -> Debugging) and attempt to play the same video. Then post the full log on pastebin.

That video plays fine on my end.

I am also running xbmc eden. Here is the xbmc.log for the relevant error: http://pastebin.com/YZuXMQsN

Any help on this is appreciated.
find quote
bobpeace Offline
Junior Member
Posts: 29
Joined: Nov 2011
Reputation: 0
Post: #192
Stacked,

I am getting a script error when trying to run PBS 2.0.8 on my raspberry pi openelec RC1. The addon works great on my Intel Mac Frodo RC3 and Apple TV gen 1 Eden.
It was working well on the pi, then it just started throwing up the error. It seems to be around the time that the script.module.common.cache 2.5.1 was updated.

I do believe I have script.module.parsedom installed where the CommonFunctions.py is at... you will know better than me.

Here is the link to the log: http://xbmclogs.com/show.php?id=26693

Thanks in advance for the help... this is my favorite add on!

Here is the error I am getting:

00:34:56 T:2800702560 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.ImportError'>
Error Contents: No module named CommonFunctions
Traceback (most recent call last):
File "/storage/.xbmc/addons/plugin.video.pbs/default.py", line 23, in <module>
import CommonFunctions
ImportError: No module named CommonFunctions
-->End of Python script error report<--
00:34:56 T:3043152400 ERROR: GetDirectory - Error getting plugin://plugin.video.pbs
00:34:56 T:3043152400 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.pbs) failed

And Here is the reference in my PBS default.py up to the reference line 23 in the error reference:

import xbmc, xbmcgui, xbmcplugin, urllib2, urllib, re, base64, string, sys, os, traceback, time, xbmcaddon, datetime, coveapi, buggalo
from urllib2 import Request, urlopen, URLError, HTTPError

plugin = "PBS"
__author__ = 'stacked <stacked.xbmc@gmail.com>'
__url__ = 'http://code.google.com/p/plugin/'
__date__ = '12-29-2012'
__version__ = '2.0.8'
settings = xbmcaddon.Addon( id = 'plugin.video.pbs' )
buggalo.SUBMIT_URL = 'http://www.xbmc.byethost17.com/submit.php'
dbg = False
dbglevel = 3
programs_thumb = os.path.join( settings.getAddonInfo( 'path' ), 'resources', 'media', 'programs.png' )
topics_thumb = os.path.join( settings.getAddonInfo( 'path' ), 'resources', 'media', 'topics.png' )
search_thumb = os.path.join( settings.getAddonInfo( 'path' ), 'resources', 'media', 'search.png' )
next_thumb = os.path.join( settings.getAddonInfo( 'path' ), 'resources', 'media', 'next.png' )
pbskids_thumb = os.path.join( settings.getAddonInfo( 'path' ), 'resources', 'media', 'pbskids.png' )
fanart = os.path.join( settings.getAddonInfo( 'path' ), 'fanart.jpg' )
cove = coveapi.connect(base64.b64decode(settings.getLocalizedString( 30010 )),
base64.b64decode(settings.getLocalizedString( 30011 )))

import CommonFunctions
common = CommonFunctions
common.plugin = plugin + ' ' + __version__
(This post was last modified: 2013-01-07 08:15 by bobpeace.)
find quote
stacked Offline
Skilled Python Coder
Posts: 802
Joined: Jun 2007
Reputation: 18
Post: #193
(2013-01-06 20:40)bharath23 Wrote:  
(2013-01-05 19:28)stacked Wrote:  
(2013-01-05 19:03)bharath23 Wrote:  I am wondering if something broke PBS addon. I am unable to play any of the video. Here is the error from the log

Enable debugging (Settings -> System -> Debugging) and attempt to play the same video. Then post the full log on pastebin.

That video plays fine on my end.

I am also running xbmc eden. Here is the xbmc.log for the relevant error: http://pastebin.com/YZuXMQsN

Any help on this is appreciated.

I found the problem. It will be fixed in the next update.

(2013-01-07 07:51)bobpeace Wrote:  Stacked,

I am getting a script error when trying to run PBS 2.0.8 on my raspberry pi openelec RC1. The addon works great on my Intel Mac Frodo RC3 and Apple TV gen 1 Eden.
It was working well on the pi, then it just started throwing up the error. It seems to be around the time that the script.module.common.cache 2.5.1 was updated.

I do believe I have script.module.parsedom installed where the CommonFunctions.py is at... you will know better than me.

Here is the link to the log: http://xbmclogs.com/show.php?id=26693

Thanks in advance for the help... this is my favorite add on!

This error is caused when script.module.parsedom is missing. Uninstall the PBS addon and reinstall it. That should invoke script.module.parsedom to re-download.
find quote
bobpeace Offline
Junior Member
Posts: 29
Joined: Nov 2011
Reputation: 0
Post: #194
Stacked,

I deleted the PBS add on via the GUI as well as the script.module.parsedom folder that was present manually via Cyberduck. I then rebooted and reinstalled PBS. It did invoke the download of script.module.parsedom verified by Cyberduck, but I am still getting the same error.

Here is my most recent log: http://xbmclogs.com/show.php?id=26747

Thanks again.

Edit: I managed to manually fix the issue by copying the CommonFunctions.py file that was in the lib folder within the "script.module.parsedom" folder to the actual "plugin.video.pbs" add-on folder. I don't know if this is how it is supposed to be, but it works!
(This post was last modified: 2013-01-07 17:22 by bobpeace.)
find quote
stacked Offline
Skilled Python Coder
Posts: 802
Joined: Jun 2007
Reputation: 18
Post: #195
(2013-01-07 17:12)bobpeace Wrote:  Stacked,

I deleted the PBS add on via the GUI as well as the script.module.parsedom folder that was present manually via Cyberduck. I then rebooted and reinstalled PBS. It did invoke the download of script.module.parsedom verified by Cyberduck, but I am still getting the same error.

Here is my most recent log: http://xbmclogs.com/show.php?id=26747

Thanks again.

Not sure why you're having this problem. I got this addon running on Windows, Android, and OSX.

Can you try installing the youtube and vimeo addons and see if you get the same problem?

Quote:Edit: I managed to manually fix the issue by copying the CommonFunctions.py file that was in the lib folder within the "script.module.parsedom" folder to the actual "plugin.video.pbs" add-on folder. I don't know if this is how it is supposed to be, but it works!

Yeah, that will work but you shouldn't have to do that.
find quote
Post Reply