Set-top box and PC-oriented real-time streaming media server and working method

The invention discloses a set-top box and PC-oriented real-time streaming media server, and relates to the fields of network multimedia television technology, video transmission and video encoding process. The server at least comprises a memory unit, a network communication unit, a video decoding unit, an audio decoding unit, a data buffer unit, an audio and video synchronization unit, a live broadcast signaling processing unit, a video encoding unit, an audio encoding unit, a live broadcast data transmission unit and the like. The server can simultaneously output the video of different code formats to different play terminals from one path of real-time input video.