CN105704515A - Fast playback starting method and device of media file - Google Patents

Fast playback starting method and device of media file Download PDF

Info

Publication number
CN105704515A
CN105704515A CN201510298771.8A CN201510298771A CN105704515A CN 105704515 A CN105704515 A CN 105704515A CN 201510298771 A CN201510298771 A CN 201510298771A CN 105704515 A CN105704515 A CN 105704515A
Authority
CN
China
Prior art keywords
audio frequency
video
media file
piece
audio
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.)
Pending
Application number
CN201510298771.8A
Other languages
Chinese (zh)
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.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New 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 Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN201510298771.8A priority Critical patent/CN105704515A/en
Priority to PCT/CN2015/092369 priority patent/WO2016192270A1/en
Publication of CN105704515A publication Critical patent/CN105704515A/en
Pending legal-status Critical Current

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/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/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
    • 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)
  • Databases & Information Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a fast playback starting method of a media file. The fast playback starting method comprises the steps of: acquiring the media file; analyzing the media file, and extracting metadata and audio/video data, wherein the audio/video data comprises an unencrypted audio/video clip and an encrypted audio/video clip after the unencrypted audio/video clip; decoding and playing the unencrypted audio/video clip in the audio/video data according to the metadata, and sending a permission request to a digital copyright management server according to the metadata, so as to obtain a permission response returned by the digital copyright management server; and playing the encrypted audio/video clip in the audio/video data after decryption and decoding according to the metadata and the permission response. The invention further discloses a fast playback starting device of the media file. By adopting the fast playback starting method and the fast playback starting device, the fast playback starting of the media file can be realized.

Description

Media file quickly open broadcasting method and device
Technical field
The present invention relates to TV domain, what particularly relate to a kind of media file quickly opens broadcasting method and device。
Background technology
DRM (DigitalRightsManagement, digital copyright management) is currently used a kind of copyrighted digital content resist technology widely。DRM technology is increasingly widely applied in media file encryption。The DRM encryption type being usually used in media file at present has playreadyDRM, widevineDRM, marlinDRM etc.。Media file generally comprises two part and parcels: one, metadata (metadata), is used for preserving the playing duration of media file, the coding/decoding information of audio, video data;For, for the DRM media file encrypted, further comprises DRM inside metadata and add confidential information (carrying out the information required for license request);Two, audio, video data, the audio, video data after encoded algorithm (such as H.264 encryption algorithm, AAC encryption algorithm etc.) compression;This audio, video data includes multiple audio frequency and video fragment, for through the DRM media file encrypted, then at least an audio frequency and video fragment having been encrypted。Because deciphering media file compares consumption cpu resource, it is considered to the efficiency of deciphering, generally whole audio frequency and video fragment will not be encrypted, but certain local for audio frequency and video fragment is encrypted。In the prior art, video content services provider generally first audio frequency and video fragment from the audio, video data of media file is encrypted。
In prior art, the playing flow of the media file of DRM encryption is as follows:
Step one: player, after receiving playing request, asks downloads of media file to video server;
Step 2: media file, after receiving media file, is resolved by player, obtains metadata and the audio, video data of media file, and metadata and audio, video data is sent to DRM module;
Step 3: the DRM module of player extracts DRM from metadata and adds confidential information, and add confidential information according to this DRM and send license request to DRM server;
Step 4: this license request, after receiving license request, is authenticated and authenticates by DRM server。If having passed through certification and authentication, then after in the DRM decryption Information encapsulation of this media file to the permission response of license request, it is sent to DRM module;
Step 5: DRM module, after receiving the permission response of license, extracts DRM decryption information from permission response and audio, video data is decrypted, and give decoder module by the audio, video data after deciphering;Metadata is also sent to the decoder module of player by DRM module;
Step 6: after decoder module audio, video data after receiving metadata and deciphering, the audio, video data after deciphering is decoded, and decoded audio, video data is sent to audio frequency and video output module carries out output display。
Adopt above-mentioned playing flow, have the drawback that owing to first audio, video data fragment from the audio, video data of media file is encrypted, therefore, player is when playing this media file, only complete after this media file certification and authentication by DRM server, media file could be decrypted, obtain the media file after deciphering, then be decoded playing to the media file after deciphering。Send license request from player to DRM server, complete the certification to license request to DRM server and about authentication needs the 3-5 second;On the other hand, after the audio, video data of encryption only obtains the permission response of DRM server at player, just can be decrypted and obtain unencrypted audio, video data unit, then more unencrypted audio, video data unit is decoded and plays display。Therefore, playing DRM encrypted media file than the media file (clear stream media file) playing non-DRM encryption, the broadcasting startup time even the longer time, reduces Consumer's Experience about extending the 3-5 second in certain degree。
Foregoing is only used for assisting understanding technical scheme, does not represent and admits that foregoing is prior art。
Summary of the invention
What present invention is primarily targeted at a kind of media file of offer quickly opens broadcasting method and device, in the prior art aimed to solve the problem that, when playing the media file of DRM encryption, need could start the broadcasting of media file after getting permission response, cause extending and open between sowing time, reduce the technological deficiency of Consumer's Experience。
For achieving the above object, what the present invention provided a kind of media file quickly opens broadcasting method, and the method includes:
Obtain media file;
Described media file is resolved, extracts metadata and audio, video data;Described audio, video data includes unencryption audio frequency and video fragment and the encryption audio frequency and video fragment after described unencryption audio frequency and video fragment;
It is decoded playing to the unencryption audio frequency and video fragment in described audio, video data according to described metadata, and sends license request according to this metadata to digital copyright management server, to obtain the permission response that digital copyright management server returns;
According to described metadata and described permission response, play after the encryption audio frequency and video fragment in described audio, video data is decrypted decoding。
Preferably, the playing duration of described unencryption audio frequency and video fragment is more than or equal to preset duration, and described preset duration is send license request to the duration received from digital copyright management server required for permission response to digital copyright management server。
Preferably, the step of described acquisition media file includes:
When receiving playing request, from described playing request, extract the uniform resource position mark URL of media file;
Downloads of media file request is sent to audio/video server according to described URL;
Receive the media file that described audio/video server returns。
Preferably, described encryption audio frequency and video fragment includes unencryption audio frequency and video sub-piece and encryption audio frequency and video sub-piece。
Preferably, described according to described metadata and described permission response, the step play after the encryption audio frequency and video fragment in described audio, video data is decrypted decoding includes:
Judge whether the audio frequency and video sub-piece in described encryption audio frequency and video fragment is unencryption audio frequency and video sub-piece;
If the sub-piece in described encryption audio frequency and video fragment is unencryption audio frequency and video sub-piece, then it is decoded playing to described unencryption audio frequency and video sub-piece according to described metadata;
If the sub-piece in described encryption audio frequency and video fragment is encryption audio frequency and video sub-piece, then according to described permission response, described encryption audio frequency and video sub-piece is decrypted, the audio frequency and video sub-piece after being deciphered;It is decoded playing to the audio frequency and video sub-piece after described deciphering further according to described metadata。
Additionally, for achieving the above object, what the present invention also provided for a kind of media file quickly opens broadcasting device, and this device includes:
Acquisition module, is used for obtaining media file;
Extraction module, for described media file is resolved, extracts metadata and audio, video data;Described audio, video data includes unencryption audio frequency and video fragment and the encryption audio frequency and video fragment after described unencryption audio frequency and video fragment;
First processing module, for being decoded playing to the unencryption audio frequency and video fragment in described audio, video data according to described metadata, and send license request according to this metadata to digital copyright management server, to obtain the permission response that digital copyright management server returns;
Second processing module, for according to described metadata and described permission response, playing after the encryption audio frequency and video fragment in described audio, video data is decrypted decoding。
Preferably, the playing duration of described unencryption audio frequency and video fragment is more than or equal to preset duration, and described preset duration is send license request to the duration received from digital copyright management server required for permission response to digital copyright management server。
Preferably, described acquisition module includes:
Extraction unit, for when receiving playing request, extracting the uniform resource position mark URL of media file from described playing request;
Transmitting element, for sending downloads of media file request according to described URL to audio/video server;
Receive unit, for receiving the media file that described audio/video server returns。
Preferably, described encryption audio frequency and video fragment includes unencryption audio frequency and video sub-piece and encryption audio frequency and video sub-piece。
Preferably, described second processing module includes:
Judging unit, for whether the audio frequency and video sub-piece judged in described encryption audio frequency and video fragment is unencryption audio frequency and video sub-piece;
First processing unit, when being unencryption audio frequency and video sub-piece for the sub-piece in described encryption audio frequency and video fragment, is decoded playing to described unencryption audio frequency and video sub-piece according to described metadata;
Second processing unit, during for the sub-piece in described encryption audio frequency and video fragment for encryption audio frequency and video sub-piece, is decrypted described encryption audio frequency and video sub-piece according to described permission response, the audio frequency and video sub-piece after being deciphered;It is decoded playing to the audio frequency and video sub-piece after described deciphering further according to described metadata。
The media file of the present invention quickly open broadcasting method and device, by obtain media file;Described media file is resolved, extracts metadata and audio, video data;Described audio, video data includes unencryption audio frequency and video fragment and the encryption audio frequency and video fragment after described unencryption audio frequency and video fragment;It is decoded playing to the unencryption audio frequency and video fragment in described audio, video data according to described metadata, and sends license request according to this metadata to digital copyright management server, to obtain the permission response that digital copyright management server returns;According to described metadata and described permission response, play after the encryption audio frequency and video fragment in described audio, video data is decrypted decoding;Media file is being opened sowing time, can to digital copyright management server license request while playing unencryption audio frequency and video fragment, to obtain the permission response that digital copyright management server returns, broadcasting need not be suspended respond with clearance for holding, the broadcasting of media file could be started after receiving permission response, quickly media file can be opened and broadcast, improve Consumer's Experience。
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the preferred embodiment quickly opening broadcasting method of media file of the present invention;
Fig. 2 is the structural representation of media file in the present invention;
Fig. 3 is the detailed process schematic diagram of step S10 in Fig. 1;
Fig. 4 is the detailed process schematic diagram of step S40 in Fig. 1;
Fig. 5 is the structural representation of the preferred embodiment quickly opening broadcasting device of media file of the present invention;
Fig. 6 is the detailed construction schematic diagram of acquisition module in Fig. 5;
Fig. 7 is the detailed construction schematic diagram of the second processing module in Fig. 5。
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, are described further with reference to accompanying drawing。
Detailed description of the invention
Should be appreciated that specific embodiment described herein is only in order to explain the present invention, is not intended to limit the present invention。
What the present invention provided a kind of media file quickly opens broadcasting method。
With reference to the preferred embodiment schematic flow sheet quickly opening broadcasting method that Fig. 1, Fig. 1 are media file of the present invention, the method includes:
S10, acquisition media file。
This media file includes metadata and audio, video data, and this audio, video data includes unencryption audio frequency and video fragment and the encryption audio frequency and video fragment after this unencryption audio frequency and video fragment。
This media file is generated by digital copyright management server (i.e. DRM server) in advance, audio-video frequency content provider provides unencrypted raw media file, this raw media file is encrypted by this DRM server, generate media file, and this media file is uploaded to video server preserve。Concrete, this DRM server is when receiving unencrypted raw media file, audio, video data after the default playing duration of this raw media file is encrypted, and DRM is added confidential information (including DRM encryption type, DRM server address etc.) be written in the metadata of raw media file, generate media file, making the audio, video data before the default playing duration in the audio, video data of this media file is clear data (clear stream), and the audio, video data after default playing duration in this audio, video data is for adding ciphertext data (encryption stream)。
As in figure 2 it is shown, this media file includes metadata and audio, video data D, this audio, video data D includes unencryption audio frequency and video fragment D1 and the encryption audio frequency and video fragment D2 after this unencryption audio frequency and video fragment。This unencryption audio frequency and video fragment D1 includes multiple equirotal audio frequency and video sub-piece D11。This metadata include total playing duration of media file, the coding/decoding information of audio, video data, audio, video data DRM add confidential information etc., this DRM encrypted message packet draws together DRM encryption type, DRM server address etc., and the DRM encryption type of audio, video data includes playreadyDRM, widevineDRM, marlinDRM etc.;This audio, video data includes voice data and/or video data。This unencryption audio frequency and video fragment can include multiple equirotal unencryption audio frequency and video sub-piece。
S20, this media file being resolved, extract metadata and audio, video data, this audio, video data includes unencryption audio frequency and video fragment and the encryption audio frequency and video fragment after this unencryption audio frequency and video fragment。
S30, it is decoded the unencryption audio frequency and video fragment in this audio, video data playing according to this metadata, and sends license request according to this metadata to digital copyright management server, to obtain the permission response that digital copyright management server returns。
This permission response comprises the DRM decryption information for deciphering this encryption audio frequency and video fragment。
In this step, according to this metadata, the unencryption audio frequency and video fragment in this audio, video data is decrypted broadcasting, concrete, coding/decoding information is extracted from this metadata, further according to this coding/decoding information, the unencryption audio frequency and video fragment in this audio, video data is decoded, more decoded audio, video data is played back。
In this step, while being decoded unencryption audio frequency and video fragment playing, license request is sent to DRM server according to this metadata, to obtain the permission response that DRM server returns, concrete, extracting DRM from this metadata and add confidential information, add confidential information further according to this DRM and generate license request, this license request includes DRM encryption type, DRM server address, user identity, media file name etc.。After this DRM server receives this license request, this license request is authenticated and authenticates, concrete, user identity is authenticated, determine that whether user identity is legal, if user identity is legal, then think that certification is passed through, after certification is passed through, verify whether this user identity has the authority watching media file corresponding to this media file name, if this user identity has the authority watching media file corresponding to this media file name, think that authentication is passed through, then this DRM server generates permission response, by in the DRM decryption Information encapsulation of media file to permission response, namely permission response includes DRM decryption information, this DRM decryption information includes key and the associated decryption certificate of deciphering。By this DRM decryption information, encryption audio frequency and video fragment is decrypted。
In this step, while being decoded the unencryption audio frequency and video fragment in this audio, video data playing, while sending license request according to this metadata to DRM server, to obtain the permission response that DRM server returns, can solve in prior art, it is necessary to just play media file when securing permission response, cause the technological deficiency of playout-delay, quickly media file can be opened and broadcast, improve Consumer's Experience。
The playing duration of this unencryption audio frequency and video fragment is more than or equal to preset duration, and this preset duration is send license request to the duration received from DRM server required for permission response to DRM server。Generally need the 3-5 second to receiving permission response from DRM server from sending license request to DRM server, this this preset duration is 5 seconds, namely at least front 5 seconds audio, video datas in this audio, video data are not encrypted, this media file is being opened sowing time, can directly be decoded the audio, video data of first 5 seconds in audio, video data playing, in decoding playing process, the sufficiently long time is had to secure permission from DRM server response, with after playing unencryption audio frequency and video fragment, according to this permission response, encryption audio frequency and video fragment can be decrypted, broadcasting need not be suspended to wait this permission response。
S40, according to this metadata and this permission response, the encryption audio frequency and video fragment in this audio, video data is decrypted after decoding and plays。
After unencryption audio frequency and video fragment is finished playing, according to this permission response, encryption audio frequency and video fragment is decrypted, further according to this metadata, the audio frequency and video fragment after deciphering is decoded, then plays。Concrete, from this permission response, obtain DRM decryption information, according to this DRM decryption information, this encryption audio frequency and video fragment is decrypted, then from metadata, obtain coding/decoding information, the audio frequency and video fragment after deciphering is decoded, then plays。
Further, as it is shown on figure 3, this step S10 includes:
S11, when receiving playing request, from this playing request, extract the uniform resource position mark URL of media file。
User can pass through media file choosing and broadcast operation interface input playing request, select broadcast interface provides media file tabular at this media file, this media file tabular includes media file name, contents of media files brief introduction etc., user is when browsing this media file tabular, if viewing media file interested, selection instruction (as clicked broadcast button) can be inputted, to generate playing request, this playing request includes the URL of media file to be played of user's selection, media file name etc.。
S12, according to this URL to audio/video server send downloads of media file request。
In this step, sending downloads of media file request to audio/video server, this downloads of media file request includes the URL of media file, and this audio/video server can get the media file of correspondence according to this URL。This audio/video server can obtain media file corresponding to this URL according to procotols such as http/rtsp/rtp。
S13, receive this audio/video server return media file。
Further, this encryption audio frequency and video fragment includes unencryption audio frequency and video sub-piece and encryption audio frequency and video sub-piece。
As shown in Figure 2, this encryption audio frequency and video fragment D2 includes multiple equirotal audio frequency and video sub-piece, wherein, the part audio frequency and video sub-piece in this encryption audio frequency and video fragment is unencryption audio frequency and video sub-piece D21, and part audio frequency and video sub-piece is encryption audio frequency and video sub-piece D22。The quantity of this encryption audio frequency and video sub-piece can be arranged according to actual needs, when being 10% such as the rate of encrypting, when this encryption audio frequency and video fragment includes 100 audio frequency and video sub-piece, then 10 audio frequency and video sub-piece in these 100 audio frequency and video sub-piece are encrypted, concrete, 10 audio frequency and video sub-piece can be selected at random from these 100 audio frequency and video sub-piece to be encrypted, it is possible to go out to select 10 audio frequency and video sub-piece to be encrypted from these 100 audio frequency and video sub-piece according to certain encryption regular interval。This encryption audio frequency and video sub-piece includes encrypted segments A and non-encrypted fragment, it is generally the playing efficiency improving this encryption audio frequency and video sub-piece, all data in this encryption audio frequency and video sub-piece will not be encrypted, but only the part data in this encryption audio frequency and video sub-piece are encrypted。The size of encrypted segments, position in each encryption audio frequency and video sub-piece can be different。
Further, as shown in Figure 4, this step S40 includes:
Whether S41, the audio frequency and video sub-piece judged in this encryption audio frequency and video fragment are unencryption audio frequency and video sub-piece;
Can determine whether this sub-piece is unencryption audio frequency and video sub-piece by the encryption identification of the audio frequency and video sub-piece in this encryption audio frequency and video fragment of reading。This encryption identification preserves in the metadata。Saving the encryption situation of each audio frequency and video sub-piece in encryption audio frequency and video fragment in this metadata, can arrange encryption identification is 1 be expressed as encryption audio frequency and video sub-piece, and encryption identification is 0 be expressed as unencryption audio frequency and video sub-piece。
In one embodiment, when the encryption identification of the audio frequency and video sub-piece read in this encryption audio frequency and video fragment is 1, then judge that the audio frequency and video sub-piece in this encryption audio frequency and video fragment is as encrypting audio frequency and video sub-piece, when the encryption identification of the audio frequency and video sub-piece read in this encryption audio frequency and video fragment is 0, then judge that the sub-piece in this encryption audio frequency and video fragment is unencryption audio frequency and video sub-piece。
If the sub-piece in this encryption audio frequency and video fragment of S42 is unencryption audio frequency and video sub-piece, then it is decoded playing to this unencryption audio frequency and video sub-piece according to this metadata。
From metadata, extract coding/decoding information, according to this coding/decoding information, unencryption audio frequency and video sub-piece is decoded, then by decoded data playback out。
If the sub-piece in this encryption audio frequency and video fragment of S43 is encryption audio frequency and video sub-piece, then according to this permission response, this encryption audio frequency and video sub-piece is decrypted, the audio frequency and video sub-piece after being deciphered;It is decoded playing to the audio frequency and video sub-piece after this deciphering further according to this metadata。
From this permission response, obtain DRM decryption information, according to this DRM decryption information, this encryption audio frequency and video sub-piece is decrypted, the audio frequency and video sub-piece after being deciphered;From metadata, obtain coding/decoding information again, be decoded playing to the audio frequency and video fragment after deciphering。
With reference to Fig. 5, as 5 is the preferred embodiment structural representation quickly opening broadcasting device of media file of the present invention, this device includes:
Acquisition module 10, is used for obtaining media file;
Extraction module 20, for this media file is resolved, extracts metadata and audio, video data;This audio, video data includes unencryption audio frequency and video fragment and the encryption audio frequency and video fragment after this unencryption audio frequency and video fragment;
First processing module 30, for being decoded playing to the unencryption audio frequency and video fragment in this audio, video data according to this metadata, and sends license request according to this metadata to DRM server, to obtain the permission response that DRM server returns simultaneously。
Second processing module 40, for according to this metadata and this permission response, playing after the encryption audio frequency and video fragment in this audio, video data is decrypted decoding。
This media file includes metadata and audio, video data, and this audio, video data includes unencryption audio frequency and video fragment and the encryption audio frequency and video fragment after this unencryption audio frequency and video fragment.
This permission response comprises the DRM decryption information for deciphering this encryption audio frequency and video fragment。
This media file is generated by DRM server in advance, and audio-video frequency content provider provides unencrypted raw media file, and this raw media file is encrypted by this DRM server, generates media file, and this media file is uploaded to video server preserves。Concrete, this DRM server is when receiving unencrypted raw media file, audio, video data after the default playing duration of this raw media file is encrypted, and DRM is added confidential information (including DRM encryption type, DRM server address etc.) be written in the metadata of raw media file, generate media file, making the audio, video data before the default playing duration in the audio, video data of this media file is clear data (clear stream), and the audio, video data after default playing duration in this audio, video data is for adding ciphertext data (encryption stream)。
As in figure 2 it is shown, this media file includes metadata and audio, video data D, this audio, video data D includes unencryption audio frequency and video fragment D1 and the encryption audio frequency and video fragment D2 after this unencryption audio frequency and video fragment。This unencryption audio frequency and video fragment D1 includes multiple equirotal audio frequency and video sub-piece D11。This metadata include total playing duration of media file, the coding/decoding information of audio, video data, audio, video data DRM add confidential information etc., this DRM encrypted message packet draws together DRM encryption type, DRM server address etc., and the DRM encryption type of audio, video data includes playreadyDRM, widevineDRM, marlinDRM etc.;This audio, video data includes voice data and/or video data。This unencryption audio frequency and video fragment can include multiple equirotal unencryption audio frequency and video sub-piece。
Unencryption audio frequency and video fragment in this audio, video data is decrypted broadcasting according to this metadata by this first processing module 30, concrete, coding/decoding information is extracted from this metadata, further according to this coding/decoding information, the unencryption audio frequency and video fragment in this audio, video data is decoded, more decoded audio, video data is played back。
This first processing module 30 is while being decoded unencryption audio frequency and video fragment playing, license request is sent to DRM server according to this metadata, to obtain the permission response that DRM server returns, concrete, from this metadata, extract DRM add confidential information, adding confidential information further according to this DRM and generate license request, this license request includes DRM encryption type, DRM server address, user identity, media file name etc.。After this DRM server receives this license request, this license request is authenticated and authenticates, concrete, user identity is authenticated, determine that whether user identity is legal, if user identity is legal, then think that certification is passed through, after certification is passed through, verify whether this user identity has the authority watching media file corresponding to this media file name, if this user identity has the authority watching media file corresponding to this media file name, think that authentication is passed through, then this DRM server generates permission response, by in the DRM decryption Information encapsulation of media file to permission response, namely permission response includes DRM decryption information, this DRM decryption information includes key and the associated decryption certificate of deciphering。By this DRM decryption information, encryption audio frequency and video fragment is decrypted。
This first processing module 30 is while being decoded the unencryption audio frequency and video fragment in this audio, video data playing, while sending license request according to this metadata to DRM server, to obtain the permission response that DRM server returns, can solve in prior art, need just to play media file when securing permission response, cause the technological deficiency of playout-delay, quickly media file can be opened and broadcast, improve Consumer's Experience。
After unencryption audio frequency and video fragment is finished playing by this first processing module 30, encryption audio frequency and video fragment is decrypted by this second processing module 40 according to this permission response, further according to this metadata, the audio frequency and video fragment after deciphering is decoded, then plays。Concrete, from this permission response, obtain DRM decryption information, according to this DRM decryption information, this encryption audio frequency and video fragment is decrypted, then from metadata, obtain coding/decoding information, the audio frequency and video fragment after deciphering is decoded, then plays。
The playing duration of this unencryption audio frequency and video fragment is more than or equal to preset duration, and this preset duration is send license request to the duration received from DRM server required for permission response to DRM server。Generally need the 3-5 second to receiving permission response from DRM server from sending license request to DRM server, then this preset duration is 5 seconds, namely at least front 5 seconds audio, video datas in this audio, video data are not encrypted, this media file is being opened sowing time, can directly be decoded the audio, video data of first 5 seconds in audio, video data playing, in decoding playing process, the sufficiently long time is had to secure permission from DRM server response, with after playing unencryption audio frequency and video fragment, according to this permission response, encryption audio frequency and video fragment can be decrypted, broadcasting need not be suspended to wait this permission response。
Further, as shown in Figure 6, this acquisition module 10 includes:
Extraction unit 11, for when receiving playing request, extracting the uniform resource position mark URL of media file from this playing request;
Transmitting element 12, for sending downloads of media file request according to this URL to audio/video server;
Receive unit 13, for receiving the media file that this audio/video server returns。
User can pass through media file choosing and broadcast operation interface input playing request, select broadcast interface provides media file tabular at this media file, this media file tabular includes media file name, contents of media files brief introduction etc., user is when browsing this media file tabular, if viewing media file interested, selection instruction (as clicked broadcast button) can be inputted, to generate playing request, this playing request includes the URL of media file to be played of user's selection, media file name etc.。
This transmitting element 12 sends downloads of media file request to audio/video server, and this downloads of media file request includes the URL of media file, and this audio/video server can get the media file of correspondence according to this URL。This audio/video server can obtain media file corresponding to this URL according to procotols such as http/rtsp/rtp。
Further, this encryption audio frequency and video fragment includes unencryption audio frequency and video sub-piece and encryption audio frequency and video sub-piece。
As shown in Figure 2, this encryption audio frequency and video fragment D2 includes multiple equirotal audio frequency and video sub-piece, wherein, the part audio frequency and video sub-piece in this encryption audio frequency and video fragment is unencryption audio frequency and video sub-piece D21, and part audio frequency and video sub-piece is encryption audio frequency and video sub-piece D22。The quantity of this encryption audio frequency and video sub-piece can be arranged according to actual needs, when being 10% such as the rate of encrypting, when this encryption audio frequency and video fragment includes 100 audio frequency and video sub-piece, then 10 audio frequency and video sub-piece in these 100 audio frequency and video sub-piece are encrypted, concrete, 10 audio frequency and video sub-piece can be selected at random from these 100 audio frequency and video sub-piece to be encrypted, it is possible to go out to select 10 audio frequency and video sub-piece to be encrypted from these 100 audio frequency and video sub-piece according to certain encryption regular interval。This encryption audio frequency and video sub-piece includes encrypted segments A and non-encrypted fragment, it is generally the playing efficiency improving this encryption audio frequency and video sub-piece, all data in this encryption audio frequency and video sub-piece will not be encrypted, but only the part data in this encryption audio frequency and video sub-piece are encrypted。The size of encrypted segments, position in each encryption audio frequency and video sub-piece can be different。
Further, as it is shown in fig. 7, this second processing module 40 includes:
Judging unit 41, for whether the audio frequency and video sub-piece judged in this encryption audio frequency and video fragment is unencryption audio frequency and video sub-piece;
First processing unit 42, when being unencryption audio frequency and video sub-piece for the sub-piece in this encryption audio frequency and video fragment, is decoded playing to this unencryption audio frequency and video sub-piece according to this metadata;
Second processing unit 43, during for the sub-piece in this encryption audio frequency and video fragment for encryption audio frequency and video sub-piece, is decrypted this encryption audio frequency and video sub-piece according to this permission response, the audio frequency and video sub-piece after being deciphered;It is decoded playing to the audio frequency and video sub-piece after this deciphering further according to this metadata。
By the encryption identification of the audio frequency and video sub-piece in this encryption audio frequency and video fragment of reading, this judging unit 41 can determine whether this sub-piece is unencryption audio frequency and video sub-piece。This encryption identification preserves in the metadata。Saving the encryption situation of each audio frequency and video sub-piece in encryption audio frequency and video fragment in this metadata, can arrange encryption identification is 1 be expressed as encryption audio frequency and video sub-piece, and encryption identification is 0 be expressed as unencryption audio frequency and video sub-piece。
In one embodiment, when the encryption identification that this judging unit 41 reads the audio frequency and video sub-piece in this encryption audio frequency and video fragment is 1, then judge that the audio frequency and video sub-piece in this encryption audio frequency and video fragment is as encrypting audio frequency and video sub-piece, when the encryption identification of the audio frequency and video sub-piece read in this encryption audio frequency and video fragment is 0, then judge that the sub-piece in this encryption audio frequency and video fragment is unencryption audio frequency and video sub-piece。
When this first processing unit 42 sub-piece in this encryption audio frequency and video fragment is unencryption audio frequency and video sub-piece, coding/decoding information is extracted from metadata, according to this coding/decoding information, unencryption audio frequency and video sub-piece is decoded, then by decoded data playback out。
When this second processing unit 43 sub-piece in this encryption audio frequency and video fragment is for encryption audio frequency and video sub-piece, DRM decryption information is obtained from this permission response, according to this DRM decryption information, this encryption audio frequency and video sub-piece is decrypted, the audio frequency and video sub-piece after being deciphered;From metadata, obtain coding/decoding information again, be decoded playing to the audio frequency and video fragment after deciphering。
These are only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every equivalent structure utilizing description of the present invention and accompanying drawing content to make or equivalence flow process conversion; or directly or indirectly it is used in other relevant technical fields, all in like manner include in the scope of patent protection of the present invention。

Claims (10)

1. a media file quickly open broadcasting method, it is characterised in that the method includes:
Obtain media file;
Described media file is resolved, extracts metadata and audio, video data;Described audio, video data includes unencryption audio frequency and video fragment and the encryption audio frequency and video fragment after described unencryption audio frequency and video fragment;
It is decoded playing to the unencryption audio frequency and video fragment in described audio, video data according to described metadata, and sends license request according to this metadata to digital copyright management server, to obtain the permission response that digital copyright management server returns;
According to described metadata and described permission response, play after the encryption audio frequency and video fragment in described audio, video data is decrypted decoding。
2. media file as claimed in claim 1 quickly open broadcasting method, it is characterized in that, the playing duration of described unencryption audio frequency and video fragment is more than or equal to preset duration, and described preset duration is send license request to the duration received from digital copyright management server required for permission response to digital copyright management server。
3. media file as claimed in claim 1 quickly open broadcasting method, it is characterised in that the step of described acquisition media file includes:
When receiving playing request, from described playing request, extract the uniform resource position mark URL of media file;
Downloads of media file request is sent to audio/video server according to described URL;
Receive the media file that described audio/video server returns。
4. media file as claimed in claim 1 quickly open broadcasting method, it is characterised in that described encryption audio frequency and video fragment includes unencryption audio frequency and video sub-piece and encryption audio frequency and video sub-piece。
5. media file as claimed in claim 4 quickly open broadcasting method, it is characterised in that described according to described metadata and described permission response, after the encryption audio frequency and video fragment in described audio, video data is decrypted decoding, the step of broadcasting includes:
Judge whether the audio frequency and video sub-piece in described encryption audio frequency and video fragment is unencryption audio frequency and video sub-piece;
If the sub-piece in described encryption audio frequency and video fragment is unencryption audio frequency and video sub-piece, then it is decoded playing to described unencryption audio frequency and video sub-piece according to described metadata;
If the sub-piece in described encryption audio frequency and video fragment is encryption audio frequency and video sub-piece, then according to described permission response, described encryption audio frequency and video sub-piece is decrypted, the audio frequency and video sub-piece after being deciphered;It is decoded playing to the audio frequency and video sub-piece after described deciphering further according to described metadata。
6. a media file quickly open broadcasting device, it is characterised in that this device includes:
Acquisition module, is used for obtaining media file;
Extraction module, for described media file is resolved, extracts metadata and audio, video data;Described audio, video data includes unencryption audio frequency and video fragment and the encryption audio frequency and video fragment after described unencryption audio frequency and video fragment;
First processing module, for being decoded playing to the unencryption audio frequency and video fragment in described audio, video data according to described metadata, and send license request according to this metadata to digital copyright management server, to obtain the permission response that digital copyright management server returns;
Second processing module, for according to described metadata and described permission response, playing after the encryption audio frequency and video fragment in described audio, video data is decrypted decoding。
7. media file as claimed in claim 6 quickly open broadcasting device, it is characterized in that, the playing duration of described unencryption audio frequency and video fragment is more than or equal to preset duration, and described preset duration is send license request to the duration received from digital copyright management server required for permission response to digital copyright management server。
8. media file as claimed in claim 6 quickly open broadcasting device, it is characterised in that described acquisition module includes:
Extraction unit, for when receiving playing request, extracting the uniform resource position mark URL of media file from described playing request;
Transmitting element, for sending downloads of media file request according to described URL to audio/video server;
Receive unit, for receiving the media file that described audio/video server returns。
9. media file as claimed in claim 6 quickly open broadcasting device, it is characterised in that described encryption audio frequency and video fragment includes unencryption audio frequency and video sub-piece and encryption audio frequency and video sub-piece。
10. media file as claimed in claim 9 quickly open broadcasting device, it is characterised in that described second processing module includes:
Judging unit, for whether the audio frequency and video sub-piece judged in described encryption audio frequency and video fragment is unencryption audio frequency and video sub-piece;
First processing unit, when being unencryption audio frequency and video sub-piece for the sub-piece in described encryption audio frequency and video fragment, is decoded playing to described unencryption audio frequency and video sub-piece according to described metadata;
Second processing unit, during for the sub-piece in described encryption audio frequency and video fragment for encryption audio frequency and video sub-piece, is decrypted described encryption audio frequency and video sub-piece according to described permission response, the audio frequency and video sub-piece after being deciphered;It is decoded playing to the audio frequency and video sub-piece after described deciphering further according to described metadata。
CN201510298771.8A 2015-06-03 2015-06-03 Fast playback starting method and device of media file Pending CN105704515A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510298771.8A CN105704515A (en) 2015-06-03 2015-06-03 Fast playback starting method and device of media file
PCT/CN2015/092369 WO2016192270A1 (en) 2015-06-03 2015-10-21 Method and device for rapid opencast of media file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510298771.8A CN105704515A (en) 2015-06-03 2015-06-03 Fast playback starting method and device of media file

Publications (1)

Publication Number Publication Date
CN105704515A true CN105704515A (en) 2016-06-22

Family

ID=56227800

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510298771.8A Pending CN105704515A (en) 2015-06-03 2015-06-03 Fast playback starting method and device of media file

Country Status (2)

Country Link
CN (1) CN105704515A (en)
WO (1) WO2016192270A1 (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106060604A (en) * 2016-06-28 2016-10-26 暴风集团股份有限公司 Method and system for realizing digital rights management play based on BHD file
CN106254962A (en) * 2016-07-28 2016-12-21 武汉斗鱼网络科技有限公司 A kind of live client quickly starts the method and system of broadcasting
CN106791934A (en) * 2016-12-14 2017-05-31 暴风集团股份有限公司 For the encryption player method and encryption system of VIP videos
CN106961614A (en) * 2017-02-22 2017-07-18 北京奇艺世纪科技有限公司 A kind of method and system of encrypted video netcast
CN106973325A (en) * 2017-03-29 2017-07-21 成都三零凯天通信实业有限公司 Terrestrial digital television set box receives the safety recognizing method of signal
CN107197338A (en) * 2017-05-05 2017-09-22 中广热点云科技有限公司 It is a kind of to ensure the method for advertisement playing duration
CN107613317A (en) * 2017-09-08 2018-01-19 康佳集团股份有限公司 A kind of method, storage medium and intelligent television for playing local cipher media
CN107959889A (en) * 2016-10-17 2018-04-24 中兴通讯股份有限公司 Data flow playing method and device, data stream type collocation method and device
WO2018072471A1 (en) * 2016-10-19 2018-04-26 华为技术有限公司 Detection method, device and system for copyright protection
CN107995219A (en) * 2017-12-22 2018-05-04 掌阅科技股份有限公司 File accelerates to show method, computing device and computer-readable storage medium
CN108737854A (en) * 2017-04-21 2018-11-02 武汉斗鱼网络科技有限公司 A kind of method for verifying authority and device of video render
CN110881142A (en) * 2019-10-15 2020-03-13 平安科技(深圳)有限公司 Audio and video data encryption and decryption method and device based on rtmp and readable storage medium
CN111432287A (en) * 2020-04-14 2020-07-17 南京巨鲨显示科技有限公司 Slicing encryption method and system and decryption method and system for audio and video files
CN112804563A (en) * 2019-11-13 2021-05-14 腾讯科技(深圳)有限公司 Media file playing method and device and storage medium
WO2021248670A1 (en) * 2020-06-11 2021-12-16 青岛海信传媒网络技术有限公司 Safe playback method for streaming media file, and display device
CN114697746A (en) * 2020-12-28 2022-07-01 北京金山云网络技术有限公司 Video playing starting method and device, electronic equipment and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1774755A (en) * 2003-04-11 2006-05-17 索尼株式会社 Digital data storage/reproduction method and device
WO2008074968A1 (en) * 2006-12-18 2008-06-26 Ubc Media Group Plc A method of constructing and handling requests for data files
CN101902333A (en) * 2010-07-20 2010-12-01 中兴通讯股份有限公司 Application method of digital rights management and terminal equipment
CN102457561A (en) * 2010-10-28 2012-05-16 无锡江南计算技术研究所 Data access method and equipment adopting same
CN103873243A (en) * 2012-12-12 2014-06-18 腾讯科技(北京)有限公司 Method for realizing data security transmission, system, server and terminal
CN103971033A (en) * 2014-05-23 2014-08-06 武汉华亚兴通信息技术有限公司 Digital rights management method for solving problem of illegal copying

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050207569A1 (en) * 2004-03-16 2005-09-22 Exavio, Inc Methods and apparatus for preparing data for encrypted transmission
US8677504B2 (en) * 2005-07-14 2014-03-18 Qualcomm Incorporated Method and apparatus for encrypting/decrypting multimedia content to allow random access
US10694258B2 (en) * 2011-12-14 2020-06-23 Netflix, Inc. Startup times of streaming digital media playback
CN103379365B (en) * 2012-04-27 2017-08-08 日立(中国)研究开发有限公司 Content acquisition unit and method, content and multimedia distribution system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1774755A (en) * 2003-04-11 2006-05-17 索尼株式会社 Digital data storage/reproduction method and device
WO2008074968A1 (en) * 2006-12-18 2008-06-26 Ubc Media Group Plc A method of constructing and handling requests for data files
CN101902333A (en) * 2010-07-20 2010-12-01 中兴通讯股份有限公司 Application method of digital rights management and terminal equipment
CN102457561A (en) * 2010-10-28 2012-05-16 无锡江南计算技术研究所 Data access method and equipment adopting same
CN103873243A (en) * 2012-12-12 2014-06-18 腾讯科技(北京)有限公司 Method for realizing data security transmission, system, server and terminal
CN103971033A (en) * 2014-05-23 2014-08-06 武汉华亚兴通信息技术有限公司 Digital rights management method for solving problem of illegal copying

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106060604A (en) * 2016-06-28 2016-10-26 暴风集团股份有限公司 Method and system for realizing digital rights management play based on BHD file
CN106254962A (en) * 2016-07-28 2016-12-21 武汉斗鱼网络科技有限公司 A kind of live client quickly starts the method and system of broadcasting
CN107959889A (en) * 2016-10-17 2018-04-24 中兴通讯股份有限公司 Data flow playing method and device, data stream type collocation method and device
WO2018072685A1 (en) * 2016-10-17 2018-04-26 中兴通讯股份有限公司 Method and device for playing back data stream playback, method and device for transmitting type information of data stream
US11127097B2 (en) 2016-10-19 2021-09-21 Huawei Technologies Co., Ltd. Method, apparatus, and system for copyright rights defense detection
WO2018072471A1 (en) * 2016-10-19 2018-04-26 华为技术有限公司 Detection method, device and system for copyright protection
CN106791934A (en) * 2016-12-14 2017-05-31 暴风集团股份有限公司 For the encryption player method and encryption system of VIP videos
CN106961614A (en) * 2017-02-22 2017-07-18 北京奇艺世纪科技有限公司 A kind of method and system of encrypted video netcast
CN106961614B (en) * 2017-02-22 2020-04-21 北京奇艺世纪科技有限公司 Method and system for playing encrypted video through network
CN106973325A (en) * 2017-03-29 2017-07-21 成都三零凯天通信实业有限公司 Terrestrial digital television set box receives the safety recognizing method of signal
CN108737854A (en) * 2017-04-21 2018-11-02 武汉斗鱼网络科技有限公司 A kind of method for verifying authority and device of video render
CN107197338A (en) * 2017-05-05 2017-09-22 中广热点云科技有限公司 It is a kind of to ensure the method for advertisement playing duration
CN107197338B (en) * 2017-05-05 2019-11-26 中广热点云科技有限公司 A method of ensuring advertisement playing duration
CN107613317A (en) * 2017-09-08 2018-01-19 康佳集团股份有限公司 A kind of method, storage medium and intelligent television for playing local cipher media
WO2019119665A1 (en) * 2017-12-22 2019-06-27 掌阅科技股份有限公司 File acceleration display method, computing device, and computer storage medium
CN107995219A (en) * 2017-12-22 2018-05-04 掌阅科技股份有限公司 File accelerates to show method, computing device and computer-readable storage medium
CN110881142A (en) * 2019-10-15 2020-03-13 平安科技(深圳)有限公司 Audio and video data encryption and decryption method and device based on rtmp and readable storage medium
CN112804563A (en) * 2019-11-13 2021-05-14 腾讯科技(深圳)有限公司 Media file playing method and device and storage medium
CN111432287A (en) * 2020-04-14 2020-07-17 南京巨鲨显示科技有限公司 Slicing encryption method and system and decryption method and system for audio and video files
WO2021248670A1 (en) * 2020-06-11 2021-12-16 青岛海信传媒网络技术有限公司 Safe playback method for streaming media file, and display device
US12022141B2 (en) 2020-06-11 2024-06-25 Qingdao Hisense Media Networks Ltd. Safe playback method for streaming media file, and display device
CN114697746A (en) * 2020-12-28 2022-07-01 北京金山云网络技术有限公司 Video playing starting method and device, electronic equipment and system

Also Published As

Publication number Publication date
WO2016192270A1 (en) 2016-12-08

Similar Documents

Publication Publication Date Title
CN105704515A (en) Fast playback starting method and device of media file
US10362004B2 (en) Authenticating credentials for mobile platforms
US9026782B2 (en) Token-based entitlement verification for streaming media decryption
EP3557876A1 (en) Secret key providing method, video playback method, server and client
US10038928B2 (en) Systems and methods for securely providing adaptive bit rate streaming media content on-demand
JP4311899B2 (en) Method and apparatus for content distribution and protection
KR101428875B1 (en) System and method for processing security based on http live streaming
CN103748825B (en) The method and apparatus measuring Streaming Media exposure rate
JP6408913B2 (en) Information processing apparatus and method, and content reproduction apparatus and method
CN101977190B (en) Digital content encryption transmission method and server side
US20170334234A1 (en) System and Method for Identifying the Source of Counterfeit Copies of Multimedia Works Using Layered Simple Digital Watermarks
RU2530214C2 (en) Method and apparatus for secure transmission of recorded copies of multicast audiovisual program using data scrambling and marking techniques
CN101350918B (en) Method for protecting copyright of video content
JP2010192944A (en) Content distribution apparatus, content use apparatus, content distribution system, content distribution method and program
US10162944B2 (en) Library style media DRM APIs in a hosted architecture
WO2017219871A1 (en) Program payment method and system based on set-top box
CN105245944A (en) DVB (Digital Video Broadcasting)-based multi-terminal program playing method and system, set top box and mobile terminal
CN111988640A (en) Content copyright protection method based on original video data transformation encryption
WO2016206457A1 (en) Method and apparatus for processing multimedia file
CN110139136B (en) Method and device for playing network television based on DRM technology
CN112261040B (en) Online audio and video anti-theft method and system
CN114501069A (en) HLS-based multimedia playing method, system, device and storage medium
EP2728791A1 (en) Method and system of secure service supply to a user
JP5637409B2 (en) Content receiving apparatus, content receiving method, content broadcasting apparatus, content broadcasting method, program, and content broadcasting system
WO2006077969A1 (en) Content reception terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination