FAQ  •  Register  •  Login

4OD (UK only) - Web Resource

<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon May 07, 2012 10:57 pm

Re: 4OD (UK only) - Web Resource

they probably made a change on the website which will need a plugin update. Will look into it.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu May 10, 2012 7:03 pm

Re: 4OD (UK only) - Web Resource

these programmes use new f4m streaming protocol, which is currently not supported by FFmpeg AFAIK. Some guys are trying to get it work with a workaround http://code.google.com/p/get-flash-vide ... ail?id=379
<<

antl

Serviio newbie

Posts: 15

Joined: Tue May 29, 2012 7:02 pm

Post Tue May 29, 2012 7:13 pm

Re: 4OD (UK only) - Web Resource

zip wrote:these programmes use new f4m streaming protocol, which is currently not supported by FFmpeg AFAIK. Some guys are trying to get it work with a workaround http://code.google.com/p/get-flash-vide ... ail?id=379



is 4od still working ?

Whenerver I load a resource, for example big bang it sits there for ever churning away at 50% CPU.
Im sure I left it on yesterday for a few hours and it never completed:

12-05-29 20:28:14,796 DEBUG [WebResourceParser] Parsing web resource 'http://www.channel4.com/programmes/the-big-bang-theory/4od'
2012-05-29 20:28:14,828 DEBUG [WebResourceParser] Found matching url extractor (4OD (UK only)) for resource http://www.channel4.com/programmes/the- ... theory/4od
2012-05-29 20:28:14,828 DEBUG [FeedItemUrlExtractor] 4OD (UK only): Starting parsing resource: http://www.channel4.com/programmes/the- ... theory/4od
2012-05-29 20:28:14,875 INFO [LibraryUpdatesCheckerThread] Finished looking for updates to currently shared files


i get its stuck in some kind of loop. has anyone seen this ? ive been able to use "simons cat" "itv" the "ilive" plugin okay ? :/

Maybe ill just leave it all night and see what happens :)
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue May 29, 2012 9:05 pm

Re: 4OD (UK only) - Web Resource

thanks, seems like they changed case of some elements, fixed and updated the first post with a new version
<<

antl

Serviio newbie

Posts: 15

Joined: Tue May 29, 2012 7:02 pm

Post Tue May 29, 2012 9:53 pm

Re: 4OD (UK only) - Web Resource

zip wrote:thanks, seems like they changed case of some elements, fixed and updated the first post with a new version


great, working now :)

is there anyway to get the plugin to work with my 4od credentials ? so i can get a full episode list for skins/big bang etc?

or maybe use the cookie ?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed May 30, 2012 9:56 am

Re: 4OD (UK only) - Web Resource

not at the moment, but if someone wants to upgrade this they're free to do so
<<

antl

Serviio newbie

Posts: 15

Joined: Tue May 29, 2012 7:02 pm

Post Wed May 30, 2012 11:59 am

Re: 4OD (UK only) - Web Resource

The player appears to crash sometimes after 20 minutes, thats not so bad, but whenever you try and play that file again it doesnt work, unless you restart servioo. is there another way round this ?

I have tried watching phone shop, after about 20 minutes it stops streaming. If i try and restart, it tries to reload the previous file and it appears to of been deleted, so that also errors and I have to restart servii to clear the cache:

######
2012-05-30 11:11:58,484 INFO [FeedUpdaterThread] Finished looking for online resources information
2012-05-30 11:11:58,515 INFO [PluginCompilerThread] Finished looking for plugins
2012-05-30 11:11:58,609 DEBUG [DiscoveryManager] UPNP device 8dee68fe-0370-3fc8-a5f5-ae4a1fb10a65 (192.168.1.10) is unavailable
2012-05-30 11:11:58,609 INFO [DiscoveryAdvertisementNotifier] Leaving DiscoveryAdvertisementNotifier
2012-05-30 11:11:58,609 DEBUG [WebServer] Socket closed
2012-05-30 11:11:58,609 INFO [WebServer] WebServer shutting down
2012-05-30 11:11:58,609 INFO [EventDispatcher] Leaving EventDispatcher
2012-05-30 11:11:58,609 INFO [EventSubscriptionExpirationChecker] Leaving EventSubscriptionExpirationChecker, removing all event subscriptions
2012-05-30 11:11:58,609 DEBUG [DiscoveryAdvertisementNotifier] Multicasting SSDP byebye using interface eth0 (VIA Rhine II Fast Ethernet Adapter - Packet Scheduler Miniport) and address ant, timeout = 0
2012-05-30 11:11:58,609 DEBUG [MultiCastUtils] Problem stopping multicast socket
java.net.SocketException: error setting options
at java.net.PlainDatagramSocketImpl.leave(Native Method)
at java.net.PlainDatagramSocketImpl.leave(Unknown Source)
at java.net.MulticastSocket.leaveGroup(Unknown Source)
at org.serviio.util.MultiCastUtils.stopMultiCastSocket(MultiCastUtils.java:68)
at org.serviio.upnp.discovery.DiscoverySSDPMessageListener.run(DiscoverySSDPMessageListener.java:106)
at java.lang.Thread.run(Unknown Source)
2012-05-30 11:11:58,609 INFO [DiscoverySSDPMessageListener] Leaving DiscoverySSDPMessageListener
2012-05-30 11:11:58,609 INFO [DatabaseManager] Shutting down database
2012-05-30 11:11:58,609 DEBUG [DBConnectionPool] Closed connection for pool Serviio DB Pool
2012-05-30 11:11:58,609 DEBUG [DBConnectionPool] Closed connection for pool Serviio DB Pool
2012-05-30 11:11:58,609 DEBUG [DBConnectionPool] Closed connection for pool Serviio DB Pool
2012-05-30 11:11:59,437 DEBUG [DatabaseManager] DB shutdown returned: Derby system shutdown.
2012-05-30 11:11:59,437 INFO [AbstractTranscodingDeliveryEngine] Cleaning transcode engine and its data
2012-05-30 11:11:59,625 DEBUG [TranscodingJobListener] Deleted temp file 'C:\WINDOWS\TEMP\Serviio\transcoding-temp-1000000000210004-MPEG2TS.stf': true
2012-05-30 11:11:59,625 DEBUG [AbstractTranscodingDeliveryEngine] Deleting temporary transcoded files from: C:\WINDOWS\TEMP\Serviio
2012-05-30 11:47:42,843 ERROR [ResourceTransportRequestHandler] Error while processing resource, sending back 500 error. Message: Transcoded file 'C:\WINDOWS\TEMP\Serviio\transcoding-temp-1000000000270001-MPEG2TS.stf' cannot be found, FFmpeg execution probably failed
java.io.IOException: Transcoded file 'C:\WINDOWS\TEMP\Serviio\transcoding-temp-1000000000270001-MPEG2TS.stf' cannot be found, FFmpeg execution probably failed
at org.serviio.delivery.resource.transcode.FileBasedTranscodingDeliveryStrategy.createInputStream(FileBasedTranscodingDeliveryStrategy.java:45)
at org.serviio.delivery.resource.transcode.AbstractTranscodingDeliveryEngine.retrieveTranscodedResource(AbstractTranscodingDeliveryEngine.java:129)
at org.serviio.delivery.resource.AbstractDeliveryEngine.deliver(AbstractDeliveryEngine.java:96)
at org.serviio.delivery.MediaResourceRetrievalStrategy.retrieveResource(MediaResourceRetrievalStrategy.java:121)
at org.serviio.upnp.webserver.ResourceTransportRequestHandler.handleRequest(ResourceTransportRequestHandler.java:116)
at org.serviio.upnp.webserver.AbstractRequestHandler.handle(AbstractRequestHandler.java:54)
at org.apache.http.protocol.HttpService.doService(HttpService.java:293)
at org.serviio.upnp.webserver.ServiioHttpService.doService(ServiioHttpService.java:58)
at org.apache.http.protocol.HttpService.handleRequest(HttpService.java:212)
at org.serviio.upnp.webserver.WebServer$WorkerThread.run(WebServer.java:187)




phone shop
2012-05-30 11:06:06,484 DEBUG [ProcessExecutor] Starting C:\Program Files\Serviio\bin\\..\lib/ffmpeg.exe -i rtmpe://ak.securestream.channel4.com:19 ... 02_001.mp4 playpath=mp4:assets/CH4_08_02_900_52174019001002_001.mp4?auth=da_aIbedwcTa1bmbhadbWaJaKbCb1cJbhbO-bpXFem-eS-hyQ-l8pTnWmTrYnTsRpZq0s3nYpfqd&aifp=v002&slist=assets/CH4_08_02_900_52174019001002_001.mp4 swfurl=http://www.channel4.com/static/programmes/asset/flash/swf/4odplayer-11.25.2.swf swfVfy=1 buffer=100000000 -y -async 1 -vcodec copy -vbsf h264_mp4toannexb -copyts -acodec ac3 -ab 384k -ac 2 -map 0:0 -map 0:1 -sn -f mpegts C:\WINDOWS\TEMP\Serviio\transcoding-temp-1000000000210004-MPEG2TS.stf



#############

I just tried skipping through big bang and got a similar error after 15 minutes or so:



big bang:
2012-05-30 12:51:55,968 DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode video file: rtmpe://ll.securestream.channel4.com:19 ... 026bf0c7f7 playpath=mp4:xcuassets/CH4_08_02_900_52174019001002_001.mp4?e=1338379013&ip=&h=067cc1bcf0e07a18bd747e026bf0c7f7 swfurl=http://www.channel4.com/static/programmes/asset/flash/swf/4odplayer-11.25.2.swf swfVfy=1 buffer=100000000
2012-05-30 12:51:55,968 DEBUG [ProcessExecutor] Starting C:\Program Files\Serviio\bin\\..\lib/ffmpeg.exe -i rtmpe://ll.securestream.channel4.com:19 ... 026bf0c7f7 playpath=mp4:xcuassets/CH4_08_02_900_52174019001002_001.mp4?e=1338379013&ip=&h=067cc1bcf0e07a18bd747e026bf0c7f7 swfurl=http://www.channel4.com/static/programmes/asset/flash/swf/4odplayer-11.25.2.swf swfVfy=1 buffer=100000000 -y -async 1 -vcodec copy -vbsf h264_mp4toannexb -copyts -acodec ac3 -ab 384k -ac 2 -map 0:0 -map 0:1 -sn -f mpegts C:\Program Files\Serviio\Transcoding\Serviio\transcoding-temp-1000000000210004-MPEG2TS.stf
2012-05-30 12:51:56,375 WARN [ProcessExecutor] Process cmd has a return code of 1! This is a possible error.


skins:

12-05-30 12:55:26,078 DEBUG [ProcessExecutor] Starting C:\Program Files\Serviio\bin\\..\lib/ffmpeg.exe -i rtmpe://ll.securestream.channel4.com:19 ... d005da0aca playpath=mp4:xcuassets/CH4_08_02_900_49766009001003_003.mp4?e=1338379223&ip=&h=0ba5de3857a387108076d9d005da0aca swfurl=http://www.channel4.com/static/programmes/asset/flash/swf/4odplayer-11.25.2.swf swfVfy=1 buffer=100000000 -y -async 1 -vcodec copy -vbsf h264_mp4toannexb -copyts -acodec ac3 -ab 384k -ac 2 -map 0:0 -map 0:1 -sn -f mpegts C:\Program Files\Serviio\Transcoding\Serviio\transcoding-temp-1000000000220010-MPEG2TS.stf
2012-05-30 12:55:26,484 WARN [ProcessExecutor] Process cmd has a return code of 1! This is a possible error.
2012-05-30 12:55:26,484 DEBUG [TranscodingJobListener] Transcoding finished; successful: false
###############
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed May 30, 2012 12:33 pm

Re: 4OD (UK only) - Web Resource

Looks like the player noe returns 301 status and FFmpeg cannot resolve it. I'll have to remove the autodetection and fix it again to have value of

  Code:
http://www.channel4.com/static/programmes/asset/flash/swf/4odplayer_am2.1.swf
<<

antl

Serviio newbie

Posts: 15

Joined: Tue May 29, 2012 7:02 pm

Post Wed May 30, 2012 7:19 pm

Re: 4OD (UK only) - Web Resource

The issue is only after the video has been playing a while 10-20 minutes. I presume it's when an ad is meant to come on or similar ?

Anyway i'll patiently wait until this has been updated :)
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu May 31, 2012 5:41 pm

Re: 4OD (UK only) - Web Resource

updated
<<

antl

Serviio newbie

Posts: 15

Joined: Tue May 29, 2012 7:02 pm

Post Thu May 31, 2012 8:22 pm

Re: 4OD (UK only) - Web Resource

hmm not fixed for me, I still cannot display 4od programmes longer than 20 minutes.

for example phone shop, play one of these episodes and skip through it, after about 20 minutes it sits for a bit then skips to the next episode.


then if you try and replay that episode is says "file not found" as it fails toranscode it :

2012-05-31 21:11:59,890 DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode video file: rtmpe://ll.securestream.channel4.com:19 ... c07a8fd453 playpath=mp4:xcuassets/CH4_08_02_16_50017002001001_001.mp4?e=1338495417&ip=&h=05358b9bd571e7031bc385c07a8fd453 swfurl=http://www.channel4.com/static/programmes/asset/flash/swf/4odplayer-11.25.2.swf swfVfy=1 buffer=100000000
2012-05-31 21:11:59,890 DEBUG [ProcessExecutor] Starting C:\Program Files\Serviio\bin\\..\lib/ffmpeg.exe -i rtmpe://ll.securestream.channel4.com:19 ... c07a8fd453 playpath=mp4:xcuassets/CH4_08_02_16_50017002001001_001.mp4?e=1338495417&ip=&h=05358b9bd571e7031bc385c07a8fd453 swfurl=http://www.channel4.com/static/programmes/asset/flash/swf/4odplayer-11.25.2.swf swfVfy=1 buffer=100000000 -y -async 1 -vcodec copy -vbsf h264_mp4toannexb -copyts -acodec ac3 -ab 384k -ac 2 -map 0:0 -map 0:1 -sn -f mpegts C:\Program Files\Serviio\Transcoding\Serviio\transcoding-temp-1000000000270002-MPEG2TS.stf
2012-05-31 21:12:00,250 WARN [ProcessExecutor] Process cmd has a return code of 1! This is a possible error.
2012-05-31 21:12:00,250 DEBUG [TranscodingJobListener] Transcoding finished; successful: false
2012-05-31 21:12:24,890 ERROR [ResourceTransportRequestHandler] Error while processing resource, sending back 500 error. Message: Transcoded file 'C:\Program Files\Serviio\Transcoding\Serviio\transcoding-temp-1000000000270002-MPEG2TS.stf' cannot be found, FFmpeg execution probably failed
java.io.IOException: Transcoded file 'C:\Program Files\Serviio\Transcoding\Serviio\transcoding-temp-1000000000270002-MPEG2TS.stf' cannot be found, FFmpeg execution probably failed
at org.serviio.delivery.resource.transcode.FileBasedTranscodingDeliveryStrategy.createInputStream(FileBasedTranscodingDeliveryStrategy.java:45)
at org.serviio.delivery.resource.transcode.AbstractTranscodingDeliveryEngine.retrieveTranscodedResource(AbstractTranscodingDeliveryEngine.java:129)
at org.serviio.delivery.resource.AbstractDeliveryEngine.deliver(AbstractDeliveryEngine.java:96)
at org.serviio.delivery.MediaResourceRetrievalStrategy.retrieveResource(MediaResourceRetrievalStrategy.java:121)
at org.serviio.upnp.webserver.ResourceTransportRequestHandler.handleRequest(ResourceTransportRequestHandler.java:116)
at org.serviio.upnp.webserver.AbstractRequestHandler.handle(AbstractRequestHandler.java:54)
at org.apache.http.protocol.HttpService.doService(HttpService.java:293)
at org.serviio.upnp.webserver.ServiioHttpService.doService(ServiioHttpService.java:58)
at org.apache.http.protocol.HttpService.handleRequest(HttpService.java:212)


ive attached the log so hopefully that will help. not really sure whats going on
Attachments
servio.txt
(350.63 KiB) Downloaded 773 times
<<

Xmantium

User avatar

DLNA master

Posts: 1396

Joined: Sat Jul 23, 2011 2:12 pm

Location: Manchester, UK

Post Thu May 31, 2012 8:35 pm

Re: 4OD (UK only) - Web Resource

You sure your using the updated .groovy file
Your url swf is 4odplayer-11.25.2.swf, should be 4odplayer_am2.1.swf currently
Thats why 4oD video stops after 10mins or so

Ps, can you put the logs using the [Code] option

Edit: I played an episode of phone shop(never seen this show before) to the end, no issues with new plugin.
Sony Bravia 2010 52NX803 - Sony PS3 - Xbox 360
Serviio running on QNAP NAS 639 Pro - 1.6 Intel Dual Core - 2GB RAM and QNAP NAS 121 - 2Ghz ARM Marvell - 1GB RAM
Console using ServiiDroid for Android, ServiiMetro and ServiiWP for Windows Phone and WebUI for iOS
<<

antl

Serviio newbie

Posts: 15

Joined: Tue May 29, 2012 7:02 pm

Post Fri Jun 01, 2012 2:18 pm

Re: 4OD (UK only) - Web Resource

i didnt restart serviio after adding the new plugin, as i thought it ran each of the plugins manually.
perhaps i need to restart. thanks for the heads up, ill check it out :)
<<

stevvie

Serviio newbie

Posts: 9

Joined: Tue Jun 12, 2012 7:06 pm

Post Tue Jun 12, 2012 7:09 pm

Re: 4OD (UK only) - Web Resource

I can't seem to watch anything past 10 minutes. I start cast offs or misfits, it plays for 10 minutes almost exactly and then serviio is no longer seen by my samsung TV.

Here's my log if it helps http://pastebin.com/VRxaXm5U
<<

wobbud

Serviio newbie

Posts: 4

Joined: Sun May 06, 2012 10:44 am

Post Thu Jun 21, 2012 8:11 pm

Re: 4OD (UK only) - Web Resource

It started bombing out on me again. The player version has changed. It is now http://www.channel4.com/static/programm ... 1.25.4.swf. I changed my groovy file and it works fine.
<<

Xmantium

User avatar

DLNA master

Posts: 1396

Joined: Sat Jul 23, 2011 2:12 pm

Location: Manchester, UK

Post Sat Jun 23, 2012 10:19 pm

Re: 4OD (UK only) - Web Resource

This groovy as stated is based on Nibor's XBMC plugin which is now maintained by Mossy here
Since XBMC uses a custom FFMPEG engine, it shares similar Serviio issues playing so called HTTP Dynamic Streaming programmes like The Killing, Homeland ect

Think Mossy have found a fix in getting the right painfully changing URL for 4oD in his modified script
Sample Code that could be adapted to the groovy:
  Code:
# Only used if we fail to parse the URL from the website
__SwfPlayerDefault__ = 'http://www.channel4.com/static/programmes/asset/flash/swf/4odplayer_am2.1.swf'

def GetSwfPlayer( html ):
        log ("html size:" + str(len(html)), xbmc.LOGDEBUG)

        error = None

        (swfRoot, error) = findString('GetSwfPlayer', 'var swfRoot = \'(.*?)\'', html)
        if error is None:

                (fourodPlayerFile, error) = findString('GetSwfPlayer', 'var fourodPlayerFile = \'(.*?)\'', html)
                if error is None:

                        #TODO Find out how to get the "asset/flash/swf/" part dynamically
                        swfPlayer = "http://www.channel4.com" + swfRoot + "asset/flash/swf/" + fourodPlayerFile

                        try:
                                # Resolve redirect, if any
                                req = urllib2.Request(swfPlayer)
                                res = urllib2.urlopen(req)
                                swfPlayer = res.geturl()
                        except Exception, e:
                                # Exception resolving swfPlayer URL
                                error = ErrorHandler('GetSwfPlayer', __language__(30730), str(e))

        if error is not None:
                swfPlayer = __SwfPlayerDefault__
                # Unable to determine swfPlayer URL. Using default:
                error.process(__language__(30520), __SwfPlayerDefault__, xbmc.LOGWARNING)
       
        return swfPlayer
Sony Bravia 2010 52NX803 - Sony PS3 - Xbox 360
Serviio running on QNAP NAS 639 Pro - 1.6 Intel Dual Core - 2GB RAM and QNAP NAS 121 - 2Ghz ARM Marvell - 1GB RAM
Console using ServiiDroid for Android, ServiiMetro and ServiiWP for Windows Phone and WebUI for iOS
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sun Jun 24, 2012 12:30 am

Re: 4OD (UK only) - Web Resource

I had the same code there before, put it back in (updated plugin in the first atricle). If it fails in the future again I'll have to extend it a bit more.
<<

rs232

Serviio newbie

Posts: 5

Joined: Thu Jun 28, 2012 7:29 am

Post Fri Jun 29, 2012 4:58 pm

Re: 4OD (UK only) - Web Resource

Is it be possible to import the whole index?

  Code:
http://www.channel4.com/programmes/4od/all


rhetoric question as I tried and didn't work...

adding individual series/episodes instead though are just fine.
<<

Xmantium

User avatar

DLNA master

Posts: 1396

Joined: Sat Jul 23, 2011 2:12 pm

Location: Manchester, UK

Post Fri Jun 29, 2012 7:20 pm

Re: 4OD (UK only) - Web Resource

rs232 wrote:Is it be possible to import the whole index

It would take absolutely ages to build the Serviio library with all the programs. Remember that Serviio checks the video is valid to play and adds it to the library.
Sony Bravia 2010 52NX803 - Sony PS3 - Xbox 360
Serviio running on QNAP NAS 639 Pro - 1.6 Intel Dual Core - 2GB RAM and QNAP NAS 121 - 2Ghz ARM Marvell - 1GB RAM
Console using ServiiDroid for Android, ServiiMetro and ServiiWP for Windows Phone and WebUI for iOS
<<

rs232

Serviio newbie

Posts: 5

Joined: Thu Jun 28, 2012 7:29 am

Post Fri Jun 29, 2012 7:56 pm

Re: 4OD (UK only) - Web Resource

I see... to be fair I don't mind if it takes long. Even 3 hours? Once.
It's cpu time again my time and I prefer the first one.
PreviousNext

Return to Available plugins

Who is online

Users browsing this forum: No registered users and 8 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.