this thesis is going to give a detailed introduction on the mpeg2 transrating system . the system analyzes the mpeg2 transport stream first, extracts the elementary stream from it, recompress the elementary stream using the close loop transrating algorithm, and packets the recompressed elementary stream to construct the output transport stream at the end 该系统可以对mpeg2系统层传输流进行分析,从中提取出压缩层的视频基本流,并使用闭环降码率算法对其进行重新压缩,然后将经过降码率处理后的视频基本码流重新打包,生成系统层传输流发送。