Method for processing TCP (transmission control protocol) video data stream

The invention provides a method for processing TCP (transmission control protocol) video data stream, which is suitable for design of streaming media video server software and supports mainstream video encoding modes such as MJEGP (moving joint photographic experts group), MPEG4 (moving picture experts group 4) and H.264. The method comprises creation of a contiguous buffer and a ring-shaped processing node queue, reception and identification of video data, and parallel exclusion of data reading and writing. The video data can be copied from a network drive layer into the contiguous buffer within one step, a video frame in the contiguous buffer can be indexes via a processing node, the parallel exclusion of data reading and writing can be realized, the real-time performance and stability of video processing can be enhanced, and the operating efficiency of the system can be improved.