Summary of the invention
The purpose of this invention is to provide real-time Transmission, storage and reduction apparatus and the method for a kind of video information in the Internet, by several prior aries are organically integrated, to support application scenario to the real-time Transmission demand.
Real-time Transmission, storage and the reduction apparatus of a kind of video information provided by the present invention in the Internet, it is characterized in that, it comprises video grabber, screen grabber, blender, blender, memory, transceiver and video reductor, wherein: blender links to each other with video grabber, screen grabber, memory and transceiver respectively, the video reductor links to each other with transceiver: video grabber, be used for capturing video information, the digitlization source of video information is provided; Screen grabber is used to provide the real time information of seizure screen message; Blender, being used for automatically that the multi-channel video stream format of identification input is blended into is one road video stream data, and encodes; Memory is used for the video information of having encoded of input is preserved according to the files in stream media form of standard, is beneficial to other modes and utilizes; Transceiver, it comprises sending module and receiver module, is used for providing the transmitting-receiving of media information at network; The video reductor is used for video information is reduced, and presents in presenting on the device of acquiescence.
In real-time Transmission, storage and the reduction apparatus of above-mentioned video information in the Internet, blender adopts the form normalized, and is converted into predetermined form and encodes.
In real-time Transmission, storage and the reduction apparatus of above-mentioned video information in the Internet, the video information that is encoded is sent by the sending module of transceiver, comprise the header that meets Real-time Transport Protocol in its message, the emphasis territory is serial number, timestamp, to guarantee that the Streaming Media message can be according to original order by assembly unit, for to carry out the dynamic adjustment of bandwidth, provide input simultaneously, to guarantee the requirement of real-time.
In real-time Transmission, storage and the reduction apparatus of above-mentioned video information in the Internet, after reductor receives stream medium data from the receiver module of transceiver, decode and on the display device of acquiescence, present according to the form of coding.
Real-time Transmission, storage and the method for reducing of a kind of video information that the present invention also provides in the Internet, it is characterized in that: video information is caught and digitlization by video grabber, screen video information is caught by screen grabber simultaneously, two paths of data is sent to blender and is carried out normalized, the row operation of going forward side by side, the result of computing is encoded; Coded message is sent to two targets: memory and transceiver; Memory is preserved video information according to the video stream media file format of standard; In addition, coded message is transmitted in network by transceiver; The sending module of transceiver adopts the encapsulation of RTP newspaper form to the video stream media bag, gives the ICP/IP protocol stack then and handles, and send; The receiver module of transceiver parses the RTP header information from the UDP message, and gives and the transmitting terminal feedback by rtcp protocol, reaches the purpose of bandwidth control; The video stream data newspaper that receives is delivered to the video reductor, reduces according to video code model, and presents in presenting in the mechanism of acquiescence.
Adopted above-mentioned technical solution, catcher provides information source, transferring to blender mixed is predetermined form, and encode, information is afterwards given transceiver and memory respectively, transceiver is given the reduction of video reductor with information, with real-time Transmission, storage and the reduction of video information in the Internet of finishing the separate sources different-format.
Embodiment
The present invention carries out normalized with the form of video information, and multichannel data could carry out various direct computings on this basis like this.Here the different-format of indication mainly is a resolution format, can keep relative resolution constant rate because will guarantee different source videos in calculating process, so, need in advance resolution information to be discerned, afterwards normalized.Result's resolution is not less than the resolution maximum of input video in principle, otherwise will influence the quality of video.
Then normalized multi-channel video is carried out computing, and adopt general compaction coding method coding.
For transmission link, need utilize RTP and rtcp protocol to reach the purpose of bandwidth adjustment and assurance real-time.
As everyone knows, RTP is a kind of RTP that end-to-end transmission service is provided, and is used for being supported in transmitting real-time data in single goal broadcasting and the service of multiple target radio network, and the transmission of real time data is then monitored by rtcp protocol and controls.
RTP is defined among the RFC 1889.The structure of packets of information comprises and is widely used in multimedia several territories, comprises sound program request (audio-on-demand), VOD (video on demand), Internet telephony (Internet telephony) and video conference (videoconferencing).The specification of RTP is not formulated standard to the compressed format of sound and TV, and it can be used to transmit the file of common format.For example, the TV of sound, MPEG-1 and the MPEG-2 of WAV or GSM (Global System for Mobile communications) form also can be used for transmitting sound and the TV file that proprietary format is stored.
Use the application program of Real-time Transport Protocol to operate on the RTP, and the program running of carrying out RTP is on the upper strata of UDP, purpose be for the port numbers of using UDP and check and.Shown in Figure 16-12, RTP can regard the sublayer of transport layer as.The sound and the TV data piece that are generated by multimedia application are encapsulated in the RTP packets of information, and each RTP packets of information is encapsulated in the UDP message section, and then is encapsulated in the IP packet.
(Real-time Control Protocol RTCP) also is defined among the RFC 1889 of proposition in 1996 RTCP Real-time Transport Control Protocol.Multi-media network is used RTCP and RTP are used together, and is especially more attractive in multiple target broadcasting.When from one or more transmitting terminal during to a plurality of receiving terminal broadcast sounds or TV, just during the RTP session, each participant periodically sends RTCP control information bag to every other participant, shown in Figure 16-14.RTCP is used for monitor service quality and transmit relevant participant's information.For RTP session or broadcasting, usually use single multiple target broadcast address, all RTP and the RTCP packets of information that belong to this session are all used this multiple target broadcast address, can make a distinction RTP packets of information and RTCP packets of information by using different port numbers.
As can be seen, the RTP/RTCP agreement can be reached the purpose of bandwidth adjustment, real-time Transmission effectively.But for satisfying the compatibility of protocol level, need to sacrifice computing capability, to this, the present invention just utilizes the stipulations subclass of this agreement, pays close attention to serial number and timestamp, to guarantee carrying out assembly unit and bandwidth adjustment at receiving terminal.
Below in conjunction with Fig. 1, most preferred embodiment of the present invention is elaborated.
The present invention, the device of real-time Transmission, storage and the reduction of promptly a kind of video information of separate sources different-format in the Internet, it comprises:
Video grabber 101, this module provide the digitlization source of video information, and it has the ability that the video information in the video capturing device is caught.The resolution format of video information is generally 320*240 or 640*480.
Screen grabber 102, this module provide the function that computer screen information is caught in real time.The screen resolution form is 1024*768 or 800*600 generally speaking.
Blender 103, it is one road video stream data that this module can be blended into the multi-channel video stream format of discerning input automatically, and encodes.Blender adopts the form normalized, and is converted into predetermined form and encodes.The information that is encoded, the sending module of transferring to transceiver sends, comprise the header that meets Real-time Transport Protocol in the message, the emphasis territory is serial number, timestamp, to guarantee that the Streaming Media message can be according to original order by assembly unit, for to carry out the dynamic adjustment of bandwidth, provide input simultaneously, to guarantee the requirement of real-time.
Memory, this module can be preserved the video flowing of having encoded of input according to the files in stream media form of standard, be beneficial to other modes and utilize.
Transceiver 105, this module provide the transmitting-receiving of media information in network, comprise sending module 1051 and receiver module 1052.
Video reductor 106, receive stream medium data from the receiver module of transceiver after, video information is reduced, and decodes and on the display device of acquiescence, present according to the form of coding.
Flow process of the present invention is; Video information is caught and digitlization by video grabber 101, and screen video information is caught by screen grabber 102 simultaneously, and two paths of data is sent to blender 103 and carried out normalized, the row operation of going forward side by side, and the result of computing is encoded.
Coded message is sent to two targets: memory 104 and transceiver 105.
Memory 104 is preserved video information according to the video stream media file format of standard.
In addition, coded message is transmitted in network by transceiver 105.
1051 pairs of video stream media bags of the sending module of transceiver 105 adopt the encapsulation of RTP newspaper form, give the ICP/IP protocol stack then and handle, and send.
The receiver module 1052 of transceiver 105 parses the RTP header information from the UDP message, and gives and the transmitting terminal feedback by rtcp protocol, reaches the purpose of bandwidth control.
The video stream data newspaper that receives is delivered to video reductor 106, reduces according to video code model, and presents in presenting in the mechanism of acquiescence.