Hi Does anyone know as to how to calculate the intial offset of the PCR, DTS, and PTS value while coding a mpeg2 transport stream. when i start of with a PCR value of zero the stream is thrown out saying underflow error. i would also like to know as to what goes into deciding as to whether an audio packet or an audio transport packet should go into the multiplex stream at any given point of time. Any references to papers or links would be of much help. Thanx in advance Regards -- ------------------------------------------------------------------------o. Vinod Kumar M.V. || || Project Assistant, Multimedia Systems Lab, || SuperComputer Research And Education Center, || Indian Institute Of Science, || Bangalore. || || Ph No. ( Office ) : 3092896 || Ph No. ( Res.) : 3337338 || E-Mail Id. : vinod@xxxxxxxxxxxxxxxxxxxxxxx || || Experience the power of the Penguin || (~) _ _ _ _ _ _ _ _ _ _ || 'v' /_/ /_/_/_/ /_/\ /_/ /_/ /_/ \_\ /_/ || // \\ /_/ /_/ /_/_/\_/_/ /_/ /_/ \_\/_/ || /( )\ /_/_ _ _/_/_ /_/ \_/_/ /_/_ _/_/ /____\ || ^`~'^ /_/_/_/ /_/_/_/ /_/ \_/ /_/_/_/_/ /_/ \_\ || ------------------------------------------------------------------------o!