WO2013044800A1 - 视频帧流处理方法、视频服务器及终端设备 - Google Patents

视频帧流处理方法、视频服务器及终端设备 Download PDF

Info

Publication number
WO2013044800A1
WO2013044800A1 PCT/CN2012/082014 CN2012082014W WO2013044800A1 WO 2013044800 A1 WO2013044800 A1 WO 2013044800A1 CN 2012082014 W CN2012082014 W CN 2012082014W WO 2013044800 A1 WO2013044800 A1 WO 2013044800A1
Authority
WO
WIPO (PCT)
Prior art keywords
video frame
video
frame
stream
group
Prior art date
Application number
PCT/CN2012/082014
Other languages
English (en)
French (fr)
Inventor
孟钊
郭晓岩
Original Assignee
中国移动通信集团公司
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 中国移动通信集团公司 filed Critical 中国移动通信集团公司
Publication of WO2013044800A1 publication Critical patent/WO2013044800A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/16Analogue secrecy systems; Analogue subscription systems
    • H04N7/167Systems rendering the television signal unintelligible and subsequently intelligible
    • H04N7/1675Providing digital key or authorisation information for generation or regeneration of the scrambling sequence
    • 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, manipulating MPEG-4 scene graphs
    • H04N21/2347Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 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/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/235Processing of additional data, e.g. scrambling of additional data or processing content descriptors
    • H04N21/2351Processing of additional data, e.g. scrambling of additional data or processing content descriptors involving encryption of additional data
    • 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/435Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
    • H04N21/4353Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream involving decryption of additional data

Definitions

  • the video servers on the network side can store the video files that can be transmitted to the users.
  • the video file when the user wants to view the video file stored in the video server on the network side, the video device may send a video transmission request to the video server by using the terminal device, and after receiving the video transmission request, the video server transmits the corresponding video file to the video file.
  • the terminal device the terminal device plays the received video file.
  • a video file consists of a series of ordered video frames (ie, a single static picture), so a video file can also be called a video frame stream.
  • Step 13 If the user is an authorized user or the terminal device is an authorized device, the video server searches for the video file to be transmitted to the user according to the file identifier carried in the video transmission request.
  • Video file
  • Step 14 The video server divides the video frame stream corresponding to the found video file into video frame groups according to the sequence of the video frames in the video frame stream, and the number of video frames included in each video frame group is the same;
  • Step 15 The video server sequentially sends each video frame group to the terminal device in a sequence of first to last in the video frame stream according to each video frame group.
  • Step 16 The terminal device buffers the video frame group every time a video frame group is received, and then sequentially plays each video frame in the video frame group according to the video frame in a first to last order in the video frame group.
  • a video frame stream processing method includes: performing a scribble processing on a video frame in a first video frame stream requested by a terminal device; and obtaining each video frame in the first video frame stream before the scribing process Frame order information in the first video frame stream after the out-of-order processing; encrypting the obtained frame order information according to an encryption algorithm and an encryption key previously negotiated with the terminal device to generate the first video frame The corresponding video certificate of the stream.
  • the sorting processing unit is configured to: perform the out-of-order processing of the first video obtained by the obtaining unit according to the frame sequence information obtained by the video certificate decryption unit Sorting each video frame in the frame stream to obtain out-of-order processing a first video frame stream; a playback unit, configured to play a first video frame stream before the scribing process obtained by the sort processing unit.
  • FIG. 1 is a schematic flow chart of a method for transmitting a video frame stream in the prior art
  • FIG. 6 is a schematic structural diagram of a terminal device according to Embodiment 5 of the present invention. detailed description
  • a schematic diagram of a network architecture for a video server to transmit a video frame stream to a terminal device includes a video server 21 and a thousand terminal devices 22, between the video server 21 and each terminal device 22. Communication can be performed through a communication network, and a large number of video frame streams are stored in the video server 21, which can be applied to the terminal device. The request streams the corresponding video frame to the terminal device.
  • Step 31 Perform out-of-order processing on video frames in the first video frame stream requested by the terminal device.
  • the video transmission request may be sent to the video server by using the terminal device, where the video transmission request carries the file identifier of the video file requested for transmission, and the file identifier
  • the video server may perform the authentication process first, wherein the processing manner of the video server performing the authentication process may be, but is not limited to, including The following three, specific:
  • the user who uses the terminal device is authenticated, that is, whether the user is an authorized user, and only the received video transmission request is sent by the terminal device used by the authorized user, and the requested video is sent.
  • the video frame corresponding to the file is streamed to the terminal device, and if the received video transmission request is sent by the terminal device used by the unauthorized user, no response is received.
  • the second processing mode is to authenticate the terminal device, that is, whether the terminal device is an authorized device, and only if the received video transmission request is sent by the authorized device, the video frame corresponding to the requested video file is transmitted to the terminal.
  • the terminal device does not respond if the received video transmission request is sent by an unauthorized device.
  • the video transmission request received by the video server includes, in addition to the file identifier of the video file requested for transmission, device information of the terminal device, and after receiving the video transmission request, the video server determines the device information carried in the video transmission request. If it is the device information of the authorized device, if the judgment result is yes, it is confirmed that the terminal device is an authorized device. If the judgment result is no, the terminal device is confirmed as an unauthorized device.
  • the third processing method is to authenticate the user who uses the terminal device, and at the same time, authenticate the terminal device, that is, Determining whether the user is an authorized user, and whether the terminal device is an authorized device, and only transmitting the video frame corresponding to the requested video file to the authorized user if the received video transmission request is sent by the authorized device.
  • the terminal device does not respond if the received video transmission request is sent by an unauthorized device by an unauthorized device, or is not authorized by the user to be sent by an unauthorized device, or an authorized user is sent by an unauthorized device.
  • the video server searches for the video file corresponding to the file identifier in the stored video files according to the file identifier carried in the received video transmission request, and the found video
  • the video frame stream corresponding to the file is the first video frame stream.
  • the video server After obtaining the first video frame stream, the video server performs the out-of-order processing on the video frames in the first video frame stream, where the specific implementation of the out-of-order processing on each video frame in the first video frame stream is implemented.
  • the method may include, but is not limited to, the following two types, which are separately introduced below.
  • the second out-of-order processing method first divides each video frame in the first video frame stream into video frame groups according to the first to last order of the video frames in the first video frame stream, and each video frame group
  • the number of video frames included in the same is the same, which can be preset by the video server according to the performance of the terminal device and the player, and the video frame stream can be continuously and smoothly played on the terminal device as a reference, for example,
  • the number is set to 4, that is, each video frame group includes 4 video frames, and the video server divides each video frame in the first video frame stream into video frame groups, and divides each video frame group for each video frame group.
  • each video frame in the video frame group that is, any video frame in the video frame group in the first video frame stream before the out-of-order can only appear in the first after the out-of-sequence Any location within the video frame group in the video frame stream, but not within other video frame groups.
  • the video server directly performs scribble processing on all the video frames in the first video frame stream.
  • the video server directly obtains the frame sequence information in the first video frame stream after the out-of-sequence processing of the video frames in the first video frame stream before the out-of-sort processing, that is, the correct frame sequence information of each video frame;
  • the video server uses the second out-of-order processing method to confuse each video frame in the first video frame stream Sequencing processing, that is, first dividing each video frame in the first video frame stream into video frame groups, and scribbling each video frame in the video frame group for each of the divided video frame groups
  • the video server obtains the frame sequence information
  • the video frame group after the out-of-order processing of each video frame in the video frame group before the out-of-order processing is obtained for each of the divided video frame groups.
  • the frame order information in the frame and then determining the frame order information corresponding to each of the divided video frame groups as the first video frame after the scribble processing of each video frame in the first video frame stream before the scribing process Frame order information in the stream.
  • the second embodiment of the present invention provides that the video server uses the second out-of-order processing method to perform chaos on each video frame in the first video frame stream.
  • the video server uses the second out-of-order processing method to perform chaos on each video frame in the first video frame stream.
  • the video server first determines, in the first video frame stream before the out-of-sort processing, that the terminal device can Playing a video frame stream (ie, a second video frame stream), and then determining, in each of the divided video frame groups, each video frame group corresponding to the second video frame stream, and then for each determined video frame.
  • the process of determining the second video frame stream may be, but is not limited to, the following two types:
  • the video server searches for a time period that the terminal device can watch in the first video frame stream according to the device information of the terminal device, and in the corresponding relationship between the stored device information and the viewing time period, and then according to the found Watching the time period, determining a second video frame stream;
  • the second determination method the video server stores the correspondence between the user information and the viewing time period, such as a table.
  • the video server searches for a time period that the user can watch in the first video frame stream according to the user information of the user, and stores the time period that the user can watch in the first video frame stream, and then according to the found viewing time period. , determining the second video frame stream.
  • Step 33 Encrypt the obtained frame sequence information according to an encryption algorithm and an encryption key that are pre-negotiated with the terminal device to generate a video certificate corresponding to the first video frame stream.
  • the video server uses the second out-of-order processing method to perform the out-of-order processing on each video frame in the first video frame stream, and the terminal device only has a part of the video frame stream in the first video frame stream.
  • the rights of the second video frame stream the video server first determines the location information of the second video frame stream in the first video frame stream before the scribing process, and then pre-negotiates the encryption algorithm and encryption with the terminal device.
  • the key is used to encrypt the obtained frame sequence information and the determined location information to generate a video certificate corresponding to the first video frame stream.
  • the video server determines that the location information of the second video frame stream in the first video frame stream before the scribing process may be, but is not limited to, implemented by the following two methods:
  • the video server sets the number of video frames included in each video frame group and the frame in the first video frame stream before the out-of-sort processing of the start frame and the end frame of the second video frame stream.
  • the location information is determined as location information of the second video frame stream in the first video frame stream before the scribing process, for example, the number of video frames included in each video frame group is four, and the second video
  • the position of the start frame of the frame stream in the first video frame stream is the 400th frame
  • the position of the end frame of the second video frame stream in the first video frame stream is the 50000 frame;
  • the video server may transmit the first video frame stream after the out-of-sequence processing, and then transmit the generated video certificate, when the video server transmits the first video frame stream and the generated video certificate to the terminal device.
  • the generated video certificate may be transmitted first, and then the first video frame stream after the out-of-sequence processing may be transmitted, and the first video frame stream and the generated video certificate may be transmitted to the terminal device at the same time.
  • the second example does not specifically limit the sequence of transmitting the first video frame stream and the video certificate.
  • the video server may also release the out-of-sequence processed first video frame stream and the generated video certificate to a streaming media platform on the network side, where the terminal device may obtain the out-of-order processing from the streaming media platform. a first video frame stream and the generated video certificate.
  • the third embodiment of the present invention provides a video server, which is configured as shown in FIG. 4, and includes: a scribing processing unit 41, configured to: out-of-order video frames in a first video frame stream requested by a terminal device Treatment
  • the frame order information obtaining unit 42 is configured to obtain frame order information in the first video frame stream after the out-sequence processing of each video frame in the first video frame stream before the out-of-sort processing;
  • the encryption unit 43 is configured to: sequence the letter according to an encryption algorithm and an encryption key previously negotiated with the terminal device.
  • the frame order information obtained by the information obtaining unit 42 is encrypted to generate a video certificate corresponding to the first video frame stream.
  • the out-of-order processing unit 41 specifically includes:
  • a video frame group dividing sub-unit configured to divide each video frame in the first video frame stream requested by the terminal device into each video frame group
  • the out-of-order processing sub-unit is configured to perform out-of-order processing on each video frame in the video frame group for each video frame group divided by the video frame group sub-unit.
  • the frame order information obtaining unit 42 specifically includes:
  • a first frame sequence information obtaining sub-unit configured to: for each video frame group divided by the video frame group sub-unit, respectively, each video frame in the video frame group before the scribing process is obtained after the out-of-order processing Frame order information in the video frame group;
  • a first frame order information determining subunit configured to determine, in the frame order information corresponding to each video frame group that is divided into sub-units, each video frame in the first video frame stream before the out-of-order processing is out of order Frame order information in the processed first video frame stream.
  • the frame order information obtaining unit 42 specifically includes:
  • a video frame stream determining subunit configured to determine, in the first video frame stream before the scribing processing unit 41 performs the scribing process, the second video frame stream that the terminal device can play;
  • a video frame group determining subunit configured to determine, in each video frame group that is divided by the video frame group dividing subunit, each video frame group corresponding to the second video frame stream;
  • a second frame sequence information obtaining sub-unit configured to determine, for each group of the video frames determined by the sub-units of the video frame group, respectively, each video frame in the video frame group before the scribing process is obtained after the scribble processing Frame order information in the video frame group;
  • a second frame sequence information determining subunit configured to determine, in the frame sequence information corresponding to each video frame group determined by the video frame group determining subunit, each video frame in the first video frame stream before the out of order processing The frame order information in the first video frame stream after the processing is out of order.
  • a location information determining subunit configured to determine location information of the second video frame stream in the first video frame stream before the scribing processing unit 41 performs the scribing process
  • An encryption subunit configured to encrypt the frame order information obtained by the frame order information obtaining unit 42 and the position information determined by the position information determining subunit according to an encryption algorithm and an encryption key previously negotiated with the terminal device, Generating a video certificate corresponding to the first video frame stream.
  • the location information determining subunit is specifically configured to perform, in the out of order processing unit 42, the number of video frames included in each video frame group and the start frame and end frame of the second video frame stream.
  • the frame position information in the first video frame stream before the scribing process is determined to be the out-of-sequence of the second video frame stream in the scribing processing unit 41 The location information in the first video frame stream.
  • the location information determining subunit is specifically configured to use the number of video frames included in each video frame group and the second video frame stream before the scribing processing unit 41 performs the scribing process. Start time point information and end time point information in the first video frame stream, and frame rate information of the first video frame stream, determined that the second video frame stream is out of order in the scribing processing unit 41 Location information in the first video frame stream before processing.
  • the video server further includes a transmission unit 44, configured to transmit, by the out-of-order processing unit 41, the first video frame stream and the video certificate generated by the encryption unit 43 to the terminal. device.
  • a transmission unit 44 configured to transmit, by the out-of-order processing unit 41, the first video frame stream and the video certificate generated by the encryption unit 43 to the terminal. device.
  • FIG. 5 it is a schematic flowchart of a video frame stream processing method on a terminal device side according to Embodiment 4 of the present invention, and the specific processing procedure is as follows:
  • Step 51 The terminal device obtains the first video frame stream after the out-of-order processing and the video certificate corresponding to the first video frame stream.
  • the video transmission request may be sent to the video server by using the terminal device, where the video transmission request carries the file identifier of the video file requested for transmission, and the file identifier
  • the user information of the user and/or the device information of the terminal device, wherein the file identifier is used by the video server to search for a corresponding video frame stream, and the user information and the device information are used by the video server for authentication processing.
  • the terminal device follows the video frame group in the first video frame stream from first to last. In sequence, each video frame group sent by the video server and processed out of order is received in sequence.
  • the terminal device performs an encryption algorithm and an encryption key pre-negotiated with the video server. And decrypting the obtained video certificate to obtain frame sequence information corresponding to each video frame group of the first video frame stream, where
  • the frame order information corresponding to the middle video frame group is the frame order information in the video frame group after the scramble processing of each video frame in the video frame group before the scribing process;
  • the terminal device uses the second out-of-order processing method to perform the out-of-order processing on each video frame in the first video frame stream, and the terminal device only has a part of the video frame stream in the first video frame stream.
  • the right of the second video frame stream the terminal device decrypts the obtained video certificate according to an encryption algorithm and an encryption key pre-negotiated with the video server, to obtain the first video frame stream, the terminal The frame order information corresponding to each video frame group of the second video frame stream that the device can play, and the position information of the second video frame stream in the first video frame stream before the scribing process.
  • the start time point information, the end time point information, and the frame rate information are used to determine a position of a start frame of the second video frame stream in the first video frame stream and an end frame of the second video frame stream at the first
  • the position in the video frame stream is specifically: the frame rate is multiplied by the start time point, and the position of the start frame of the second video frame stream in the first video frame stream is obtained, and the frame rate is multiplied by the end time point to obtain the second video frame.
  • the position of the end frame of the stream in the first video frame stream is specifically: the frame rate is multiplied by the start time point, and the position of the start frame of the second video frame stream in the first video frame stream is obtained, and the frame rate is multiplied by the end time point to obtain the second
  • Step 53 # ⁇ According to the frame sequence information obtained by the decryption, sorting each video frame in the obtained first video frame stream after the disordered processing, and obtaining the first video frame stream before the out-of-sort processing ;
  • each of the obtained video frame groups is respectively obtained according to the decryption.
  • the frame sequence information corresponding to the video frame group is sorted by the obtained video frames in the video frame group to obtain the video frame group before the scribing process.
  • the frame sequence information corresponding to each video frame group of the second video frame stream that can be played by the terminal device and the second video frame stream are in the first video frame stream.
  • the location information in the first video frame stream before the sequence processing when the terminal device performs the sorting process, first determining, according to the location information, the corresponding video frame stream in each obtained video frame group.
  • Each video frame group is then sorted and processed for each video frame in the obtained video frame group according to the frame order information corresponding to the decrypted video frame group for each determined video frame group.
  • the video frame group before the processing is
  • the video frame group corresponding to the second video frame stream may be determined by, but not limited to, the following manner:
  • frame position information of the start frame and the end frame of each video frame group before the scribing process in the first video frame stream before the scribing process are respectively determined.
  • the start time point information and the end time point information in the first video frame stream before the scribing process for example, the start time point of the second video frame stream is the 5th second, Determining the end time point of the second video frame stream as the 10th second
  • the frame rate information of the first video frame stream for example, the frame rate is 25 frames/second
  • a video frame group received by the terminal device is as shown in Table 4, and the frame sequence information corresponding to the video frame group is as shown in Table 5, when the terminal device performs the alignment processing on the video frame group, first according to Table 5
  • the first two bits 10 in the medium are determined to obtain the third frame in the video frame group after the out-of-order processing, and according to the first two bits 01 in Table 5, it is determined that the video frame needs to be obtained after the out-of-order processing.
  • the second frame in the group determines, according to the first two bits 11 in Table 5, that the fourth frame in the video frame group after the out-of-order processing needs to be obtained, and determines the need according to the first two bits 00 in Table 5.
  • the first frame in the video frame group after the out-of-order processing is obtained, and the video frame group obtained after the array processing is as shown in Table 3.
  • Step 54 Play the first video frame stream before the scribing process obtained after the sorting process.
  • the terminal device plays the first video frame stream before the out-of-sort processing.
  • the first video frame stream if the video server performs the out-of-order processing on each video frame in the first video frame stream by using the second out-of-order processing manner, the terminal device receives each video frame group, And buffering the video frame group, and then sorting each video frame in the video frame group, and then playing the sequenced video frame group in the video frame group in a first to last order according to the video frame.
  • the video frame in the first video frame stream is first processed in an out-of-order manner to obtain out-of-order processing.
  • the frame order information in the first video frame stream after the scrambled processing of each video frame in the first video frame stream before processing, and then according to an encryption algorithm and an encryption key pre-negotiated with the terminal device, Encrypting the obtained frame sequence information to generate a video certificate corresponding to the first video frame stream.
  • the subsequent terminal device After receiving the first video frame stream, the subsequent terminal device cannot directly play the first video frame stream, but first obtains the first video frame stream.
  • the terminal device that has not purchased the video certificate cannot process the out-of-order processing even if the video frame stream after the disordered processing is stolen.
  • the video frame stream is restored to the video frame stream before the out-of-order processing, so that the stolen video frame stream cannot be played.
  • the technical solution of the embodiment of the present invention effectively protects the copyright of the video file and prevents piracy and theft. Problems such as chains occur.
  • the fifth embodiment of the present invention provides a terminal device, and the structure thereof is as shown in FIG. 6, which includes:
  • the obtaining unit 61 is configured to obtain the first video frame stream after the out-of-order processing and the video certificate corresponding to the first video frame stream;
  • the video certificate decryption unit 62 is configured to decrypt the video certificate obtained by the obtaining unit 61 according to an encryption algorithm and an encryption key that are pre-negotiated with the device that performs the scribing process on the first video frame stream, and obtain the mess.
  • the sorting processing unit 63 is configured to decrypt the obtained information according to the video certificate decryption unit 62
  • the frame sequence information is processed, and each video frame in the first video frame stream obtained by the obtaining unit 61 is sorted to obtain a first video frame stream before the out-of-sort processing;
  • the device for performing the out-of-order processing on the first video frame stream may be, but not limited to, a video server.
  • the obtaining unit 61 is configured to sequentially obtain the out-of-order processing video frame groups in a first-to-last order in the first video frame stream according to the video frame group.
  • the frame order information obtained by the video certificate decryption unit 62 includes frame order information corresponding to each video frame group of the first video frame stream, wherein the frame order information corresponding to the video frame group is Disordered processing
  • the frame order information in the video frame group of the video frame group in the previous video frame group after the scribing process; the sorting processing unit 63 is specifically configured for each video frame group obtained by the obtaining unit 61, The video frame group in the video frame group obtained by the obtaining unit 61 is sorted according to the frame order information corresponding to the video frame group obtained by the video certificate decryption unit 62, and the video frame group before the scribing process is obtained. .
  • the video certificate decryption unit 62 is configured to decrypt the obtained video certificate to obtain each video frame group of the second video frame stream that can be played by the terminal device in the first video frame stream. Corresponding frame order information and position information of the second video frame stream in the first video frame stream before the scribing process;
  • the sorting processing unit 63 specifically includes:
  • a video frame group determining subunit configured to determine, according to the location information, each video frame group corresponding to the second video frame stream in each obtained video frame group;
  • the location information obtained by the video certificate decryption unit 62 decrypts includes the number of video frames included in each video frame group and the start frame and end frame of the second video frame stream before the scribing process. Frame position information in the first video frame stream;
  • the video frame group determining subunit specifically includes:
  • a first frame position information determining module configured to determine, according to the number of video frames included in each video frame group, the first frame and the end frame of each video frame group before the scribing process before the out-of-order processing Frame position information in a video frame stream;
  • a first video frame group determining module configured to determine frame position information in the first video frame stream before the out-of-sort processing according to the start frame and the end frame of the second video frame stream, and the frame position information determining module determines The frame position information determines each video frame group corresponding to the second video frame stream.
  • the video frame group determining subunit specifically includes:
  • a third frame position information determining module configured to start time point information and end time point information in the first video frame stream before the out-of-sort processing according to the second video frame stream, and the first video frame stream The frame rate information, determining frame position information in the first video frame stream before the out-of-sort processing of the start frame and the end frame of the second video frame stream; a second video frame group determining module, configured to determine frame position information determined by the module according to the third frame position information, and frame position information determined by the second frame position information determining module, to determine the second video frame stream corresponding to Each video frame group.

Abstract

本发明公开了一种视频帧流处理方法、视频服务器及终端设备,该方法包括步骤:将终端设备请求的第一视频帧流中的视频帧进行乱序化处理;获得乱序化处理前的第一视频帧流中的各视频帧在乱序化处理后的第一视频帧流中的帧顺序信息;根据与所述终端设备预先协商的加密算法和加密密钥,将获得的帧顺序信息进行加密,生成所述第一视频帧流对应的视频证书。本发明技术方案提出了一种对视频文件进行版权保护的具体实现方案。

Description

视频帧流处理方法、 视频服务器及终端设备 本申请要求在 2011年 9月 28日提交中国专利局、 申请号为 201110293983.9、 发明名称 为"视频帧流处理方法、视频服务器及终端设备"的中国专利申请的优先权, 其全部内容通过引 用结合在本申请中。
技术领域
本发明涉及多媒体安全技术领域, 尤其涉及一种视频帧流处理方法、 视频服务器及终 端设备。 背景技术
随着计算机技术和网络技术的不断发展, 用户不仅可以观看自身使用的终端设备中存 储的视频文件, 还可以观看网络侧的视频文件, 其中, 网络侧的视频服务器中存储有可以 传输给用户的视频文件, 当用户想要观看网络侧的视频服务器中存储的视频文件时, 可以 通过使用的终端设备向视频服务器发送视频传输请求, 视频服务器接收到视频传输请求 后, 将对应的视频文件传输给该终端设备, 终端设备将接收到的视频文件进行播放。 视频 文件由一系列有序的视频帧 (即单幅的静态画面)组成, 因此视频文件也可以称为视频帧 流。
如图 1所示, 为现有技术中视频帧流的传输方法流程图, 其具体处理流程如下: 步骤 11 , 当用户想要观看视频服务器中存储的视频文件时, 通过使用的终端设备向视 频服务器发送视频传输请求, 该视频传输请求中携带有请求传输的视频文件的文件标识以 及该用户的用户信息或该终端设备的设备信息;
步骤 12, 视频服务器接收到视频传输请求后, 根据视频传输请求中携带的用户信息, 对该用户进行鉴权, 判断该用户是否为已授权用户, 或者根据视频传输请求中携带的设备 信息, 对该终端设备进行鉴权, 判断该终端设备是否为已授权设备;
步骤 13 , 若通过鉴权, 即该用户为已授权用户或该终端设备为已授权设备, 则视频服 务器根据视频传输请求中携带的文件标识, 在存储的各视频文件中查找需要传输给该用户 的视频文件;
步骤 14, 视频服务器按照视频帧流中各视频帧的顺序, 将查找到的视频文件对应的视 频帧流划分成各个视频帧组, 每个视频帧组中包含的视频帧的个数相同;
步骤 15 , 视频服务器按照各视频帧组在所述视频帧流中由先到后的顺序, 将各视频帧 组依次发送给终端设备; 步骤 16 , 终端设备每接收到一个视频帧组, 就将该视频帧组进行緩存, 然后按照视频 帧在视频帧组中由先到后的顺序, 依次播放该视频帧组中的各视频帧。
由上可见, 现有技术虽然实现了视频服务器将视频帧流传输给终端设备, 但是任何终 端设备都能够向视频服务器获取视频文件并进行播放。 随着计算机技术的不断发展, 如何 保护视频文件的版权, 防止盗版、 盗链等问题的发生成为一个重要的课题。 现有技术还没 有提出对视频文件进行版权保护的具体实现方案。 发明内容
本发明实施例提供一种视频帧流处理方法、 视频服务器及终端设备, 用以提出一种对 视频文件进行版权保护的具体实现方案。
本发明实施例技术方案如下:
一种视频帧流处理方法, 该方法包括: 将终端设备请求的第一视频帧流中的视频帧进 行乱序化处理; 以及获得乱序化处理前的第一视频帧流中的各视频帧在乱序化处理后的第 一视频帧流中的帧顺序信息; 根据与所述终端设备预先协商的加密算法和加密密钥, 将获 得的帧顺序信息进行加密, 生成所述第一视频帧流对应的视频证书。
一种视频服务器, 包括: 乱序化处理单元, 用于将终端设备请求的第一视频帧流中的 视频帧进行乱序化处理; 帧顺序信息获得单元, 用于获得乱序化处理前的第一视频帧流中 的各视频帧在乱序化处理后的第一视频帧流中的帧顺序信息; 加密单元, 用于 #>据与所述 终端设备预先协商的加密算法和加密密钥, 将帧顺序信息获得单元获得的帧顺序信息进行 加密, 生成所述第一视频帧流对应的视频证书。
一种视频帧流处理方法, 该方法包括: 终端设备获得乱序化处理后的第一视频帧流以 及第一视频帧流对应的视频证书; 所述终端设备根据与对所述第一视频帧流进行乱序化处 理的设备预先协商的加密算法和加密密钥, 对获得的所述视频证书进行解密, 得到乱序化 处理前的第一视频帧流中的各视频帧在乱序化处理后的第一视频帧流中的帧顺序信息; 以 及根据解密得到的所述帧顺序信息, 对获得的乱序化处理后的第一视频帧流中的各视频帧 进行排序处理, 得到乱序化处理前的第一视频帧流; 并播放排序处理后得到的乱序化处理 前的第一视频帧流。
一种终端设备, 包括: 获得单元, 用于获得乱序化处理后的第一视频帧流以及第一视 频帧流对应的视频证书; 视频证书解密单元, 用于根据与对所述第一视频帧流进行乱序化 处理的设备预先协商的加密算法和加密密钥, 对获得单元获得的所述视频证书进行解密, 得到乱序化处理前的第一视频帧流中的各视频帧在乱序化处理后的第一视频帧流中的帧 顺序信息; 排序处理单元, 用于根据视频证书解密单元解密得到的所述帧顺序信息, 对获 得单元获得的乱序化处理后的第一视频帧流中的各视频帧进行排序处理, 得到乱序化处理 前的第一视频帧流; 播放单元, 用于播放排序处理单元排序处理后得到的乱序化处理前的 第一视频帧流。
本发明的有益效果如下:
本发明实施例技术方案中, 对终端设备请求的第一视频帧流进行处理时, 先将该第一 视频帧流中的视频帧进行乱序化处理, 获得乱序化处理前的第一视频帧流中的各视频帧在 乱序化处理后的第一视频帧流中的帧顺序信息, 然后还要根据与所述终端设备预先协商的 加密算法和加密密钥, 将获得的帧顺序信息进行加密, 生成所述第一视频帧流对应的视频 证书, 后续终端设备接收到该第一视频帧流之后, 不能直接播放, 而是要先获得该第一视 频帧流对应的视频证书, 然后根据上述加密算法和加密密钥, 对视频证书进行解密, 得到 乱序化处理前的第一视频帧流中的各视频帧在乱序化处理后的第一视频帧流中的帧顺序 信息, 再根据得到的所述帧顺序信息, 对乱序化处理后的第一视频帧流中的各视频帧进行 排序处理, 从而得到乱序化处理前的第一视频帧流, 这时终端设备才能够播放该第一视频 帧流, 由上可见, 本发明实施例技术方案中, 终端设备接收到的视频帧流是经过乱序化处 理的, 终端设备只能先购买该视频帧流的视频证书才能进行排序播放, 没有购买视频证书 为乱序化处理前的视频帧流, 因此就无法播放窃取到的视频帧流, 综上, 本发明实施例技 术方案有效地保护了视频文件的版权, 防止了盗版、 盗链等问题的发生。 附图说明
图 1为现有技术中, 视频帧流的传输方法流程示意图;
图 2为本发明实施例一中, 视频服务器向终端设备传输视频帧流的网络架构示意图; 图 3为本发明实施例二中, 视频服务器侧的视频帧流传输方法流程示意图; 图 4为本发明实施例三中, 视频服务器结构示意图;
图 5为本发明实施例四中, 终端设备侧的视频帧流传输方法流程示意图;
图 6为本发明实施例五中, 终端设备结构示意图。 具体实施方式
下面结合各个附图对本发明实施例技术方案的主要实现原理、 具体实施方式及其对应 能够达到的有益效果进行详细地阐述。
实施例一
如图 2所示, 为本发明实施例一中, 视频服务器向终端设备传输视频帧流的网络架构 示意图, 包含视频服务器 21和若千个终端设备 22, 视频服务器 21和各终端设备 22之间 可以通过通信网络进行通信, 视频服务器 21 中存储有大量的视频帧流, 可以应终端设备 的请求将相应的视频帧流传输给终端设备。
图 2 中的通信网络可以但不限于为无线通信网络, 例如码分多址 (CDMA, Code Division Multiple Access ) 网络、 通用分组无线服务( GPRS, General Packet Radio Service ) 网络、 无线保真 ( WIFI, Wireless Fidelity ) 网络等。
实施例二
如图 3所示, 为本发明实施例二提出的视频帧流处理方法流程示意图, 其具体处理流 程如下:
步骤 31 , 将终端设备请求的第一视频帧流中的视频帧进行乱序化处理;
其中,图 3所示的视频帧流处理方法的执行主体可以但不限于为网络侧的视频服务器, 即由视频服务器将终端设备请求的第一视频帧流中的视频帧进行乱序化处理, 还可以为其 他设备 , 例如其他终端设备。 下面的描述均以执行主体为视频服务器为例来说明, 执行主 体为其他设备时的处理方式与此类似。
当用户想要观看视频服务器中存储的某个视频文件时, 可以通过所使用的终端设备 , 向视频服务器发送视频传输请求, 该视频传输请求中携带有请求传输的视频文件的文件标 识, 以及该用户的用户信息和 /或该终端设备的设备信息,视频服务器接收到终端设备发送 的视频传输请求后, 可以先进行鉴权处理, 其中, 视频服务器进行鉴权处理的处理方式可 以但不限于包括下述三种, 具体的:
第一种处理方式,对使用终端设备的用户进行鉴权, 即判断该用户是否为已授权用户, 只有接收到的视频传输请求是已授权用户所使用的终端设备发送的, 才将请求的视频文件 对应的视频帧流传输给该终端设备, 若接收到的视频传输请求为未授权用户所使用的终端 设备发送的, 则不作响应。
视频服务器接收到的视频传输请求中, 除了包含请求传输的视频文件的文件标识之 夕卜, 还包含该用户的用户信息, 视频服务器接收到视频传输请求后, 判断视频传输请求中 携带的用户信息是否为已授权用户的用户信息, 若判断结果为是, 则确认该用户为已授权 用户, 若判断结果为否, 则确认该用户为未授权用户。
第二种处理方式, 对终端设备进行鉴权, 即判断终端设备是否为已授权设备, 只有接 收到的视频传输请求是已授权设备发送的, 才将请求的视频文件对应的视频帧流传输给该 终端设备, 若接收到的视频传输请求为未授权设备发送的, 则不作响应。
视频服务器接收到的视频传输请求中, 除了包含请求传输的视频文件的文件标识之 外, 还包含该终端设备的设备信息, 视频服务器接收到视频传输请求后, 判断视频传输请 求中携带的设备信息是否为已授权设备的设备信息, 若判断结果为是, 则确认该终端设备 为已授权设备, 若判断结果为否, 则确认该终端设备为未授权设备。
第三种处理方式, 对使用终端设备的用户进行鉴权, 同时, 对终端设备进行鉴权, 即 判断该用户是否为已授权用户, 且该终端设备是否为已授权设备, 只有接收到的视频传输 请求是已授权用户通过已授权设备发送的, 才将请求的视频文件对应的视频帧流传输给该 终端设备, 若接收到的视频传输请求为未授权用户通过已授权设备发送的、 或者未授权用 户通过未授权设备发送的、 或者已授权用户通过未授权设备发送的, 则不作响应。
视频服务器接收到的视频传输请求中, 除了包含请求传输的视频文件的文件标识之 夕卜, 还包含该用户的用户信息以及该终端设备的设备信息, 视频服务器接收到视频传输请 求后, 判断视频传输请求中携带的用户信息是否为已授权用户的用户信息, 且视频传输请 求中携带的设备信息是否为已授权设备的设备信息, 若判断结果均为是, 则确认该用户为 已授权用户, 且该终端设备为已授权设备。
若视频服务器进行鉴权处理的结果为鉴权通过, 则视频服务器根据接收到的视频传输 请求中携带的文件标识, 在存储的各视频文件中查找该文件标识对应的视频文件, 查找到 的视频文件对应的视频帧流即为上述第一视频帧流。
视频服务器获得所述第一视频帧流后, 将该第一视频帧流中的视频帧进行乱序化处 理, 其中, 对第一视频帧流中的各视频帧进行乱序化处理的具体实现方式可以但不限于包 括下述两种, 下面分别进行介绍。
第一种乱序化处理方式, 直接对上述第一视频帧流中的所有视频帧进行乱序化处理, 即乱序前的第一视频帧流中的任一视频帧可以出现在乱序后的第一视频帧流中的任意位 置。
第二种乱序化处理方式, 首先按照视频帧在第一视频帧流中由先到后的顺序, 将第一 视频帧流中的各视频帧划分为各视频帧组, 每个视频帧组中所包括的视频帧的数目是相同 的, 该数目可以由视频服务器根据终端设备和播放器的性能预先设定的, 以视频帧流能够 在终端设备上连续、 平滑地播放为基准, 例如将该数目设定为 4 , 即每个视频帧组中包括 4 个视频帧, 视频服务器将第一视频帧流中的各视频帧划分为各视频帧组后, 针对划分出 的每个视频帧组, 分别将该视频帧组内的各视频帧进行乱序化处理, 即乱序前的第一视频 帧流中的该视频帧组内的任一视频帧只能出现在乱序后的第一视频帧流中的该视频帧组 内的任意位置, 而不能出现在其他视频帧组内。
步骤 32 ,获得乱序化处理前的第一视频帧流中的各视频帧在乱序化处理后的第一视频 帧流中的帧顺序信息;
若视频服务器釆用上述第一种乱序化处理方式对第一视频帧流中的各视频帧进行乱 序化处理, 即直接对上述第一视频帧流中的所有视频帧进行乱序化处理, 则视频服务器直 接获得乱序化处理前的第一视频帧流中的各视频帧在乱序化处理后的第一视频帧流中的 帧顺序信息, 即各视频帧正确的帧顺序信息;
若视频服务器釆用上述第二种乱序化处理方式对第一视频帧流中的各视频帧进行乱 序化处理, 即首先将第一视频帧流中的各视频帧划分为各视频帧组, 针对划分出的每个视 频帧组, 分别将该视频帧组内的各视频帧进行乱序化处理, 则视频服务器获得帧顺序信息 时, 先要针对划分出的每个视频帧组, 分别获得乱序化处理前的该视频帧组中的各视频帧 在乱序化处理后的该视频帧组中的帧顺序信息, 然后将划分出的各视频帧组对应的帧顺序 信息, 确定为乱序化处理前的第一视频帧流中的各视频帧在乱序化处理后的第一视频帧流 中的帧顺序信息。
为了对用户在第一视频帧流中能够观看的时间进行控制, 本发明实施例二提出, 视频 服务器釆用上述第二种乱序化处理方式对第一视频帧流中的各视频帧进行乱序化处理时, 若终端设备只拥有播放第一视频帧流中的部分视频帧流的权限, 则所述视频服务器先在乱 序化处理前的第一视频帧流中, 确定该终端设备能够播放的视频帧流(即第二视频帧流), 然后在划分出的各视频帧组中, 确定出所述第二视频帧流对应的各视频帧组, 再针对确定 出的每个视频帧组, 分别获得乱序化处理前的该视频帧组中的各视频帧在乱序化处理后的 该视频帧组中的帧顺序信息, 将确定出的各视频帧组对应的帧顺序信息, 确定为乱序化处 理前的第一视频帧流中的各视频帧在乱序化处理后的第一视频帧流中的帧顺序信息。
其中, 确定第二视频帧流的过程可以但不限于为下述两种:
第一种确定方式: 视频服务器中存储有设备信息与观看时间段之间的对应关系, 如表 1所示:
表 1
Figure imgf000008_0001
视频服务器根据该终端设备的设备信息, 在存储的上述设备信息与观看时间段之间的 对应关系中, 查找该终端设备在第一视频帧流中可以观看的时间段, 然后再根据查找到的 观看时间段, 确定第二视频帧流;
第二种确定方式: 视频服务器中存储有用户信息与观看时间段之间的对应关系, 如表
2所示:
表 2
Figure imgf000008_0002
视频服务器根据用户的用户信息, 在存储的上述用户信息与观看时间段之间的对应关 系中,查找该用户在第一视频帧流中可以观看的时间段,然后再根据查找到的观看时间段, 确定第二视频帧流。
本发明实施例二中, 视频帧组中的各视频帧的正确帧顺序信息为乱序化处理前的该视 频帧组中的各视频帧在乱序化处理后的该视频帧组中的帧顺序信息, 例如: 每个视频帧组 中包含 4个视频帧, 在乱序化处理前, 视频帧组中的各视频帧的顺序为:
表 3
1 2 3 4 对该视频帧组进行乱序化处理后, 各视频帧的顺序为:
表 4
4 2 1 3 假设一个视频帧组对应的帧顺序信息占用一个字节, 则每两个比特表示乱序化处理前 相应位置的视频帧在乱序化处理后的位置, 若 00表示乱序化处理前相应位置的视频帧在 乱序化处理后的位置为第 1帧, 01表示乱序化处理前相应位置的视频帧在乱序化处理后的 位置为第 2帧, 10表示乱序化处理前相应位置的视频帧在乱序化处理后的位置为第 3帧, 11表示乱序化处理前相应位置的视频帧在乱序化处理后的位置为第 4帧,那么该视频帧组 对应的帧顺序信息即为:
Figure imgf000009_0001
Figure imgf000009_0002
步骤 33 , # ^据与所述终端设备预先协商的加密算法和加密密钥, 将获得的帧顺序信息 进行加密, 生成所述第一视频帧流对应的视频证书。
若视频服务器釆用上述第一种乱序化处理方式对第一视频帧流中的各视频帧进行乱 序化处理, 则视频服务器直接根据与终端设备预先协商的加密算法和加密密钥, 将获得的 帧顺序信息进行加密, 生成第一视频帧流对应的视频证书;
若视频服务器釆用上述第二种乱序化处理方式对第一视频帧流中的各视频帧进行乱 序化处理, 且终端设备只拥有播放第一视频帧流中的部分视频帧流(第二视频帧流) 的权 限, 则视频服务器首先确定第二视频帧流在乱序化处理前的第一视频帧流中的位置信息, 并才 居与所述终端设备预先协商的加密算法和加密密钥, 将获得的帧顺序信息和确定出的 位置信息进行加密, 生成所述第一视频帧流对应的视频证书。 其中, 视频服务器确定第二视频帧流在乱序化处理前的第一视频帧流中的位置信息可 以但不限于通过下述两种方式实现:
第一种确定方式, 视频服务器将每个视频帧组中包含的视频帧的数目以及所述第二视 频帧流的开始帧和结束帧在乱序化处理前的第一视频帧流中的帧位置信息, 确定为所述第 二视频帧流在乱序化处理前的第一视频帧流中的位置信息, 例如, 每个视频帧组中包含的 视频帧的数目为 4个, 第二视频帧流的开始帧在第一视频帧流中的位置为第 400帧, 第二 视频帧流的结束帧在第一视频帧流中的位置为第 50000帧;
第二种确定方式, 视频服务器将每个视频帧组中包含的视频帧的数目、 所述第二视频 帧流在乱序化处理前的第一视频帧流中的开始时间点信息和结束时间点信息、 以及所述第 一视频帧流的帧速率信息, 确定为所述第二视频帧流在乱序化处理前的第一视频帧流中的 位置信息, 例如, 每个视频帧组中包含的视频帧的数目为 4个, 第二视频帧流的开始时间 点为第 5秒, 第二视频帧流的结束时间点为第 10秒, 帧速率为 25帧 /秒。
本发明实施例二中, 在生成所述第一视频帧流对应的视频证书之后, 可以将乱序化处 理后的第一视频帧流以及生成的所述视频证书传输给所述终端设备, 若视频服务器釆用上 述第一种乱序化处理方式对第一视频帧流中的各视频帧进行乱序化处理, 则视频服务器直 接将乱序化处理后的第一视频帧流传输给终端设备; 若视频服务器釆用上述第二种乱序化 处理方式对第一视频帧流中的各视频帧进行乱序化处理, 则视频服务器按照视频帧组在第 一视频帧流中由先到后的顺序,依次将乱序化处理后的各视频帧组传输给终端设备。其中, 视频服务器将乱序化处理后的第一视频帧流以及生成的视频证书传输给终端设备时, 可以 先传输乱序化处理后的第一视频帧流, 再传输生成的视频证书, 也可以先传输生成的视频 证书, 再传输乱序化处理后的第一视频帧流, 还可以同时将乱序化处理后的第一视频帧流 和生成的视频证书传输给终端设备, 本发明实施例二不对传输第一视频帧流和视频证书的 先后顺序进行具体限定。
此外, 视频服务器也可以将乱序化处理后的第一视频帧流以及生成的所述视频证书发 布到网络侧的流媒体平台, 上述终端设备可以从流媒体平台中获取乱序化处理后的第一视 频帧流以及生成的所述视频证书。
实施例三
相应的, 本发明实施例三提供一种视频服务器, 其结构如图 4所示, 包括: 乱序化处理单元 41 , 用于将终端设备请求的第一视频帧流中的视频帧进行乱序化处 理;
帧顺序信息获得单元 42 ,用于获得乱序化处理前的第一视频帧流中的各视频帧在乱序 化处理后的第一视频帧流中的帧顺序信息;
加密单元 43 , 用于根据与所述终端设备预先协商的加密算法和加密密钥, 将帧顺序信 息获得单元 42获得的帧顺序信息进行加密, 生成所述第一视频帧流对应的视频证书。 较佳地, 所述乱序化处理单元 41具体包括:
视频帧组划分子单元, 用于将终端设备请求的第一视频帧流中的各视频帧划分为各视 频帧组;
乱序化处理子单元, 用于针对视频帧组划分子单元划分出的每个视频帧组, 分别将该 视频帧组内的各视频帧进行乱序化处理。
更佳地, 帧顺序信息获得单元 42具体包括:
第一帧顺序信息获得子单元, 用于针对视频帧组划分子单元划分出的每个视频帧组, 分别获得乱序化处理前的该视频帧组中的各视频帧在乱序化处理后的该视频帧组中的帧 顺序信息;
第一帧顺序信息确定子单元, 用于将划分子单元划分出的各视频帧组对应的帧顺序信 息, 确定为乱序化处理前的第一视频帧流中的各视频帧在乱序化处理后的第一视频帧流中 的帧顺序信息。
更佳地, 帧顺序信息获得单元 42具体包括:
视频帧流确定子单元, 用于在乱序化处理单元 41 进行乱序化处理前的第一视频帧流 中, 确定所述终端设备能够播放的第二视频帧流;
视频帧组确定子单元, 用于在视频帧组划分子单元划分出的各视频帧组中, 确定所述 第二视频帧流对应的各视频帧组;
第二帧顺序信息获得子单元, 用于针对视频帧组确定子单元确定出的每个视频帧组, 分别获得乱序化处理前的该视频帧组中的各视频帧在乱序化处理后的该视频帧组中的帧 顺序信息;
第二帧顺序信息确定子单元, 用于将视频帧组确定子单元确定出的各视频帧组对应的 帧顺序信息, 确定为乱序化处理前的第一视频帧流中的各视频帧在乱序化处理后的第一视 频帧流中的帧顺序信息。
更佳地, 所述加密单元 43具体包括:
位置信息确定子单元, 用于确定所述第二视频帧流在乱序化处理单元 41 进行乱序化 处理前的第一视频帧流中的位置信息;
加密子单元, 用于根据与所述终端设备预先协商的加密算法和加密密钥, 将帧顺序信 息获得单元 42获得的帧顺序信息和位置信息确定子单元确定出的所述位置信息进行加密, 生成所述第一视频帧流对应的视频证书。
更佳地, 所述位置信息确定子单元, 具体用于将每个视频帧组中包含的视频帧的数目 以及所述第二视频帧流的开始帧和结束帧在乱序化处理单元 42进行乱序化处理前的第一 视频帧流中的帧位置信息, 确定为所述第二视频帧流在乱序化处理单元 41 进行乱序化处 理前的第一视频帧流中的位置信息。
更佳地,所述位置信息确定子单元,具体用于将每个视频帧组中包含的视频帧的数目、 所述第二视频帧流在乱序化处理单元 41 进行乱序化处理前的第一视频帧流中的开始时间 点信息和结束时间点信息、 以及所述第一视频帧流的帧速率信息, 确定为所述第二视频帧 流在乱序化处理单元 41进行乱序化处理前的第一视频帧流中的位置信息。
较佳地, 所述视频服务器还包括传输单元 44 , 用于将乱序化处理单元 41进行乱序化 处理后的第一视频帧流以及加密单元 43生成的所述视频证书传输给所述终端设备。
实施例四
如图 5所示,为本发明实施例四提出的,终端设备侧的视频帧流处理方法流程示意图, 其具体处理流程如下:
步骤 51 ,终端设备获得乱序化处理后的第一视频帧流以及第一视频帧流对应的视频证 书;
本发明实施例四中, 对第一视频帧流进行乱序化处理的设备可以但不限于为视频服务 器, 还可以为其他设备 , 例如其他终端设备。 下面的描述均以对第一视频帧流进行乱序化 处理的设备为视频服务器为例来说明, 对第一视频帧流进行乱序化处理的设备为其他设备 时的处理方式与此类似。
当用户想要观看视频服务器中存储的某个视频文件时, 可以通过所使用的终端设备 , 向视频服务器发送视频传输请求, 该视频传输请求中携带有请求传输的视频文件的文件标 识, 以及该用户的用户信息和 /或该终端设备的设备信息, 其中, 文件标识用于视频服务器 查找对应的视频帧流, 用户信息及设备信息用于视频服务器进行鉴权处理。
本发明实施例四中, 终端设备可以先获得乱序化处理后的第一视频帧流, 再获得对应 的视频证书, 也可以先获得视频证书, 再获得乱序化处理后的第一视频帧流, 还可以同时 获得乱序化处理后的第一视频帧流和对应的视频证书, 本发明实施例四不对获得第一视频 帧流和视频证书的先后顺序进行具体限定。
若视频服务器釆用上述第二种乱序化处理方式对第一视频帧流中的各视频帧进行乱 序化处理, 则终端设备按照视频帧组在第一视频帧流中由先到后的顺序, 依次接收视频服 务器发送的、 乱序化处理后的各视频帧组。
步骤 52 ,所述终端设备根据与对所述第一视频帧流进行乱序化处理的设备预先协商的 加密算法和加密密钥, 对获得的所述视频证书进行解密, 得到乱序化处理前的第一视频帧 流中的各视频帧在乱序化处理后的第一视频帧流中的帧顺序信息;
若视频服务器釆用上述第二种乱序化处理方式对第一视频帧流中的各视频帧进行乱 序化处理, 则所述终端设备根据与所述视频服务器预先协商的加密算法和加密密钥, 对获 得的所述视频证书进行解密, 得到第一视频帧流的各视频帧组分别对应的帧顺序信息, 其 中视频帧组对应的帧顺序信息为乱序化处理前的该视频帧组中的各视频帧在乱序化处理 后的该视频帧组中的帧顺序信息;
若视频服务器釆用上述第二种乱序化处理方式对第一视频帧流中的各视频帧进行乱 序化处理, 且终端设备只拥有播放第一视频帧流中的部分视频帧流(第二视频帧流) 的权 限, 则所述终端设备根据与所述视频服务器预先协商的加密算法和加密密钥, 对获得的所 述视频证书进行解密, 得到第一视频帧流中, 所述终端设备能够播放的第二视频帧流的各 视频帧组分别对应的帧顺序信息以及所述第二视频帧流在乱序化处理前的第一视频帧流 中的位置信息。
其中, 终端设备解密得到的所述位置信息可以但不限于为如下两种:
第一种位置信息, 每个视频帧组中包含的视频帧的数目以及所述第二视频帧流的开始 帧和结束帧在乱序化处理前的第一视频帧流中的帧位置信息;
第二种位置信息, 每个视频帧组中包含的视频帧的数目、 所述第二视频帧流在乱序化 处理前的第一视频帧流中的开始时间点信息和结束时间点信息、 以及所述第一视频帧流的 帧速率信息。 其中, 所述开始时间点信息、 结束时间点信息、 帧速率信息, 用来确定第二 视频帧流的开始帧在第一视频帧流中的位置以及第二视频帧流的结束帧在第一视频帧流 中的位置, 具体为: 帧速率乘以开始时间点, 得到第二视频帧流的开始帧在第一视频帧流 中的位置,帧速率乘以结束时间点,得到第二视频帧流的结束帧在第一视频帧流中的位置。
步骤 53 , # ^据解密得到的所述帧顺序信息, 对获得的乱序化处理后的第一视频帧流中 的各视频帧进行排序处理, 得到乱序化处理前的第一视频帧流;
若所述终端设备对视频证书进行解密, 得到第一视频帧流的各视频帧组分别对应的帧 顺序信息, 则终端设备进行排序处理时, 针对获得的每个视频帧组, 分别根据解密得到的 该视频帧组对应的帧顺序信息, 对获得的该视频帧组中的各视频帧进行排序处理, 得到乱 序化处理前的该视频帧组。
若终端设备对视频证书进行解密, 得到第一视频帧流中, 所述终端设备能够播放的第 二视频帧流的各视频帧组分别对应的帧顺序信息以及所述第二视频帧流在乱序化处理前 的第一视频帧流中的位置信息, 则终端设备进行排序处理时, 首先要根据所述位置信息, 在获得的各视频帧组中, 确定出所述第二视频帧流对应的各视频帧组, 然后针对确定出的 每个视频帧组, 分别根据解密得到的该视频帧组对应的帧顺序信息, 对获得的该视频帧组 中的各视频帧进行排序处理, 得到乱序化处理前的该视频帧组。
本发明实施例四中, 当解密得到的位置信息为上述第一种位置信息时, 可以但不限于 釆用如下方式确定第二视频帧流对应的各视频帧组:
首先根据每个视频帧组中包含的视频帧的数目, 分别确定乱序化处理前的各视频帧组 的开始帧和结束帧在乱序化处理前的第一视频帧流中的帧位置信息, 然后根据所述第二视 频帧流的开始帧和结束帧在乱序化处理前的第一视频帧流中的帧位置信息(例如第二视频 帧流的开始帧在第一视频帧流中的位置为第 400帧, 第二视频帧流的结束帧在第一视频帧 流中的位置为第 50000 帧), 以及确定出的帧位置信息, 确定所述第二视频帧流对应的各 视频帧组。
本发明实施例四中, 当解密得到的位置信息为上述第二种位置信息时, 可以但不限于 釆用如下方式确定第二视频帧流对应的各视频帧组:
首先根据每个视频帧组中包含的视频帧的数目, 分别确定乱序化处理前的各视频帧组 的开始帧和结束帧在乱序化处理前的第一视频帧流中的帧位置信息, 然后根据所述第二视 频帧流在乱序化处理前的第一视频帧流中的开始时间点信息和结束时间点信息(例如第二 视频帧流的开始时间点为第 5秒, 第二视频帧流的结束时间点为第 10秒), 以及所述第一 视频帧流的帧速率信息(例如帧速率为 25帧 /秒), 确定所述第二视频帧流的开始帧和结束 帧在乱序化处理前的第一视频帧流中的帧位置信息, 再根据所述第二视频帧流的开始帧和 结束帧在乱序化处理前的第一视频帧流中的帧位置信息, 以及乱序化处理前的各视频帧组 的开始帧和结束帧在乱序化处理前的第一视频帧流中的帧位置信息, 确定所述第二视频帧 流对应的各视频帧组。
若终端设备接收到的某个视频帧组如表 4所示, 该视频帧组对应的帧顺序信息如表 5 所示, 则终端设备在对该视频帧组进行排列处理时, 首先根据表 5中的前两个比特 10, 确 定需要获取乱序化处理后的该视频帧组中的第 3帧, 根据表 5中的前两个比特 01 , 确定需 要获取乱序化处理后的该视频帧组中的第 2帧, 根据表 5中的前两个比特 11 , 确定需要获 取乱序化处理后的该视频帧组中的第 4帧, 根据表 5中的前两个比特 00 , 确定需要获取乱 序化处理后的该视频帧组中的第 1帧, 排列处理后得到的该视频帧组就如表 3所示。
步骤 54, 播放排序处理后得到的乱序化处理前的第一视频帧流。
若视频服务器釆用上述第一种乱序化处理方式对第一视频帧流中的各视频帧进行乱 序化处理, 则终端设备在得到乱序化处理前的第一视频帧流后 , 播放该第一视频帧流; 若视频服务器釆用上述第二种乱序化处理方式对第一视频帧流中的各视频帧进行乱 序化处理, 则终端设备每接收到一个视频帧组, 就将该视频帧组进行緩存, 然后对该视频 帧组中的各视频帧进行排序处理, 再按照视频帧在视频帧组中由先到后的顺序, 播放排序 处理后的该视频帧组中的各视频帧。
本发明实施例四中提到的视频帧流可以为普通视频帧流,较佳地,也可以为三维( 3D, 3 Dimensions )视频桢流, 在 3D视频帧流中, 每一幅画面以一个视频帧对的形式呈现, 每 一个视频帧对包含一个左视频帧与一个对应的右视频帧,视频服务器在向终端设备传输 3D 视频帧流时, 所传输的每个视频帧组中包含若千个视频帧对, 且左视频帧与右视频帧交替 出现, 一般情况下, 在同一视频帧对中, 左视频帧位于右视频帧之前。 终端设备接收到视 频帧组后, 要将同一视频帧对的两个视频帧组合成一幅画面进行显示。
由上述处理过程可知, 本发明实施例技术方案中, 对终端设备请求的第一视频帧流进 行处理时, 先将该第一视频帧流中的视频帧进行乱序化处理, 获得乱序化处理前的第一视 频帧流中的各视频帧在乱序化处理后的第一视频帧流中的帧顺序信息, 然后还要根据与所 述终端设备预先协商的加密算法和加密密钥, 将获得的帧顺序信息进行加密, 生成所述第 一视频帧流对应的视频证书, 后续终端设备接收到该第一视频帧流之后, 不能直接播放, 而是要先获得该第一视频帧流对应的视频证书, 然后根据上述加密算法和加密密钥, 对视 频证书进行解密, 得到乱序化处理前的第一视频帧流中的各视频帧在乱序化处理后的第一 视频帧流中的帧顺序信息, 再根据得到的所述帧顺序信息, 对乱序化处理后的第一视频帧 流中的各视频帧进行排序处理, 从而得到乱序化处理前的第一视频帧流, 这时终端设备才 能够播放该第一视频帧流, 由上可见, 本发明实施例技术方案中, 终端设备接收到的视频 帧流是经过乱序化处理的, 终端设备只能先购买该视频帧流的视频证书才能进行排序播 放, 没有购买视频证书的终端设备即使窃取到乱序化处理后的视频帧流也无法将乱序化处 理后的视频帧流恢复为乱序化处理前的视频帧流, 因此就无法播放窃取到的视频帧流, 综 上, 本发明实施例技术方案有效地保护了视频文件的版权, 防止了盗版、 盗链等问题的发 生。
实施例五
相应的, 本发明实施例五提供一种终端设备, 其结构如图 6所示, 包括:
获得单元 61 ,用于获得乱序化处理后的第一视频帧流以及第一视频帧流对应的视频证 书;
视频证书解密单元 62,用于根据与对所述第一视频帧流进行乱序化处理的设备预先协 商的加密算法和加密密钥, 对获得单元 61 获得的所述视频证书进行解密, 得到乱序化处 理前的第一视频帧流中的各视频帧在乱序化处理后的第一视频帧流中的帧顺序信息; 排序处理单元 63 , 用于根据视频证书解密单元 62解密得到的所述帧顺序信息, 对获 得单元 61 获得的乱序化处理后的第一视频帧流中的各视频帧进行排序处理, 得到乱序化 处理前的第一视频帧流;
播放单元 64, 用于播放排序处理单元 63排序处理后得到的乱序化处理前的第一视频 帧流。
所述对所述第一视频帧流进行乱序化处理的设备可以但不限于为视频服务器。
较佳地, 获得单元 61 , 具体用于按照视频帧组在第一视频帧流中由先到后的顺序, 依 次获得乱序化处理后的各视频帧组。
更佳地, 所述视频证书解密单元 62解密得到的所述帧顺序信息中包含所述第一视频 帧流的各视频帧组分别对应的帧顺序信息, 其中视频帧组对应的帧顺序信息为乱序化处理 前的该视频帧组中的各视频帧在乱序化处理后的该视频帧组中的帧顺序信息; 所述排序处理单元 63 , 具体用于针对获得单元 61获得的每个视频帧组, 分别根据视 频证书解密单元 62解密得到的该视频帧组对应的帧顺序信息, 对获得单元 61获得的该视 频帧组中的各视频帧进行排序处理, 得到乱序化处理前的该视频帧组。
更佳地, 所述视频证书解密单元 62 , 具体用于对获得的所述视频证书进行解密, 得到 第一视频帧流中, 所述终端设备能够播放的第二视频帧流的各视频帧组分别对应的帧顺序 信息以及所述第二视频帧流在乱序化处理前的第一视频帧流中的位置信息;
排序处理单元 63具体包括:
视频帧组确定子单元, 用于根据所述位置信息, 在获得的各视频帧组中, 确定出所述 第二视频帧流对应的各视频帧组;
排序处理子单元, 用于针对视频帧组确定子单元确定出的每个视频帧组, 分别根据视 频证书解密单元解密得到的该视频帧组对应的帧顺序信息, 对获得的该视频帧组中的各视 频帧进行排序处理, 得到乱序化处理前的该视频帧组。
更佳地, 视频证书解密单元 62解密得到的所述位置信息包括每个视频帧组中包含的 视频帧的数目以及所述第二视频帧流的开始帧和结束帧在乱序化处理前的第一视频帧流 中的帧位置信息;
视频帧组确定子单元具体包括:
第一帧位置信息确定模块, 用于根据每个视频帧组中包含的视频帧的数目, 分别确定 乱序化处理前的各视频帧组的开始帧和结束帧在乱序化处理前的第一视频帧流中的帧位 置信息;
第一视频帧组确定模块, 用于根据所述第二视频帧流的开始帧和结束帧在乱序化处理 前的第一视频帧流中的帧位置信息, 以及帧位置信息确定模块确定出的帧位置信息, 确定 所述第二视频帧流对应的各视频帧组。
更佳地, 视频证书解密单元 62解密得到的所述位置信息包括每个视频帧组中包含的 视频帧的数目、 所述第二视频帧流在乱序化处理前的第一视频帧流中的开始时间点信息和 结束时间点信息、 以及所述第一视频帧流的帧速率信息;
视频帧组确定子单元具体包括:
第二帧位置信息确定模块, 用于根据每个视频帧组中包含的视频帧的数目, 分别确定 乱序化处理前的各视频帧组的开始帧和结束帧在乱序化处理前的第一视频帧流中的帧位 置信息;
第三帧位置信息确定模块, 用于根据所述第二视频帧流在乱序化处理前的第一视频帧 流中的开始时间点信息和结束时间点信息, 以及所述第一视频帧流的帧速率信息, 确定所 述第二视频帧流的开始帧和结束帧在乱序化处理前的第一视频帧流中的帧位置信息; 第二视频帧组确定模块, 用于根据第三帧位置信息确定模块确定出的帧位置信息, 以 及第二帧位置信息确定模块确定出的帧位置信息, 确定所述第二视频帧流对应的各视频帧 组。
尽管已描述了本发明的优选实施例, 但本领域内的技术人员一旦得知了基本创造性概 念, 则可对这些实施例做出另外的变更和修改。 所以, 所附权利要求意欲解释为包括优选 实施例以及落入本发明范围的所有变更和修改。
显然, 本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和 范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内, 则本发明也意图包含这些改动和变型在内。

Claims

权 利 要 求
1、 一种视频帧流处理方法, 其特征在于, 包括:
将终端设备请求的第一视频帧流中的视频帧进行乱序化处理; 以及
获得乱序化处理前的第一视频帧流中的各视频帧在乱序化处理后的第一视频帧流中的 帧顺序信息;
根据与所述终端设备预先协商的加密算法和加密密钥,将获得的帧顺序信息进行加密, 生成所述第一视频帧流对应的视频证书。
2、 如权利要求 1所述的方法, 其特征在于, 将终端设备请求的第一视频帧流中的视频 帧进行乱序化处理, 具体包括:
将终端设备请求的第一视频帧流中的各视频帧划分为各视频帧组;
针对划分出的每个视频帧组, 分别将该视频帧组内的各视频帧进行乱序化处理。
3、 如权利要求 2所述的方法, 其特征在于, 所述第一视频帧流为三维 3D视频帧流; 划分出的每个视频帧组中分别包含若千个视频帧对, 每个视频帧对包含一个左视频帧 和一个对应的右视频帧。
4、 如权利要求 2所述的方法, 其特征在于, 获得乱序化处理前的第一视频帧流中的各 视频帧在乱序化处理后的第一视频帧流中的帧顺序信息, 具体包括:
针对划分出的每个视频帧组, 分别获得乱序化处理前的该视频帧组中的各视频帧在乱 序化处理后的该视频帧组中的帧顺序信息;
将划分出的各视频帧组对应的帧顺序信息, 确定为乱序化处理前的第一视频帧流中的 各视频帧在乱序化处理后的第一视频帧流中的帧顺序信息。
5、 如权利要求 2所述的方法, 其特征在于, 获得乱序化处理前的第一视频帧流中的各 视频帧在乱序化处理后的第一视频帧流中的帧顺序信息, 具体包括:
在乱序化处理前的第一视频帧流中, 确定所述终端设备能够播放的第二视频帧流; 并 在划分出的各视频帧组中, 确定所述第二视频帧流对应的各视频帧组;
针对确定出的每个视频帧组, 分别获得乱序化处理前的该视频帧组中的各视频帧在乱 序化处理后的该视频帧组中的帧顺序信息;
将确定出的各视频帧组对应的帧顺序信息, 确定为乱序化处理前的第一视频帧流中的 各视频帧在乱序化处理后的第一视频帧流中的帧顺序信息。
6、 如权利要求 5所述的方法, 其特征在于, 根据与所述终端设备预先协商的加密算法 和加密密钥, 将获得的帧顺序信息进行加密, 具体包括:
确定所述第二视频帧流在乱序化处理前的第一视频帧流中的位置信息; 并
才艮据与所述终端设备预先协商的加密算法和加密密钥, 将获得的帧顺序信息和确定出 的所述位置信息进行加密, 生成所述第一视频帧流对应的视频证书。
7、 如权利要求 6所述的方法, 其特征在于, 确定所述第二视频帧流在乱序化处理前的 第一视频帧流中的位置信息, 具体包括:
将每个视频帧组中包含的视频帧的数目以及所述第二视频帧流的开始帧和结束帧在乱 序化处理前的第一视频帧流中的帧位置信息, 确定为所述第二视频帧流在乱序化处理前的 第一视频帧流中的位置信息。
8、 如权利要求 6所述的方法, 其特征在于, 确定所述第二视频帧流在乱序化处理前的 第一视频帧流中的位置信息, 具体包括:
将每个视频帧组中包含的视频帧的数目、 所述第二视频帧流在乱序化处理前的第一视 频帧流中的开始时间点信息和结束时间点信息、 以及所述第一视频帧流的帧速率信息, 确 定为所述第二视频帧流在乱序化处理前的第一视频帧流中的位置信息。
9、 如权利要求 1所述的方法, 其特征在于, 还包括:
将乱序化处理后的第一视频帧流以及生成的所述视频证书传输给所述终端设备。
10、 一种视频服务器, 其特征在于, 包括:
乱序化处理单元, 用于将终端设备请求的第一视频帧流中的视频帧进行乱序化处理; 帧顺序信息获得单元, 用于获得乱序化处理前的第一视频帧流中的各视频帧在乱序化 处理后的第一视频帧流中的帧顺序信息;
加密单元, 用于根据与所述终端设备预先协商的加密算法和加密密钥, 将帧顺序信息 获得单元获得的帧顺序信息进行加密, 生成所述第一视频帧流对应的视频证书。
11、 如权利要求 10所述的视频服务器, 其特征在于, 所述乱序化处理单元具体包括: 视频帧组划分子单元, 用于将终端设备请求的第一视频帧流中的各视频帧划分为各视 频帧组;
乱序化处理子单元, 用于针对视频帧组划分子单元划分出的每个视频帧组, 分别将该 视频帧组内的各视频帧进行乱序化处理。
12、 如权利要求 11所述的视频服务器, 其特征在于, 帧顺序信息获得单元具体包括: 第一帧顺序信息获得子单元, 用于针对视频帧组划分子单元划分出的每个视频帧组, 分别获得乱序化处理前的该视频帧组中的各视频帧在乱序化处理后的该视频帧组中的帧 顺序信息;
第一帧顺序信息确定子单元, 用于将划分子单元划分出的各视频帧组对应的帧顺序信 息, 确定为乱序化处理前的第一视频帧流中的各视频帧在乱序化处理后的第一视频帧流中 的帧顺序信息。
13、 如权利要求 11所述的视频服务器, 其特征在于, 帧顺序信息获得单元具体包括: 视频帧流确定子单元, 用于在乱序化处理单元进行乱序化处理前的第一视频帧流中, 确定所述终端设备能够播放的第二视频帧流; 视频帧组确定子单元, 用于在视频帧组划分子单元划分出的各视频帧组中, 确定所述 第二视频帧流对应的各视频帧组;
第二帧顺序信息获得子单元, 用于针对视频帧组确定子单元确定出的每个视频帧组, 分别获得乱序化处理前的该视频帧组中的各视频帧在乱序化处理后的该视频帧组中的帧 顺序信息;
第二帧顺序信息确定子单元, 用于将视频帧组确定子单元确定出的各视频帧组对应的 帧顺序信息, 确定为乱序化处理前的第一视频帧流中的各视频帧在乱序化处理后的第一视 频帧流中的帧顺序信息。
14、 如权利要求 13所述的视频服务器, 其特征在于, 所述加密单元具体包括: 位置信息确定子单元, 用于确定所述第二视频帧流在乱序化处理单元进行乱序化处理 前的第一视频帧流中的位置信息;
加密子单元, 用于根据与所述终端设备预先协商的加密算法和加密密钥, 将帧顺序信 息获得单元获得的帧顺序信息和位置信息确定子单元确定出的所述位置信息进行加密, 生 成所述第一视频帧流对应的视频证书。
15、 如权利要求 10所述的视频服务器, 其特征在于, 还包括:
传输单元, 用于将乱序化处理单元进行乱序化处理后的第一视频帧流以及加密单元生 成的所述视频证书传输给所述终端设备。
16、 一种视频帧流处理方法, 其特征在于, 包括:
终端设备获得乱序化处理后的第一视频帧流以及第一视频帧流对应的视频证书; 所述终端设备根据与对所述第一视频帧流进行乱序化处理的设备预先协商的加密算法 和加密密钥, 对获得的所述视频证书进行解密, 得到乱序化处理前的第一视频帧流中的各 视频帧在乱序化处理后的第一视频帧流中的帧顺序信息; 以及
根据解密得到的所述帧顺序信息, 对获得的乱序化处理后的第一视频帧流中的各视频 帧进行排序处理, 得到乱序化处理前的第一视频帧流; 并
播放排序处理后得到的乱序化处理前的第一视频帧流。
17、 如权利要求 16所述的方法, 其特征在于, 终端设备获得乱序化处理后的第一视频 帧流, 具体包括:
终端设备按照视频帧组在第一视频帧流中由先到后的顺序, 依次获得乱序化处理后的 各视频帧组。
18、如权利要求 17所述的方法,其特征在于,所述第一视频帧流为三维 3D视频帧流; 获得的每个视频帧组中分别包含若千个视频帧对, 每个视频帧对包含一个左视频帧和 一个对应的右视频帧。
19、 如权利要求 17所述的方法, 其特征在于, 所述终端设备解密得到的所述帧顺序信 息中包含所述第一视频帧流的各视频帧组分别对应的帧顺序信息, 其中视频帧组对应的帧 顺序信息为乱序化处理前的该视频帧组中的各视频帧在乱序化处理后的该视频帧组中的 帧顺序信息;
根据解密得到的所述帧顺序信息, 对获得的乱序化处理后的第一视频帧流中的各视频 帧进行排序处理, 具体包括:
针对获得的每个视频帧组, 分别根据解密得到的该视频帧组对应的帧顺序信息, 对获 得的该视频帧组中的各视频帧进行排序处理, 得到乱序化处理前的该视频帧组。
20、 如权利要求 17所述的方法, 其特征在于, 所述终端设备对获得的所述视频证书进 行解密, 具体包括:
所述终端设备对获得的所述视频证书进行解密, 得到第一视频帧流中, 所述终端设备 能够播放的第二视频帧流的各视频帧组分别对应的帧顺序信息以及所述第二视频帧流在 乱序化处理前的第一视频帧流中的位置信息;
根据解密得到的所述帧顺序信息, 对获得的乱序化处理后的第一视频帧流中的各视频 帧进行排序处理, 具体包括:
根据所述位置信息, 在获得的各视频帧组中, 确定出所述第二视频帧流对应的各视频 帧组;
针对确定出的每个视频帧组, 分别根据解密得到的该视频帧组对应的帧顺序信息, 对 获得的该视频帧组中的各视频帧进行排序处理, 得到乱序化处理前的该视频帧组。
21、 如权利要求 20所述的方法, 其特征在于, 解密得到的所述位置信息包括每个视频 帧组中包含的视频帧的数目以及所述第二视频帧流的开始帧和结束帧在乱序化处理前的 第一视频帧流中的帧位置信息;
根据所述位置信息, 在获得的各视频帧组中, 确定出所述第二视频帧流对应的各视频 帧组, 具体包括:
根据每个视频帧组中包含的视频帧的数目, 分别确定乱序化处理前的各视频帧组的开 始帧和结束帧在乱序化处理前的第一视频帧流中的帧位置信息;
根据所述第二视频帧流的开始帧和结束帧在乱序化处理前的第一视频帧流中的帧位置 信息, 以及乱序化处理前的各视频帧组的开始帧和结束帧在乱序化处理前的第一视频帧流 中的帧位置信息, 确定所述第二视频帧流对应的各视频帧组。
22、 如权利要求 20所述的方法, 其特征在于, 解密得到的所述位置信息包括每个视频 帧组中包含的视频帧的数目、 所述第二视频帧流在乱序化处理前的第一视频帧流中的开始 时间点信息和结束时间点信息、 以及所述第一视频帧流的帧速率信息;
根据所述位置信息, 在获得的各视频帧组中, 确定出所述第二视频帧流对应的各视频 帧组, 具体包括: 根据每个视频帧组中包含的视频帧的数目, 分别确定乱序化处理前的各视频帧组的开 始帧和结束帧在乱序化处理前的第一视频帧流中的帧位置信息;
根据所述第二视频帧流在乱序化处理前的第一视频帧流中的开始时间点信息和结束时 间点信息, 以及所述第一视频帧流的帧速率信息, 确定所述第二视频帧流的开始帧和结束 帧在乱序化处理前的第一视频帧流中的帧位置信息;
根据所述第二视频帧流的开始帧和结束帧在乱序化处理前的第一视频帧流中的帧位置 信息, 以及乱序化处理前的各视频帧组的开始帧和结束帧在乱序化处理前的第一视频帧流 中的帧位置信息, 确定所述第二视频帧流对应的各视频帧组。
23、 一种终端设备, 其特征在于, 包括:
获得单元,用于获得乱序化处理后的第一视频帧流以及第一视频帧流对应的视频证书; 视频证书解密单元, 用于根据与对所述第一视频帧流进行乱序化处理的设备预先协商 的加密算法和加密密钥, 对获得单元获得的所述视频证书进行解密, 得到乱序化处理前的 第一视频帧流中的各视频帧在乱序化处理后的第一视频帧流中的帧顺序信息;
排序处理单元, 用于根据视频证书解密单元解密得到的所述帧顺序信息, 对获得单元 获得的乱序化处理后的第一视频帧流中的各视频帧进行排序处理, 得到乱序化处理前的第 一视频帧流;
播放单元, 用于播放排序处理单元排序处理后得到的乱序化处理前的第一视频帧流。
24、 如权利要求 23所述的终端设备, 其特征在于, 获得单元, 具体用于按照视频帧组 在第一视频帧流中由先到后的顺序, 依次获得乱序化处理后的各视频帧组。
25、 如权利要求 24所述的终端设备, 其特征在于, 所述视频证书解密单元解密得到的 所述帧顺序信息中包含所述第一视频帧流的各视频帧组分别对应的帧顺序信息, 其中视频 帧组对应的帧顺序信息为乱序化处理前的该视频帧组中的各视频帧在乱序化处理后的该 视频帧组中的帧顺序信息;
所述排序处理单元, 具体用于针对获得单元获得的每个视频帧组, 分别根据视频证书 解密单元解密得到的该视频帧组对应的帧顺序信息, 对获得单元获得的该视频帧组中的各 视频帧进行排序处理, 得到乱序化处理前的该视频帧组。
26、 如权利要求 24所述的终端设备, 其特征在于, 所述视频证书解密单元, 具体用于 对获得的所述视频证书进行解密, 得到第一视频帧流中, 所述终端设备能够播放的第二视 频帧流的各视频帧组分别对应的帧顺序信息以及所述第二视频帧流在乱序化处理前的第 一视频帧流中的位置信息;
排序处理单元具体包括:
视频帧组确定子单元, 用于根据所述位置信息, 在获得的各视频帧组中, 确定出所述 第二视频帧流对应的各视频帧组; 排序处理子单元, 用于针对视频帧组确定子单元确定出的每个视频帧组, 分别根据视 频证书解密单元解密得到的该视频帧组对应的帧顺序信息, 对获得的该视频帧组中的各视 频帧进行排序处理, 得到乱序化处理前的该视频帧组。
27、 如权利要求 26所述的终端设备, 其特征在于, 视频证书解密单元解密得到的所述 位置信息包括每个视频帧组中包含的视频帧的数目以及所述第二视频帧流的开始帧和结 束帧在乱序化处理前的第一视频帧流中的帧位置信息;
视频帧组确定子单元具体包括:
第一帧位置信息确定模块, 用于根据每个视频帧组中包含的视频帧的数目, 分别确定 乱序化处理前的各视频帧组的开始帧和结束帧在乱序化处理前的第一视频帧流中的帧位 置信息;
第一视频帧组确定模块, 用于根据所述第二视频帧流的开始帧和结束帧在乱序化处理 前的第一视频帧流中的帧位置信息, 以及帧位置信息确定模块确定出的帧位置信息, 确定 所述第二视频帧流对应的各视频帧组。
28、 如权利要求 26所述的终端设备, 其特征在于, 视频证书解密单元解密得到的所述 位置信息包括每个视频帧组中包含的视频帧的数目、 所述第二视频帧流在乱序化处理前的 第一视频帧流中的开始时间点信息和结束时间点信息、 以及所述第一视频帧流的帧速率信 息;
视频帧组确定子单元具体包括:
第二帧位置信息确定模块, 用于根据每个视频帧组中包含的视频帧的数目, 分别确定 乱序化处理前的各视频帧组的开始帧和结束帧在乱序化处理前的第一视频帧流中的帧位 置信息;
第三帧位置信息确定模块, 用于根据所述第二视频帧流在乱序化处理前的第一视频帧 流中的开始时间点信息和结束时间点信息, 以及所述第一视频帧流的帧速率信息, 确定所 述第二视频帧流的开始帧和结束帧在乱序化处理前的第一视频帧流中的帧位置信息; 第二视频帧组确定模块, 用于根据第三帧位置信息确定模块确定出的帧位置信息, 以 及第二帧位置信息确定模块确定出的帧位置信息, 确定所述第二视频帧流对应的各视频帧 组。
PCT/CN2012/082014 2011-09-28 2012-09-26 视频帧流处理方法、视频服务器及终端设备 WO2013044800A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110293983.9A CN103024449B (zh) 2011-09-28 2011-09-28 视频帧流处理方法、视频服务器及终端设备
CN201110293983.9 2011-09-28

Publications (1)

Publication Number Publication Date
WO2013044800A1 true WO2013044800A1 (zh) 2013-04-04

Family

ID=47972509

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/082014 WO2013044800A1 (zh) 2011-09-28 2012-09-26 视频帧流处理方法、视频服务器及终端设备

Country Status (2)

Country Link
CN (1) CN103024449B (zh)
WO (1) WO2013044800A1 (zh)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105763887A (zh) * 2015-12-17 2016-07-13 国家电网公司 一种基于Blowfish算法的H.264视频编码方法及传输加密系统
CN107027055A (zh) * 2017-04-28 2017-08-08 安徽四创电子股份有限公司 一种基于水印技术的视频溯源及加密方法
CN109600631A (zh) * 2018-12-07 2019-04-09 深圳市云歌人工智能技术有限公司 视频文件的加密及公布方法与装置
GB2586173A (en) * 2019-08-09 2021-02-10 Univ Guangdong Technology Video encryption method and apparatus, image capture device and readable storage medium
CN112733160A (zh) * 2020-12-30 2021-04-30 武汉海昌信息技术有限公司 一种基于数据库的加密读写方法、装置及存储介质

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104065968B (zh) * 2014-07-02 2017-11-24 哈尔滨海能达科技有限公司 一种视频数据加密、解密方法及装置
CN105049877A (zh) * 2015-06-02 2015-11-11 阔地教育科技有限公司 一种用于直录播互动系统的加密方法及装置
CN105847881B (zh) * 2016-03-31 2019-07-09 武汉斗鱼网络科技有限公司 一种防盗播视频播放器与服务器及系统
CN107318045A (zh) * 2016-04-27 2017-11-03 阿里巴巴集团控股有限公司 播放视频数据流的方法及装置
CN108668133B (zh) * 2017-03-31 2020-11-03 鸿富锦精密工业(深圳)有限公司 视频加密和解密的方法及装置
TWI679884B (zh) * 2017-03-31 2019-12-11 鴻海精密工業股份有限公司 視頻加密和解密的方法及裝置
CN108881258B (zh) * 2018-06-29 2020-10-20 张家港市鸿嘉数字科技有限公司 一种用于网络文件安全传输的智能系统
CN108801352B (zh) * 2018-06-29 2021-04-27 张家港市鸿嘉数字科技有限公司 一种浴池环境监测系统及其工作方法
CN108645450B (zh) * 2018-06-29 2021-04-27 张家港市鸿嘉数字科技有限公司 一种智慧城市环保系统
CN108894915B (zh) * 2018-07-02 2020-10-20 张家港市鸿嘉数字科技有限公司 一种风力发电远程监控系统及其工作方法
CN108803744B (zh) * 2018-07-02 2020-10-20 张家港市鸿嘉数字科技有限公司 一种商场环境监控系统及其工作方法
CN108648386B (zh) * 2018-07-02 2020-10-20 张家港市鸿嘉数字科技有限公司 一种智能家居防盗监控系统及其工作方法
CN110035327B (zh) * 2019-04-17 2020-07-17 深圳市摩天之星企业管理有限公司 一种安全播放方法
CN114697758B (zh) * 2020-12-30 2023-03-31 北京金山云网络技术有限公司 视频处理方法、装置及电子设备
CN114416407B (zh) * 2022-03-29 2022-06-28 树根互联股份有限公司 一种实时数据的乱序修复系统、方法及计算机设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000018122A1 (en) * 1998-09-21 2000-03-30 General Instrument Corporation Method and apparatus for shuffling and deshuffling video signals
CN1617584A (zh) * 2004-12-06 2005-05-18 武汉大学 一种视频信息的动态随机置乱加解密方法
CN1949863A (zh) * 2006-11-21 2007-04-18 北京中星微电子有限公司 实现信号加密的视频监控系统和视频监控方法
US20090041235A1 (en) * 1998-08-20 2009-02-12 Akikaze Technologies, Llc Secure Information Distribution System Utilizing Information Segment Scrambling
US20100189257A1 (en) * 2009-01-28 2010-07-29 Ulf Bjorkengren Lightweight Streaming Protection by Sequence Number Scrambling

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090041235A1 (en) * 1998-08-20 2009-02-12 Akikaze Technologies, Llc Secure Information Distribution System Utilizing Information Segment Scrambling
WO2000018122A1 (en) * 1998-09-21 2000-03-30 General Instrument Corporation Method and apparatus for shuffling and deshuffling video signals
CN1617584A (zh) * 2004-12-06 2005-05-18 武汉大学 一种视频信息的动态随机置乱加解密方法
CN1949863A (zh) * 2006-11-21 2007-04-18 北京中星微电子有限公司 实现信号加密的视频监控系统和视频监控方法
US20100189257A1 (en) * 2009-01-28 2010-07-29 Ulf Bjorkengren Lightweight Streaming Protection by Sequence Number Scrambling

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105763887A (zh) * 2015-12-17 2016-07-13 国家电网公司 一种基于Blowfish算法的H.264视频编码方法及传输加密系统
CN107027055A (zh) * 2017-04-28 2017-08-08 安徽四创电子股份有限公司 一种基于水印技术的视频溯源及加密方法
CN109600631A (zh) * 2018-12-07 2019-04-09 深圳市云歌人工智能技术有限公司 视频文件的加密及公布方法与装置
GB2586173A (en) * 2019-08-09 2021-02-10 Univ Guangdong Technology Video encryption method and apparatus, image capture device and readable storage medium
US11252452B2 (en) 2019-08-09 2022-02-15 Guangdong University Of Technology Video encryption method and apparatus, image capture device and readable storage medium
GB2586173B (en) * 2019-08-09 2022-11-30 Univ Guangdong Technology Video encryption method and apparatus, image capture device and readable storage medium
CN112733160A (zh) * 2020-12-30 2021-04-30 武汉海昌信息技术有限公司 一种基于数据库的加密读写方法、装置及存储介质

Also Published As

Publication number Publication date
CN103024449B (zh) 2015-08-19
CN103024449A (zh) 2013-04-03

Similar Documents

Publication Publication Date Title
WO2013044800A1 (zh) 视频帧流处理方法、视频服务器及终端设备
US8078874B2 (en) Method and apparatus for transmitting data using authentication
CN101977190B (zh) 数字内容加密传送方法以及服务器端
US8332633B2 (en) Encryption processing for streaming media
US10055553B2 (en) PC secure video path
US20060200415A1 (en) Videonline security network architecture and methods therefor
AU2010276315B2 (en) Off-line content delivery system with layered encryption
WO2007109999A1 (fr) Procédé, système, matériel d'abonné et serveur multimédia pour la protection numérique des droits d'auteur
JP2005110248A (ja) パケットベースの高品位高帯域幅デジタルコンテンツ保護
JP4666015B2 (ja) コンテンツ配信システム、コンテンツ受信端末、及びコンテンツ配信方法
WO2008013287A1 (fr) dispositif de terminal, dispositif de serveur et système de distribution de contenus
US20090060182A1 (en) Apparatus and method for enhancing the protection of media content
WO2015184743A1 (zh) 对视频直播进行防盗链处理的方法及其系统
CN103237010B (zh) 以加密方式提供数字内容的服务器端
US20110113443A1 (en) IP TV With DRM
CN103237011B (zh) 数字内容加密传送方法以及服务器端
WO2012136152A1 (zh) 传输码流ts的安全传输方法和装置
CN100461199C (zh) 一种对数字内容进行加密和解密的方法和系统
EP2071801B1 (en) Method and apparatus for securing content using client and session specific encryption with embedded key in content
WO2024077857A1 (zh) 数据传输方法和装置、设备及存储介质
JP2006129535A (ja) ストリームメディアデータのスクランブル放送システム
CN117857852A (zh) 一种防视频下载的方法和装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12835479

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12835479

Country of ref document: EP

Kind code of ref document: A1