I'm recording 339 incoming RTMP streams simultaneously on Amazon EC2. It works fine once I connect to all 339 streams and hit record for each of them, but the problem is that it takes me hours and hours to connect to each stream by clicking the "connect" button 339 times, and then more hours to click the record button 339 times . How can I just initiate the connection to all 339 incoming streams at once, and then turn on the recording for all 339 at once? It seems like there has to be a way to do it in a matter of seconds instead of hours. I'm somewhat fluent with SSH and FTP, but not API, so if the answer lies within API, please be pretty specific (specific as in: how to do API or where to go to learn it).