[RELEASE] iPlayer - BBC Video and Music Plugin (UK only!) - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27) +---- Forum: Video Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=154) +---- Thread: [RELEASE] iPlayer - BBC Video and Music Plugin (UK only!) (/showthread.php?tid=51322) Pages:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
|
- exobuzz - 2010-05-16 you can get my prebuilt ubuntu binaries here http://malus.exotica.org.uk/~buzz/xbmc/linux/ there is source there too, incase you need to compile it (if for example there are dependency issues). You can also get the patches out of that source tree, as they are in debian/patches and are managed by quilt. quilt pop would remove the patch quilt push would apply it. -- PS. I have updated the IPlayer plugin again. I put the 400kbit fallback back in, as i noticed a few recent HD recordings only had 3200 and 400. (Perhaps they are queued to be encoded, or it's how the beeb want it). I also did some code cleanups. PPS. My update patches for xbox dvdplayer ffmpeg got into the main xbox branch. Hopefully the libRTMP stuff will be next (thanks arnova). - THISWEB - 2010-05-16 Exobuzz, this is fantastic news. Well done. Is there any chance you could compile a Windows version or is that a completely different ball game? - eddebaby - 2010-05-16 Hi exobuzz. Thanks so much for putting these patches and builds together - my xbox was a little lonely without the Iplayer. If I may, I have an off-topic question (not Iplayer related but to do with libRTMP) Thanks to your libRTMP patch I though I'd look into getting a 4oD plugin working. I'm just stuck on one thing though. How do I generate the auth key? I can get a stream to play from the xbox (from my plugin generated url) as long as I supply an authkey nicked from getflv. It is only valid for one file and seems to expire in about 5 minutes. Example built rtmpe stream (this worked at some point before the authkey expired!): Code: rtmpe://ak.securestream.channel4.com:1935/4oD/?ovpfv=1.1&auth=[b]da_a1dVaYdXaEcXcWbfdwdibdbncBakajbU-bl76LM-eS-gAT-kttDkpt7swpem8srnunsr3k2tTqvnsq7kYsckFtJsDphmMsfn6ndrbk3sfp8noqdkVtSkIt9sCoem2sw[/b]&aifp=v002&slist=assets/CH4_08_02_16_48398023001001_001.mp4 playpath=mp4:assets/CH4_08_02_16_48398023001001_001.mp4 swfurl=http://www.channel4.com/static/programmes/asset/flash/swf/4odplayer-4.49.7.swf swfvfy=true flashver=10,0,42,34 conn=Z: pageurl=http://www.channel4.com/programmes/how-i-met-your-mother/4od#3068826 app=4oD/?ovpfv=1.1&auth=[b]da_a1dVaYdXaEcXcWbfdwdibdbncBakajbU-bl76LM-eS-gAT-kttDkpt7swpem8srnunsr3k2tTqvnsq7kYsckFtJsDphmMsfn6ndrbk3sfp8noqdkVtSkIt9sCoem2sw[/b]&aifp=v002&slist=assets/CH4_08_02_16_48398023001001_001.mp4 I can only get a valid authkey from getflv (closed source). I have yet to replicate it's generation with rtmpdump. All I could find in the Iplayer code was: Code: auth = conn.get('authString') Here's my messy plugin (lots of commented out code, unoptimised etc) for your perusal: 4oD_20100517_2253.rar A couple of extra notes:
Please let me know if this shouldn't be here an I'll create a new post. Edit: I should have done - New Post here. - Hitcher - 2010-05-16 THISWEB Wrote:Exobuzz, this is fantastic news. Well done. Is there any chance you could compile a Windows version or is that a completely different ball game? This would be great because it's totally beyond me. - exobuzz - 2010-05-16 eddebaby Wrote:Thanks to your libRTMP patch I though I'd look into getting a 4oD plugin working. I'm just stuck on one thing though. How do I generate the auth key? The auth key will either be generated from a user/password or be given by the service when a request for a file is made. For the IPlayer the auth keys are given in some xml provided by the bbc. - eddebaby - 2010-05-16 exobuzz Wrote:The auth key will either be generated from a user/password or be given by the service when a request for a file is made. For the IPlayer the auth keys are given in some xml provided by the bbc. Thank you. I guess 'authString' is an XML field then. No wonder I couldn't find it in the code. The problem is the token field given in the xml file from 4oD is drastically different in format to the authtoken used in the rtmpe stream. XML <token> field (http://www.channel4.com/programmes/how-i-met-your-mother/4od/asset/3067315) Code: <token>MlLH/9DMq8EDwTI0vQuuk+B1knpSn2QUXDrV8OHQ86cX1NG1JLH21/TA4aChNrRT2Z+5Lu42Bf0A Example actual authtokens: Code: da_a1dVaYdXaEcXcWbfdwdibdbncBakajbU-bl76LM-eS-gAT-kttDkpt7swpem8srnunsr3k2tTqvnsq7kYsckFtJsDphmMsfn6ndrbk3sfp8noqdkVtSkIt9sCoem2sw Any ideas? Does it need to be decrypted? - exobuzz - 2010-05-16 Could easily need to be modified in some way. Is there any other software that has the source that can stream them like get_iplayer for example? If so, worth a check. Also worth snooping traffic when playing them in the browser, so see what is sent/received to make sure nothing has been missed. - Sneeka - 2010-05-16 THISWEB Wrote:Exobuzz, this is fantastic news. Well done. Is there any chance you could compile a Windows version or is that a completely different ball game?+1 - exobuzz - 2010-05-16 Sneeka Wrote:+1 I've not looked at a windows build. I guess I could do it, but obviously as it's not a version I use I have a little less motivation. I'll think about it (the rtmp stuff should make it into trunk soon.. although I don't know when). - eddebaby - 2010-05-16 exobuzz Wrote:Could easily need to be modified in some way. wireshark hadn't really turned up very much, but I just gave URL Snooper a go and after checking all of the urls from the 4oD server this caught my eye: http://www.channel4.com/static/global/js/lib/util/hmacsha1.js It looks like it's creating the auth key, hopefully from the token in the xml. I'm pretty new to javascript but hopefully the answer is in there somewhere. I'm too tired now - didn't get to sleep last night. Hopefully tomorrow will bring results. Thanks for the pointers! Oh and it looks like the current get_iplayer only works with the BBC and no other sources. - exobuzz - 2010-05-16 Please can you start a new thread on this and we can continue there? Also this seems to the original more readable version of the file http://pajhome.org.uk/crypt/md5/sha1.html btw the token looks base64 encoded to me. When decoded it gives 136 bytes of data. However we need to see how that javascript sha1 code is used because this 136 bytes might consist of a key and some data that we need to process for example. I'm don't know that much about cryptography stuff I'm afraid. PS. the code which calls the javascript sha1 stuff is in /static/programmes/js/controller/brand/catchup.js. I can't even say for sure though whether this is directly linked to the token in the xml or not or some other stuff. But it's a start. - aneng - 2010-05-16 Can anyone else confirm if the bottom 2cm of any iPlayer programs look 'stretched' ? - or if it's just me ? Also... is it my ears or does there seem to be huge variations in audio volume ? - I'm constantly adjusting the TV volume as it switches between music and conversation. It sounds like it could do with some decent compression on there. Lastly.... occasional 'warbling' audio artifacts... is it just the choice of video stream that dictates the quality of the audio signal ? Big thanks to exobuzz for getting this working again. You're a star !! - mobile - 2010-05-16 Just installed the latest exobuzz xbmc and iplayer plugin and am please to find that it's working like a dream. I had an older exobuzz build installed and whilst it played most, there were some programs that wouldn't play. An example is the latest episode of Doctor Who - Amy's Choice, which yesterday wouldn't play with an older build and today, with the new build, it plays fine. exobuzz I would like to sincerely thank you for all the effort you have put into this. For a while I thought that this wouldn't get fixed, as I guessed that there is probably not that many xbox xbmc installs remaining, so I am so glad that you have done this. - mobile - 2010-05-16 aneng Wrote:Can anyone else confirm if the bottom 2cm of any iPlayer programs look 'stretched' ? - or if it's just me ?I can confirm that I get the same. - exobuzz - 2010-05-17 I'm guessing the bottom portion is only related to the way ffmpeg is decoding the stream. I don't think you are missing data. Just zoom in. anyway. im extremely happy if with my latest builds this is the only problem! success ;-) |