A kind of video communications system based on the IP set-top box
Technical field
The present invention relates to digital home's application and video communication technical field, exactly, relate to a kind of video communication system based on the IP set-top box.
Background technology
Along with the continuous development of computer technology and Internet technology, the digitized degree of various information is more and more higher, and the Internet becomes the most convenient and means efficiently of information transmission, and increasing user brings into use computer to handle the routine work affairs.But just present, the computer fancy price still makes many low-income groups hang back, and the popularity rate of television set is higher than user's occupation rate of computer far away, and the simultaneous computer operation has inconvenient and inflexible characteristics.In this case, how to come connected networks with traditional television set, finish the reception of digital information and be treated as the topic of a hot topic, appearing at of IP set-top box solved this problem to a certain extent.The popularity rate of China's television set is higher than PC far away, if can make TV user also can enjoy the benefit that bring in the broadband the broadband streaming media service extension to set-top box, this will bring great business opportunity to operator.
Digital home's center theory comprises that the PC center is discussed, STB center opinion is touched upon at the TV center, and they respectively have characteristics, all are difficult to bear alone the important task of digital home with regard to single product.Occurred another product in recent years on the market and born increasing function of digital home and responsibility gradually, digital video communication that Here it is.The video communication technology has also realized monitoring remote video, information issue, Smart Home control, online and value-added services such as video request program even mobile phone interlock except taking on functions such as video telephone, long-distance education, video conference.The role who has served as another center of digital home based on the digital video communication of set-top box gradually.
Summary of the invention
The objective of the invention is to by applied analysis the various service modes of existing IPTV and digital home, related business models such as tele-medicine, video conference and video telephone of video communication have particularly proposed a kind of video communications system and its implementation based on the IP set-top box in conjunction with the technical characterstic of IP set-top box.
In order to realize the present invention, the technical scheme of employing is as follows:
A kind of video communications system based on the IP set-top box, according to the Frame Design of layering, system comprises following hierarchical structure from top to bottom:
(1) GUI graphical user interface layer: the display navigation function based on set box browser is mainly realized at this interface, the SDF front end display module that native system adopts, it is responsible for media play and video communications system information shows, indicate current business or the initiation video conversation business etc. chosen, pass to System Controller simultaneously and call correlation module.
(2) System Controller system key-course: this is a whole video communication system key-course, be used as the GUI layer and initiate professional interpreter, and carry out module combinations according to the needed bottom business module of this time business, be that internal system is handled actual starting point.The effect of this layer in whole system, from the GUI layer it according to the service needed of reality, different business object in the definition Media Controller layer, and distribute to the different Business Entity of bottom, carry out the combination and the operation of practical business, simultaneously when business tine when service entity layer is returned, for business tine is prepared in the displaying again of GUI layer.Its logical block comprises that application system interface, the management of STB information of terminal user, Streaming Media send management, Streaming Media receiving management, Visual communications connection management, system resource management and GUI conveying management.
(3) Media Controller media control layer: this layer is the core that video communication is realized, mainly be transmission and the management of being responsible for video and voice data, and provide required media data for system's key-course, it comprises that the encapsulation transmission and the reception of video data and voice data unpack processing, this layer is of paramount importance to be the encapsulation that has realized all streaming video coffrets, can be from its lower floor according to the needs of system, call some streaming media service pattern as required, as video intercommunication or remote media broadcast etc.
(4) BOL service entity layer: two the most key in video communications system business factors are video and audio frequency, also comprise the local file data that are stored on the local set-top box simultaneously, these system business pass through VideoEncode, VideoDecode, AudioEncode, function such as AudioDecode and MediaStorage realizes, according to current Streaming Media feature they is depicted as similarly, and the medium by upper strata Media Controller transmit interface and transmit.
(5) Operation System operating system interface layer: it provides the interface that connects the operating system platform of invention.
(6) STB Hardware Interface top-set hardware interface layer: the required hardware camera of video communications system of the present invention and audio collecting device can be undertaken and being connected of set-top box by USB and interfaces such as audio frequency input.
A kind of video communications system based on the IP set-top box, this system can be divided into three main modular on function: streaming media server module, Streaming Media transport module and Streaming Media client modules, wherein
Described streaming media server module: mainly be the collection of being responsible for audio, video data, the original video data that obtains is by can be used as the frame of video of Network Transmission after the standard compression H.264, in like manner, the original audio data that obtains becomes the audio code stream that can be used as Network Transmission after compressing by the G726 standard audio, transfers to the Streaming Media transport module at last respectively and handles;
Described Streaming Media transport module: this module mainly is responsible for giving receiving terminal with the real-time audio and video transfer of data of transmitting terminal, also need be implemented in reception and the dump that client is responsible for audio, video data simultaneously, in the design and realization of video communications system, the design quality of Streaming Media transport module will directly influence the performance of whole system, as low delay and low error rate;
Described Streaming Media client modules: the main responsible audio, video data that transmits from audio/video server that receives, the video stream data that obtains passes through H.264 standard decoding and finally shows at video screen, in like manner, the voice data of acquisition is also finally play at television terminal by the G726 audio decoder.Receiving terminal can be stored and distributes the audio, video data that obtains;
Server of the present invention is meant the audio frequency and video transmitting terminal, client then is meant by the IP set-top box and receives the real-time audio and video data, this client comprises digital TV terminal, and parts such as camera and IP set-top box are formed, and client and server connects by IP network.
The realization of video communications system of the present invention is based on real time streaming transport protocol (RTSP) and real-time transport protocol (rtp), and the real-time communication The data of transmission is mode video sequence that compresses and the tonic train that adopts the G726 mode to compress H.264.
The present invention has following beneficial effect:
1, a kind of video communications system based on the IP set-top box, on digital home's service platform, make up, the broadband streaming media service extension to set-top box, make TV user also can enjoy the benefit that bring in the broadband, the modern video mechanics of communication is dissolved into digital home technical system the inside, both enrich digital home's application service model, provided new development space for the modern video mechanics of communication again.
2, a kind of video communications system based on the IP set-top box, the advantage of traditional video communication and the advantage of IP set-top box have been merged, and adopt more complete H.264 with G726 Compress softwares coding techniques, improved the quality of transfer of data, form novel video communications system and communication mode.
3, possess good autgmentability: what the present invention provided is the modular design of dividing by function, under the situation of following whole framework context constraint, can flexible configuration realize each module, simultaneously, for the operating system of the different IP set-top box of compatibility provides good support, in addition, the data that can also hold magnanimity.
Description of drawings
Fig. 1 is a systems soft ware system assumption diagram of the present invention;
Fig. 2 is functional module realization figure of the present invention.
Embodiment
The present invention is described further below in conjunction with accompanying drawing.
Software architecture diagram of the present invention as shown in Figure 1, according to the Frame Design of layering, system of the present invention is made up of GUI graphical user interface layer 1, System Controller system key-course 2, Media Controller media control layer 3, BOL Business Entity 4, Operation System operating system interface 5, STB HardwareInterface top-set hardware interface 6.Wherein,
GUI graphical interfaces layer 1 is positioned at the superiors of system, it is based on the display navigation function of set box browser, adopt SDF front end display module, being responsible for media play and video communications system information shows, indicate current business or the initiation video conversation business etc. chosen, pass to the correlation module that System Controller calls layer 2 simultaneously;
Down one deck is a System Controller system key-course 2, it is a whole video communication system key-course, be used as GUI graphical interfaces layer 1 and initiate professional interpreter, and carry out module combinations according to the needed bottom business module of this layer service, be that internal system is handled actual starting point, the effect of this layer in whole system, from GUI graphical interfaces layer 1 it according to the service needed of reality, different business object in the definition Media Controller media control layer 3, and distribute to the different Business Entity of bottom, carry out the combination and the operation of practical business, simultaneously when business tine when service entity layer is returned, for business tine is prepared in the displaying again of GUI graphical interfaces layer 1, the logical block of this layer comprises application system interface 21, STB information of terminal user management 22, Streaming Media sends management 23, Streaming Media receiving management 24, Visual communications connection management 25, system resource management 26 and GUI conveying management 27;
Media Controller media control layer 3 is positioned at the 3rd layer of system, this layer is the core that video communication is realized, main transmission and the management of being responsible for video and voice data, and provide required media data for System Controller system key-course 2, it comprises that the encapsulation transmission and the reception of video data and voice data unpack processing, this layer is of paramount importance to be the encapsulation that has realized all streaming video coffrets, can be from its lower floor according to the needs of system, call some streaming media service pattern as required, as video intercommunication or remote media broadcast etc.;
BOL Business Entity 4 is positioned at the 4th layer of system, this layer passes through VideoEncode41, VideoDecode42, AudioEncode43, function such as AudioDecode44 and MediaStorage45 is implemented in video the most key in the video communications system and two business factors of audio frequency, also realize storage simultaneously, and transmit by the medium transmission interface of upper strata Media Controller media control layer 3 to the local file data on local set-top box;
Operation System operating system interface 5 is the interfaces that connect the operating system platform that realizes native system, can select different operating platforms according to dissimilar set-top box, and this layer is positioned at the inferior bottom of system;
The basecoat of system is a STB Hardware Interface top-set hardware interface 6, and in this layer, the required hardware camera of described video communications system and audio collection can be undertaken and being connected of set-top box by USB and interfaces such as audio frequency input.
Server of the present invention refers to the audio frequency and video transmitting terminal, client then is meant by the IP set-top box and receives the real-time audio and video data, this client comprises digital TV terminal, and parts such as camera and IP set-top box are formed, and client and server connects by IP network.
In order further to set forth the implementation method of a kind of video communications system based on the IP set-top box of the present invention, we 2 describe in conjunction with the accompanying drawings:
As shown in Figure 2, a kind of video communications system based on the IP set-top box is provided with three big modules: streaming media server module 7, Streaming Media transport module 8 and Streaming Media client modules 9, wherein
The major function of streaming media server module 7 provides real-time audio/video flow data, at first, by analog signal camera collection 71,72 original video voice datas, the original video voice data of being gathered is transmitted to Streaming Media transport module 8 by H.264 video compression 73 and G726 compression back 74, simultaneously, real-time video captured data can be carried out this locality and preserve 75;
Streaming Media transport module 8 comprises transmitting terminal transport module 81 and receiving terminal transport module 82, wherein, transmitting terminal transport module 81 is responsible for stream medium data is sent to receiving terminal transport module 82 by RTP/RTCP/RTSP, receiving terminal transport module 82 is responsible for the stream medium data of receiving end/sending end transport module 81, from whole system, each video communication IP set-top box client all has these two transmission submodules, its structural representation is as shown in Figure 3: the IP Camera as video sending end in the present embodiment provides streaming media service in the RTSP mode, generally carrying out TCP at 554 ports monitors, the receiving terminal swap data that transmitting terminal is connected with request by RTSP, obtain the RTP port that receiving terminal is monitored, and with this port as client audio frequency RTP listening port, receiving terminal IP address and port are added RTP transmission tabulation, and the Media Stream relevant information that transmitting terminal is sent feeds back to receiving terminal.After having received the PLAY signaling of RTSP, promptly begin to send media stream data, stop to specifying receiving terminal to send data after receiving the TEARDOWN signaling to the corresponding IP of receiving terminal and the port of application service; Receiving terminal in the present embodiment then sends the RTSP request to the IP Camera of appointment, obtain the video size of transmitting terminal, and provide the listening port of this machine video module to transmitting terminal, and according to the video size of the transmitting terminal that obtains, initialization video decode module, and the allocation buffer, start audio, video data decoding and the broadcast of video decode display module and audio decoder playing module to receiving;
The major function of Streaming Media client modules 9 is the video stream datas that receive and handle, at first, by the real-time video voice data of Streaming Media transport module 8 receptions from video server, carry out real-time decoding and finally show that 93 play 94 on TV screen by video 91 audio frequency 92 data to receiving terminal of decoder and G726 decoder H.264, simultaneously, receiving terminal can also carry out the video data that receives this locality preservation 95.Equally, the Streaming Media client modules belongs to independently modular unit from framework.