Encryption and decryption method and system based on transmission of videoTechnical field
The present invention relates to video enciphering/deciphering technical field, relate in particular to the encryption and decryption method and system based on transmission of video.
Background technology
Some charge or need authority just can watch or the application service of foradownloaded video in, or in the application service of video content need to be keep secret, uploaded videos need to be encrypted video during to server, when watching or downloading, be decrypted again, the fail safe of video during with assurance transmission, and prevent from not having the user of authority to watch or foradownloaded video.Traditional encryption and transmission means are that then file is encrypted and uploaded one by one one by one, and manual operation is easily tired and make mistakes, and the operating time is limited, and running cost and maintenance cost are all higher.
Summary of the invention
Technical problem to be solved by this invention is, a kind of encryption and decryption method and system based on transmission of video are provided, encryption and decryption when transmission of video automatically, and running cost and maintenance cost are lower.
In order to solve the problems of the technologies described above, the invention provides a kind of encryption method based on transmission of video, video is encrypted and transcoding in transmission, specifically comprises step:
S1, client-requested transmit at least one video to server end;
S2, startup network transmission module carry out real-time Transmission to the video flowing of described at least one video, adopt fast transcoding and encryption technology to be encrypted with transcoding simultaneously synchronously carry out the video flowing of real-time Transmission; Wherein, the transmission of each video in described at least one video and encryption transcoding adopt safe Sandboxing complete independently in sandbox, do not interfere with each other;
Video after at least one encryption that S3, server end reception client send over, and adopt content delivering system that the video automatic synchronization after described at least one encryption is arrived to each node server with storage.
Further, described fast encrypt and transcoding technology specifically comprise step:
S21, described network transmission module are resolved the form of the video of client-requested transmission;
In S22, described network transmission module, comprise a plurality of transcoding equipment, the form that sends video according to the client-requested of resolving is chosen transcoding equipment;
S23, the video separation that described client-requested is sent become video flowing and audio stream;
S24, the video flowing obtaining after adopting the transcoding equipment chosen in step S22 to described separation carry out transcoding,, the frame of the video flowing obtaining after described separation are encrypted meanwhile;
S25, described server end receive described video flowing and described audio stream through encrypting, and carry out synchronously, generating the video after final encryption according to timestamp.
Wherein, encryption technology described in step S24 preferably adopts DES high strength encrypting algorithm three times; by distinguishing I, P, the B frame of the coding and decoding video of described at least one video; for the capable encipherment protection of I frame; the digital watermarking that simultaneously superposes in the frame of video of described at least one video, protection video copyright.
Further, described network transmission module adopts transfer of data error correcting technique to guarantee the accuracy of the video data of transmission.
The present invention also provides a kind of decryption method based on transmission of video, and video is decrypted in transmission, specifically comprises step:
S1, client-requested server end send video to client;
S2, server end are received after request, adopt the request of content delivering system customer in response end, the node server at the video place of search request, and send to network transmission module, described node server is in order to data such as store videos;
S3, startup network transmission module transmit the video finding, and adopt fast decryption technology to be decrypted to real-time video flowing simultaneously;
S4, client are to the video of deciphering.
Wherein, described fast decryption technological selection adopts DES decipherment algorithm.
Further, described network transmission module adopts transfer of data error correcting technique to guarantee the accuracy of the video data of transmission.
The present invention also provides a kind of encryption and decryption system based on transmission of video, comprising:
Client, sends video to client in order to transmit at least one video to server end or request server end;
Network transmission module, when transmitting at least one video to server end when client-requested, video flowing to described at least one video transmits in real time, to real-time video flowing, adopt fast encrypt and transcoding technology to be encrypted with transcoding synchronously carries out simultaneously, wherein, the transmission of each video in described at least one video and encryption transcoding adopt safe Sandboxing complete independently in sandbox, do not interfere with each other; When client-requested server end sends video to client, the video of client-requested is transmitted, to real-time video flowing, adopt fast decryption technology to be decrypted simultaneously;
Server end, at least one encrypted video sending in order to receive client, and adopt content delivering system that described at least one encrypted video automatic synchronization is arrived to each node server, and adopt content delivering system customer in response end to send the request of video, the node server at the video place of search request, and sending to network transmission module, described node server is in order to data such as store videos.
Further, described fast encrypt and transcoding technology specifically comprise step:
S21, described network transmission module are resolved the form of the video of client-requested transmission;
In S22, described network transmission module, comprise a plurality of transcoding equipment, the form that sends video according to the client-requested of resolving is chosen transcoding equipment;
S23, the video separation that described client-requested is sent become video flowing and audio stream;
S24, the video flowing obtaining after adopting the transcoding equipment chosen in step S22 to described separation carry out transcoding,, the frame of the video flowing obtaining after described separation are encrypted meanwhile;
S25, described server end receive described video flowing and described audio stream through encrypting, and carry out synchronously, generating the video after final encryption according to timestamp.
Wherein, encryption technology described in step S24 preferably adopts DES high strength encrypting algorithm three times, by distinguishing I, P, the B frame of the coding and decoding video of described at least one video, for the capable encipherment protection of I frame, the digital watermarking that simultaneously superposes in the frame of video of described at least one video, protection video copyright; Described fast decryption technological selection adopts DES decipherment algorithm.
Further, the described encryption and decryption system based on transmission of video also has data statistics function, is sent to the video of server end in order to add up client.
Further, described network transmission module adopts transfer of data error correcting technique to guarantee the accuracy of the video data of transmission.
Implement the embodiment of the present invention, there is following beneficial effect: when video is during from client transmissions to server end, video is encrypted in transmission, and automatic synchronization is stored to the node server of server end, manpower be can save, running cost and maintenance cost reduced; When video transfers to client from server end, video is decrypted in transmission, can real-time Transmission, and real time decrypting, watches in real time, provides better user to experience.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the schematic flow sheet of the encryption method based on transmission of video that provides of the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of fast encrypt described in Fig. 1 and transcoding technology;
Fig. 3 is the schematic flow sheet of the decryption method based on transmission of video that provides of the embodiment of the present invention;
Fig. 4 is the structural representation of the encryption and decryption system based on transmission of video that provides of the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention provides a kind of encryption method based on transmission of video, and video is encrypted and transcoding in transmission, as shown in Figure 1, specifically comprises step:
S1, client-requested transmit at least one video to server end;
S2, startup network transmission module carry out real-time Transmission to the video flowing of described at least one video, adopt fast encrypt and transcoding technology to be encrypted with transcoding simultaneously synchronously carry out the video flowing of real-time Transmission; Wherein, the transmission of each video in described at least one video and encryption transcoding adopt safe Sandboxing complete independently in sandbox, do not interfere with each other;
Video after at least one encryption that S3, server end reception client send over, and adopt content delivering system that the video automatic synchronization after described at least one encryption is arrived to each node server with storage.
Wherein, as shown in Figure 2, described fast encrypt and transcoding technology specifically comprise step:
S21, described network transmission module are resolved the form of the video of client-requested transmission;
In S22, described network transmission module, comprise a plurality of transcoding equipment, the form that sends video according to the client-requested of resolving is chosen transcoding equipment;
S23, the video separation that described client-requested is sent become video flowing and audio stream;
S24, the video flowing obtaining after adopting the transcoding equipment chosen in step S22 to described separation carry out transcoding,, the frame of the video flowing obtaining after described separation are encrypted meanwhile;
S25, described server end receive described video flowing and described audio stream through encrypting, and carry out synchronously, generating the video after final encryption according to timestamp.
The object of transcoding is in order to make object format compatible with various terminals, in view of the diversity of video format must cause the support of various platforms restricted, always has partial video to play.The video of client upload must be done to unified transcoding and process, can be compatible to plurality of devices terminal program normal play, the terminal type of support comprises PC computer, apple IOS, Android etc.
Wherein, encryption technology described in step S24 preferably adopts DES high strength encrypting algorithm three times; by distinguishing I, P, the B frame of the coding and decoding video of described at least one video; for the capable encipherment protection of I frame; the digital watermarking that simultaneously superposes in the frame of video of described at least one video, protection video copyright.
Further, described network transmission module adopts transfer of data error correcting technique to guarantee the accuracy of the video data of transmission.
The present invention also provides a kind of decryption method based on transmission of video, and video is decrypted in transmission, as shown in Figure 3, specifically comprises step:
S1, client-requested server end send video to client;
S2, server end are received after request, adopt the request of content delivering system customer in response end, the node server at the video place of search request, and send to network transmission module, described node server is in order to data such as store videos;
S3, startup network transmission module transmit the video finding, and adopt fast decryption technology to be decrypted to real-time video flowing simultaneously;
S4, client are to the video of deciphering.
Wherein, described fast decryption technological selection adopts DES decipherment algorithm.
Further, described network transmission module adopts transfer of data error correcting technique to guarantee the accuracy of the video data of transmission.
The present invention also provides a kind of encryption and decryption system based on transmission of video, as shown in Figure 4, comprising:
Client 1, sends video to client in order to transmit at least one video toserver end 3 orrequest server end 3;
Network transmission module 2, in order to whenclient 1 request transmits at least one video toserver end 3, video flowing to described at least one video transmits in real time, to real-time video flowing, adopt fast encrypt and transcoding technology to be encrypted with transcoding synchronously carries out simultaneously, wherein, the transmission of each video in described at least one video and encryption transcoding adopt safe Sandboxing complete independently in sandbox, do not interfere with each other; Whenclient 1request server end 3 sends video toclient 1, the video ofclient 1 request is transmitted, to real-time video flowing, adopt fast decryption technology to be decrypted simultaneously;
Server end 3, at least one encrypted video sending in order to receiveclient 1, and adopt content delivering system that described at least one encrypted video automatic synchronization is arrived to each node server, and adopt content delivering system customer inresponse end 1 to send the request of video, the node server at the video place of search request, and sending to networktransmission module 2, described node server is in order to data such as store videos.
Further, described fast encrypt and transcoding technology specifically comprise step:
S1, describednetwork transmission module 2 are resolved the form of the video of client-requested transmission;
In S2, describednetwork transmission module 2, comprise a plurality of transcoding equipment, the form that sends video according to the client-requested of resolving is chosen transcoding equipment;
S3, the video separation that describedclient 1 request is sent become video flowing and audio stream;
S4, the video flowing obtaining after adopting the transcoding equipment chosen in step S22 to described separation carry out transcoding,, the frame of the video flowing obtaining after described separation are encrypted meanwhile;
S5, describedserver end 3 receive described video flowing and described audio stream through encrypting, and carry out synchronously, generating the video after final encryption according to timestamp.
Wherein, encryption technology described in step S4 preferably adopts DES high strength encrypting algorithm three times, by distinguishing I, P, the B frame of the coding and decoding video of described at least one video, for the capable encipherment protection of I frame, the digital watermarking that simultaneously superposes in the frame of video of described at least one video, protection video copyright; Described fast decryption technological selection adopts DES decipherment algorithm.
Further, the described encryption and decryption system based on transmission of video also has data statistics function, is sent to the video ofserver end 3 in order to add upclient 1.
Further, describednetwork transmission module 2 adopts transfer of data error correcting technique to guarantee the accuracy of the video data of transmission.
Implement the embodiment of the present invention, there is following beneficial effect: when video is during from client transmissions to server end, video is encrypted in transmission, and automatic synchronization is stored to the node server of server end, manpower be can save, running cost and maintenance cost reduced; When video transfers to client from server end, video is decrypted in transmission, can real-time Transmission, and real time decrypting, watches in real time, provides better user to experience.
Above disclosed is only a kind of preferred embodiment of the present invention, certainly can not limit with this interest field of the present invention, and the equivalent variations of therefore doing according to the claims in the present invention, still belongs to the scope that the present invention is contained.