Summary of the invention
The invention provides a kind of flow-medium transmission method and system, realized safety, transport stream medium on the internet efficiently, satisfied the extensibility requirement of system simultaneously, solved the isomerism problem of system.
Accordingly, the present invention also provides a kind of flow media playing method and ustomer premises access equipment.
Flow-medium transmission method provided by the invention comprises:
The vision signal of the stream media information of layered video encoder convection current source of media output is carried out hierarchical coding according to bit rate, the basic layer video data message that obtains is sent to security administration server, and enhancement layer video data information sends to the peer-to-peer network Distributor;
Audio coder sends to described security administration server to the coding audio signal of described stream media information with the voice data information that obtains;
Described security administration server sends to the standard direct broadcast server after basic layer video data message and voice data information are encrypted;
Basic layer video data message and the voice data information of described standard direct broadcast server after the ustomer premises access equipment of the described stream media information of request download sends encryption, described peer-to-peer network Distributor transmits described enhancement layer video data information to the ustomer premises access equipment that lands book server.
Stream media transmission system provided by the invention comprises the Streaming Media source, also comprises layered video encoder, audio coder, security administration server, standard direct broadcast server, peer-to-peer network Distributor, wherein:
Described layered video encoder, be used for the vision signal of the stream media information of described Streaming Media source output is carried out hierarchical coding according to bit rate, the basic layer video data message that obtains is sent to described security administration server, and enhancement layer video data information sends to described peer-to-peer network Distributor;
Described audio coder is used for the coding audio signal to described Streaming Media source information, and the voice data information that obtains is sent to described security administration server;
Described security administration server sends to described standard direct broadcast server after being used for basic layer video data message and voice data information encrypted;
Described standard direct broadcast server is used for basic layer video data message and voice data information after the ustomer premises access equipment transmission encryption of described stream media information is downloaded in request;
Described peer-to-peer network Distributor is used for transmitting described enhancement layer video data information to the ustomer premises access equipment that lands book server.
Flow media playing method provided by the invention comprises:
Ustomer premises access equipment obtains basic layer video data message and the voice data information after the encryption from the standard direct broadcast server, land the peer-to-peer network Distributor to obtain enhancement layer video data information, described basic layer video data message and enhancement layer video data information obtain by the vision signal of stream media information is carried out hierarchical coding according to bit rate; And
The data message that broadcast gets access to.
Ustomer premises access equipment provided by the invention comprises:
Acquiring unit: be used for obtaining basic layer video data message and voice data information after the encryption from the standard direct broadcast server, land the peer-to-peer network Distributor to obtain enhancement layer video data information, described basic layer video data message and enhancement layer video data information obtain by the vision signal of stream media information is carried out hierarchical coding according to bit rate;
Broadcast unit: be used to play the data message that gets access to.
Flow-medium transmission method provided by the invention and system, vision signal is carried out hierarchical coding according to bit rate obtain basic layer video data message and enhancement layer video data information, adopt traditional customer end/server mode to transmit basic layer video data message, make service quality be guaranteed; Security administration server adopts encryption mechanism to basic layer video data message and voice data information, has guaranteed the safe transmission of Streaming Media; Use peer-to-peer network mechanism transmission enhancement layer video data information, satisfied the extensibility requirement of system; Basic layer video data message and enhancement layer video data information are used two kinds of transmission mechanisms, and ustomer premises access equipment is play the data message that gets access to, and have solved the isomerism problem of system.Flow media playing method provided by the invention and ustomer premises access equipment are applicable to this stream media transmission system, and be convenient for users to use.
Embodiment
The system of transport stream medium on the internet need solve following several respects problem simultaneously: and safety management, service quality (Quality of Service, QoS), extensibility and isomerism.Safety management comprises copyright management and access control, effectively the legitimate rights and interests that provide and ensure the Streaming Media supplier in a large number that security management mechanism can the stimulus stream medium.The QoS management can guarantee the message transmission rate of Streaming Media, and can control time-delay and packet loss.The extensibility of stream media transmission system is most important for growing number of users; Simultaneously, a large amount of ustomer premises access equipments in terminal capability, network topology structure, can utilize the aspects such as message transmission rate demand of bandwidth, Streaming Media all inequality, solve the isomerism problem of stream media transmission system, help improving the bandwidth availability ratio SM.
The embodiment of the invention provides a kind of stream media transmission system, has realized safety, transport stream medium on the internet efficiently, has satisfied the extensibility requirement of system simultaneously, has solved the isomerism problem of system.As shown in Figure 3, the stream media transmission system that the embodiment of the invention provides comprises Streaming Media source 300, layered video encoder 301, audio coder 302, security administration server 303, standard direct broadcast server 304, and P2P Distributor 305, wherein:
Streaming Media source 300, export after being used for stream media information is separated into vision signal and audio signal, if also comprise caption information in the stream media information, then caption information is blended in the audio signal, and vision signal has identical stream media information sign with audio signal and belongs to same stream media information to show;
Streaming Media source 300 can be general video camera, and for example common DV also can be a web camera, and the supplier in Streaming Media source is generally ICP (ICP) website.
Layered video encoder 301, the vision signal that is used for the stream media information of convection current source of media 300 outputs is carried out hierarchical coding according to bit rate, obtain two-layer video data information, this two-layer video data information has identical timestamp can carry out data sync when playing, the basic layer video data message that obtains is sent to security administration server 303, and enhancement layer video data information sends to P2P Distributor 305;
Layered video encoder 301 adopts the high quality enhancement reference technique, vision signal is resolved into two-layer video data information, the video data information that the video signal coding that bit rate is lower obtains is called basic layer video data message, be basic also be most important video data information; The video data information that the higher video signal coding of bit rate obtains is called enhancement layer video data information, is used to improve play quality.
Audio coder 302 is used for the coding audio signal of the stream media information of convection current source of media 300 output, and the voice data information that obtains is sent to security administration server 303;
302 pairs of coding audio signals of audio coder according to actual conditions, can be real-time, also can be non real-times; Certainly, if caption information is blended in the audio signal, then also comprise caption information, follow-up repeating no more in the voice data information that 302 pairs of coding audio signals of audio coder obtain.
Security administration server 303 sends to standard direct broadcast server 304 after being used for basic layer video data message and voice data information encrypted;
More excellent, security administration server 303 can also carry out digital signature to basic layer video data message and voice data information, further the fail safe of enhanced flow media delivery before basic layer video data message and voice data information are encrypted; And security administration server 303 can take the selective encryption mode that basic layer video data message and voice data information are encrypted.
Standard direct broadcast server 304 is used for basic layer video data message and voice data information after the ustomer premises access equipment transmission encryption of this stream media information is downloaded in request;
Standard direct broadcast server 304 is supported the normal stream media transmission protocol, adopt traditional customer end/server mode, send the data message that it asks the stream media information correspondence of download to the ustomer premises access equipment that logs on book server, basic layer video data message and voice data information after guaranteeing to encrypt can send to ustomer premises access equipment timely and effectively.
P2P Distributor 305 is used for to the ustomer premises access equipment transmission enhancement layer video data information that logs on book server;
P2P Distributor 305 is supported general P2P Streaming Media host-host protocol, and gossip communication protocol for example logs between each ustomer premises access equipment of book server and can form the P2P network, makes and also can carry out the P2P transmission between each ustomer premises access equipment; To the ustomer premises access equipment transmission enhancement layer video data information that logs on book server, by the P2P network that forms, the ustomer premises access equipment of this stream media information is downloaded in P2P Distributor 305 request of finally can directly or indirectly enhancement layer video data information being sent to.
In the embodiment of the invention, adopt the symmetric cryptography mode, be that security administration server 303 adopts identical key with ustomer premises access equipment, security administration server 303 is encrypted basic layer video data message and voice data information according to key, and ustomer premises access equipment is decrypted basic layer video data message and voice data information after encrypting according to key.Certainly, also can adopt the asymmetric encryption mode.
Security administration server 303 carries out cryptographic operation, ustomer premises access equipment is decrypted the key of operating employing can be pre-configured, and more excellent, this system also comprises:
Key message server 306 is used for periodically generating key and sending to security administration server 303 and ustomer premises access equipment; And
Security administration server 303 is encrypted basic layer video data message and voice data information according to the key that receives.
Periodically generate key by key message server 306 and can periodically update key in security administration server 303 and the ustomer premises access equipment, further promote the fail safe of stream media transmission system.
So far finished the Streaming Media transmission of network side,, ustomer premises access equipment be introduced for the final streaming media playing that realizes user side:
Ustomer premises access equipment, be used for obtaining basic layer video data message and voice data information after the encryption from standard direct broadcast server 304, land P2P Distributor 305 to obtain enhancement layer video data information, and play the data message get access to, play the data message that gets access to and be meant that mainly being decrypted, decoding, calling local player plays etc.;
Ustomer premises access equipment need be supported the normal stream media transmission protocol, also supports P2P Streaming Media host-host protocol simultaneously.Can directly from the standard direct broadcast server that is landed, obtain basic layer video data message and voice data information after the encryption, can and land simultaneously between other ustomer premises access equipment of same P2P Distributor and carry out the P2P transmission.It is pointed out that ustomer premises access equipment lands P2P Distributor 305 to obtain enhancement layer video data information, still owing to the problem of terminal capability or message transmission rate, the situation of enhancement layer video data information can take place to get access to.
As shown in Figure 4, a kind of possibility structure of ustomer premises access equipment comprises:
Acquiring unit 401: be used for obtaining basic layer video data message and voice data information after the encryption from the standard direct broadcast server, land the peer-to-peer network Distributor to obtain enhancement layer video data information, basic layer video data message and enhancement layer video data information obtain by the vision signal of stream media information is carried out hierarchical coding according to bit rate;
Broadcast unit 402: be used to play the data message that gets access to.
Broadcast unit 402 can comprise that also first plays the subelement 4021 and the second broadcast subelement 4022, wherein:
First plays subelement 4021, when being used for basic layer video data message after the data message that gets access to comprises encryption and voice data information and enhancement layer video data information, basic layer video data message and voice data information after encrypting are decrypted; To basic layer video data message and the voice data information after the deciphering, and the enhancement layer video data information that gets access to is decoded; Call the data message behind the local player assembly broadcast decoder;
Second plays subelement 4022, when being used for basic layer video data message after the data message that gets access to comprises encryption and voice data information, the basic layer video data message after encrypting and voice data information is decrypted and decodes; Call the data message behind the local player assembly broadcast decoder.
Based on same inventive concept, the embodiment of the invention provides a kind of flow-medium transmission method of network side, as shown in Figure 5, comprising:
The vision signal of the stream media information of S501, the output of layered video encoder convection current source of media is carried out hierarchical coding according to bit rate, the basic layer video data message that obtains is sent to security administration server, and enhancement layer video data information sends to the P2P Distributor;
The coding audio signal of the stream media information of S502, the output of audio coder convection current source of media sends to security administration server with the voice data information that obtains;
S503, security administration server send to the standard direct broadcast server after basic layer video data message and voice data information are encrypted;
S504, basic layer video data message and the voice data information of standard direct broadcast server after the ustomer premises access equipment of this stream media information of request download sends encryption, the P2P Distributor is to the ustomer premises access equipment transmission enhancement layer video data information of landing book server.
The embodiment of the invention also provides a kind of flow media playing method of user side, as shown in Figure 6, comprising:
S601, ustomer premises access equipment obtain basic layer video data message and the voice data information after the encryption from the standard direct broadcast server, land the peer-to-peer network Distributor to obtain enhancement layer video data information, wherein basic layer video data message and enhancement layer video data information obtain by the vision signal of stream media information is carried out hierarchical coding according to bit rate;
The data message that S602, broadcast get access to.
Wherein, the data message that gets access to may comprise basic layer video data message and voice data information and the enhancement layer video data information after the encryption, then plays the data message that gets access among the S602, specifically comprises:
A1, basic layer video data message and voice data information after encrypting are decrypted;
A2, to basic layer video data message and voice data information after the deciphering, and the enhancement layer video data information that gets access to is decoded;
A3, call the data message behind the local player assembly broadcast decoder.
The enhancement layer video data information that gets access to is sent by the P2P Distributor or is sent by other ustomer premises access equipment that logs on this P2P Distributor.
Because problems such as terminal capability or message transmission rate, the situation of enhancement layer video data information may take place to get access to, the data message that gets access to includes only basic layer video data message and the voice data information after the encryption, then play the data message that gets access among the S602, specifically comprise:
B1, the basic layer video data message after encrypting and voice data information are decrypted and decode;
B2, call the data message behind the local player assembly broadcast decoder.
Below will be based on the ustomer premises access equipment of stream media transmission system and this stream media transmission system of support, the handling process so that specific embodiment describes the Streaming Media transmission in detail and plays as shown in Figure 7, comprises step:
Export after stream media information is separated into vision signal and audio signal in S701, Streaming Media source, if comprise caption information in the stream media information, then caption information is blended in the audio signal;
The vision signal of the stream media information of S702, the output of layered video encoder convection current source of media is carried out hierarchical coding according to bit rate, generate basic layer video data message and enhancement layer video data information, wherein, basic layer video data message sends to security administration server, and enhancement layer video data information sends to the P2P Distributor;
The coding audio signal of the stream media information of S703, the output of audio coder convection current source of media generates voice data information, sends to security administration server;
The key that S704, security administration server carry out digital signature to basic layer video data message, voice data information and utilize the key message server to send sends to the standard direct broadcast server after encrypting;
S705, ustomer premises access equipment land the standard direct broadcast server, from the standard direct broadcast server, obtain basic layer video data message and voice data information after the encryption, ustomer premises access equipment lands the P2P Distributor to obtain enhancement layer video data information, and ustomer premises access equipment lands the node that the P2P Distributor lands promptly becomes the P2P network afterwards;
S706, ustomer premises access equipment judge whether to get access to enhancement layer video data information, if get access to enhancement layer video data information, then change S707 over to, if do not get access to enhancement layer video data information, then change S710 over to;
Wherein, the enhancement layer video data information that ustomer premises access equipment gets access to may be sent by the P2P Distributor, also may be to be sent by other ustomer premises access equipment that logs on this P2P Distributor;
The key that S707, ustomer premises access equipment utilize the key message server to be distributed is decrypted basic layer video data message and voice data information after encrypting;
S708, ustomer premises access equipment are to basic layer video data message and voice data information after deciphering, and the enhancement layer video data information that gets access to is decoded;
S709, ustomer premises access equipment call the data message behind the local player assembly broadcast decoder, audio signal and vision signal that local player assembly obtains after can synchronous decoding, also may comprise caption information, thereby make the user watch clear, smooth stream media information, Streaming Media transmission and playing process are finished;
S710, ustomer premises access equipment utilize key that the key message server distributed that the basic layer video data message after encrypting and voice data information are decrypted and decode;
S711, ustomer premises access equipment call the data message behind the local player assembly broadcast decoder, audio signal and vision signal that local player assembly obtains after can synchronous decoding, also may comprise captions, thereby make the user watch clear, smooth stream media information, Streaming Media transmission and playing process are finished.
It is pointed out that S702 and S703 have just provided number of steps for convenience, in fact do not have strict sequential relationship between two steps.
Streaming Media transmission and playback process flow process that the embodiment of the invention provides, vision signal is carried out hierarchical coding according to bit rate obtain basic layer video data message and enhancement layer video data information, to basic layer video data message and the reliable encryption mechanism of voice data information utilization to obtaining behind the audio-frequency signal coding, promptly adopt digital signature and Key Encryption Technology, ensured safety of transmission; Use basic layer video data message and voice data information after the customer end/server mode transmission is encrypted, QoS is guaranteed; Use P2P mechanism transmission enhancement layer video data information, satisfied the extensibility requirement of system; Ustomer premises access equipment possibly can't receive enhancement layer video data information under the restriction of conditions such as terminal capability or message transmission rate, but can not influence the broadcast of stream media information, has solved the problem of the isomerism of system.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.