2010-05-18, 00:04
Now that XBMC works with the new librtmp it is possible to stream rtmpe content from the 4oD website to a build of XBMC with the appropriate patch.
I've started on a plugin (I used this as a starting point) to look through their site. Currently it looks at the shows listed at http://www.channel4.com/programmes/4od for the current day. It returns all of the videos for those TV Shows. It retrieves Thumbnails, Fanart and media information for the shows and episodes and puts them together rather well in Library Mode. If you use PM3.HD it will default to the List view (rather than the usual Full List view) for the episodes.
The first 3 settings (under Image Acquisition) are the only ones that work. The others are just for show at the moment.
The one stumbling point at the moment is I haven't yet found a way to retrieve/generate the needed authkey. If I put in an authkey previously generated by rtmpsrv it works.
It's rather slow at retrieving the data at the moment and the code needs to be worked over, but it's a start.
To test:
Alternatively you can use GetFLV to get the authkey but it's a paid-for program.
My latest code is here:
4oD_20100518_0852.rar
This fixes:
Please report any TV Shows that do not work correctly.
Older code:
4oD_20100517_2253.rar
I've started on a plugin (I used this as a starting point) to look through their site. Currently it looks at the shows listed at http://www.channel4.com/programmes/4od for the current day. It returns all of the videos for those TV Shows. It retrieves Thumbnails, Fanart and media information for the shows and episodes and puts them together rather well in Library Mode. If you use PM3.HD it will default to the List view (rather than the usual Full List view) for the episodes.
The first 3 settings (under Image Acquisition) are the only ones that work. The others are just for show at the moment.
The one stumbling point at the moment is I haven't yet found a way to retrieve/generate the needed authkey. If I put in an authkey previously generated by rtmpsrv it works.
It's rather slow at retrieving the data at the moment and the code needs to be worked over, but it's a start.
To test:
- Run the plugin and choose a TV Show from the generated list
- Run rtmpsrv - you need to use ak.securestream.channel4.com as the host (see here for a guide on using rtmpsrv)
- Go to the 4oD website in your browser and choose an episode from your TV Show and start playing it
- After all of the adverts have finished () rtmpsrv should start outputting some rtmpe links
Example rtmpsrv output:
Code:rtmpdump -r "rtmpe://ak.securestream.channel4.com:1935/4oD/?ovpfv=1.1&[b]auth=da_bfa9bycrdnc6c2aUbnc.cjcDcqcecEcd-bl8zN.-eS-ixN-n9rhm8sCovqenLm7seteqeoBkdnnpGlSonqdnJsFofqfnHm8tstCqEoEkDnqo9lEncr6n4seo6q4mfm8[/b]&aifp=v002&slist=assets/CH4_08_02_16_47867018001002_001.mp4" -a "4oD/?ovpfv=1.1&[b]auth=da_bfa9bycrdnc6c2aUbnc.cjcDcqcecEcd-bl8zN.-eS-ixN-n9rhm8sCovqenLm7seteqeoBkdnnpGlSonqdnJsFofqfnHm8tstCqEoEkDnqo9lEncr6n4seo6q4mfm8[/b]&aifp=v002&slist=assets/CH4_08_02_16_47867018001002_001.mp4" -f "WIN 10,0,45,2" -W "http://www.channel4.com/static/programmes/asset/flash/swf/4odplayer-4.49.7.swf" -p "http://www.channel4.com/programmes/the-cleveland-show/4od#3069688" -C Z: -y "mp4:assets/CH4_08_02_16_47867018001002_001.mp4" -o CH4_08_02_16_47867018001002_001.mp4
- Copy the auth string from rtmpsrv's output and add it to default.py at line 237 (auth='da_blahblah')
- Don't forget to change your hosts file back to normal!
- Save default.py and Click on your TV Show in the XBMC plugin (this will generate the episode list with the chosen authkey)
- Click on the episode you chose before and enjoy!
Alternatively you can use GetFLV to get the authkey but it's a paid-for program.
My latest code is here:
4oD_20100518_0852.rar
This fixes:
- Sorting (only in library mode - it's still broken in file mode [can't change sort direction, order locked to descending)
- Shows missing airdates [A inaccurate hack atm - but at least you get the episodes listed]
- Episodes with no Series OR Episode now display
- Series with multiple Season now display correctly
- Rubbish Episode Name detection has been improved
Please report any TV Shows that do not work correctly.
Older code:
4oD_20100517_2253.rar