WO2017041564A1 - Method and system for realizing set top box on-demand function - Google Patents

Method and system for realizing set top box on-demand function Download PDF

Info

Publication number
WO2017041564A1
WO2017041564A1 PCT/CN2016/086479 CN2016086479W WO2017041564A1 WO 2017041564 A1 WO2017041564 A1 WO 2017041564A1 CN 2016086479 W CN2016086479 W CN 2016086479W WO 2017041564 A1 WO2017041564 A1 WO 2017041564A1
Authority
WO
WIPO (PCT)
Prior art keywords
audio
resource
video
top box
video resource
Prior art date
Application number
PCT/CN2016/086479
Other languages
French (fr)
Chinese (zh)
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 WO2017041564A1 publication Critical patent/WO2017041564A1/en

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
    • 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/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47202End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for requesting content on demand, e.g. video on demand
    • 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/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, rendering scenes according to MPEG-4 scene graphs
    • H04N21/4405Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving video stream decryption
    • 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/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • 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/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content

Definitions

  • the present invention relates to the field of communications, and in particular, to a method and system for implementing a set-top box on-demand function.
  • the set-top box video on demand function has been favored by various industries such as education and entertainment due to good human-computer interaction. It covers video on demand, hot news on demand, interactive video games, distance education, etc. It has improved people's lives and learning, and improved the quality of life and the quality of work.
  • set-top box video on demand function is an integrated browser function, using B/S mode, using high-performance disk arrays and servers, through SQL
  • the present invention provides a method for implementing a set-top box on-demand function, including the following steps:
  • S20 acquiring, by using a hypertext real hopping protocol, the audio and video resources corresponding to the program by the resource server according to the resource address;
  • the resource address includes an audio and video resource address and an audio and video resource pair.
  • the decryption key address should be.
  • the resource address is a secondary structure, where the top layer structure is used to parse the video resource address corresponding to the code rate according to the current network speed; the secondary structure is used to set the encryption information, To determine whether the audio and video resources are encrypted, how to encrypt and decrypt the key address.
  • the step S30 is specifically: segmenting the audio and video resource data, and the encrypted audio and video resource data is cyclically obtained by the resource server and stored in the set data pool. When the data in the data pool reaches the set length, the audio and video resource data segments in the data pool are decrypted.
  • the step S30 is specifically: after decrypting, setting the decryption vector of the first audio and video resource data segment to 16 bits 0, and the decryption vector of the audio and video resource data segment is The last 16 bits of data of the previous undeciphered audio and video resource data segment.
  • the present invention also provides a set-top box on-demand function implementation system, including:
  • FFmpeg framework unit after the user selects the program on demand, communicates with the resource server, and the resource address corresponding to the program is obtained by the resource server;
  • the audio and video resource acquiring unit obtains the audio and video resources corresponding to the program by the resource server according to the resource address by using the hypertext real streaming protocol;
  • the decryption unit if the audio and video resource is an encrypted resource, communicates with the authorization server, acquires the decryption key on the authorization server, and decrypts the audio and video resource by using the decryption key to play.
  • the resource address includes an audio and video resource address and a decryption key address corresponding to the audio and video resource.
  • the resource address is a secondary structure, where the top layer structure is used to parse the video resource address corresponding to the code rate according to the current network speed; the secondary structure is used to set the encryption information, To determine whether the audio and video resources are encrypted, how to encrypt and decrypt the key address.
  • the decryption unit performs segmentation processing on the audio and video resource data, and the encrypted audio and video resource data is cyclically obtained by the resource server and stored in the set data pool, when the data pool After the data reaches the set length, the audio and video resource data segments in the data pool are decrypted.
  • the decryption unit sets the decryption vector of the first audio and video resource data segment to 16 bits 0, and the decryption vector of the subsequent audio and video resource data segment is the previous one. Decrypt The last 16 bits of data in the audio and video resource data segment.
  • the FFmpeg framework unit is used to obtain a resource address by communicating with the resource server through the FFmpeg framework unit, and the corresponding audio and video resources are obtained through the hypertext real-time streaming protocol, and decrypted and played.
  • the memory of the set top box is greatly reduced, the requirement for hardware is reduced, the cost of the set top box is greatly reduced, and the power consumption is low, which is beneficial to the promotion and use of the set top box.
  • FIG. 1 is a flowchart of a method for implementing a set-top box on-demand function in an embodiment
  • FIG. 2 is a schematic structural diagram of a system for implementing a set-top box on-demand function in an embodiment.
  • FIG. 1 is a flowchart of a method for implementing a set-top box on-demand function in an embodiment. As shown in FIG. 1, the method includes the following steps:
  • S10 Create an FFmpeg framework unit in the set top box, and after the user selects the program on demand, obtain the resource address corresponding to the program from the resource server through the FFmpeg framework unit.
  • the FFmpeg framework is a multimedia audio and video processing tool that can be used to record and convert digital audio and video, and can be converted into a stream, which has the characteristics of less memory, low power consumption, and low hardware requirements. Therefore, in this embodiment, the FFmpeg framework unit is created in the set-top box, and the user uses the on-demand function to obtain the resource address corresponding to the program from the resource server through the F Fmpeg framework unit, so that the occupied set-top box has less memory and low power consumption.
  • the resource address includes an audio and video resource address and a decryption corresponding to the audio and video resource. Key code address.
  • the resource address is a secondary structure, where the top-level structure is used to parse the video resource address corresponding to the code rate according to the current network speed; the secondary structure is used to set the encryption information to determine whether the audio and video resources are encrypted or adopted. What is the way to encrypt and decrypt the key address.
  • S20 Acquire audio and video resources corresponding to the program by the resource server according to the resource address by using a hypertext real-duration protocol.
  • the audio and video resources corresponding to the program need to be obtained according to the resource address.
  • the hypertext real-time streaming protocol which also occupies less memory and low power consumption, is used to obtain audio and video resources corresponding to the program, thereby further reducing memory usage and energy consumption.
  • S30 If the audio and video resource is an encrypted resource, communicate with the authorization server, obtain a decryption key from the authorization server, and decrypt the audio and video resource by using the decryption key to play.
  • the audio and video resources corresponding to the program are acquired, in order to protect the copyright and the resources, the audio and video resources are usually encrypted, and the encrypted audio and video resources can only be played after being decrypted and authorized.
  • the decryption key needs to be decrypted by the authorization server.
  • the step is specifically: if the audio and video resource is an encrypted resource, communicating with the authorization server, and acquiring a corresponding decryption key by decrypting the key code address.
  • the audio and video resource data is segmented and decrypted, which is specifically: segmenting audio and video resource data by resources.
  • the encrypted audio and video resource data is cyclically obtained on the server and stored in the set data pool. When the data in the data pool reaches the set length, the audio and video resource data segments in the data pool are decrypted.
  • the decryption vector of the first audiovisual resource data segment is set to 16 bit 0, and the decryption vector of the subsequent audio and video resource data segment is the last 16 bits of the previous undecrypted audio and video resource data segment. Data to ensure consistency and security of decryption.
  • the FFmpeg framework unit is created to obtain a resource address by communicating with the resource server through the FFmpeg framework unit, and the corresponding audio and video resources are obtained through the hypertext real-time streaming protocol, and decrypted and played, thereby greatly reducing
  • the occupation of the set-top box memory reduces the hardware requirements, greatly reduces the cost of the set-top box, and consumes low energy, which is beneficial to the promotion and use of the set-top box.
  • the present invention further provides a system for implementing a set-top box on-demand function, the system comprising: [0038]
  • the FFmpeg framework unit after the user selects the program on demand, communicates with the resource server, and the resource address corresponding to the program is obtained by the resource server.
  • the FFmpeg framework is a multimedia audio and video processing tool that can be used to record and convert digital audio and video, and can be converted into a stream, which has the characteristics of less memory, low energy consumption, and low hardware requirements. Therefore, in this embodiment, the FFmpeg framework unit is created in the set top box. After the user uses the on-demand function, the FF mpeg framework unit obtains the resource address corresponding to the program from the resource server, so that the occupied set-top box has less memory and low power consumption.
  • the resource address includes an audio and video resource address and an audio and video resource corresponding to the decryption key address.
  • the resource address is a secondary structure, where the top-level structure is used to parse the video resource address corresponding to the code rate according to the current network speed; the secondary structure is used to set the encryption information to determine whether the audio and video resources are encrypted or adopted. What is the way to encrypt and decrypt the key address.
  • the audio and video resource acquiring unit obtains the audio and video resources corresponding to the program by the resource server according to the resource address by using the hypertext real streaming protocol.
  • the audio and video resource acquiring unit needs to acquire the audio and video resource corresponding to the program according to the resource address.
  • the audio and video resource acquisition unit uses the hypertext real-time streaming protocol, which also occupies small memory and low power consumption, to obtain audio and video resources corresponding to the program, thereby further reducing memory usage and energy consumption.
  • the decryption unit if the audio and video resource is an encrypted resource, communicates with the authorization server, obtains the decryption key by the authorization server, and decrypts the audio and video resource by using the decryption key to play.
  • the audio and video resources corresponding to the program are acquired, in order to protect the copyright and the resources, the audio and video resources are usually encrypted, and the encrypted audio and video resources can only be played after being decrypted and authorized.
  • the decryption unit needs to obtain the decryption key from the authorization server for decryption.
  • the decryption unit communicates with the authorization server, and acquires the corresponding decryption key by decrypting the key code address.
  • the decryption unit uses segmentation and decryption for the audio and video resource data, specifically: the decryption unit segments the audio and video resource data. Processing, the encrypted audio and video resource data is cyclically obtained by the resource server and stored in the setting In the data pool, when the data in the data pool reaches the set length, the audio and video resource data segments in the data pool are decrypted.
  • the decryption unit sets the decryption vector of the first audiovisual resource data segment to 16 bit 0, and the decryption vector of the subsequent audio and video resource data segment is the last data segment of the previous undecrypted audio and video resource segment. 16-bit data to ensure the consistency and security of decryption.
  • the set-top box on-demand function realization system the FFmpeg framework unit is created to obtain a resource address by communicating with the resource server through the FFmpeg framework unit, and the corresponding audio and video resources are obtained through the hypertext real-time streaming protocol, and decrypted and played, thereby greatly reducing
  • the occupation of the set-top box memory reduces the hardware requirements, greatly reduces the cost of the set-top box, and consumes low energy, which is beneficial to the promotion and use of the set-top box.
  • the FFmpeg framework unit is used to obtain a resource address by communicating with the resource server through the FFmpeg framework unit, and the corresponding audio and video resources are obtained through the hypertext real-time streaming protocol, and decrypted and played.
  • the memory of the set top box is greatly reduced, the requirement for hardware is reduced, the cost of the set top box is greatly reduced, and the power consumption is low, which is beneficial to the promotion and use of the set top box.
  • the set-top box on-demand function implementation system 200 may be a set-top box or the like including computing power.
  • the specific embodiment of the present invention does not limit the specific implementation of the set-top box on-demand function implementation system 200.
  • the set-top box on-demand function implementation system 200 includes:
  • processor 210 communication interface 220, memory
  • the processor 210, the communication interface 220, and the memory 230 complete communication with each other through the bus 240.
  • the communication interface 220 is configured to communicate with an external device, such as a personal computer, a server, or the like.
  • the processor 210 is configured to execute the program 232.
  • the program 232 can include program code, the program code including computer operating instructions.
  • the processor 210 may be a central processing unit CPU, or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention.
  • CPU central processing unit
  • ASIC application specific integrated circuit
  • the memory 230 is configured to store the program 231.
  • Memory 230 may contain high speed RAM memory, or Also included is a non-volatile memory, such as at least one disk storage.
  • the program 231 may specifically include:
  • FFmp e g framework unit 310 after the user clicks on the selected program, communicates with the resource server, and the resource address corresponding to the program is obtained by the resource server;
  • the audio and video resource obtaining unit 320 obtains audio and video resources corresponding to the program by the resource server according to the resource address by using a hypertext real-duration protocol;
  • the decryption unit 330 if the audio and video resource is an encrypted resource, communicates with the authorization server, obtains the decryption key by the authorization server, and decrypts the audio and video resource by using the decryption key to play
  • the disclosed systems, devices, and methods may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division, and the actual implementation may have another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed.
  • the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some communication interface, device or unit, and may be in electrical, mechanical or other form.
  • the unit described as a separate component may or may not be physically distributed, and the component displayed as a unit may or may not be a physical unit, that is, may be located in one place, or may be distributed to multiple On the network unit. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the functions, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may contribute to the prior art or part of the technical solution may be produced by software.
  • the computer software product is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the methods of the various embodiments of the present invention. All or part of the steps.
  • the foregoing storage medium includes: u disk
  • RAM random access memory
  • disk disk or optical disk, and other media that can store program code.

Abstract

A method and system for realizing a set top box on-demand function, comprising: creating an FFmpeg framework unit and by communication between the FFmpeg framework unit and a resource server acquiring a resource address, and via a hypertext real time streaming protocol acquiring a corresponding audiovisual resource, and perform decryption and playing, thereby greatly reducing usage of a set top box memory, reducing hardware requirements, greatly reducing the cost of the set top box, the invention having low energy consumption, and facilitating promotion of the set top box.

Description

机顶盒点播功能实现方法及系统 技术领域  Method and system for implementing set-top box on-demand function
[0001] 本发明涉及通信领域, 尤其涉及一种机顶盒点播功能实现方法及系统。  [0001] The present invention relates to the field of communications, and in particular, to a method and system for implementing a set-top box on-demand function.
背景技术  Background technique
[0002] 近年来, 机顶盒视频点播功能因良好的人机交互而备受教育、 娱乐等各个行业 的青睐, 其涵盖了影片点播、 热点新闻点播、 交互视频游戏、 远程教育等方面 , 极大的改善了人们的生活和学习, 提高了生活质量和工作质量。  [0002] In recent years, the set-top box video on demand function has been favored by various industries such as education and entertainment due to good human-computer interaction. It covers video on demand, hot news on demand, interactive video games, distance education, etc. It has improved people's lives and learning, and improved the quality of life and the quality of work.
[0003] 目前, 机顶盒视频点播功能的实现方式是集成浏览器功能, 采用 B/S模式, 利 用高性能磁盘阵列与服务器, 通过对 SQL  [0003] Currently, the implementation of the set-top box video on demand function is an integrated browser function, using B/S mode, using high-performance disk arrays and servers, through SQL
SERVER技术的应用, 将 HTML、 ASP.NET、 JAVASCRIPT相融合实现界面美观 Application of SERVER technology, integrating HTML, ASP.NET, JAVASCRIPT to achieve beautiful interface
、 操作流畅的视频点播系统。 但是, 在机顶盒上使用浏览器点播播放视频, 会 耗费大量内存, 对硬件要求高, 极大增大了机顶盒成本, 且耗能大, 不利于机 顶盒的推广使用。 Smooth video on demand system. However, using a browser to play video on a set-top box consumes a large amount of memory, which requires high hardware, greatly increases the cost of the set-top box, and consumes a large amount of energy, which is not conducive to the promotion and use of the set-top box.
技术问题  technical problem
[0004] 有鉴于此, 有必要针对上述机顶盒视频点播功能耗费内存、 增大成本、 耗能大 的问题, 提供一种机顶盒点播功能实现方法及系统。  [0004] In view of this, it is necessary to provide a method and system for implementing a set-top box on-demand function for the above-mentioned set-top box video on demand function that consumes memory, increases cost, and consumes a large amount of energy.
问题的解决方案  Problem solution
技术解决方案  Technical solution
[0005] 本发明提供一种机顶盒点播功能实现方法, 包括如下步骤:  [0005] The present invention provides a method for implementing a set-top box on-demand function, including the following steps:
[0006] S10: 于机顶盒内创建 FFmpeg框架单元, 在用户点播选取节目后, 通过 FFmpeg 框架单元由资源服务器上获取节目对应的资源地址;  [0006] S10: creating an FFmpeg framework unit in the set top box, and after the user selects the program on demand, the resource address corresponding to the program is obtained by the resource server through the FFmpeg framework unit;
[0007] S20: 采用超文本实吋流协议根据资源地址由资源服务器上获取节目对应的音 视频资源; [0007] S20: acquiring, by using a hypertext real hopping protocol, the audio and video resources corresponding to the program by the resource server according to the resource address;
[0008] S30: 若音视频资源为加密资源, 则与授权服务器进行通信, 由授权服务器上 获取解密关键码, 使用解密关键码对音视频资源进行解密后进行播放。  [0008] S30: If the audio and video resource is an encrypted resource, communicate with the authorization server, obtain a decryption key from the authorization server, and decrypt the audio and video resource by using the decryption key to play.
[0009] 在其中的一个实施方式中, 所述资源地址包括音视频资源地址和音视频资源对 应的解密关键码地址。 [0009] In one embodiment, the resource address includes an audio and video resource address and an audio and video resource pair. The decryption key address should be.
[0010] 在其中的一个实施方式中, 所述资源地址为二级结构, 其中顶层结构用于根据 当前的网络速度解析得到对应码率的视频资源地址; 二级结构用于设定加密信 息, 来确定音视频资源是否有加密、 采用何种方式加密以及解密关键码地址。  [0010] In one embodiment, the resource address is a secondary structure, where the top layer structure is used to parse the video resource address corresponding to the code rate according to the current network speed; the secondary structure is used to set the encryption information, To determine whether the audio and video resources are encrypted, how to encrypt and decrypt the key address.
[0011] 在其中的一个实施方式中, 所述步骤 S30具体为: 对音视频资源数据进行分段 处理, 由资源服务器上循环获取加密的音视频资源数据并存放于设定的数据池 中, 当数据池中数据达到设定长度吋, 对数据池中的音视频资源数据段进行解 密。  [0011] In one embodiment, the step S30 is specifically: segmenting the audio and video resource data, and the encrypted audio and video resource data is cyclically obtained by the resource server and stored in the set data pool. When the data in the data pool reaches the set length, the audio and video resource data segments in the data pool are decrypted.
[0012] 在其中的一个实施方式中, 所述步骤 S30具体为: 在解密吋, 设置第一个音视 频资源数据段的解密向量为 16位 0, 之后的音视频资源数据段的解密向量为前一 个未解密音视频资源数据段的最后 16位数据。  [0012] In one embodiment, the step S30 is specifically: after decrypting, setting the decryption vector of the first audio and video resource data segment to 16 bits 0, and the decryption vector of the audio and video resource data segment is The last 16 bits of data of the previous undeciphered audio and video resource data segment.
[0013] 本发明还提供一种机顶盒点播功能实现系统, 包括:  [0013] The present invention also provides a set-top box on-demand function implementation system, including:
[0014] FFmpeg框架单元, 在用户点播选取节目后, 与资源服务器进行通信, 由资源 服务器上获取节目对应的资源地址;  [0014] FFmpeg framework unit, after the user selects the program on demand, communicates with the resource server, and the resource address corresponding to the program is obtained by the resource server;
[0015] 音视频资源获取单元, 采用超文本实吋流协议根据资源地址由资源服务器上获 取节目对应的音视频资源; [0015] the audio and video resource acquiring unit obtains the audio and video resources corresponding to the program by the resource server according to the resource address by using the hypertext real streaming protocol;
[0016] 解密单元, 若音视频资源为加密资源, 则与授权服务器进行通信, 由授权服务 器上获取解密关键码, 使用解密关键码对音视频资源进行解密后进行播放。 [0016] The decryption unit, if the audio and video resource is an encrypted resource, communicates with the authorization server, acquires the decryption key on the authorization server, and decrypts the audio and video resource by using the decryption key to play.
[0017] 在其中的一个实施方式中, 所述资源地址包括音视频资源地址和音视频资源对 应的解密关键码地址。 [0017] In one embodiment, the resource address includes an audio and video resource address and a decryption key address corresponding to the audio and video resource.
[0018] 在其中的一个实施方式中, 所述资源地址为二级结构, 其中顶层结构用于根据 当前的网络速度解析得到对应码率的视频资源地址; 二级结构用于设定加密信 息, 来确定音视频资源是否有加密、 采用何种方式加密以及解密关键码地址。  [0018] In one embodiment, the resource address is a secondary structure, where the top layer structure is used to parse the video resource address corresponding to the code rate according to the current network speed; the secondary structure is used to set the encryption information, To determine whether the audio and video resources are encrypted, how to encrypt and decrypt the key address.
[0019] 在其中的一个实施方式中, 所述解密单元对音视频资源数据进行分段处理, 由 资源服务器上循环获取加密的音视频资源数据并存放于设定的数据池中, 当数 据池中数据达到设定长度吋, 对数据池中的音视频资源数据段进行解密。  [0019] In one embodiment, the decryption unit performs segmentation processing on the audio and video resource data, and the encrypted audio and video resource data is cyclically obtained by the resource server and stored in the set data pool, when the data pool After the data reaches the set length, the audio and video resource data segments in the data pool are decrypted.
[0020] 在其中的一个实施方式中, 在解密吋, 所述解密单元设置第一个音视频资源数 据段的解密向量为 16位 0, 之后的音视频资源数据段的解密向量为前一个未解密 音视频资源数据段的最后 16位数据。 [0020] In one embodiment, after decrypting, the decryption unit sets the decryption vector of the first audio and video resource data segment to 16 bits 0, and the decryption vector of the subsequent audio and video resource data segment is the previous one. Decrypt The last 16 bits of data in the audio and video resource data segment.
发明的有益效果  Advantageous effects of the invention
有益效果  Beneficial effect
[0021] 本发明机顶盒点播功能实现方法及系统, 创建 FFmpeg框架单元通过 FFmpeg框 架单元与资源服务器进行通信获取资源地址, 并通过超文本实吋流协议获取对 应的音视频资源, 解密后进行播放, 从而大大降低了机顶盒内存的占用, 降低 了对硬件的要求, 极大降低了机顶盒成本, 且耗能低, 有利于机顶盒的推广使 用。  [0021] The method and system for implementing the on-demand function of the set-top box of the present invention, the FFmpeg framework unit is used to obtain a resource address by communicating with the resource server through the FFmpeg framework unit, and the corresponding audio and video resources are obtained through the hypertext real-time streaming protocol, and decrypted and played. Thereby, the memory of the set top box is greatly reduced, the requirement for hardware is reduced, the cost of the set top box is greatly reduced, and the power consumption is low, which is beneficial to the promotion and use of the set top box.
对附图的简要说明  Brief description of the drawing
附图说明  DRAWINGS
[0022] 图 1是一个实施例中的机顶盒点播功能实现方法的流程图;  [0022] FIG. 1 is a flowchart of a method for implementing a set-top box on-demand function in an embodiment;
[0023] 图 2是一个实施例中机顶盒点播功能实现系统的结构示意图。 2 is a schematic structural diagram of a system for implementing a set-top box on-demand function in an embodiment.
本发明的实施方式 Embodiments of the invention
[0024] 为了使本发明的目的、 技术方案及优点更加清楚明白, 以下结合附图及实施例 , 对本发明进行进一步详细说明。 应当理解, 此处所描述的具体实施例仅用以 解释本发明, 并不用于限定本发明。  The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
[0025] 图 1是一个实施例中的机顶盒点播功能实现方法的流程图, 如图 1所示, 该方法 包括如下步骤:  1 is a flowchart of a method for implementing a set-top box on-demand function in an embodiment. As shown in FIG. 1, the method includes the following steps:
[0026] S10: 于机顶盒内创建 FFmpeg框架单元, 在用户点播选取节目后, 通过 FFmpeg 框架单元由资源服务器上获取节目对应的资源地址。  [0026] S10: Create an FFmpeg framework unit in the set top box, and after the user selects the program on demand, obtain the resource address corresponding to the program from the resource server through the FFmpeg framework unit.
[0027] FFmpeg框架是一种多媒体音视频处理工具, 可以用来记录、 转换数字音视频 , 并能将其转化为流, 其具有占用内存少、 耗能低、 对硬件要求低的特点。 故 在该实施例中, 在机顶盒中创建 FFmpeg框架单元, 在用户使用点播功能吋通过 F Fmpeg框架单元由资源服务器上获取节目对应的资源地址, 这样占用机顶盒的内 存少且耗能低。 [0027] The FFmpeg framework is a multimedia audio and video processing tool that can be used to record and convert digital audio and video, and can be converted into a stream, which has the characteristics of less memory, low power consumption, and low hardware requirements. Therefore, in this embodiment, the FFmpeg framework unit is created in the set-top box, and the user uses the on-demand function to obtain the resource address corresponding to the program from the resource server through the F Fmpeg framework unit, so that the occupied set-top box has less memory and low power consumption.
[0028] 在进一步的方式中, 资源地址包括音视频资源地址和音视频资源对应的解密关 键码地址。 进一步的, 资源地址为二级结构, 其中顶层结构用于根据当前的网 络速度解析得到对应码率的视频资源地址; 二级结构用于设定加密信息, 来确 定音视频资源是否有加密、 采用何种方式加密以及解密关键码地址。 [0028] In a further manner, the resource address includes an audio and video resource address and a decryption corresponding to the audio and video resource. Key code address. Further, the resource address is a secondary structure, where the top-level structure is used to parse the video resource address corresponding to the code rate according to the current network speed; the secondary structure is used to set the encryption information to determine whether the audio and video resources are encrypted or adopted. What is the way to encrypt and decrypt the key address.
[0029] S20: 采用超文本实吋流协议根据资源地址由资源服务器上获取节目对应的音 视频资源。  [0029] S20: Acquire audio and video resources corresponding to the program by the resource server according to the resource address by using a hypertext real-duration protocol.
[0030] 在通过 FFmpeg框架单元由资源服务器上获取节目对应的资源地址后, 需要根 据资源地址来获取节目对应的音视频资源。 在该实施例中, 采用同样占用内存 小、 耗能低的超文本实吋流协议来获取节目对应的音视频资源, 从而进一步降 低了内存占用和能耗。  [0030] After obtaining the resource address corresponding to the program by the resource server through the FFmpeg framework unit, the audio and video resources corresponding to the program need to be obtained according to the resource address. In this embodiment, the hypertext real-time streaming protocol, which also occupies less memory and low power consumption, is used to obtain audio and video resources corresponding to the program, thereby further reducing memory usage and energy consumption.
[0031] S30: 若音视频资源为加密资源, 则与授权服务器进行通信, 由授权服务器上 获取解密关键码, 使用解密关键码对音视频资源进行解密后进行播放。  [0031] S30: If the audio and video resource is an encrypted resource, communicate with the authorization server, obtain a decryption key from the authorization server, and decrypt the audio and video resource by using the decryption key to play.
[0032] 在获取节目对应的音视频资源后, 为保护版权和资源, 通常音视频资源会进行 加密, 加密的音视频资源只有经过解密授权后才能进行播放。 在该实施例中, 若音视频资源为加密资源, 则需要由授权服务器上获取解密关键码进行解密。  [0032] After the audio and video resources corresponding to the program are acquired, in order to protect the copyright and the resources, the audio and video resources are usually encrypted, and the encrypted audio and video resources can only be played after being decrypted and authorized. In this embodiment, if the audio and video resource is an encrypted resource, the decryption key needs to be decrypted by the authorization server.
[0033] 在进一步的方式中, 该步骤具体为: 若音视频资源为加密资源, 则与授权服务 器进行通信, 通过解密关键码地址获取对应的解密关键码。  [0033] In a further manner, the step is specifically: if the audio and video resource is an encrypted resource, communicating with the authorization server, and acquiring a corresponding decryption key by decrypting the key code address.
[0034] 在获取解密关键码之后, 需要对音视频资源进行解密, 该实施例中, 对音视频 资源数据采用分段解密的方式, 具体为: 对音视频资源数据进行分段处理, 由 资源服务器上循环获取加密的音视频资源数据并存放于设定的数据池中, 当数 据池中数据达到设定长度吋, 对数据池中的音视频资源数据段进行解密。  [0034] After acquiring the decryption key, the audio and video resources need to be decrypted. In this embodiment, the audio and video resource data is segmented and decrypted, which is specifically: segmenting audio and video resource data by resources. The encrypted audio and video resource data is cyclically obtained on the server and stored in the set data pool. When the data in the data pool reaches the set length, the audio and video resource data segments in the data pool are decrypted.
[0035] 此外, 在解密吋, 设置第一个音视频资源数据段的解密向量为 16位 0, 之后的 音视频资源数据段的解密向量为前一个未解密音视频资源数据段的最后 16位数 据, 以保证解密的连贯性和安全性。  [0035] Furthermore, in the decryption, the decryption vector of the first audiovisual resource data segment is set to 16 bit 0, and the decryption vector of the subsequent audio and video resource data segment is the last 16 bits of the previous undecrypted audio and video resource data segment. Data to ensure consistency and security of decryption.
[0036] 该机顶盒点播功能实现方法, 创建 FFmpeg框架单元通过 FFmpeg框架单元与资 源服务器进行通信获取资源地址, 并通过超文本实吋流协议获取对应的音视频 资源, 解密后进行播放, 从而大大降低了机顶盒内存的占用, 降低了对硬件的 要求, 极大降低了机顶盒成本, 且耗能低, 有利于机顶盒的推广使用。  [0036] The set-top box on-demand function implementation method, the FFmpeg framework unit is created to obtain a resource address by communicating with the resource server through the FFmpeg framework unit, and the corresponding audio and video resources are obtained through the hypertext real-time streaming protocol, and decrypted and played, thereby greatly reducing The occupation of the set-top box memory reduces the hardware requirements, greatly reduces the cost of the set-top box, and consumes low energy, which is beneficial to the promotion and use of the set-top box.
[0037] 同吋, 本发明还提供一种机顶盒点播功能实现系统, 该系统包括: [0038] FFmpeg框架单元, 在用户点播选取节目后, 与资源服务器进行通信, 由资源 服务器上获取节目对应的资源地址。 [0037] In the meantime, the present invention further provides a system for implementing a set-top box on-demand function, the system comprising: [0038] The FFmpeg framework unit, after the user selects the program on demand, communicates with the resource server, and the resource address corresponding to the program is obtained by the resource server.
[0039] FFmpeg框架是一种多媒体音视频处理工具, 可以用来记录、 转换数字音视频 , 并能将其转化为流, 其具有占用内存少、 耗能低、 对硬件要求低的特点。 故 在该实施例中, 在机顶盒中创建 FFmpeg框架单元, 在用户使用点播功能吋, FF mpeg框架单元由资源服务器上获取节目对应的资源地址, 这样占用机顶盒的内 存少且耗能低。  [0039] The FFmpeg framework is a multimedia audio and video processing tool that can be used to record and convert digital audio and video, and can be converted into a stream, which has the characteristics of less memory, low energy consumption, and low hardware requirements. Therefore, in this embodiment, the FFmpeg framework unit is created in the set top box. After the user uses the on-demand function, the FF mpeg framework unit obtains the resource address corresponding to the program from the resource server, so that the occupied set-top box has less memory and low power consumption.
[0040] 在进一步的方式中, 资源地址包括音视频资源地址和音视频资源对应解密关键 码地址。 进一步的, 资源地址为二级结构, 其中顶层结构用于根据当前的网络 速度解析得到对应码率的视频资源地址; 二级结构用于设定加密信息, 来确定 音视频资源是否有加密、 采用何种方式加密以及解密关键码地址。  [0040] In a further aspect, the resource address includes an audio and video resource address and an audio and video resource corresponding to the decryption key address. Further, the resource address is a secondary structure, where the top-level structure is used to parse the video resource address corresponding to the code rate according to the current network speed; the secondary structure is used to set the encryption information to determine whether the audio and video resources are encrypted or adopted. What is the way to encrypt and decrypt the key address.
[0041] 音视频资源获取单元, 采用超文本实吋流协议根据资源地址由资源服务器上获 取节目对应的音视频资源。  [0041] The audio and video resource acquiring unit obtains the audio and video resources corresponding to the program by the resource server according to the resource address by using the hypertext real streaming protocol.
[0042] 在 FFmpeg框架单元由资源服务器上获取节目对应的资源地址后, 音视频资源 获取单元需要根据资源地址来获取节目对应的音视频资源。 在该实施例中, 音 视频资源获取单元采用同样占用内存小、 耗能低的超文本实吋流协议来获取节 目对应的音视频资源, 从而进一步降低了内存占用和能耗。  [0042] After the FFmpeg framework unit obtains the resource address corresponding to the program by the resource server, the audio and video resource acquiring unit needs to acquire the audio and video resource corresponding to the program according to the resource address. In this embodiment, the audio and video resource acquisition unit uses the hypertext real-time streaming protocol, which also occupies small memory and low power consumption, to obtain audio and video resources corresponding to the program, thereby further reducing memory usage and energy consumption.
[0043] 解密单元, 若音视频资源为加密资源, 则与授权服务器进行通信, 由授权服务 器上获取解密关键码, 使用解密关键码对音视频资源进行解密后进行播放。  [0043] The decryption unit, if the audio and video resource is an encrypted resource, communicates with the authorization server, obtains the decryption key by the authorization server, and decrypts the audio and video resource by using the decryption key to play.
[0044] 在获取节目对应的音视频资源后, 为保护版权和资源, 通常音视频资源会进行 加密, 加密的音视频资源只有经过解密授权后才能进行播放。 在该实施例中, 若音视频资源为加密资源, 解密单元则需要由授权服务器上获取解密关键码进 行解密。  [0044] After the audio and video resources corresponding to the program are acquired, in order to protect the copyright and the resources, the audio and video resources are usually encrypted, and the encrypted audio and video resources can only be played after being decrypted and authorized. In this embodiment, if the audio and video resource is an encrypted resource, the decryption unit needs to obtain the decryption key from the authorization server for decryption.
[0045] 在进一步的方式中, 若音视频资源为加密资源, 解密单元则与授权服务器进行 通信, 通过解密关键码地址获取对应的解密关键码。  [0045] In a further aspect, if the audio and video resource is an encrypted resource, the decryption unit communicates with the authorization server, and acquires the corresponding decryption key by decrypting the key code address.
[0046] 在获取解密关键码之后, 需要对音视频资源进行解密, 该实施例中, 解密单元 对音视频资源数据采用分段解密的方式, 具体为: 解密单元对音视频资源数据 进行分段处理, 由资源服务器上循环获取加密的音视频资源数据并存放于设定 的数据池中, 当数据池中数据达到设定长度吋, 对数据池中的音视频资源数据 段进行解密。 [0046] After acquiring the decryption key, the audio and video resources need to be decrypted. In this embodiment, the decryption unit uses segmentation and decryption for the audio and video resource data, specifically: the decryption unit segments the audio and video resource data. Processing, the encrypted audio and video resource data is cyclically obtained by the resource server and stored in the setting In the data pool, when the data in the data pool reaches the set length, the audio and video resource data segments in the data pool are decrypted.
[0047] 此外, 在解密吋, 解密单元设置第一个音视频资源数据段的解密向量为 16位 0 , 之后的音视频资源数据段的解密向量为前一个未解密音视频资源数据段的最 后 16位数据, 以保证解密的连贯性和安全性。  [0047] Furthermore, after decryption, the decryption unit sets the decryption vector of the first audiovisual resource data segment to 16 bit 0, and the decryption vector of the subsequent audio and video resource data segment is the last data segment of the previous undecrypted audio and video resource segment. 16-bit data to ensure the consistency and security of decryption.
[0048] 该机顶盒点播功能实现系统, 创建 FFmpeg框架单元通过 FFmpeg框架单元与资 源服务器进行通信获取资源地址, 并通过超文本实吋流协议获取对应的音视频 资源, 解密后进行播放, 从而大大降低了机顶盒内存的占用, 降低了对硬件的 要求, 极大降低了机顶盒成本, 且耗能低, 有利于机顶盒的推广使用。  [0048] The set-top box on-demand function realization system, the FFmpeg framework unit is created to obtain a resource address by communicating with the resource server through the FFmpeg framework unit, and the corresponding audio and video resources are obtained through the hypertext real-time streaming protocol, and decrypted and played, thereby greatly reducing The occupation of the set-top box memory reduces the hardware requirements, greatly reduces the cost of the set-top box, and consumes low energy, which is beneficial to the promotion and use of the set-top box.
[0049] 本发明机顶盒点播功能实现方法及系统, 创建 FFmpeg框架单元通过 FFmpeg框 架单元与资源服务器进行通信获取资源地址, 并通过超文本实吋流协议获取对 应的音视频资源, 解密后进行播放, 从而大大降低了机顶盒内存的占用, 降低 了对硬件的要求, 极大降低了机顶盒成本, 且耗能低, 有利于机顶盒的推广使 用。  [0049] The method and system for implementing the on-demand function of the set-top box of the present invention, the FFmpeg framework unit is used to obtain a resource address by communicating with the resource server through the FFmpeg framework unit, and the corresponding audio and video resources are obtained through the hypertext real-time streaming protocol, and decrypted and played. Thereby, the memory of the set top box is greatly reduced, the requirement for hardware is reduced, the cost of the set top box is greatly reduced, and the power consumption is low, which is beneficial to the promotion and use of the set top box.
[0050] 请参考图 2, 本发明另一个实施例中提供的一种机顶盒点播功能实现系统 200的 示意图。 机顶盒点播功能实现系统 200可能是包含计算能力的机顶盒等, 本发明 具体实施例并不对机顶盒点播功能实现系统 200的具体实现做限定。 机顶盒点播 功能实现系统 200包括:  Referring to FIG. 2, a schematic diagram of a set-top box on-demand function implementation system 200 is provided in another embodiment of the present invention. The set-top box on-demand function implementation system 200 may be a set-top box or the like including computing power. The specific embodiment of the present invention does not limit the specific implementation of the set-top box on-demand function implementation system 200. The set-top box on-demand function implementation system 200 includes:
[0051] 处理器 (processor) 210, 通信接口 (Communications Interface) 220, 存储器  [0051] processor 210, communication interface 220, memory
(memory) 230, 总线 240。  (memory) 230, bus 240.
[0052] 处理器 210, 通信接口 220, 存储器 230通过总线 240完成相互间的通信。  [0052] The processor 210, the communication interface 220, and the memory 230 complete communication with each other through the bus 240.
[0053] 通信接口 220, 用于与外界设备, 例如, 个人电脑、 服务器等通信。  [0053] The communication interface 220 is configured to communicate with an external device, such as a personal computer, a server, or the like.
[0054] 处理器 210, 用于执行程序 232。  [0054] The processor 210 is configured to execute the program 232.
[0055] 具体地, 程序 232可以包括程序代码, 所述程序代码包括计算机操作指令。  [0055] Specifically, the program 232 can include program code, the program code including computer operating instructions.
[0056] 处理器 210可能是一个中央处理器 CPU, 或者是特定集成电路 ASIC (Applicatio n Specific Integrated Circuit) , 或者是被配置成实施本发明实施例的一个或多个 集成电路。 [0056] The processor 210 may be a central processing unit CPU, or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention.
[0057] 存储器 230, 用于存放程序 231。 存储器 230可能包含高速 RAM存储器, 也可能 还包括非易失性存储器 (non-volatile memory) , 例如至少一个磁盘存储器。 程 序 231具体可以包括: [0057] The memory 230 is configured to store the program 231. Memory 230 may contain high speed RAM memory, or Also included is a non-volatile memory, such as at least one disk storage. The program 231 may specifically include:
[0058] FFmpeg框架单元310, 在用户点播选取节目后, 与资源服务器进行通信, 由资 源服务器上获取节目对应的资源地址; [0058] FFmp e g framework unit 310, after the user clicks on the selected program, communicates with the resource server, and the resource address corresponding to the program is obtained by the resource server;
[0059] 音视频资源获取单元 320, 采用超文本实吋流协议根据资源地址由资源服务器 上获取节目对应的音视频资源; [0059] The audio and video resource obtaining unit 320 obtains audio and video resources corresponding to the program by the resource server according to the resource address by using a hypertext real-duration protocol;
[0060] 解密单元 330, 若音视频资源为加密资源, 则与授权服务器进行通信, 由授权 服务器上获取解密关键码, 使用解密关键码对音视频资源进行解密后进行播放 [0060] The decryption unit 330, if the audio and video resource is an encrypted resource, communicates with the authorization server, obtains the decryption key by the authorization server, and decrypts the audio and video resource by using the decryption key to play
[0061] 所属领域的技术人员可以清楚地了解到, 为描述的方便和简洁, 上述描述的系 统、 装置和单元的具体工作过程, 可以参考前述方法实施例中的对应过程, 在 此不再赘述。 For a specific working process of the system, the device, and the unit described above, reference may be made to the corresponding process in the foregoing method embodiments, and details are not described herein again. .
[0062] 在本申请所提供的几个实施例中, 应该理解到, 所揭露的系统、 装置和方法, 可以通过其它的方式实现。 例如, 以上所描述的装置实施例仅仅是示意性的, 例如, 所述单元的划分, 仅仅为一种逻辑功能划分, 实际实现吋可以有另外的 划分方式, 例如多个单元或组件可以结合或者可以集成到另一个系统, 或一些 特征可以忽略, 或不执行。 另一点, 所显示或讨论的相互之间的耦合或直接耦 合或通信连接可以是通过一些通信接口, 装置或单元的间接耦合或通信连接, 可以是电性, 机械或其它的形式。  [0062] In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division, and the actual implementation may have another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some communication interface, device or unit, and may be in electrical, mechanical or other form.
[0063] 所述作为分离部件说明的单元可以是或者也可以不是物理上分幵的, 作为单元 显示的部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或者也可 以分布到多个网络单元上。 可以根据实际的需要选择其中的部分或者全部单元 来实现本实施例方案的目的。  [0063] The unit described as a separate component may or may not be physically distributed, and the component displayed as a unit may or may not be a physical unit, that is, may be located in one place, or may be distributed to multiple On the network unit. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
[0064] 另外, 在本发明各个实施例中的各功能单元可以集成在一个处理单元中, 也可 以是各个单元单独物理存在, 也可以两个或两个以上单元集成在一个单元中。  In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0065] 所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用吋, 可 以存储在一个计算机可读取存储介质中。 基于这样的理解, 本发明的技术方案 本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产 品的形式体现出来, 该计算机软件产品存储在一个存储介质中, 包括若干指令 用以使得一台计算机设备 (可以是个人计算机, 服务器, 或者网络设备等) 执 行本发明各个实施例所述方法的全部或部分步骤。 而前述的存储介质包括: u盘[0065] The functions, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may contribute to the prior art or part of the technical solution may be produced by software. In the form of a product, the computer software product is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the methods of the various embodiments of the present invention. All or part of the steps. The foregoing storage medium includes: u disk
、 移动硬盘、 只读存储器 (ROM, Read-Only , mobile hard disk, read-only memory (ROM, Read-Only
Memory) 、 随机存取存储器 (RAM, Random Access Memory) 、 磁碟或者光盘 等各种可以存储程序代码的介质。  Memory, random access memory (RAM), disk or optical disk, and other media that can store program code.
以上仅为本发明的较佳实施例而已, 并不用以限制本发明, 凡在本发明的精神 和原则之内所作的任何修改、 等同替换和改进等, 均应包含在本发明的保护范 围之内。  The above are only the preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalents, and improvements made within the spirit and scope of the present invention should be included in the scope of the present invention. Inside.

Claims

权利要求书 Claim
一种机顶盒点播功能实现方法, 其特征在于, 包括如下步骤:A method for implementing a set-top box on-demand function, comprising the steps of:
S10: 于机顶盒内创建 FFmpeg框架单元, 在用户点播选取节目后, 通 过 FFmpeg框架单元由资源服务器上获取节目对应的资源地址;S10: Create an FFmpeg framework unit in the set top box, and after the user selects the program on demand, obtain the resource address corresponding to the program from the resource server through the FFmpeg framework unit;
S20: 采用超文本实吋流协议根据资源地址由资源服务器上获取节目 对应的音视频资源; S20: Obtain an audio and video resource corresponding to the program by the resource server according to the resource address by using a hypertext real hopping protocol;
S30: 若音视频资源为加密资源, 则与授权服务器进行通信, 由授权 服务器上获取解密关键码, 使用解密关键码对音视频资源进行解密后 进行播放。  S30: If the audio and video resource is an encrypted resource, communicate with the authorization server, obtain the decryption key by the authorization server, and decrypt the audio and video resource by using the decryption key to play.
根据权利要求 1所述的机顶盒点播功能实现方法, 其特征在于, 所述 资源地址包括音视频资源地址和音视频资源对应的解密关键码地址。 根据权利要求 2所述的机顶盒点播功能实现方法, 其特征在于, 所述 资源地址为二级结构, 其中顶层结构用于根据当前的网络速度解析得 到对应码率的视频资源地址; 二级结构用于设定加密信息, 来确定音 视频资源是否有加密、 采用何种方式加密以及解密关键码地址。 根据权利要求 3所述的机顶盒点播功能实现方法, 其特征在于, 所述 步骤 S30具体为: 对音视频资源数据进行分段处理, 由资源服务器上 循环获取加密的音视频资源数据并存放于设定的数据池中, 当数据池 中数据达到设定长度吋, 对数据池中的音视频资源数据段进行解密。 根据权利要求 4所述的机顶盒点播功能实现方法, 其特征在于, 所述 步骤 S30具体为: 在解密吋, 设置第一个音视频资源数据段的解密向 量为 16位 0, 之后的音视频资源数据段的解密向量为前一个未解密音 视频资源数据段的最后 16位数据。 The method for implementing the set-top box on-demand function according to claim 1, wherein the resource address comprises an audio and video resource address and a decryption key code address corresponding to the audio and video resource. The method for implementing the set-top box on-demand function according to claim 2, wherein the resource address is a secondary structure, wherein the top-level structure is used to parse the video resource address corresponding to the code rate according to the current network speed; Set the encryption information to determine whether the audio and video resources are encrypted, how to encrypt and decrypt the key address. The method for implementing the set-top box on-demand function according to claim 3, wherein the step S30 is specifically: segmenting the audio and video resource data, and the encrypted audio and video resource data is cyclically obtained by the resource server and stored in the device. In the fixed data pool, when the data in the data pool reaches the set length, the audio and video resource data segments in the data pool are decrypted. The method for implementing the set-top box on-demand function according to claim 4, wherein the step S30 is specifically: after decrypting, setting a decryption vector of the first audio and video resource data segment to 16 bits 0, and then the audio and video resources The decryption vector of the data segment is the last 16 bits of data of the previous undecrypted audio and video resource data segment.
一种机顶盒点播功能实现系统, 其特征在于, 包括: A system for implementing a set-top box on-demand function, comprising:
FFmpeg框架单元, 在用户点播选取节目后, 与资源服务器进行通信 , 由资源服务器上获取节目对应的资源地址; The FFmpeg framework unit, after the user selects the program on demand, communicates with the resource server, and the resource address corresponding to the program is obtained by the resource server;
音视频资源获取单元, 采用超文本实吋流协议根据资源地址由资源服 务器上获取节目对应的音视频资源; 解密单元, 若音视频资源为加密资源, 则与授权服务器进行通信, 由 授权服务器上获取解密关键码, 使用解密关键码对音视频资源进行解 密后进行播放。 The audio and video resource obtaining unit obtains the audio and video resources corresponding to the program by the resource server according to the resource address by using the hypertext real hopping protocol; The decryption unit, if the audio and video resource is an encrypted resource, communicates with the authorization server, obtains the decryption key by the authorization server, and decrypts the audio and video resource by using the decryption key to play.
[权利要求 7] 根据权利要求 6所述的机顶盒点播功能实现系统, 其特征在于, 所述 资源地址包括音视频资源地址和音视频资源对应的解密关键码地址。  [Claim 7] The set-top box on-demand function implementation system according to claim 6, wherein the resource address comprises an audio and video resource address and a decryption key code address corresponding to the audio and video resource.
[权利要求 8] 根据权利要求 7所述的机顶盒点播功能实现系统, 其特征在于, 所述 资源地址为二级结构, 其中顶层结构用于根据当前的网络速度解析得 到对应码率的视频资源地址; 二级结构用于设定加密信息, 来确定音 视频资源是否有加密、 采用何种方式加密以及解密关键码地址。 [Claim 8] The system for implementing the set-top box on-demand function according to claim 7, wherein the resource address is a secondary structure, and the top layer structure is configured to obtain a video resource address corresponding to the code rate according to the current network speed. The secondary structure is used to set the encryption information to determine whether the audio and video resources are encrypted, how to encrypt and decrypt the key address.
[权利要求 9] 根据权利要求 8所述的机顶盒点播功能实现系统, 其特征在于, 所述 解密单元对音视频资源数据进行分段处理, 由资源服务器上循环获取 加密的音视频资源数据并存放于设定的数据池中, 当数据池中数据达 到设定长度吋, 对数据池中的音视频资源数据段进行解密。  [Claim 9] The system for implementing the set-top box on-demand function according to claim 8, wherein the decryption unit performs segmentation processing on the audio and video resource data, and the encrypted audio and video resource data is cyclically obtained by the resource server and stored. In the set data pool, when the data in the data pool reaches the set length, the audio and video resource data segments in the data pool are decrypted.
[权利要求 10] 根据权利要求 9所述的机顶盒点播功能实现系统, 其特征在于, 在解 密吋, 所述解密单元设置第一个音视频资源数据段的解密向量为 16位 0, 之后的音视频资源数据段的解密向量为前一个未解密音视频资源 数据段的最后 16位数据。  [Claim 10] The system for implementing the set-top box on-demand function according to claim 9, wherein, in the decryption, the decryption unit sets the decryption vector of the first audio-video resource data segment to 16-bit 0, and the subsequent tone The decryption vector of the video resource data segment is the last 16 bits of data of the previous undecrypted audio and video resource data segment.
PCT/CN2016/086479 2015-09-08 2016-06-20 Method and system for realizing set top box on-demand function WO2017041564A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510567659.X 2015-09-08
CN201510567659.XA CN105163190B (en) 2015-09-08 2015-09-08 Set-top box program request function realizing method and system

Publications (1)

Publication Number Publication Date
WO2017041564A1 true WO2017041564A1 (en) 2017-03-16

Family

ID=54803930

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/086479 WO2017041564A1 (en) 2015-09-08 2016-06-20 Method and system for realizing set top box on-demand function

Country Status (2)

Country Link
CN (1) CN105163190B (en)
WO (1) WO2017041564A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105163190B (en) * 2015-09-08 2019-02-15 深圳市九洲电器有限公司 Set-top box program request function realizing method and system
CN107318045A (en) * 2016-04-27 2017-11-03 阿里巴巴集团控股有限公司 The method and device of playing video data stream

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110246661A1 (en) * 2010-04-02 2011-10-06 Disney Enterprises, Inc. Streaming playback and dynamic Ad insertion
CN102572568A (en) * 2012-02-10 2012-07-11 合一网络技术(北京)有限公司 Method, system and device for online video on demand on display screen
CN102883192A (en) * 2012-08-24 2013-01-16 中兴通讯股份有限公司 Media type processing method, media playing method and device in IPTV system
CN103974086A (en) * 2013-02-05 2014-08-06 天津奇异果科技有限公司 Palm network school based on H.264 encoding and spread spectrum watermarking
CN105163190A (en) * 2015-09-08 2015-12-16 深圳市九洲电器有限公司 Method and system for implementing video-on-demand function of set top box

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9032465B2 (en) * 2002-12-10 2015-05-12 Ol2, Inc. Method for multicasting views of real-time streaming interactive video
CN102404624B (en) * 2011-11-07 2014-02-19 深圳市佳创视讯技术股份有限公司 All-format media player capable of supporting hardware decoding for digital STB (Set Top Box)
CN102404111B (en) * 2011-12-28 2016-07-06 桂林电子科技大学 A kind of sectional encryption method adopting uncertain AES
CN103634694B (en) * 2013-11-18 2017-04-12 奥维通信股份有限公司 IP-based streaming media playing method and system
CN103841453B (en) * 2014-03-13 2017-02-22 烽火通信科技股份有限公司 Method for achieving OTT playing through IPTV non-intelligent set top box
CN104333808B (en) * 2014-11-14 2017-10-10 复旦大学 For the universal player on Android and Linux smart television machine

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110246661A1 (en) * 2010-04-02 2011-10-06 Disney Enterprises, Inc. Streaming playback and dynamic Ad insertion
CN102572568A (en) * 2012-02-10 2012-07-11 合一网络技术(北京)有限公司 Method, system and device for online video on demand on display screen
CN102883192A (en) * 2012-08-24 2013-01-16 中兴通讯股份有限公司 Media type processing method, media playing method and device in IPTV system
CN103974086A (en) * 2013-02-05 2014-08-06 天津奇异果科技有限公司 Palm network school based on H.264 encoding and spread spectrum watermarking
CN105163190A (en) * 2015-09-08 2015-12-16 深圳市九洲电器有限公司 Method and system for implementing video-on-demand function of set top box

Also Published As

Publication number Publication date
CN105163190B (en) 2019-02-15
CN105163190A (en) 2015-12-16

Similar Documents

Publication Publication Date Title
US11055429B2 (en) Key providing method, video playing method, server and client
US9003558B1 (en) Allowing degraded play of protected content using scalable codecs when key/license is not obtained
US8532290B2 (en) Content playback APIS using encrypted streams
US20050187879A1 (en) Persistent license for stored content
TWI461950B (en) Method and apparatus for enabling purchase of or information requests for objects in digital content
WO2015196590A1 (en) Method and apparatus for playing desktop cloud video
AU2020370599B2 (en) Systems and methods for streamlining multimedia content acquisition
WO2021072878A1 (en) Audio/video data encryption and decryption method and apparatus employing rtmp, and readable storage medium
CN103401894A (en) Streaming media DRM (Digital Rights Management) cloud service system with browser/server architecture and implementation method thereof
WO2017054480A1 (en) Multimedia data encryption method and apparatus
WO2018086566A1 (en) Pvr protection method and system
WO2017041564A1 (en) Method and system for realizing set top box on-demand function
KR102038963B1 (en) Method and Apparatus for Selectively Providing Protection of Screen information data
CN110719247B (en) Terminal network access method and device
CN113038192B (en) Video processing method and device, electronic equipment and storage medium
CN112565656A (en) Video call method, device, system, electronic equipment and storage medium
WO2018095002A1 (en) Multimedia data encoding and decoding method and encoding and decoding apparatus
CN113014956B (en) Video playing method and device
US20130346541A1 (en) Network Recording Service
WO2022132507A1 (en) Secure video capture platform
CN110677693A (en) Android system-based encrypted video offline playing method and device and electronic equipment
JP5361031B2 (en) Cryptographic authentication processing method and apparatus
US20130104242A1 (en) Method and system for forensic marking of digital contents
EP3189666B1 (en) Partial headers for system set-up
EP4345660A1 (en) Distributed digital rights management (drm) protection

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: 16843502

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 24/07/2018)

122 Ep: pct application non-entry in european phase

Ref document number: 16843502

Country of ref document: EP

Kind code of ref document: A1