I develop plugins for Serviio, that extract the rtmp urls of the live streams used by many web sites from their flashvars, and allow those streams to be played on DLNA devices such as TV's and Tablets.
Since some of those urls contain time dependent keys, serviio includes support to reextract the urls and obtain the current key just before a stream is played.
To date I have not had a site that I could not decode, and with KSV's mods all streams play successfully.
Recently a new site hdstreams.tv has replaced igoal.tv (using servers at kbps.tv and cast247.tv) and despite the above, the keys extracted from the flashvars all fail and the stream url's will not play.
I am able to obtain the correct url and key by playing a stream in the browser using hidownloader, and by reformatting it and playing with rtmpdump-ffplay I have confirmed that the url is correct and that the key remains valid for a few minutes, and that it will play with KSV's rtmplib. (see debug output works1 and works2 attached)
However, when the same url format is extracted by my plugin and played within seconds, it fails. (see second debug output fails attached)
Perhaps the key is being transposed from the value obtained by my plugin from the flashvars, but unfortunately Wireshark does not display the RTMP "connect" command when the streams from this site are played as it does for many sites,(can anyone explain why?), so I cannot verify that.
At this point I am stumped and would offer this a challenge to those of you in the same game.
THE COMMAND
Code:
rtmpdump.exe -r "rtmp://12445055.cast247.tv:443/live" -y "skysp1?ticket=4fbbc88ce114f871874decfed41af24e" -W "http://www.cast247.tv/swf/player.swf" -p "http://www.cast247.tv/embed.php?channel=skysp1&width=474&height=350&domain=www.kbps.tv" -z -m 15 | ffplay.exe -i -