CN106961614A - A kind of method and system of encrypted video netcast - Google Patents

A kind of method and system of encrypted video netcast Download PDF

Info

Publication number
CN106961614A
CN106961614A CN201710098331.7A CN201710098331A CN106961614A CN 106961614 A CN106961614 A CN 106961614A CN 201710098331 A CN201710098331 A CN 201710098331A CN 106961614 A CN106961614 A CN 106961614A
Authority
CN
China
Prior art keywords
video
segment
leading portion
back segment
key
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710098331.7A
Other languages
Chinese (zh)
Other versions
CN106961614B (en
Inventor
陈钢
陈赫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201710098331.7A priority Critical patent/CN106961614B/en
Publication of CN106961614A publication Critical patent/CN106961614A/en
Application granted granted Critical
Publication of CN106961614B publication Critical patent/CN106961614B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2347Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving video stream encryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/254Management at additional data server, e.g. shopping server, rights management server
    • H04N21/2541Rights Management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
    • H04N21/26613Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel for generating or managing keys in general
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/44004Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving video buffer management, e.g. video decoder buffer or video display buffer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4405Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving video stream decryption

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The present invention relates to network multimedia field, more particularly to a kind of method and system of encrypted video netcast.The method of above-mentioned encrypted video netcast includes:Player initiates the playing request to target video;Above-mentioned target video is split as leading portion video and back segment video according to setting order;Above-mentioned leading portion video is a video segment;Above-mentioned back segment video is at least one video segment;Above-mentioned back segment video is encrypted;The reception server is directed to the broadcast information that above-mentioned playing request is returned, and according to above-mentioned broadcast information, plays the leading portion video of above-mentioned target video;The key of the above-mentioned back segment video of Asynchronous Request, and decrypt above-mentioned back segment video;At the end of above-mentioned leading portion video playback, the back segment video after decryption is directly played.Present invention, avoiding the problem of first frame time delay increases during encrypted video netcast, Consumer's Experience is improved.

Description

A kind of method and system of encrypted video netcast
Technical field
The present invention relates to network multimedia field, more particularly to a kind of method and system of encrypted video netcast.
Background technology
With the development of network technology, substantial amounts of video data spreads through the internet, and people have been accustomed to obtaining from network Take video data.And for the protection to video copy, copyright video, which is generally required, to be encrypted, therefore regarded in client Frequency needs the network service process by asking key and the buffer logic of decryption video before playing.
Therefore inventor has found in application such scheme, the existing copyright protecting system meeting that means are encrypted as with content Cause user to see that the time delay of the first frame picture is lengthened, reduce Consumer's Experience.
The content of the invention
The technical problems to be solved by the invention are:The copyright protecting system for being encrypted as means with content increases user and seen Time delay to the first frame picture is lengthened, and reduces Consumer's Experience.
In order to solve the above problems, broadcast multiple segments voice separately and Asynchronous Request of the resolving ideas based on video of the invention plays license Scheme, method is:Video data A to be protected will be needed according to setting order cutting as at least two fragments, respectively A1 and A2, wherein A1 are a fragment, and A2 is at least one fragment;A2 is done the encryption process, A1 is using pre- distribution key encryption or protects Hold non-encrypted state;When A is played in user's request, A1 is first played;By network service Asynchronous Request A2 key during broadcasting A1, when When user's satisfaction imposes a condition, A2 key can be just obtained;A2 is decrypted, prepares to play A2;At the end of A1 is played, directly play A2。
The embodiment of the invention discloses a kind of method of encrypted video netcast, including:
Player initiates the playing request to target video;The target video is split according to setting order and regarded for leading portion Frequency and back segment video;The leading portion video is a video segment;The back segment video is at least one video segment;After described Section video is encrypted;
The reception server is directed to the broadcast information that the playing request is returned, and according to the broadcast information, plays described The leading portion video of target video;
The key of back segment video described in Asynchronous Request, and decrypt the back segment video;
At the end of the leading portion video playback, the back segment video after decryption is directly played.
Preferably, the reception server is directed to the broadcast information that the playing request is returned, and is believed according to described play The step of breath, leading portion video for playing the target video, includes:The reception server is directed to the broadcasting that the playing request is returned Information;The broadcast information includes the broadcast address and encrypted state, video segment information of each video segment of target video;Institute State video segment of the video segment information including target video to number, the clip size of each video segment, clip durations, encoding and decoding Form;If the leading portion video-encryption state is unencryption, the leading portion video playback address is accessed, according to the leading portion The clip size of video, code/decode format, download the leading portion video, configure buffering area, decode and play the leading portion video.
Further, the key of back segment video described in the Asynchronous Request, and include the step of decrypt the back segment video: According to back segment video encrypted state, for user profile, the key of back segment video described in Asynchronous Request;After reception is described The key and the corresponding AES of the key of section video;The key and the corresponding AES of the key are by server Returned when the user profile possesses authority;The back segment video playback address is accessed, the back segment video is downloaded;According to institute Key and the corresponding AES of the key are stated, the preceding setting frame of the back segment video is decrypted, deposits in working area.
Further, it is described at the end of the leading portion video playback, directly play the step of the back segment video after decryption Suddenly include:
When the leading portion video, which is decoded, to be completed, decoder is restarted, buffering area is configured, decoded in the working area The preceding setting frame of the back segment video;According to the clip durations of the leading portion video, at the end of the leading portion video playback, directly Connect the preceding setting frame for playing the back segment video;The back segment video is decrypted except the remaining video segment of the preceding setting frame; According to the clip size of the remaining video segment, clip durations, code/decode format, compiled according to the remaining video segment Number order, current video segment decode complete when, restart decoder, configure buffering area, decoding be directed to current video Next video segment of fragment;Next video segment is directly played at the end of the current video segment is played.
Further, it is described at the end of the leading portion video playback, directly play the step of the back segment video after decryption Suddenly include:
When the leading portion video decode complete when, by the preceding setting frame of the back segment video in the working area add to The corresponding decoder of the leading portion video;At the end of the leading portion video playback, the preceding setting frame of the back segment video is played; The back segment video is decrypted except the remaining video segment of the preceding setting frame;It is big according to the fragment of the remaining video segment Small, clip durations, code/decode format, according to the order of the remaining video segment numbering, have been decoded in current video segment Cheng Shi, gives the current video segment corresponding decoder next video segment addition for current video segment;Institute State at the end of current video segment is played and directly play next video segment.
Further, the reception server is directed to the broadcast information that the playing request is returned, and is played according to described The step of information, leading portion video for playing the target video, also includes:If the leading portion video-encryption state is has encrypted, The leading portion video playback address is then accessed, according to the clip size of the leading portion video, code/decode format, the leading portion is downloaded Video, decrypts the leading portion video according to preset key and preset AES, configures buffering area, decodes and plays described Leading portion video.
The embodiment of the invention also discloses a kind of system of encrypted video netcast, including:
Playing request module, for initiating the playing request to target video;The target video is according to setting order quilt Cutting is leading portion video and back segment video;The leading portion video is a video segment;The back segment video regards at least one Frequency fragment;The back segment video is encrypted;
Playing module, is directed to the broadcast information that the playing request is returned, and play according to described for the reception server Information, plays the leading portion video of the target video;
Asynchronous deciphering module, for the key of back segment video described in Asynchronous Request, and decrypts the back segment video;
Play control module, at the end of the leading portion video playback, directly playing the back segment video after decryption.
Preferably, the playing module includes:Broadcast information module, is returned for the reception server for the playing request The broadcast information returned;The broadcast information includes the broadcast address and encrypted state, piece of video of each video segment of target video Segment information;The video segment of the video segment information including target video is numbered, when the clip size of each video segment, fragment Long, code/decode format;First leading portion playing module, if being unencryption for the leading portion video-encryption state, accesses institute Leading portion video playback address is stated, according to the clip size of the leading portion video, code/decode format, the leading portion video is downloaded, matches somebody with somebody Buffering area is put, decodes and plays the leading portion video.
Further, the asynchronous deciphering module includes:Key request module, for having been encrypted according to the back segment video State, for user profile, the key of back segment video described in Asynchronous Request;Key reception module, is regarded for receiving the back segment The key of frequency and the corresponding AES of the key;The key and the corresponding AES of the key are by server in institute State when user profile possesses authority and return;Back segment download module, for accessing the back segment video playback address, after download is described Section video;Frame deciphering module is set, is regarded for according to the key and the corresponding AES of the key, decrypting the back segment The preceding setting frame of frequency, deposits in working area.
Further, the play control module includes:First setting frame decoding module, for when the leading portion video When decoding is completed, decoder is restarted, buffering area is configured, the preceding setting of the back segment video in the working area is decoded Frame;First setting frame playing module, for the clip durations according to the leading portion video, when the leading portion video playback terminates When, directly play the preceding setting frame of the back segment video;First back segment deciphering module, for decrypting the back segment video except described The remaining video segment of preceding setting frame;First played in order module is big for the fragment according to the remaining video segment Small, clip durations, code/decode format, according to the order of the remaining video segment numbering, have been decoded in current video segment Cheng Shi, restarts decoder, configures buffering area, next video segment of the decoding for current video segment;Described current Video segment directly plays next video segment at the end of playing.
Further, the play control module includes:Second setting frame decoding module, for when the leading portion video When decoding is completed, give the leading portion video corresponding decoding the preceding setting frame addition of the back segment video in the working area Device;Second setting frame playing module, at the end of the leading portion video playback, playing the preceding setting of the back segment video Frame;Second back segment deciphering module, for decrypting the back segment video except the remaining video segment of the preceding setting frame;Second is suitable Sequence playing module, for the clip size according to the remaining video segment, clip durations, code/decode format, according to described The order of remaining video segment numbering, when current video segment decodes completion, will be regarded for the next of current video segment The addition of frequency fragment gives the current video segment corresponding decoder;Directly played at the end of the current video segment is played Next video segment.
Further, the playing module also includes:Second leading portion playing module, if for the leading portion video-encryption State then accesses the leading portion video playback address, according to the clip size of the leading portion video, encoding and decoding lattice to have encrypted Formula, downloads the leading portion video, and the leading portion video, configuration buffering are decrypted according to preset key and preset AES Area, decodes and plays the leading portion video.
In addition, the embodiment of the invention also discloses a kind of audio/video player system, the system includes server and at least one Individual player, the server includes:
Compress encrypting module, for by each video according to setting order cutting as leading portion video and back segment video, and to institute State back segment video-encryption;The leading portion video is a video segment;The back segment video is at least one video segment;
Playing request respond module, for receiving the playing request to the target video that the player is initiated, pin To the playing request, the corresponding broadcast information of the target video is returned;
Key returns to module, for receiving key request of the player to the back segment video, and is meeting setting During condition, the key of the back segment video is returned;
The player includes:
Playing request module, for initiating the playing request to target video;The target video is according to setting order quilt Cutting is leading portion video and back segment video;The leading portion video is a video segment;The back segment video regards at least one Frequency fragment;The back segment video is encrypted;
Playing module, is directed to the broadcast information that the playing request is returned, and play according to described for the reception server Information, plays the leading portion video of the target video;
Asynchronous deciphering module, for the key of back segment video described in Asynchronous Request, and decrypts the back segment video;
Play control module, at the end of the leading portion video playback, directly playing the back segment video after decryption.
Compared with prior art, the embodiment of the present invention includes advantages below:Because being played and asynchronous using by video segmentation Ask back segment video playback key mode so that request key network service process and decryption video buffer logic regarding It is asynchronous in frequency playing process to carry out, so that the problem of first frame time delay increases when avoiding encrypted video netcast, improves use Experience at family.
Brief description of the drawings
Fig. 1 a are structural representation of the invention;
Fig. 1 b are the sketch of technical scheme;
Fig. 2 is a kind of flow chart of the method for encrypted video netcast that the embodiment of the present invention one is provided;
Fig. 3 is the flow chart of the method for another encrypted video netcast that the embodiment of the present invention two is provided;
Fig. 4 is the flow chart of the method for another encrypted video netcast that the embodiment of the present invention three is provided;
Fig. 5 is a kind of system block diagram for encrypted video netcast that the embodiment of the present invention four is provided;
Fig. 6 is the system block diagram for another encrypted video netcast that the embodiment of the present invention five is provided;
Fig. 7 is the system block diagram for another encrypted video netcast that the embodiment of the present invention six is provided;
Fig. 8 is a kind of block diagram for audio/video player system that the embodiment of the present invention seven is provided.
Embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in accompanying drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here Limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Complete conveys to those skilled in the art.
Shown in reference picture 1a and Fig. 1 b, technical scheme is applied under network environment, and player is logical by network The mode of letter and the connection of server formation many-one or multi-to-multi;Above-mentioned player can be mounted in various terminals Client or page end or other forms;By server by each source video, i.e., each target video is suitable according to setting Sequence is at least split as front and rear two sections, by compressing encrypting module to back segment video-encryption, leading portion video is not encrypted or used Pre- distribution key encryption;After player initiates the playing request to target video, player receives server for upper State the broadcast information of the target video of playing request return;Above-mentioned broadcast information can be that above-mentioned server is looked into by index service Find;Player plays above-mentioned leading portion video according to broadcast information, and the simultaneously asynchronous broadcasting for carrying out above-mentioned back segment video is accurate It is standby;After above-mentioned leading portion video playback terminates, the back segment video after above-mentioned decryption is directly played.
Embodiment one:
Shown in reference picture 2, the embodiment of the present invention one provides a kind of method of encrypted video netcast, including step 101-104:
Step 101:Player initiates the playing request to target video;The target video is split according to setting order For leading portion video and back segment video;The leading portion video is a video segment;The back segment video is at least one piece of video Section;The back segment video is encrypted.
Player initiates the playing request to target video, can be that target video is broadcast when player detects user Player initiates the playing request or other feelings for target video by network service to server when putting demand Condition.For example when user performs clicking operation to the icon of certain video in player, player detects above-mentioned for the video Operation information, then by network service to server initiate for target video playing request.Above-mentioned playing request includes The corresponding public network address of above-mentioned player, the also label information including target video.
Above-mentioned target video is split as leading portion video and back segment video according to setting order;Above-mentioned leading portion video is One video segment, above-mentioned back segment video is at least one video segment, and above-mentioned back segment video is encrypted.Above-mentioned setting order can Can be content tandem to be time tandem, can also be in other sequences.For example, being directed to certain target video, always Shi Changwei 150 minutes, then be split as first 10 minutes and rear 140 minutes two fragments, Huo Zheqian by the video according to setting order 75 minutes and rear 75 minutes two fragments, either first 100 minutes and rear 50 minutes two fragments or first 10 minutes, centre 30 Minute, latter 110 minutes.For example certain animation is divided into 10 words, can be by it according to being divided into preceding two words and rear eight words, totally two before and after content Section, or first words, in three words, it is rear six words, totally three sections.In a word, video is not limited according to the slit mode of setting order, Two sections, even more three sections, multistage can be split as.It is above-mentioned be split and respectively encrypt after video segment can be stored in it is above-mentioned In server, it can also be stored in the memory in other network environments, but above-mentioned server needs to store above-mentioned regard The broadcast information of frequency fragment, at least including broadcast address, encrypted state, corresponding key and AES, code/decode format etc. Information.
Above-mentioned leading portion video is not encrypted or using pre- distribution key encryption;Pre- distribution key is carried in player in advance In, can be to be downloaded simultaneously from server by network service when user's first time is using above-mentioned player plays encrypted video Load in player or be built in always in player, and player code issue together or it is logical Cross other manner.Above-mentioned back segment video has been encrypted, and is encrypted by certain key with certain AES.
Step 102:The reception server is directed to the broadcast information that the playing request is returned, and according to the broadcast information, Play the leading portion video of the target video.
Above-mentioned player receives above-mentioned server and is directed to the broadcast information that above-mentioned playing request is returned, and above-mentioned broadcast information can With the numbering of each video segment including above-mentioned target video, file size, duration, code/decode format, broadcast address, encryption shape State;The leading portion video of above-mentioned target video is downloaded and played to player according to above-mentioned broadcast information.
Above-mentioned broadcast information is that above-mentioned server is directed to the broadcast information that playing request is returned, and can be above-mentioned server pin To the label information of target video in playing request, the label information corresponding to above-mentioned target video is found by index service Target video broadcast information, and return.
Step 103:The key of back segment video described in Asynchronous Request, and decrypt the back segment video.
Above-mentioned player is during downloading and playing the leading portion video of above-mentioned target video, while asynchronous pass through network The key request communicated to the initiation of above-mentioned server to the back segment video of above-mentioned target video;It is above-mentioned when satisfaction imposes a condition Player obtains the key of the above-mentioned back segment video of server return;Above-mentioned player is asynchronous simultaneously according to above-mentioned broadcast information Above-mentioned back segment video is downloaded, and according to the key of obtained above-mentioned back segment video, decrypts above-mentioned back segment video.
The key of above-mentioned back segment video is that above-mentioned server is directed to above-mentioned key request, is returned when satisfaction imposes a condition 's;Above-mentioned key request includes user profile;Above-mentioned impose a condition can be that above-mentioned user profile possesses play right.
Loaded in above-mentioned player or in the presence of the decryption program for various AESs, therefore decrypted above-mentioned back segment Video can be decrypted according to the corresponding decryption program of the AES of acquiescence, also may be used by the key of above-mentioned back segment video Decrypted with being the corresponding decryption program of AES in above-mentioned broadcast information.
Step 104:At the end of the leading portion video playback, the back segment video after decryption is directly played.
Above-mentioned player directly plays the back segment video after above-mentioned decryption at the end of above-mentioned leading portion video playback.It is above-mentioned Player judge above-mentioned leading portion video either with or without play terminate can by the above-mentioned leading portion video in above-mentioned broadcast information when Grow to judge, can also be by other means.Above-mentioned player during above-mentioned leading portion video is played, can prepare simultaneously on The broadcasting of back segment video is stated, such as first decrypts the preceding setting frame for decoding above-mentioned back segment video afterwards, such as preceding 100 frame prepares simultaneously The broadcasting of above-mentioned back segment video remainder;At the end of above-mentioned leading portion video playback, directly play before above-mentioned back segment video Set frame;And before the preceding setting frame broadcasting of above-mentioned back segment video terminates, it has been already prepared to the broadcasting of next fragment.
The embodiment of the present invention includes advantages below:Because being played and Asynchronous Request back segment video playback using by video segmentation The mode of key so that the network service process of request key and the buffer logic of decryption video are asynchronous in video display process Carry out, so that the problem of first frame time delay increases when avoiding encrypted video netcast, improves Consumer's Experience.
For embodiment of the method, in order to be briefly described, therefore it is all expressed as to a series of combination of actions, but this area Technical staff should know that the embodiment of the present invention is not limited by described sequence of movement, because according to present invention implementation Example, some steps can be carried out sequentially or simultaneously using other.Secondly, those skilled in the art should also know, specification Described in embodiment belong to necessary to preferred embodiment, the involved action not necessarily embodiment of the present invention.
Embodiment two:
Shown in reference picture 3, the embodiment of the present invention two provides a kind of method of encrypted video netcast, including step: 201-212:
Step 201:Player initiates the playing request to target video;The target video is split according to setting order For leading portion video and back segment video;The leading portion video is a video segment;The back segment video is at least one piece of video Section;The back segment video is encrypted.
Above-mentioned player initiates the playing request to target video by network service to server;Above-mentioned target video is Through being split according to setting order as leading portion video and back segment video;Above-mentioned leading portion video is a video segment;Above-mentioned back segment Video is at least one video segment;Above-mentioned back segment video is encrypted.Specifically, the duration of above-mentioned back segment video can be longer than The duration of above-mentioned leading portion video, protects the content of encrypted video as far as possible on the basis of Consumer's Experience is not influenceed.
Step 202:The reception server is directed to the broadcast information that the playing request is returned;The broadcast information includes target The broadcast address of each video segment of video and encrypted state, video segment information;The video segment information is regarded including target The video segment numbering of frequency, the clip size of each video segment, clip durations, code/decode format.
Above-mentioned player the reception server is directed to the broadcast information that above-mentioned playing request is returned;Above-mentioned broadcast information includes mesh Mark the broadcast address and encrypted state, video segment information of each video segment of video;Above-mentioned video segment information includes target The video segment numbering of video, the clip size of each video segment, clip durations, code/decode format.
Above-mentioned broadcast information is that above-mentioned server is directed to the broadcast information that playing request is returned, and can be above-mentioned server pin To the label information of target video in playing request, the label information corresponding to above-mentioned target video is found by index service Target video broadcast information, and return.
Step 203:If the leading portion video-encryption state is unencryption, the leading portion video playback address is accessed, According to the clip size of the leading portion video, code/decode format, the leading portion video is downloaded, buffering area is configured, decodes and play The leading portion video.
The encrypted state of each video segment in above-mentioned broadcast information, if above-mentioned leading portion video-encryption state is not Encryption, then access the above-mentioned leading portion video playback address in above-mentioned broadcast information, above-mentioned broadcast address can be URL (Uniform Resoure Locator, URL) address;According to the broadcast address of above-mentioned leading portion video, download above-mentioned leading portion and regard Frequently, judge whether above-mentioned leading portion video downloads completion by the file size of above-mentioned leading portion video;Buffering area is configured, according to upper The code/decode format initializing decoder of leading portion video is stated, decodes and plays above-mentioned leading portion video, step 205 is then performed.
Above-mentioned configuration buffering area can be the file size combination concrete condition by above-mentioned leading portion video, such as I/O speed With CPU processing speeds, to configure, buffering area can also be configured according to default condition.
Step 204:If the leading portion video-encryption state accesses the leading portion video playback address to have encrypted, According to the clip size of the leading portion video, code/decode format, the leading portion video is downloaded, according to preset key and preset AES decrypts the leading portion video, configures buffering area, decodes and play the leading portion video.
The encrypted state of each video segment in above-mentioned broadcast information, if above-mentioned leading portion video-encryption state is Encryption, then access the leading portion video playback address, above-mentioned broadcast address can be URL addresses;According to above-mentioned leading portion video Broadcast address, downloads above-mentioned leading portion video, judged by the file size of above-mentioned leading portion video above-mentioned leading portion video whether under Carry and complete;Above-mentioned leading portion video is decrypted according to preset key and preset AES, buffering area is configured, according to above-mentioned leading portion The code/decode format initializing decoder of video, decodes and plays the leading portion video, then performs step 205.
Above-mentioned preset key is carried in player in advance with preset AES, can make for the first time in user , can also with downloading and loading in player from server by network service during above-mentioned player plays encrypted video To be built in always in player, and player code issue together or otherwise.
Step 205:According to back segment video encrypted state, for user profile, back segment video described in Asynchronous Request Key.
The encrypted state of back segment video in above-mentioned broadcast information, or acquiescence above-mentioned back segment video plus Close state, can be the player account of user's registration or the identity information of user, above-mentioned for user profile Player downloads and while play above-mentioned leading portion video, it is asynchronous to be sent by network service to above-mentioned server to above-mentioned back segment The request of the key of video;User profile, the identifying of above-mentioned back segment video, the sheet of above-mentioned player can be included in above-mentioned request Way address.
Step 206:Receive the key and the corresponding AES of the key of the back segment video;The key and described The corresponding AES of key is returned by server when the user profile possesses authority.
In above-mentioned player downloads and while play above-mentioned leading portion video, above-mentioned player receives above-mentioned back segment video Key and the corresponding AES of above-mentioned key;Above-mentioned key and the corresponding AES of above-mentioned key are by server in above-mentioned use Family information is returned when possessing authority.
Above-mentioned server stores the user profile for possessing and playing license, and above-mentioned server judges whether user profile possesses Authority, can be by judging whether user possesses broadcasting license, if situations such as account balance is not enough;If for example user possesses License is played, and account balance is sufficient, then above-mentioned server judges that user profile possesses authority.
Step 207:The back segment video playback address is accessed, the back segment video is downloaded.
In above-mentioned player downloads and while play above-mentioned leading portion video, above-mentioned player is accessed in above-mentioned broadcast information Above-mentioned back segment video playback address, downloads above-mentioned back segment video.
Step 208:According to the key and the corresponding AES of the key, the preceding setting of the back segment video is decrypted Frame, deposits in working area.
In above-mentioned player downloads and while play above-mentioned leading portion video, above-mentioned player is according to above-mentioned key and above-mentioned The corresponding AES of key, decrypts the preceding setting frame of above-mentioned back segment video, and the preceding setting frame of above-mentioned back segment video is deposited In working area;Above-mentioned working area can be in the local corresponding internal memory of above-mentioned player or above-mentioned player is locally right In the hard disk answered.Decryption program corresponding to the corresponding AES of above-mentioned key is had been stored in above-mentioned player.Above-mentioned elder generation The step of preceding setting frame for decrypting above-mentioned back segment video is in order to as fast as possible before above-mentioned leading portion video playback terminates, to prepare The broadcasting of good next section of video, at the end of above-mentioned leading portion video playback, is connected the broadcasting of next section of video, therefore employ elder generation The mode of the preceding setting frame of above-mentioned back segment video is decrypted, for example, first decrypts preceding 200 frame of above-mentioned back segment video;But after above-mentioned Before the broadcasting of the preceding setting frame of section video terminates, need also exist for being ready to again the broadcasting of next section of video.
Step 209:When the leading portion video, which is decoded, to be completed, decoder is restarted, buffering area is configured, decoding is described temporarily Deposit the preceding setting frame of the back segment video in area.
When above-mentioned leading portion video, which is decoded, to be completed, decoder is restarted, buffering area is configured, according in above-mentioned broadcast information The code/decode format initializing decoder of first fragment of above-mentioned back segment video, the above-mentioned back segment decoded in above-mentioned working area is regarded The preceding setting frame of frequency.
Step 210:According to the clip durations of the leading portion video, at the end of the leading portion video playback, directly play The preceding setting frame of the back segment video.
According to the clip durations of above-mentioned leading portion video, judge whether above-mentioned leading portion video is played and terminate;When above-mentioned leading portion is regarded At the end of frequency is played, the preceding setting frame of above-mentioned back segment video is directly played, the broadcasting with above-mentioned head end video is just connected.
Step 211:The back segment video is decrypted except the remaining video segment of the preceding setting frame.
Above-mentioned back segment video is decrypted except the remaining video segment of above-mentioned preceding setting frame;Above-mentioned decrypting process can be above-mentioned Begin to, terminate as long as can be played in the preceding setting frame of above-mentioned back segment video after the completion of the preceding setting frame decryption of back segment video Before, above-mentioned back segment video is got out except the broadcasting of first video segment of the remainder of preceding setting frame.
Step 212:According to the clip size of the remaining video segment, clip durations, code/decode format, according to described The order of remaining video segment numbering, when current video segment decodes completion, restarts decoder, configures buffering area, Next video segment of the decoding for current video segment;The current video segment play at the end of directly play it is described under One video segment.
For first video segment of the above-mentioned back segment video except the remainder of preceding setting frame, when above-mentioned back segment video When preceding setting frame decoding is completed, decoder is restarted, buffering area is configured, according to above-mentioned back segment video in above-mentioned broadcast information The code/decode format initializing decoder of first video segment, decodes above-mentioned back segment video except the remainder of preceding setting frame First video segment;At the end of the preceding setting frame of above-mentioned back segment video is played, directly play before above-mentioned back segment video is removed and set First video segment of the remainder of framing, the broadcasting with the preceding setting frame of above-mentioned back segment video is just connected.According to upper Step is stated, according to coded sequence, other video segments for above-mentioned back segment video in order, in current video segment decoding During completion, decoder is restarted, buffering area, next video segment of the decoding for current video segment is configured;Work as above-mentioned At the end of preceding video segment is played, above-mentioned next video segment is directly played.
The embodiment of the present invention includes advantages below:Because leading portion video is not encrypted or added using preset key in advance Close, back segment video-encryption by the way of video segmentation broadcasting and Asynchronous Request back segment video playback key, and is employed After current video segment decoding terminates, decoder, side of the decoding for next video segment of current video segment are restarted Formula so that before current video segment broadcasting terminates, broadcasting all set to above-mentioned next video segment in advance so that request The asynchronous progress in video display process of the network service process of key and the buffer logic of decryption video, and each video segment Broadcasting smoothness linking so that the problem of first frame time delay increases when avoiding encrypted video netcast, improves Consumer's Experience.
For embodiment of the method, in order to be briefly described, therefore it is all expressed as to a series of combination of actions, but this area Technical staff should know that the embodiment of the present invention is not limited by described sequence of movement, because according to present invention implementation Example, some steps can be carried out sequentially or simultaneously using other.Secondly, those skilled in the art should also know, specification Described in embodiment belong to necessary to preferred embodiment, the involved action not necessarily embodiment of the present invention.
Embodiment three:
Shown in reference picture 4, the embodiment of the present invention three provides a kind of method of encrypted video netcast, including step: 301-312:
Step 301:Player initiates the playing request to target video;The target video is split according to setting order For leading portion video and back segment video;The leading portion video is a video segment;The back segment video is at least one piece of video Section;The back segment video is encrypted.
Step 302:The reception server is directed to the broadcast information that the playing request is returned;The broadcast information includes target The broadcast address of each video segment of video and encrypted state, video segment information;The video segment information is regarded including target The video segment numbering of frequency, the clip size of each video segment, clip durations, code/decode format.
Step 303:If the leading portion video-encryption state is unencryption, the leading portion video playback address is accessed, According to the clip size of the leading portion video, code/decode format, the leading portion video is downloaded, buffering area is configured, decodes and play The leading portion video, then performs step 305.
Step 304:If the leading portion video-encryption state accesses the leading portion video playback address to have encrypted, According to the clip size of the leading portion video, code/decode format, the leading portion video is downloaded, according to preset key and preset AES decrypts the leading portion video, configures buffering area, decodes and play the leading portion video, then performs step 305.
Step 305:According to back segment video encrypted state, for user profile, back segment video described in Asynchronous Request Key.
Step 306:Receive the key and the corresponding AES of the key of the back segment video;The key and described The corresponding AES of key is returned by server when the user profile possesses authority.
Step 307:The back segment video playback address is accessed, the back segment video is downloaded.
Step 308:According to the key and the corresponding AES of the key, the preceding setting of the back segment video is decrypted Frame, deposits in working area.
Step 309:When the leading portion video, which is decoded, to be completed, by the preceding setting of the back segment video in the working area Frame addition gives the leading portion video corresponding decoder.
When above-mentioned leading portion video decode complete when, by the preceding setting frame of the above-mentioned back segment video in above-mentioned working area add to The corresponding decoder of above-mentioned leading portion video, decodes the preceding setting frame of the above-mentioned back segment video in above-mentioned working area;Usually, belong to Each video segment code/decode format of same video is identical, therefore initializing decoder again is not required here.In practical application In, player is by filling the interface of decoder buffer, you can complete before the above-mentioned back segment video in above-mentioned working area The step of setting frame addition corresponding to above-mentioned leading portion video decoder, for example can be by the way of Append interfaces be called.
Step 310:The preceding setting frame of the back segment video is played at the end of the leading portion video playback.
According to the clip durations of above-mentioned leading portion video, judge whether above-mentioned leading portion video is played and terminate;When above-mentioned leading portion is regarded At the end of frequency is played, above-mentioned player directly plays the preceding setting frame of above-mentioned back segment video, and the broadcasting with above-mentioned head end video is firm Good linking.
Step 311:The back segment video is decrypted except the remaining video segment of the preceding setting frame.
Above-mentioned back segment video is decrypted except the remaining video segment of above-mentioned preceding setting frame;Above-mentioned decrypting process can be above-mentioned Begin to, terminate as long as can be played in the preceding setting frame of above-mentioned back segment video after the completion of the preceding setting frame decryption of back segment video Before, above-mentioned back segment video is got out except the broadcasting of first video segment of the remainder of preceding setting frame.
Step 312:According to the clip size of the remaining video segment, clip durations, code/decode format, according to described The order of remaining video segment numbering, when current video segment decodes completion, will be regarded for the next of current video segment The addition of frequency fragment gives the current video segment corresponding decoder;Directly played at the end of the current video segment is played Next video segment.
For first video segment of the above-mentioned back segment video except the remainder of preceding setting frame, when above-mentioned back segment video When preceding setting frame decoding is completed, by above-mentioned back segment video except first video segment addition of the remainder of preceding setting frame is to upper The corresponding decoder of preceding setting frame of back segment video is stated, first that above-mentioned back segment video sets the remainder of frame except before is decoded Video segment;At the end of the preceding setting frame of above-mentioned back segment video is played, above-mentioned player is directly played above-mentioned back segment video and removed First video segment of the remainder of preceding setting frame, the broadcasting with the preceding setting frame of above-mentioned back segment video is just connected.Press According to above-mentioned steps, according to coded sequence, other video segments for above-mentioned back segment video in order, in current video segment When decoding is completed, it will give above-mentioned current video segment corresponding decoding for next video segment addition of current video segment Device;At the end of above-mentioned current video segment is played, above-mentioned player directly plays above-mentioned next video segment;Usually, belong to It is identical in each video segment code/decode format of same video, therefore initializing decoder again is not required here.
The embodiment of the present invention includes advantages below:Because leading portion video is not encrypted or added using preset key in advance Close, back segment video-encryption by the way of video segmentation broadcasting and Asynchronous Request back segment video playback key, and is employed When current video segment decoding is completed, by for the compressed data addition of the next video segment of current video segment to above-mentioned current The mode of the corresponding decoder of video segment so that request key network service process and decryption video buffer logic regarding It is asynchronous in frequency playing process to carry out, and the broadcasting smoothness linking of each video segment, so as to avoid encrypted video netcast When first frame time delay the problem of increase, improve Consumer's Experience.
For embodiment of the method, in order to be briefly described, therefore it is all expressed as to a series of combination of actions, but this area Technical staff should know that the embodiment of the present invention is not limited by described sequence of movement, because according to present invention implementation Example, some steps can be carried out sequentially or simultaneously using other.Secondly, those skilled in the art should also know, specification Described in embodiment belong to necessary to preferred embodiment, the involved action not necessarily embodiment of the present invention.
Example IV:
Shown in reference picture 5, the embodiment of the present invention four provides a kind of system of encrypted video netcast, including:
Playing request module 60, for initiating the playing request to target video;The target video according to setting sequentially It is split as leading portion video and back segment video;The leading portion video is a video segment;The back segment video is at least one Video segment;The back segment video is encrypted;
Playing module 70, is directed to the broadcast information that the playing request is returned, and broadcast according to described for the reception server Information is put, the leading portion video of the target video is played;
Asynchronous deciphering module 80, for the key of back segment video described in Asynchronous Request, and decrypts the back segment video;
Play control module 90, at the end of the leading portion video playback, directly playing the back segment video after decryption.
The embodiment of the present invention includes advantages below:Because being played and Asynchronous Request back segment video playback using by video segmentation The mode of key so that the network service process of request key and the buffer logic of decryption video are asynchronous in video display process Carry out, so that the problem of first frame time delay increases when avoiding encrypted video netcast, improves Consumer's Experience.
For device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, it is related Part illustrates referring to the part of embodiment of the method.
Embodiment five:
Shown in reference picture 6, the embodiment of the present invention five provides a kind of system of encrypted video netcast, including:
Playing request module 60, for initiating the playing request to target video;The target video according to setting sequentially It is split as leading portion video and back segment video;The leading portion video is a video segment;The back segment video is at least one Video segment;The back segment video is encrypted;
Broadcast information module 701, the broadcast information that the playing request is returned is directed to for the reception server;It is described to play Information includes the broadcast address and encrypted state, video segment information of each video segment of target video;The video segment letter Breath includes the video segment numbering of target video, the clip size of each video segment, clip durations, code/decode format;
First leading portion playing module 702, if for the leading portion video-encryption state be unencryption, access it is described before Section video playback address, according to the clip size of the leading portion video, code/decode format, downloads the leading portion video, configuration is slow Area is rushed, decodes and plays the leading portion video;
Second leading portion playing module 703, if for the leading portion video-encryption state to have encrypted, access it is described before Section video playback address, according to the clip size of the leading portion video, code/decode format, downloads the leading portion video, according to pre- The key and preset AES put decrypt the leading portion video, configure buffering area, decode and play the leading portion video.
Key request module 801, for according to back segment video encrypted state, for user profile, Asynchronous Request The key of the back segment video;
Key reception module 802, key and the corresponding AES of the key for receiving the back segment video;Institute State key and the corresponding AES of the key is returned by server when the user profile possesses authority;
Back segment download module 803, for accessing the back segment video playback address, downloads the back segment video;
Set frame deciphering module 804, for according to the key and the corresponding AES of the key, decrypt it is described after The preceding setting frame of section video, deposits in working area;
First setting frame decoding module 901, for when the leading portion video decodes completion, restarting decoder, matching somebody with somebody Buffering area is put, the preceding setting frame of the back segment video in the working area is decoded;
First setting frame playing module 902, for the clip durations according to the leading portion video, when the leading portion video is broadcast At the end of putting, the preceding setting frame of the back segment video is directly played;
First back segment deciphering module 903, for decrypting the back segment video except the remaining piece of video of the preceding setting frame Section;
First played in order module 904, for the clip size according to the remaining video segment, clip durations, volume Codec format, according to the order of the remaining video segment numbering, when current video segment decodes completion, restarting solution Code device, configures buffering area, next video segment of the decoding for current video segment;Play and terminate in the current video segment When directly play next video segment.
The embodiment of the present invention includes advantages below:Because leading portion video is not encrypted or added using preset key in advance Close, back segment video-encryption by the way of video segmentation broadcasting and Asynchronous Request back segment video playback key, and is employed After current video segment decoding terminates, decoder, side of the decoding for next video segment of current video segment are restarted Formula so that before current video segment broadcasting terminates, broadcasting all set to above-mentioned next video segment in advance so that request The asynchronous progress in video display process of the network service process of key and the buffer logic of decryption video, and each video segment Broadcasting smoothness linking so that the problem of first frame time delay increases when avoiding encrypted video netcast, improves Consumer's Experience.
For device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, it is related Part illustrates referring to the part of embodiment of the method.
Embodiment six:
Shown in reference picture 7, the embodiment of the present invention six provides a kind of system of encrypted video netcast, including:
Playing request module 60, for initiating the playing request to target video;The target video according to setting sequentially It is split as leading portion video and back segment video;The leading portion video is a video segment;The back segment video is at least one Video segment;The back segment video is encrypted;
Broadcast information module 701, the broadcast information that the playing request is returned is directed to for the reception server;It is described to play Information includes the broadcast address and encrypted state, video segment information of each video segment of target video;The video segment letter Breath includes the video segment numbering of target video, the clip size of each video segment, clip durations, code/decode format;
First leading portion playing module 702, if for the leading portion video-encryption state be unencryption, access it is described before Section video playback address, according to the clip size of the leading portion video, code/decode format, downloads the leading portion video, configuration is slow Area is rushed, decodes and plays the leading portion video;
Second leading portion playing module 703, if for the leading portion video-encryption state to have encrypted, access it is described before Section video playback address, according to the clip size of the leading portion video, code/decode format, downloads the leading portion video, according to pre- The key and preset AES put decrypt the leading portion video, configure buffering area, decode and play the leading portion video.
Key request module 801, for according to back segment video encrypted state, for user profile, Asynchronous Request The key of the back segment video;
Key reception module 802, key and the corresponding AES of the key for receiving the back segment video;Institute State key and the corresponding AES of the key is returned by server when the user profile possesses authority;
Back segment download module 803, for accessing the back segment video playback address, downloads the back segment video;
Set frame deciphering module 804, for according to the key and the corresponding AES of the key, decrypt it is described after The preceding setting frame of section video, deposits in working area;
Second setting frame decoding module 905, for when the leading portion video decodes completion, by the institute in the working area The preceding setting frame addition for stating back segment video gives the leading portion video corresponding decoder;
Second setting frame playing module 906, for playing the back segment video at the end of the leading portion video playback Preceding setting frame;
Second back segment deciphering module 907, for decrypting the back segment video except the remaining piece of video of the preceding setting frame Section;
Second played in order module 908, for the clip size according to the remaining video segment, clip durations, volume Codec format,, will be for current when current video segment decodes completion according to the order of the remaining video segment numbering Next video segment addition of video segment gives the current video segment corresponding decoder;Broadcast in the current video segment Next video segment is directly played at the end of putting.
The embodiment of the present invention includes advantages below:Because leading portion video is not encrypted or added using preset key in advance Close, back segment video-encryption by the way of video segmentation broadcasting and Asynchronous Request back segment video playback key, and is employed When current video segment decoding is completed, by for the compressed data addition of the next video segment of current video segment to above-mentioned current The mode of the corresponding decoder of video segment so that request key network service process and decryption video buffer logic regarding It is asynchronous in frequency playing process to carry out, and the broadcasting smoothness linking of each video segment, so as to avoid encrypted video netcast When first frame time delay the problem of increase, improve Consumer's Experience.
For device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, it is related Part illustrates referring to the part of embodiment of the method.
Embodiment seven:
Shown in reference picture 8, the embodiment of the present invention seven provides a kind of audio/video player system, including server 100 and at least One player 50,
The server 100 includes:
Compress encrypting module 110, for by each video according to setting order cutting as leading portion video and back segment video, it is and right The back segment video-encryption;The leading portion video is a video segment;The back segment video is at least one video segment;
Above-mentioned server is by above-mentioned compression encrypting module by each video respectively according to setting order cutting as leading portion video With back segment video, and to above-mentioned back segment video-encryption;Above-mentioned leading portion video is a video segment;Above-mentioned back segment video is at least One video segment;The embodiment of the present invention is to the cutting quantity of above-mentioned video segment with how not limited according to the cutting of setting order System;It is above-mentioned be split and respectively encrypt after video segment can be stored in above-mentioned server, other nets can also be stored in In memory in network environment, but above-mentioned server needs to store the related broadcast information of above-mentioned video segment, at least wraps Include the information such as broadcast address, encrypted state, corresponding key and AES, code/decode format;
Playing request respond module 120, for receiving the playing request to the target video that the player is initiated, For the playing request, the corresponding broadcast information of the target video is returned;
Above-mentioned server is returned to above-mentioned player for above-mentioned playing request and broadcast by above-mentioned playing request respond module Information is put, can be the label information that above-mentioned server is directed to target video in playing request, be found pair by index service Should in the broadcast information of the target video of the label information of above-mentioned target video, and return;
Above-mentioned broadcast information can the numbering including each video segment of above-mentioned target video, file size, duration, volume solution Code form, broadcast address, encrypted state;The numbering of above-mentioned each video segment is used to distinguish each video segment and played for distinguishing Sequentially;Above-mentioned file size is used to judge whether each video segment downloads completion respectively, may also be used for adjusting and configuring buffering Area;Above-mentioned code/decode format is used to distinguish initializing decoder, confirms codec format;Above-mentioned duration is used to confirm each video respectively Whether play and terminate in fragment playing process;Above-mentioned broadcast address is used for the above-mentioned each video segment of player downloads;Above-mentioned decryption State is used for the encrypted state for confirming each video segment, and whether needs decryption;
Key returns to module 130, for receiving key request of the player to the back segment video, and is set in satisfaction During fixed condition, the key of the back segment video is returned;
Above-mentioned server returns to module by above-mentioned key, and receiving above-mentioned player please to the key of above-mentioned back segment video Ask, and when satisfaction imposes a condition, return to the key of above-mentioned back segment video;Above-mentioned impose a condition can be above-mentioned user profile tool Standby play right, above-mentioned server stores the user profile for possessing and playing license, and whether above-mentioned server judges user profile Possess authority, can be by judging whether user possesses broadcasting license, if situations such as account balance is not enough;If such as user Possess broadcasting license, and account balance is sufficient, then above-mentioned server judges that user profile possesses authority;
The player 50 includes:
Playing request module 60, for initiating the playing request to target video;The target video according to setting sequentially It is split as leading portion video and back segment video;The leading portion video is a video segment;The back segment video is at least one Video segment;The back segment video is encrypted;
Playing module 70, is directed to the broadcast information that the playing request is returned, and broadcast according to described for the reception server Information is put, the leading portion video of the target video is played;
Asynchronous deciphering module 80, for the key of back segment video described in Asynchronous Request, and decrypts the back segment video;
Play control module 90, at the end of the leading portion video playback, directly playing the back segment video after decryption.
The embodiment of the present invention includes advantages below:Because being played and Asynchronous Request back segment video playback using by video segmentation The mode of key so that the network service process of request key and the buffer logic of decryption video are asynchronous in video display process Carry out, so that the problem of first frame time delay increases when avoiding encrypted video netcast, improves Consumer's Experience.
In the specification that this place is provided, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention Example can be put into practice in the case of these no details.In some instances, known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help to understand one or more of each inventive aspect, exist Above in the description of the exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:It is i.e. required to protect The application claims of shield features more more than the feature being expressly recited in each claim.More precisely, such as right As claim reflects, inventive aspect is all features less than single embodiment disclosed above.Therefore, it then follows tool Thus claims of body embodiment are expressly incorporated in the embodiment, wherein the conduct of each claim in itself The separate embodiments of the present invention.
Those skilled in the art, which are appreciated that, to be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or Sub-component.In addition at least some in such feature and/or process or unit exclude each other, it can use any Combination is disclosed to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so to appoint Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power Profit is required, summary and accompanying drawing) disclosed in each feature can or similar purpose identical, equivalent by offer alternative features come generation Replace.
Although in addition, it will be appreciated by those of skill in the art that some embodiments described herein include other embodiments In included some features rather than further feature, but the combination of the feature of be the same as Example does not mean in of the invention Within the scope of and form different embodiments.For example, in the following claims, times of embodiment claimed One of meaning mode can be used in any combination.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between bracket should not be configured to limitations on claims.Word "comprising" is not excluded the presence of not Element listed in the claims or step.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of some different elements and coming real by means of properly programmed computer It is existing.In if the unit claim of equipment for drying is listed, several in these devices can be by same hardware branch To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame Claim.

Claims (10)

1. a kind of method of encrypted video netcast, it is characterised in that methods described includes:
Player initiates the playing request to target video;The target video be split according to setting order as leading portion video and Back segment video;The leading portion video is a video segment;The back segment video is at least one video segment;The back segment is regarded Frequency is encrypted;
The reception server is directed to the broadcast information that the playing request is returned, and according to the broadcast information, plays the target The leading portion video of video;
The key of back segment video described in Asynchronous Request, and decrypt the back segment video;
At the end of the leading portion video playback, the back segment video after decryption is directly played.
2. according to the method described in claim 1, it is characterised in that the reception server is returned for the playing request The step of broadcast information, and according to the broadcast information, leading portion video for playing the target video, includes:
The reception server is directed to the broadcast information that the playing request is returned;The broadcast information includes each video of target video The broadcast address of fragment and encrypted state, video segment information;The video segment information includes the video segment of target video Numbering, the clip size of each video segment, clip durations, code/decode format;
If the leading portion video-encryption state is unencryption, the leading portion video playback address is accessed, according to the leading portion The clip size of video, code/decode format, download the leading portion video, configure buffering area, decode and play the leading portion video.
3. method according to claim 2, it is characterised in that the key of back segment video described in the Asynchronous Request, and solve The step of close back segment video, includes:
According to back segment video encrypted state, for user profile, the key of back segment video described in Asynchronous Request;
Receive the key and the corresponding AES of the key of the back segment video;The key and the key it is corresponding plus Close algorithm is returned by server when the user profile possesses authority;
The back segment video playback address is accessed, the back segment video is downloaded;
According to the key and the corresponding AES of the key, the preceding setting frame of the back segment video is decrypted, is deposited in temporarily Deposit area.
4. method according to claim 3, it is characterised in that described at the end of the leading portion video playback, directly broadcasts The step of putting the back segment video after decryption includes:
When the leading portion video, which is decoded, to be completed, decoder is restarted, buffering area is configured, decodes described in the working area The preceding setting frame of back segment video;
According to the clip durations of the leading portion video, at the end of the leading portion video playback, the back segment video is directly played Preceding setting frame;
The back segment video is decrypted except the remaining video segment of the preceding setting frame;
According to the clip size of the remaining video segment, clip durations, code/decode format, according to the remaining piece of video The order of segment number, when current video segment decodes completion, restarts decoder, configures buffering area, decoding is for currently Next video segment of video segment;Next video segment is directly played at the end of the current video segment is played.
5. method according to claim 3, it is characterised in that described at the end of the leading portion video playback, directly broadcasts The step of putting the back segment video after decryption includes:
When the leading portion video, which is decoded, to be completed, the preceding setting frame of the back segment video in the working area is added to described The corresponding decoder of leading portion video;
At the end of the leading portion video playback, the preceding setting frame of the back segment video is played;
The back segment video is decrypted except the remaining video segment of the preceding setting frame;
According to the clip size of the remaining video segment, clip durations, code/decode format, according to the remaining piece of video The order of segment number, current video segment decode complete when, by next video segment for current video segment add to The corresponding decoder of the current video segment;Next video is directly played at the end of the current video segment is played Fragment.
6. method according to claim 2, it is characterised in that the reception server is returned for the playing request The step of broadcast information, and according to the broadcast information, leading portion video for playing the target video, also includes:
If the leading portion video-encryption state accesses the leading portion video playback address, according to the leading portion to have encrypted The clip size of video, code/decode format, download the leading portion video, are decrypted according to preset key and preset AES The leading portion video, configures buffering area, decodes and play the leading portion video.
7. a kind of system of encrypted video netcast, it is characterised in that the system includes:
Playing request module, for initiating the playing request to target video;The target video is split according to setting order For leading portion video and back segment video;The leading portion video is a video segment;The back segment video is at least one piece of video Section;The back segment video is encrypted;
Playing module, the broadcast information that the playing request is returned is directed to for the reception server, and according to the broadcast information, Play the leading portion video of the target video;
Asynchronous deciphering module, for the key of back segment video described in Asynchronous Request, and decrypts the back segment video;
Play control module, at the end of the leading portion video playback, directly playing the back segment video after decryption.
8. system according to claim 7, it is characterised in that the playing module includes:
Broadcast information module, the broadcast information that the playing request is returned is directed to for the reception server;The broadcast information bag Include the broadcast address and encrypted state, video segment information of each video segment of target video;The video segment information includes The video segment numbering of target video, the clip size of each video segment, clip durations, code/decode format;
First leading portion playing module, if being unencryption for the leading portion video-encryption state, accesses the leading portion video Broadcast address, according to the clip size of the leading portion video, code/decode format, downloads the leading portion video, configures buffering area, solution Code simultaneously plays the leading portion video.
9. system according to claim 8, it is characterised in that the asynchronous deciphering module includes:
Key request module, for according to back segment video encrypted state, for user profile, back segment described in Asynchronous Request The key of video;
Key reception module, key and the corresponding AES of the key for receiving the back segment video;The key AES corresponding with the key is returned by server when the user profile possesses authority;
Back segment download module, for accessing the back segment video playback address, downloads the back segment video;
Frame deciphering module is set, for according to the key and the corresponding AES of the key, decrypting the back segment video Preceding setting frame, deposit in working area.
10. a kind of audio/video player system, the system includes server and at least one player, it is characterised in that the clothes Business device includes:
Compress encrypting module, for by each video according to setting order cutting as leading portion video and back segment video, and to after described Section video-encryption;The leading portion video is a video segment;The back segment video is at least one video segment;
Playing request respond module, for receiving the playing request to the target video that the player is initiated, for institute Playing request is stated, the corresponding broadcast information of the target video is returned;
Key returns to module, for receiving key request of the player to the back segment video, and is imposed a condition in satisfaction When, return to the key of the back segment video;
The player includes:
Playing request module, for initiating the playing request to target video;The target video is split according to setting order For leading portion video and back segment video;The leading portion video is a video segment;The back segment video is at least one piece of video Section;The back segment video is encrypted;
Playing module, the broadcast information that the playing request is returned is directed to for the reception server, and according to the broadcast information, Play the leading portion video of the target video;
Asynchronous deciphering module, for the key of back segment video described in Asynchronous Request, and decrypts the back segment video;
Play control module, at the end of the leading portion video playback, directly playing the back segment video after decryption.
CN201710098331.7A 2017-02-22 2017-02-22 Method and system for playing encrypted video through network Active CN106961614B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710098331.7A CN106961614B (en) 2017-02-22 2017-02-22 Method and system for playing encrypted video through network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710098331.7A CN106961614B (en) 2017-02-22 2017-02-22 Method and system for playing encrypted video through network

Publications (2)

Publication Number Publication Date
CN106961614A true CN106961614A (en) 2017-07-18
CN106961614B CN106961614B (en) 2020-04-21

Family

ID=59481523

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710098331.7A Active CN106961614B (en) 2017-02-22 2017-02-22 Method and system for playing encrypted video through network

Country Status (1)

Country Link
CN (1) CN106961614B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107613317A (en) * 2017-09-08 2018-01-19 康佳集团股份有限公司 A kind of method, storage medium and intelligent television for playing local cipher media
CN107786877A (en) * 2017-10-20 2018-03-09 北京奇艺世纪科技有限公司 A kind of method and apparatus of preview video
CN107995219A (en) * 2017-12-22 2018-05-04 掌阅科技股份有限公司 File accelerates to show method, computing device and computer-readable storage medium
CN108834083A (en) * 2018-05-22 2018-11-16 朱小军 A kind of multi-function telephones communication system
WO2019222915A1 (en) * 2018-05-22 2019-11-28 Zhu Xiaojun Multi-functional telephone communication system
CN111741268A (en) * 2020-06-30 2020-10-02 中国建设银行股份有限公司 Video transmission method, device, server, equipment and medium
CN113727184A (en) * 2020-05-25 2021-11-30 京东城市(北京)数字科技有限公司 Video playing method, device, system, storage medium and electronic equipment
CN114996747A (en) * 2022-08-03 2022-09-02 中科雨辰科技有限公司 Method and system for off-line playing of encrypted file
CN115334356A (en) * 2022-08-12 2022-11-11 中国电信股份有限公司 Video playing method and system, video security platform and communication equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2343890A2 (en) * 2002-01-02 2011-07-13 Sony Electronics Inc. Partial encryption and PID mapping
CN105208464A (en) * 2015-09-21 2015-12-30 网易(杭州)网络有限公司 Multimedia data stream playing method and terminal
CN105376596A (en) * 2015-06-18 2016-03-02 广东欧珀移动通信有限公司 Video encryption and decryption methods and mobile terminals
CN105704515A (en) * 2015-06-03 2016-06-22 深圳Tcl数字技术有限公司 Fast playback starting method and device of media file

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2343890A2 (en) * 2002-01-02 2011-07-13 Sony Electronics Inc. Partial encryption and PID mapping
CN105704515A (en) * 2015-06-03 2016-06-22 深圳Tcl数字技术有限公司 Fast playback starting method and device of media file
CN105376596A (en) * 2015-06-18 2016-03-02 广东欧珀移动通信有限公司 Video encryption and decryption methods and mobile terminals
CN105208464A (en) * 2015-09-21 2015-12-30 网易(杭州)网络有限公司 Multimedia data stream playing method and terminal

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107613317A (en) * 2017-09-08 2018-01-19 康佳集团股份有限公司 A kind of method, storage medium and intelligent television for playing local cipher media
CN107786877A (en) * 2017-10-20 2018-03-09 北京奇艺世纪科技有限公司 A kind of method and apparatus of preview video
CN107786877B (en) * 2017-10-20 2020-07-03 北京奇艺世纪科技有限公司 Method and device for previewing video
CN107995219A (en) * 2017-12-22 2018-05-04 掌阅科技股份有限公司 File accelerates to show method, computing device and computer-readable storage medium
CN108834083A (en) * 2018-05-22 2018-11-16 朱小军 A kind of multi-function telephones communication system
WO2019222915A1 (en) * 2018-05-22 2019-11-28 Zhu Xiaojun Multi-functional telephone communication system
CN108834083B (en) * 2018-05-22 2020-12-08 朱小军 Multifunctional telephone communication system
CN113727184B (en) * 2020-05-25 2023-11-03 京东城市(北京)数字科技有限公司 Video playing method, device, system, storage medium and electronic equipment
CN113727184A (en) * 2020-05-25 2021-11-30 京东城市(北京)数字科技有限公司 Video playing method, device, system, storage medium and electronic equipment
CN111741268A (en) * 2020-06-30 2020-10-02 中国建设银行股份有限公司 Video transmission method, device, server, equipment and medium
CN114996747B (en) * 2022-08-03 2022-10-04 中科雨辰科技有限公司 Method and system for off-line playing of encrypted file
CN114996747A (en) * 2022-08-03 2022-09-02 中科雨辰科技有限公司 Method and system for off-line playing of encrypted file
CN115334356A (en) * 2022-08-12 2022-11-11 中国电信股份有限公司 Video playing method and system, video security platform and communication equipment
CN115334356B (en) * 2022-08-12 2024-02-23 中国电信股份有限公司 Video playing method and system, video security platform and communication equipment

Also Published As

Publication number Publication date
CN106961614B (en) 2020-04-21

Similar Documents

Publication Publication Date Title
CN106961614A (en) A kind of method and system of encrypted video netcast
CN102292931B (en) Method and device for multiple content protection systems in a file
CN103583051B (en) Playlists for real-time or near real-time streaming
EP2467956B1 (en) Encoding video streams for adaptive video streaming
US8671452B2 (en) Apparatus and method for moving rights object from one device to another device via server
CN110138716A (en) A kind of offer of key, video broadcasting method, server and client
US20140304297A1 (en) Method, Server, and User Terminal for Providing and Acquiring Media Content
US10609430B2 (en) Method and device for processing multimedia file, and storage medium
CN103620609A (en) Method for playing digital contents protected with a DRM (digital right management) scheme and corresponding system
WO2001045085A1 (en) Method and apparatus for information processing, and medium for storing program
WO2020155964A1 (en) Audio/video switching method and apparatus, and computer device and readable storage medium
WO2010151444A1 (en) Memory device and method for embedding host-identification information into content
CN105933799A (en) Method and device for playing video
EP2681662A2 (en) Content playback apis using encrypted streams
JP2009537084A (en) Method and apparatus for encrypting an encoded audio signal
CN108431819B (en) Method and system for protecting client access to service of DRM agent of video player
WO2021252227A1 (en) Systems and methods for compression and encryption of data
WO2012126257A1 (en) Media data processing method and device thereof
CN105072488A (en) Streaming media decryption method and device
CN108540481B (en) Online playing method and device for audio file
CN104038772B (en) Generate the method and device of ring signal file
CN107318045A (en) The method and device of playing video data stream
CN109040087B (en) File encryption and decryption method and device
US20130259292A1 (en) System and Method of Adding a Watermark to a JPEG Image File
JP2006511854A (en) How to distribute information content

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant