[RELEASE] 4oD (Video) Addon - UK Channel 4 on demand

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Closed
Slatri Offline
Member
Posts: 74
Joined: Jul 2011
Reputation: 0
Post: #271
http://pastebin.com/Q5ShUJbc This should be better. Thanks Mossy
find
dlake02 Offline
Senior Member
Posts: 202
Joined: Feb 2011
Reputation: 4
Post: #272
@idlerobbo

Which SOCKS Proxy are you using ? I have tried ss5 and srelay on my CentOS VPS, and neither work... I'm either doing something very stupid, or I need a different proxy.

David
find
Mossy Offline
Senior Member
Posts: 195
Joined: Oct 2011
Reputation: 25
Post: #273
@Slatri - new test version should fix that problem.

@dlake - does the debug output give any hints?
(This post was last modified: 2012-06-15 14:01 by Mossy.)
find
dlake02 Offline
Senior Member
Posts: 202
Joined: Feb 2011
Reputation: 4
Post: #274
@Mossy - no :-(

But the problem appears to be related to the socks implementation when retrieving HTTP files. I've tested my SOCKS proxy with the iPlayer app and with my browser, and all is fine.

Looking at the iPlayer app, they are using the standard socks.py as part of the httplib2 resources. I've had a quick look at the 4OD code, and using the same library should be straightforward, but will need some changes. I'm happy to have a look at this sometime, but I'm a little busy at the moment.....

D
find
Mossy Offline
Senior Member
Posts: 195
Joined: Oct 2011
Reputation: 25
Post: #275
(2012-06-14 11:57)Mossy Wrote:  @dlake - does the debug output give any hints?

(2012-06-14 19:13)dlake02 Wrote:  @Mossy - no :-(

But the problem appears to be related to the socks implementation when retrieving HTTP files.

I'm very surprised that there isn't a urlerror logged due to the lack of successful connection in that case. That in itself is a bug, so it would be helpful to see the debug log, if you could post it.

(2012-06-14 19:13)dlake02 Wrote:  Looking at the iPlayer app, they are using the standard socks.py as part of the httplib2 resources.

Well done for spotting that David, I assumed that urllib2 supported SOCKS proxies directly.

iplayer is using a thirdy party module called socksipy (with some modifications the iplayer guys added). I've copied that module into the 4od plugin.

Now rtmpdump/librtmp only supports SOCK4, but it occurs to me that maybe only some of the 4oD urls are geo-locked, it is possible that the rtmp streams are not geo-locked, and can be streamed by anyone providing the correct authentication. If this is the case then I can stop passing the socks proxy parameters to librtmp/rtmpdump.

This will allow the plugin to use all of the proxy types supported by socksipy (HTTP, HTTP-tunneling, SOCK4 and SOCK5).

The latest version incorporates those changes.

As always, if there are problems please post a debug log (to the new thread).
(This post was last modified: 2012-06-16 14:28 by Mossy.)
find
buges Offline
Fan
Posts: 305
Joined: Apr 2007
Reputation: 0
Location: UK
Post: #276
@Mossy

Download working perfectly in v1.0.4

Thank you
find
nonameneo Offline
Junior Member
Posts: 1
Joined: Jun 2012
Reputation: 0
Post: #277
When trying to play anything, either nothing happens or I get an error saying, that one or more items could not be played.

I've uploaded log into: http://pastebin.com/P4crH7UP

Can anybody help me with this?
find
ringo Offline
Junior Member
Posts: 3
Joined: Jun 2012
Reputation: 0
Post: #278
Hello i'm new here. All i want is to get 40d working with xbmc.
Well slowly slowly i'm there but... i can't get it to download the show. Can watch it but i get a script error if i download. Then just before no script error but download fail. Is this a standard fault?

"mp4:assets/CH4_08_02_900_49236001001002_003.mp4?auth=da_aPaRazbbbocscFdnd1adbrbGcpaKawc1-bp575z-eS-exP-pRkenbsTkcmfnVnRrSmUpTp9l7m8lQnQpTk6n7sWkhmhnSnSqclbpRqQlbm6kdm8p8k7ocrclXn1nXnf​&aifp=v002&slist=assets/CH4_08_02_900_49236001001002_003.mp4" -o "C:\hughs-fish-fight.s01e01.flv"
11:26:49 T:27024 NOTICE: Getting subtitles
11:26:54 T:27024 NOTICE: "E:\xbmc\rtmpdump-20110925-git-6230845-win32.zip" --rtmp "rtmpe://ak.securestream.channel4.com:1935/4oD/" --app "4oD/?ovpfv=1.1&auth=da_aPaRazbbbocscFdnd1adbrbGcpaKawc1-bp575z-eS-exP-pRkenbsTkcmfnVnRrSmUpTp9l7m8lQnQpTk6n7sWkhmhnSnSqclbpRqQlbm6kdm8p8k7ocrclXn1nXnf​&aifp=v002&slist=assets/CH4_08_02_900_49236001001002_003.mp4" --flashVer "WIN 11,0,1,152" --swfVfy "http://www.channel4.com/static/programmes/asset/flash/swf/4odplayer-11.25.4.swf" --conn Z: --playpath "mp4:assets/CH4_08_02_900_49236001001002_003.mp4?auth=da_aPaRazbbbocscFdnd1adbrbGcpaKawc1-bp575z-eS-exP-pRkenbsTkcmfnVnRrSmUpTp9l7m8lQnQpTk6n7sWkhmhnSnSqclbpRqQlbm6kdm8p8k7ocrclXn1nXnf​&aifp=v002&slist=assets/CH4_08_02_900_49236001001002_003.mp4" -o "C:\hughs-fish-fight.s01e01.flv"
11:26:54 T:27024 NOTICE: Traceback (most recent call last):
11:26:54 T:27024 NOTICE: File "C:\Users\gaetano\AppData\Roaming\XBMC\addons\plugin.video.4od\default.py", line 1082, in <module>
11:26:54 T:27024 NOTICE: PlayOrDownloadEpisode( showId, episodeId, title, mycgi.Param('fn'), swfPlayer )
11:26:54 T:27024 NOTICE: File "C:\Users\gaetano\AppData\Roaming\XBMC\addons\plugin.video.4od\default.py", line 967, in PlayOrDownloadEpisode
11:26:54 T:27024 NOTICE: Download(rtmp, defaultFilename)
11:26:54 T:27024 NOTICE: File "C:\Users\gaetano\AppData\Roaming\XBMC\addons\plugin.video.4od\default.py", line 815, in Download
11:26:54 T:27024 NOTICE: p = Popen( parameters, executable=rtmpdumpPath, shell=True, stdout=PIPE, stderr=PIPE )
11:26:54 T:27024 NOTICE: File "C:\Program Files\XBMC\system\python\Lib\subprocess.py", line 623, in __init__
11:26:54 T:27024 NOTICE: errread, errwrite)
11:26:54 T:27024 NOTICE: File "C:\Program Files\XBMC\system\python\Lib\subprocess.py", line 833, in _execute_child
11:26:54 T:27024 NOTICE: startupinfo)
11:26:54 T:27024 NOTICE: WindowsError: [Error 193] %1 is not a valid Win32 application
11:26:54 T:27024 ERROR: Error Type: <type 'exceptions.WindowsError'>
11:26:54 T:27024 ERROR: Error Contents: [Error 193] %1 is not a valid Win32 application
11:26:54 T:27024 ERROR: Traceback (most recent call last):
File "C:\Users\gaetano\AppData\Roaming\XBMC\addons\plugin.video.4od\default.py", line 1082, in <module>
PlayOrDownloadEpisode( showId, episodeId, title, mycgi.Param('fn'), swfPlayer )
File "C:\Users\gaetano\AppData\Roaming\XBMC\addons\plugin.video.4od\default.py", line 967, in PlayOrDownloadEpisode
Download(rtmp, defaultFilename)
File "C:\Users\gaetano\AppData\Roaming\XBMC\addons\plugin.video.4od\default.py", line 815, in Download
p = Popen( parameters, executable=rtmpdumpPath, shell=True, stdout=PIPE, stderr=PIPE )
File "C:\Program Files\XBMC\system\python\Lib\subprocess.py", line 623, in __init__
errread, errwrite)
File "C:\Program Files\XBMC\system\python\Lib\subprocess.py", line 833, in _execute_child
startupinfo)
WindowsError: [Error 193] %1 is not a valid Win32 application
(This post was last modified: 2012-06-25 03:29 by ringo.)
find
ringo Offline
Junior Member
Posts: 3
Joined: Jun 2012
Reputation: 0
Post: #279
is this thread dead?
find
GGGav Offline
Junior Member
Posts: 1
Joined: Dec 2009
Reputation: 0
Post: #280
I hope not.
find
Thread Closed