摘要 |
A self-adaptive switching method and system for multi-encoding format program streams. The method comprises: grouping, according to a bandwidth and an encoding format, program streams, providing two decoders while creating dual threads, switching according to an adaptive bandwidth determined by a network velocity, when the program streams of different encoding formats are required to be switched, switching and playing a group of the program streams that are not played, wherein a group of the program streams which is in use is not required to be reset, thus realizing the self-adaptive seamless switching, thereby avoiding the occurrence of phenomena such as discontinuity in playing, frame skip or pausing of a video picture, greatly guaranteeing the switching of high-definition program streams, bringing about great convenience to the watching of a user, and improving the user experience. Meanwhile, a TS stream in a group with the large bandwidth is downloaded in a segmentation manner, thereby further avoiding the jamming and pausing problem, further bringing about convenience to the watching of the user, and better improving the user experience. |