title: Video streaming. Any way of setting bitrate depending on bandwidth?
body: <p>Simply, I have a streaming client that streams to a local server and I grab data from it and push it to my own server with my own software.</p>
  
  <p>I do it that way because the bandwidth is really variable (from 0.5mb to 5mb, changing constantly) and the streaming client warns about that, stopping the transmission, so my software grabs the data and retransmits it without warning about that and just resending packets not ACKed.</p>
  
  <p>The thing now is, is there any protocol, library, something that I can use to change video kbps just in case it does not receive enough ACKs from the server, or that I can change it programmatically via API or something?</p>
  
  <p>Fast question: As I can grab the video data as I want and encode it as I want, is there any way of changing video encoding on-the-fly with any software? I looked for ffmpeg but I can't do that from the command line.</p>