title: mpeg-ts fundamental
body: <p>I read some tutorials about mpeg transport stream, but there are 2 fundamental issues I do not understand:
  1. mpeg-ts muxer recieve pes packets from audio and video, and output mpeg-ts packets. How does it do this muxing ? Is it that whenever a packet from any program is waiting on its input, that the muxer wakes up and process the pes slicing into mpeg-ts ?
  2. Is it that the user can select which bit rate the mpeg-ts muxer will output ? what is the connection between the rate of the encoding to the rate of mpeg-ts ?</p>
  
  <p>Thank you very much,</p>
  
  <p>Ran</p>