gcode-mirror / UStream-recorder-pl

Follow-up: UStream-recorder-py
https://github.com/kenorb/UStream-recorder-py
1 stars 0 forks source link

Script broken because UStream has deprecated AMF #1

Open michael-myers opened 7 years ago

michael-myers commented 7 years ago

Extraction of the Channel ID doesn't work, but I commented out those lines and hardcoded that variable. When the script get()'s the AMF file though, it cannot parse out an RMTP link because UStream has apparently deprecated their AMF support. If you use, for example, curl to look at one of their AMF links, it is basically a dead option.

$ ./ustroku.pl http://www.ustream.tv/channel/fbh9Dc2zmvp jellies rtmp_url not found. amf_url:http://cdngw.ustream.tv/Viewer/getStream/1/22876556.amf at ./ustroku.pl line 86.

$ curl http://cdngw.ustream.tv/Viewer/getStream/1/22876556.amf AppendToGatewayUrl.+?PHPSESSID=d5f4ab7596a690a1e80b6419e0f304c5 /1/onResultnull�successerrorcodeE_NOT_IMPLEMENTEDmessageCThis call is deprecated. Contact customer support for more details.

kenorb commented 7 years ago

@michael-myers Try: UStream-recorder-py.

michael-myers commented 7 years ago

Thank you for the suggestion, but it too relied on parsing an AMF file, and fails similarly. $ python UStream-recorder.py http://www.ustream.tv/channel/22876556 Opening url: http://www.ustream.tv/channel/22876556 AMF URL: http://cdngw.ustream.tv/Viewer/getStream/1/22876556.amf Error! Can't find rtmp stream in AMF object.