2012-07-30, 10:16
No luck with proxy either ... hmm. ... investigating further.
(2012-07-30, 08:04)ailingcoot Wrote: It did play but only for about 7 seconds?
(2012-07-30, 08:04)ailingcoot Wrote:(2012-07-30, 01:01)dlake02 Wrote: @castallaIt did play but only for about 7 seconds?
Debug log please ?
(2012-07-29, 05:07)dlake02 Wrote: OK - here goes.
I've built a script based on K-S-V's "AdobeHDS.php" for stream recorder that kicks-off a download to disk of the Olympics channel, and then plays it via XBMC. I've asked and asked and asked on XBMC forum if there is anyway to pipe the output from one program direct into DVDPlayer, but no answer.
So, the only way that I can think of doing this is to write to a file, and then have XBMC read it after a suitable gap (default is 10 seconds).
The plugin is here http://code.google.com/p/bbcsports-addon...ip&can=2&q=
So, install, setup your proxy, your stream quality (start LOW and work up - if the playing overtakes the downloading, the player will fail), set up a directory that has plenty of GIGs free to act as a temporary staging post for the flv file, and give it a whirl.
Adobe HDS uses HTTP, so don't expect to be able to get anything over about 800kbit/s quality if you're through a proxy. I have tested it in Windows and Linux from outside the UK.
This has been a real pain to put together - porting the Adobe HDS from PHP to Python took an age.
I can't find any information that gives me a programme schedule to scrape for the 24 channels - I'm in Vancouver for this week on business, so unlikely to find ANY time to support/adapt/fault-find this plugin. Code is open; feel free to contribute/fix/adapt.
(2012-07-30, 07:34)BlueCop Wrote: AddonScriptorDE: I was able to get those Akamai SecureHD streams working with help with KSV. He pointed me in the right direction for the token generation. Also that large data64 block is really a swf file encoded in the meta-data of the FLV file. It contains the action script that generates the tokens that KSV showed me how to generate.WOW!!! Absolutely awesome You're incredible...
It works by just downloading the file locally and having xbmc play it as it downloads. It uses flvlib to read the onEdge blocks and sends the proper command to the server. I am just going to put together a script module that one can feed the stream url and swf url so it will start the stream playing in XBMC for you.
I was hoping for something better then saving the file locally but I couldn't work out a good way to feed it to XBMC Player.
Let me know if you are interested in trying what I have currently.
Edit:
I am actually making a modified version of XBMCLocalProxy from http://forum.xbmc.org/showthread.php?tid=95369
You basically base64 encode the video url of the stream and the url of the swf player to be used as parameters for the local proxy. The local proxy will then serve video to XBMC and handled all the tokens, signing and hashes for you.
It has to jump through a few hoops to get everything going. When XBMC connects we have to start the flv download to get the first onEdge dictionary. It uses the session and streamname values in the onEdge dictionary. It downloads the swf player to calculate an MD5 of the decompressed player. It will decompress the swf for you if it isn't already. That MD5 is appended to the sessionID. That string is then hmac sha1 signed and that digest is encoded to base64. This base64 balue is the x-Akamai-Streaming-SessionToken header value. It then sends the sendNewToken command to the correct streamname. The flv data is passed on to XBMC for playback. It will then continue to play and not drop after a short time.
Hopefully this will make it easier to use these streams with XBMC in the future.
I still need to work out a couple problems with content length being sent so XBMC doesn't think it is buffering a 2GB file. I also need to work on it properly shutting down the proxy server.
(2012-07-30, 16:27)dlake02 Wrote:"Closed This channel has now ended?" Maybe I watched them at a wrong time ?(2012-07-30, 08:04)ailingcoot Wrote:(2012-07-30, 01:01)dlake02 Wrote: @castallaIt did play but only for about 7 seconds?
Debug log please ?
Then your bandwidth is not high enough for the stream quality you've selected..... Outside the UK, you'll be VERY lucky to get anything above 1.2M working. Start low and work up. I had to go with 1296 and 25 seconds buffer pause.
(2012-07-31, 18:55)castalla Wrote: predakanga:
Not working for me on Win7. Just a script error at outset - doesn't even display stream listings