Page 1 of 9

4OD (UK only) - Web Resource

PostPosted: Thu Jan 05, 2012 8:58 pm
by zip
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

Re: 4OD (UK only) - Web Resource

PostPosted: Fri Jan 06, 2012 12:19 am
by Xmantium
Best place to find all the URL's of 4OD programmes can be found here - http://www.channel4.com/programmes/4od/all

Re: 4OD (UK only) - Web Resource

PostPosted: Mon Jan 09, 2012 6:47 pm
by NX3
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

Re: 4OD (UK only) - Web Resource

PostPosted: Mon Jan 09, 2012 8:13 pm
by zip
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.

Re: 4OD (UK only) - Web Resource

PostPosted: Wed Jan 11, 2012 9:21 pm
by spikeymikey
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

Re: 4OD (UK only) - Web Resource

PostPosted: Wed Jan 11, 2012 9:47 pm
by zip
it'd be possible but would be huge set of files. Would take a long time to index.

Re: 4OD (UK only) - Web Resource

PostPosted: Wed Jan 11, 2012 10:51 pm
by WildRushSykes
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?

Re: 4OD (UK only) - Web Resource

PostPosted: Wed Jan 11, 2012 11:03 pm
by zip
Don't know, might have a look in future but I'm busy now with other stuff.

Re: 4OD (UK only) - Web Resource

PostPosted: Thu Jan 12, 2012 7:46 pm
by NX3
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.

Re: 4OD (UK only) - Web Resource

PostPosted: Fri Jan 13, 2012 12:56 am
by zip
did the ffmpeg -i "rtpm://" give any error or output?

Re: 4OD (UK only) - Web Resource

PostPosted: Sat Jan 21, 2012 9:27 pm
by marculos
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?

Re: 4OD (UK only) - Web Resource

PostPosted: Sat Jan 21, 2012 9:58 pm
by will
You have to select 'web resource' rather than 'RSS/Atom feed'

Re: 4OD (UK only) - Web Resource

PostPosted: Sun Jan 22, 2012 8:46 am
by marculos
D'oh stupid me .. thanks !!

Re: 4OD (UK only) - Web Resource

PostPosted: Sun Jan 22, 2012 12:43 pm
by eekfonky
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'

Re: 4OD (UK only) - Web Resource

PostPosted: Sun Jan 22, 2012 1:07 pm
by zip
your FFmpeg doesn't include librtmp 2.4. YOu can build it yourself (sources on serviio's download page)

Re: 4OD (UK only) - Web Resource

PostPosted: Sun Jan 22, 2012 2:06 pm
by eekfonky
sorry to be newbie but how do I build it?

Re: 4OD (UK only) - Web Resource

PostPosted: Sun Jan 22, 2012 2:09 pm
by will
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

Re: 4OD (UK only) - Web Resource

PostPosted: Sun Jan 22, 2012 3:21 pm
by eekfonky
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

Re: 4OD (UK only) - Web Resource

PostPosted: Sun Jan 22, 2012 3:36 pm
by will
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

Re: 4OD (UK only) - Web Resource

PostPosted: Sun Jan 22, 2012 4:02 pm
by eekfonky
Sorry I don't know how to do that?