FAQ  •  Register  •  Login

4OD (UK only) - Web Resource

<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Jan 05, 2012 8:58 pm

4OD (UK only) - Web Resource

A web resource plugin for Channel4 4OD content. Requires at least Serviio 0.6.1.

Note: Channel 4 are now using unsupported format for their streams for most/all new content, so this plugin might not work as expected.

Works with URLs of series web pages.

An example URL:

  Code:
http://www.channel4.com/programmes/fresh-meat/4od


Added 5/1/2012
Updated 4/3/2012
Updated 16/4/2012
Updated 29/04/2012
Updated 29/05/2012
Updated 31/05/2012
Updated 24/06/2012
Updated 20/06/2013 - thanks to turls2201
Attachments
Channel4od.groovy
(27.17 KiB) Downloaded 1058 times
<<

Xmantium

User avatar

DLNA master

Posts: 1396

Joined: Sat Jul 23, 2011 2:12 pm

Location: Manchester, UK

Post Fri Jan 06, 2012 12:19 am

Re: 4OD (UK only) - Web Resource

Best place to find all the URL's of 4OD programmes can be found here - http://www.channel4.com/programmes/4od/all
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
<<

NX3

DLNA master

Posts: 578

Joined: Fri Jan 28, 2011 12:39 pm

Post Mon Jan 09, 2012 6:47 pm

Re: 4OD (UK only) - Web Resource

I've got this working on Win7 platform and has been really useful. I'm trying to add to a ubuntu 11.10 box (NAS). I've complied ffmpeg, everything appeared work. iPlayer etc are all working on the ubuntu box, this is the error log. Java io at the end "Unknown video file type". Any suggestions ?


  Code:
2012-01-09 18:36:13,549 DEBUG [FeedUpdaterThread] Retrieving information about the video stream 'The Inbetweeners (S01 E01)'
2012-01-09 18:36:13,555 DEBUG [FFMPEGWrapper] Invoking FFMPEG to retrieve media information for file: rtmpe://ll.securestream.channel4.com:1935/a4174/e1/?ovpfv=1.1&e=1326134465&ip=82.32.84.83&h=57bd7de90bbcbc17799ff05b02e5c09d playpath=mp4:xcuassets/CH4_08_02_16_44002001001002_005.mp4?e=1326134465&ip=82.32.84.83&h=57bd7de90bbcbc17799ff05b02e5c09d swfurl=http://www.channel4.com/static/programmes/asset/flash/swf/4odplayer-11.8.5.swf swfVfy=1
2012-01-09 18:36:13,555 DEBUG [ProcessExecutor] Starting ffmpeg -i rtmpe://ll.securestream.channel4.com:1935/a4174/e1/?ovpfv=1.1&e=1326134465&ip=82.32.84.83&h=57bd7de90bbcbc17799ff05b02e5c09d playpath=mp4:xcuassets/CH4_08_02_16_44002001001002_005.mp4?e=1326134465&ip=82.32.84.83&h=57bd7de90bbcbc17799ff05b02e5c09d swfurl=http://www.channel4.com/static/programmes/asset/flash/swf/4odplayer-11.8.5.swf swfVfy=1
2012-01-09 18:36:13,863 DEBUG [FeedUpdaterThread] Cannot get information about the URL, it might have expired already. Trying again.
2012-01-09 18:36:13,863 DEBUG [FeedItemUrlExtractor] 4OD (UK only): Starting extraction of url for item: The Inbetweeners (S01 E01)
2012-01-09 18:36:14,273 DEBUG [FeedItemUrlExtractor] 4OD (UK only): Finished extraction of url: ContentURLContainer [fileType=VIDEO, contentUrl=rtmpe://ll.securestream.channel4.com:1935/a4174/e1/?ovpfv=1.1&e=1326134474&ip=82.32.84.83&h=ee8a16921686759564c30374ec6c91f7 playpath=mp4:xcuassets/CH4_08_02_16_44002001001002_005.mp4?e=1326134474&ip=82.32.84.83&h=ee8a16921686759564c30374ec6c91f7 swfurl=http://www.channel4.com/static/programmes/asset/flash/swf/4odplayer-11.8.5.swf swfVfy=1, thumbnailUrl=, live=false, expiresImmediately=true, cacheKey=4od_2918647_HIGH]
2012-01-09 18:36:14,274 DEBUG [FFMPEGWrapper] Invoking FFMPEG to retrieve media information for file: rtmpe://ll.securestream.channel4.com:1935/a4174/e1/?ovpfv=1.1&e=1326134474&ip=82.32.84.83&h=ee8a16921686759564c30374ec6c91f7 playpath=mp4:xcuassets/CH4_08_02_16_44002001001002_005.mp4?e=1326134474&ip=82.32.84.83&h=ee8a16921686759564c30374ec6c91f7 swfurl=http://www.channel4.com/static/programmes/asset/flash/swf/4odplayer-11.8.5.swf swfVfy=1
2012-01-09 18:36:14,274 DEBUG [ProcessExecutor] Starting ffmpeg -i rtmpe://ll.securestream.channel4.com:1935/a4174/e1/?ovpfv=1.1&e=1326134474&ip=82.32.84.83&h=ee8a16921686759564c30374ec6c91f7 playpath=mp4:xcuassets/CH4_08_02_16_44002001001002_005.mp4?e=1326134474&ip=82.32.84.83&h=ee8a16921686759564c30374ec6c91f7 swfurl=http://www.channel4.com/static/programmes/asset/flash/swf/4odplayer-11.8.5.swf swfVfy=1
2012-01-09 18:36:14,508 WARN  [FeedUpdaterThread] Failed to retrieve online item information for rtmpe://ll.securestream.channel4.com:1935/a4174/e1/?ovpfv=1.1&e=1326134474&ip=82.32.84.83&h=ee8a16921686759564c30374ec6c91f7 playpath=mp4:xcuassets/CH4_08_02_16_44002001001002_005.mp4?e=1326134474&ip=82.32.84.83&h=ee8a16921686759564c30374ec6c91f7 swfurl=http://www.channel4.com/static/programmes/asset/flash/swf/4odplayer-11.8.5.swf swfVfy=1. It might not play.
java.io.IOException: org.serviio.library.local.metadata.extractor.InvalidMediaFormatException:. Unknown video file type
   at org.serviio.library.online.metadata.FeedUpdaterThread.retrieveAVMetadata(FeedUpdaterThread.java:272)
   at org.serviio.library.online.metadata.FeedUpdaterThread.retrieveTechnicalMetadata(FeedUpdaterThread.java:208)
   at org.serviio.library.online.metadata.FeedUpdaterThread.run(FeedUpdaterThread.java:101)
Caused by: org.serviio.library.local.metadata.extractor.InvalidMediaFormatException: Unknown video file type.
   at org.serviio.library.metadata.FFmpegMetadataRetriever.validateCodecsFound(FFmpegMetadataRetriever.java:344)
   at org.serviio.library.metadata.FFmpegMetadataRetriever.retrieveMetadata(FFmpegMetadataRetriever.java:87)
   at org.serviio.library.online.metadata.FeedUpdaterThread.retrieveAVMetadata(FeedUpdaterThread.java:254)
   ... 2 more
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Jan 09, 2012 8:13 pm

Re: 4OD (UK only) - Web Resource

does this work?

  Code:
ffmpeg -i "rtmpe://ll.securestream.channel4.com:1935/a4174/e1/?ovpfv=1.1&e=1326134474&ip=82.32.84.83&h=ee8a16921686759564c30374ec6c91f7 playpath=mp4:xcuassets/CH4_08_02_16_44002001001002_005.mp4?e=1326134474&ip=82.32.84.83&h=ee8a16921686759564c30374ec6c91f7 swfurl=http://www.channel4.com/static/programmes/asset/flash/swf/4odplayer-11.8.5.swf swfVfy=1"


Th URL might be expired by now, try to run it just after a feed refresh and get the fresh URL from the log.
<<

spikeymikey

Serviio newbie

Posts: 1

Joined: Mon Feb 14, 2011 7:12 pm

Post Wed Jan 11, 2012 9:21 pm

Re: 4OD (UK only) - Web Resource

Hi,

I'd like to have the ability to simply enter the top-level URL: 'http://www.channel4.com/programmes/4od/all' for all 4OD programs and then be able to browse all available content on my TV in a single '4OD' folder without having to add programs as individual online sources.

If the Serviio plugin were able to parse the HTML on the page located at this URL and automatically discover/add all links in the following format, i believe this would be viable:

<a class="promo-list-item-link" href="/programmes/xxxxxxxx/4od">

Where xxxxxxxx is the program name. e.g.

<a class="promo-list-item-link" href="/programmes/the-battle-of-hood-and-bismarck/4od"> would get parsed and added to the 4OD folder as 'The Battle Of Hood And Bismarck'.

The feed expiry interval could be used to trigger a re-parse/refresh of available programmes.

Do you think this is possible and/or likely to be implemented in a future version?

Mike
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Jan 11, 2012 9:47 pm

Re: 4OD (UK only) - Web Resource

it'd be possible but would be huge set of files. Would take a long time to index.
<<

WildRushSykes

User avatar

DLNA master

Posts: 290

Joined: Sat Aug 27, 2011 4:38 pm

Location: Eastbourne (UK)

Post Wed Jan 11, 2012 10:51 pm

Re: 4OD (UK only) - Web Resource

I have a ridiculously fast connection so this option would be great zip is this possible now or would a new plugin or modification be needed?
Serviio 1.4.1 - Windows 8.1 Pro x64 with Media Center - HP Pavillion G series - PS3 and 4 - 3TB Drive wih 500+ Bluray MKV Movies

Beta Tester and All Plugins Pack Creator

Image
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Jan 11, 2012 11:03 pm

Re: 4OD (UK only) - Web Resource

Don't know, might have a look in future but I'm busy now with other stuff.
<<

NX3

DLNA master

Posts: 578

Joined: Fri Jan 28, 2011 12:39 pm

Post Thu Jan 12, 2012 7:46 pm

Re: 4OD (UK only) - Web Resource

Th URL might be expired by now, try to run it just after a feed refresh and get the fresh URL from the log.[/quote]

With Serviio 6.1 install on Win 7 and Ubuntu boxes, both refreshed at the same time and as before Win7 works, Ubuntu didn't. I got the same error message, it basically reports "Unknown video file type", as below. Any ideas ?

  Code:
[FeedUpdaterThread] Failed to retrieve online item information for rtmpe://ll.securestream.channel4.com:1935/a4174/e1/?ovpfv=1.1&e=1326397430&ip=82.32.84.83&h=1dbff1f504405b2ca2854e2af83a6e66 playpath=mp4:xcuassets/CH4_08_02_16_44002001001002_005.mp4?e=1326397430&ip=82.32.84.83&h=1dbff1f504405b2ca2854e2af83a6e66 swfurl=http://www.channel4.com/static/programmes/asset/flash/swf/4odplayer-11.8.5.swf swfVfy=1. It might not play.
java.io.IOException: org.serviio.library.local.metadata.extractor.InvalidMediaFormatException: Unknown video file type.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Fri Jan 13, 2012 12:56 am

Re: 4OD (UK only) - Web Resource

did the ffmpeg -i "rtpm://" give any error or output?
<<

marculos

Streaming enthusiast

Posts: 34

Joined: Thu Oct 20, 2011 10:27 pm

Post Sat Jan 21, 2012 9:27 pm

Re: 4OD (UK only) - Web Resource

hi, I have added the 4od plug in to the plugin directory. When I try and add feeds such as
http://www.channel4.com/programmes/faking-it/4od

as an RSS feed I cannot see the entries on the online sources list. When I check the log I see entries such as

Message: Error during feed parsing : Invalid XML: Error on line 324: The value of attribute "data-seriesSynopsis" associated with an element type "null" must not contain the '<' character.

Any ideas what I am doing wrong?
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Sat Jan 21, 2012 9:58 pm

Re: 4OD (UK only) - Web Resource

You have to select 'web resource' rather than 'RSS/Atom feed'
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

marculos

Streaming enthusiast

Posts: 34

Joined: Thu Oct 20, 2011 10:27 pm

Post Sun Jan 22, 2012 8:46 am

Re: 4OD (UK only) - Web Resource

D'oh stupid me .. thanks !!
<<

eekfonky

Streaming enthusiast

Posts: 23

Joined: Sun Jan 22, 2012 12:41 pm

Location: Edinburgh, Scotland

Post Sun Jan 22, 2012 12:43 pm

Re: 4OD (UK only) - Web Resource

I get the following:
  Code:
HandShake: Type mismatch: client sent 6, server answered 9
HandShake: Server not genuine Adobe!
RTMP_Connect1, handshake failed.
rtmpe://ll.securestream.channel4.com:1935/a4174/e1/?ovpfv=1.1&e=1326134474&ip=82.32.84.83&h=ee8a16921686759564c30374ec6c91f7 playpath=mp4:xcuassets/CH4_08_02_16_44002001001002_005.mp4?e=1326134474&ip=82.32.84.83&h=ee8a16921686759564c30374ec6c91f7 swfurl=http://www.channel4.com/static/programmes/asset/flash/swf/4odplayer-11.8.5.swf swfVfy=1: Operation not permitted


I'm using Ubuntu 11.10 64 bit and I have flash player installed, iPlayer works fine as an RSS I have made sure to use 4oD as a 'web resource'
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sun Jan 22, 2012 1:07 pm

Re: 4OD (UK only) - Web Resource

your FFmpeg doesn't include librtmp 2.4. YOu can build it yourself (sources on serviio's download page)
<<

eekfonky

Streaming enthusiast

Posts: 23

Joined: Sun Jan 22, 2012 12:41 pm

Location: Edinburgh, Scotland

Post Sun Jan 22, 2012 2:06 pm

Re: 4OD (UK only) - Web Resource

sorry to be newbie but how do I build it?
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Sun Jan 22, 2012 2:09 pm

Re: 4OD (UK only) - Web Resource

Have a go at following this guide

http://wiki.serviio.org/doku.php?id=build_ffmpeg_linux

Post back if you get stuck/to let us know if it went ok.

Edit you will want to use http://download.serviio.org/opensource/ ... 0.9.tar.gz and http://download.serviio.org/opensource/ ... 4e5.tar.gz
instead of the sources in the git repositories

ie replace
  Code:
git clone git://git.ffmpeg.org/rtmpdump
with
  Code:
wget http://download.serviio.org/opensource/rtmpdump-c58cfb3e9208c6e6bc1aa18f1b1d650d799084e5.tar.gz
tar -xzf rtmpdump-c58cfb3e9208c6e6bc1aa18f1b1d650d799084e5.tar.gz

and
  Code:
git clone --depth 1 git://git.videolan.org/ffmpeg
with
  Code:
wget http://download.serviio.org/opensource/ffmpeg-0.9.tar.gz
tar -xzf ffmpeg-0.9.tar.gz
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

eekfonky

Streaming enthusiast

Posts: 23

Joined: Sun Jan 22, 2012 12:41 pm

Location: Edinburgh, Scotland

Post Sun Jan 22, 2012 3:21 pm

Re: 4OD (UK only) - Web Resource

followed the instructions to the letter and still no joy. When I go to Synaptic Package Manager I have 'rtmpdump' from git sources but only have 'libtrmp0' and NOT 'librtmp 2.4'
Sorry to be a nusance and thank you for the help :D

I now get:
  Code:
  built on Jan 22 2012 14:49:03 with gcc 4.6.1
  configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab
  libavutil      51. 34.101 / 51. 34.101
  libavcodec     53. 57.105 / 53. 57.105
  libavformat    53. 30.100 / 53. 30.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 59.101 /  2. 59.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  6.100 /  0.  6.100
  libpostproc    52.  0.100 / 52.  0.100
rtmpe://ll.securestream.channel4.com:1935/a4174/e1/?ovpfv=1.1&e=1326134474&ip=82.32.84.83&h=ee8a16921686759564c30374ec6c91f7 playpath=mp4:xcuassets/CH4_08_02_16_44002001001002_005.mp4?e=1326134474&ip=82.32.84.83&h=ee8a16921686759564c30374ec6c91f7 swfurl=http://www.channel4.com/static/programmes/asset/flash/swf/4odplayer-11.8.5.swf swfVfy=1: No such file or directory
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Sun Jan 22, 2012 3:36 pm

Re: 4OD (UK only) - Web Resource

Should be ok for it to say librtmp0.

Can you go back into the ffmpeg directory and re-run the ./configure --lots of options command. That will double check that it found the library when building. Although looking at what you just posted, it looks like it has build ok.

you should see something near the top that say
  Code:
librtmp enabled           yes


could you also post the output of
  Code:
ffmpeg -formats


Edit is that url you just tried a new one or an old one from before you tried to re-build ffmpeg, as they expire pretty quickly
Last edited by will on Sun Jan 22, 2012 4:24 pm, edited 1 time in total.
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

eekfonky

Streaming enthusiast

Posts: 23

Joined: Sun Jan 22, 2012 12:41 pm

Location: Edinburgh, Scotland

Post Sun Jan 22, 2012 4:02 pm

Re: 4OD (UK only) - Web Resource

Sorry I don't know how to do that?
Next

Return to Available plugins

Who is online

Users browsing this forum: No registered users and 15 guests

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