CN100589553C - A method for playing scrambled TV programs on a mobile TV terminal - Google Patents
A method for playing scrambled TV programs on a mobile TV terminal Download PDFInfo
- Publication number
- CN100589553C CN100589553C CN200710098237A CN200710098237A CN100589553C CN 100589553 C CN100589553 C CN 100589553C CN 200710098237 A CN200710098237 A CN 200710098237A CN 200710098237 A CN200710098237 A CN 200710098237A CN 100589553 C CN100589553 C CN 100589553C
- Authority
- CN
- China
- Prior art keywords
- audio
- program
- scrambled
- data
- video
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
本发明公开了一种手机电视终端播放加扰电视节目的方法,包括:流媒体平台根据接收到的会话描述协议SDP文件中是否有m=data行,判断此SDP文件要播放的节目是否是加扰的节目流,若是,则执行下一步;条件接入系统的密钥管理系统代理KDA根据接收到的授权管理消息EMM和授权控制信息ECM,产生密钥,发送给解扰器;流媒体平台把接收到的加扰电视节目数据送入解扰器,解扰器将加密数据解密后,把解密后的数据送回给视、音频解码器进行解码播放。本发明没有改动流媒体平台原来的程序结构,流程清晰,实现容易,而且稳定。而且如果加密的视、音频数据的缓存和解密后的视、音频数据缓存同一个,可以极大地提高效率。
The invention discloses a method for playing a scrambled TV program on a mobile phone TV terminal, comprising: the streaming media platform judges whether the program to be played by the SDP file is scrambled or not according to whether there is an m=data line in the received Session Description Protocol SDP file; scrambled program stream, if so, go to the next step; the key management system agent KDA of the conditional access system generates a key according to the received authorization management message EMM and authorization control information ECM, and sends it to the descrambler; the streaming media platform The received scrambled TV program data is sent to the descrambler, and the descrambler decrypts the encrypted data, and sends the decrypted data back to the video and audio decoders for decoding and playback. The invention does not change the original program structure of the streaming media platform, has clear flow, is easy to implement, and is stable. And if the cache of encrypted video and audio data and the cache of decrypted video and audio data are the same, the efficiency can be greatly improved.
Description
技术领域 technical field
本发明涉及手机电视领域,尤其涉及一种手机电视终端播放加扰电视节目的方法。The invention relates to the field of mobile TV, in particular to a method for playing scrambled TV programs on a mobile TV terminal.
背景技术 Background technique
手机电视终端的流媒体平台,是用播放流媒体的开发平台,通常根据SDP(会话描述协议)文件建立流连接,接收RTP(实时传送协议)数据,然后把视、音频数据解析出来送给视、音频解码器进行播放流媒体,播放的都是没有加密的音视频流。目前较常用的流媒体开发平台(如高通的QTV平台),不能播放加密的音视频流。The streaming media platform of the mobile TV terminal is a development platform for playing streaming media. Usually, a streaming connection is established according to an SDP (Session Description Protocol) file, and RTP (Real-time Transport Protocol) data is received, and then video and audio data are analyzed and sent to the video , The audio decoder plays the streaming media, all of which are unencrypted audio and video streams. Currently more commonly used streaming media development platforms (such as Qualcomm's QTV platform) cannot play encrypted audio and video streams.
条件接入(CA,Conditional Access)技术,是伴随DVB(Digital VideoBroadcast,数字视频广播)而来的一种用以加解密流媒体的技术。主流的技术都遵循Open Security Framework(开放式安全框架)。其结构图如图1所示,在终端侧,条件接入系统主要包括KDA(KMS设备代理,密钥管理系统代理),UICC(智能卡),Descrambler(解扰器),其中Descrambler对加扰的多媒体流进行解扰。Conditional Access (CA, Conditional Access) technology is a technology for encrypting and decrypting streaming media that comes with DVB (Digital Video Broadcasting). Mainstream technologies follow the Open Security Framework (Open Security Framework). Its structure diagram is shown in Figure 1. On the terminal side, the conditional access system mainly includes KDA (KMS device agent, key management system agent), UICC (smart card), and Descrambler (descrambler). Multimedia streams are descrambled.
但是,该开放式安全框架并没有提出如何使用解扰器解扰加密的音视频流,从而播放加扰的电视节目;而且,解扰时需要考虑到效率,稳定等问题。However, this open security framework does not propose how to use a descrambler to descramble encrypted audio and video streams so as to play scrambled TV programs; moreover, issues such as efficiency and stability need to be considered during descrambling.
发明内容 Contents of the invention
本发明要解决的技术问题就是提供一种手机电视终端播放加扰电视节目的方法,实现通过解扰器解扰加密的音视频流,从而播放加扰的电视节目。The technical problem to be solved by the present invention is to provide a method for playing scrambled TV programs on a mobile phone TV terminal, so as to realize descrambling encrypted audio and video streams through a descrambler, thereby playing scrambled TV programs.
为了解决上述技术问题,本发明提供一种手机电视终端播放加扰电视节目的方法,包括如下步骤:In order to solve the above-mentioned technical problems, the present invention provides a method for playing a scrambled TV program on a mobile phone TV terminal, comprising the following steps:
(1)流媒体平台根据接收到的会话描述协议SDP文件中是否有m=data行,判断此SDP文件要播放的节目是否是加扰的节目流,若是,则执行步骤(2);(1) Streaming media platform judges whether the program that this SDP file will play is the program flow of scrambling according to whether m=data line is arranged in the session description agreement SDP file that receives, if so, then execute step (2);
(2)条件接入系统的密钥管理系统代理KDA根据接收到的授权管理消息EMM和授权控制信息ECM,产生密钥,发送给解扰器;(2) The key management system agent KDA of the conditional access system generates a key according to the received authorization management message EMM and authorization control information ECM, and sends it to the descrambler;
(3)流媒体平台把接收到的加扰电视节目数据送入解扰器,解扰器利用所述密钥对所述加扰电视节目数据进行解扰;(3) The streaming media platform sends the received scrambled TV program data into the descrambler, and the descrambler uses the key to descramble the scrambled TV program data;
(4)流媒体平台对解扰得到的流媒体数据进行解密得到的音视频数据,并将所述音视频数据送回给音视频解码器进行解码播放。(4) The streaming media platform decrypts the descrambled streaming media data to obtain audio and video data, and sends the audio and video data back to the audio and video decoder for decoding and playing.
进一步地,所述步骤(1)中,若判断所述SDP文件要播放的节目是加扰的节目流,则标识当前的会话播放的是加扰的节目。Further, in the step (1), if it is determined that the program to be played by the SDP file is a scrambled program stream, it is identified that the current session is playing a scrambled program.
进一步地,所述步骤(1)中,若判断所述SDP文件要播放的节目是加扰的节目流,则根据该SDP文件的m=data行识别出ECM流的IP和端口;条件接入系统的KDA根据ECM流的IP和端口,连接网络,接收ECM流。Further, in the step (1), if it is judged that the program to be played by the SDP file is a scrambled program stream, then identify the IP and the port of the ECM stream according to the m=data row of the SDP file; conditional access The KDA of the system connects to the network and receives the ECM flow according to the IP and port of the ECM flow.
进一步地,所述步骤(1)中,流媒体平台还根据SDP文件的m=video、m=audio行识别视频、音频流的IP和端口,连接网络,接收音视频数据流。Further, in the step (1), the streaming media platform also recognizes IP and ports of video and audio streams according to the m=video and m=audio lines of the SDP file, connects to the network, and receives audio and video data streams.
进一步地,所述方法还进一步包括:将加密的音视频数据和解密后的音视频数据存入同一个缓存中。Further, the method further includes: storing the encrypted audio-video data and the decrypted audio-video data in the same buffer.
本发明没有改动流媒体平台原来的程序结构,流程清晰,实现容易,而且稳定。而且如果加密的视、音频数据的缓存和解密后的视、音频数据缓存同一个,可以极大地提高效率。The invention does not change the original program structure of the streaming media platform, has clear flow, is easy to implement, and is stable. And if the cache of encrypted video and audio data and the cache of decrypted video and audio data are the same, the efficiency can be greatly improved.
附图说明 Description of drawings
图1是开放式安全框架的结构示意图;FIG. 1 is a schematic structural diagram of an open security framework;
图2本发明实施例的系统框图;The system block diagram of the embodiment of the present invention of Fig. 2;
图3是本发明的应用实例流程图。Fig. 3 is a flowchart of an application example of the present invention.
具体实施方式 Detailed ways
目前较常用的流媒体开发平台(如高通的QTV平台)中,不包含Descrambler(解扰器),若要播放加扰的频道,需要加入Descrambler(解扰器)以进行解扰。Currently, the commonly used streaming media development platforms (such as Qualcomm's QTV platform) do not include a Descrambler (descrambler). If you want to play a scrambled channel, you need to add a Descrambler (descrambler) for descrambling.
如图2所示,在CAS(条件接入系统)终端侧添加Descrambler(解扰器),跟流媒体平台协作,播放加扰电视节目。如果是非加扰的节目,则流媒体平台按照正常的方式工作,把手机电视芯片输出的数据解析出来送给视、音频解码器解码播放;如果是加扰的节目,则把加密的RTP数据送给流媒体平台,流媒体平台把数据送给解扰器进行解扰,把解扰之后的明文的流媒体数据送回给流媒体平台,流媒体平台再进行解析,把视、音频送给视、音频解码器解码播放。As shown in Figure 2, a Descrambler (descrambler) is added to the CAS (Conditional Access System) terminal side to cooperate with the streaming media platform to play scrambled TV programs. If it is a non-scrambled program, the streaming media platform will work in the normal way, analyze the data output by the mobile phone TV chip and send it to the video and audio decoder for decoding and playback; if it is a scrambled program, send the encrypted RTP data to To the streaming media platform, the streaming media platform sends the data to the descrambler for descrambling, and sends the descrambled plaintext streaming data back to the streaming media platform, and the streaming media platform analyzes it again, and sends the video and audio to the video , Audio decoder decoding playback.
本实施例包括如下步骤:This embodiment includes the following steps:
步骤一,流媒体平台根据SDP(会话描述协议)文件的m=video、m=audio行识别视频、音频流的IP和端口,连接网络,接收音视频数据流。Step 1, the streaming media platform identifies the IP and port of the video and audio streams according to the m=video and m=audio lines of the SDP (Session Description Protocol) file, connects to the network, and receives the audio and video data streams.
步骤二,流媒体平台根据SDP文件的m=data行识别出ECM(EntitlementControl Message)流的IP和端口,同时判断出此SDP(会话描述协议)文件要播放的节目是加扰的节目流,并标识当前的会话播放的是加扰的节目。Step 2, the streaming media platform recognizes the IP and the port of the ECM (Entitlement Control Message) stream according to the m=data row of the SDP file, and simultaneously judges that the program to be played by this SDP (Session Description Protocol) file is a scrambled program stream, and Indicates that the current session is playing a scrambled program.
其中,步骤一和步骤二可以是并行执行;Wherein, step 1 and step 2 can be executed in parallel;
通常的流媒体平台播放的是非加密的音视频流,步骤一执行之后就可以开始正常播放音视频节目流;通常的流媒体平台当要播放加密的音视频流时,就不能够工作了,本实施例根据在SDP(会话描述协议)文件存在m=data行,判断出是加密的音视频流,并标识当前的会话播放的是加扰的节目。The usual streaming media platforms play non-encrypted audio and video streams, and the audio and video program streams can be played normally after the steps are executed; the usual streaming media platforms cannot work when they want to play encrypted audio and video streams. According to the existence of the m=data line in the SDP (Session Description Protocol) file, the embodiment determines that it is an encrypted audio and video stream, and identifies that the current session is playing a scrambled program.
步骤三,若判断出是加扰频道,KDA根据ECM(Entitlement ControlMessage,授权控制信息)流的IP和端口,连接网络,接收ECM流;KDA根据接收到的EMM(Entitlement Management Message,授权管理信息)和ECM数据产生Control World(控制字,即密钥),并将该控制字送入解扰器。解扰器处于就绪状态,可以开始工作了。其中,EMM的接收过程是根据EMM对应的SDP文件找到EMM的IP地址和端口,在KDA启动之后就开始建立连接,一直在监听接收数据。Step 3, if it is determined that it is a scrambled channel, KDA connects to the network according to the IP and port of the ECM (Entitlement Control Message, authorization control information) flow, and receives the ECM flow; KDA receives the EMM (Entitlement Management Message, authorization management information) Generate Control World (control word, ie key) with ECM data, and send the control word to the descrambler. The descrambler is ready to start working. Among them, the receiving process of EMM is to find the IP address and port of EMM according to the SDP file corresponding to EMM, and start to establish a connection after KDA is started, and has been monitoring and receiving data.
步骤四,流媒体平台建立会话连接,接收视、音频数据,用不同的频道(channel)号来标明是视频还是音频流,在接收到视、音频流的时候,对于非加密的视、音频流直接把此数据送入视、音频解码器进行解码播放;对于加密的视、音频流把接收到的加密数据送入解扰器,解扰器工作,把解密后的数据送回给视、音频解码器进行解码播放。Step 4, the streaming media platform establishes a session connection, receives video and audio data, and uses different channel numbers to indicate whether it is video or audio streams. When receiving video and audio streams, for non-encrypted video and audio streams Send this data directly to the video and audio decoder for decoding and playback; for encrypted video and audio streams, send the received encrypted data to the descrambler, and the descrambler works, and sends the decrypted data back to the video and audio The decoder performs decoding and playback.
为了提高效率,加密的视、音频数据的Buffer(缓存)和解密后的视、音频数据Buffer最好为同一个。In order to improve efficiency, the Buffer (cache) of the encrypted video and audio data and the decrypted video and audio data Buffer are preferably the same.
如图3所述,为一个具体的应用实例,包括如下步骤:As shown in Figure 3, a specific application example includes the following steps:
步骤301,TV播放器请求播放用户选择的频道;
步骤302,多媒体平台通过手机电视芯片获得此频道对应的SDP文件;
步骤303,多媒体平台分析此SDP文件,执行并行的A、B两个分支流程;
A分支流程:A branch process:
步骤304,查找据SDP文件的m=data行;
步骤305,判断是否包含m=data行;
步骤306;若不包含m=data行,则标识此视、音频的频道(channel)为不是加密的频道,结束执行A分支流程;
步骤307,若包含m=data行,则标识此视、音频的频道为加密的频道;
步骤308,流媒体平台根据SDP文件的m=data行识别出是ECM流的IP和端口;
步骤309,条件接入系统的KDA根据ECM流的IP和端口,连接网络,接收ECM流;
步骤310,KDA根据接收到得EMM和ECM数据产生Control World(控制字,即密钥);Descrambler处于就绪状态,可以开始工作,结束A分支流程;
B分支流程:B branch process:
步骤311,根据SDP文件的m=video、m=audio行识别视频、音频流的IP和端口;
步骤312,连接网络,建立视、音频连接,接收视、音频数据流;
步骤313,根据步骤306、307的标识判断频道是否是加密的,若没有加密,则执行步骤316;若加密,则进入下一步;
步骤314,把加密的视、音频数据送入解扰器进行解扰,该步骤需要在步骤310执行完成后才能进行;
步骤315,判断解扰是否成功,若没有成功,则结束B分支流程;若成功,则执行下一步;
步骤316,把解密后的数据送回给视、音频解码器进行解码播放,结束B分支流程。
本发明能够非常容易地基于流媒体平台,扩展添加解扰器,解扰加密的音视频流,用以播放加扰的电视节目;同时本发明保证原流媒体平台的完整性,高效稳定,方法简单,为基于流媒体平台快速实现手机电视终端播放加扰电视节目提供了一种方法。The present invention can easily expand and add a descrambler based on the streaming media platform to descramble encrypted audio and video streams to play scrambled TV programs; at the same time, the present invention ensures the integrity of the original streaming media platform, and is efficient and stable. It is simple, and provides a method for quickly implementing mobile TV terminals to play scrambled TV programs based on streaming media platforms.
Claims (5)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN200710098237A CN100589553C (en) | 2007-04-20 | 2007-04-20 | A method for playing scrambled TV programs on a mobile TV terminal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN200710098237A CN100589553C (en) | 2007-04-20 | 2007-04-20 | A method for playing scrambled TV programs on a mobile TV terminal |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN101035256A CN101035256A (en) | 2007-09-12 |
| CN100589553C true CN100589553C (en) | 2010-02-10 |
Family
ID=38731519
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN200710098237A Expired - Fee Related CN100589553C (en) | 2007-04-20 | 2007-04-20 | A method for playing scrambled TV programs on a mobile TV terminal |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN100589553C (en) |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101145932B (en) * | 2007-10-15 | 2011-08-24 | 中兴通讯股份有限公司 | A realization method and system for program stream secret key in mobile multi-media broadcast service |
| KR101518089B1 (en) * | 2007-11-16 | 2015-05-15 | 톰슨 라이센싱 | System and method for session management of streaming media |
| CN101340626B (en) * | 2007-11-21 | 2010-08-11 | 华为技术有限公司 | Method and apparatus for identifying and acquiring authority information in SDP protocol |
| CN104202622B (en) * | 2014-09-23 | 2017-11-07 | 山东泰信电子股份有限公司 | A kind of advertisement safe broadcast method and system |
| CN106851391A (en) * | 2015-12-03 | 2017-06-13 | 国家新闻出版广电总局广播科学研究院 | A kind of condition receiving method and system for intelligent operating system |
-
2007
- 2007-04-20 CN CN200710098237A patent/CN100589553C/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| CN101035256A (en) | 2007-09-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN100555932C (en) | Key insertion method and system for stored encrypted content | |
| US9479825B2 (en) | Terminal based on conditional access technology | |
| US8086851B2 (en) | Methods for broadcasting and receiving a scrambled multimedia programme, network head, terminal, receiver and security processor for these methods | |
| CA2577633C (en) | Utilization of encrypted hard drive content by one dvr set-top box when recorded by another | |
| US20050210500A1 (en) | Method and apparatus for providing conditional access to recorded data within a broadband communication system | |
| KR101035893B1 (en) | Conditional Access Method and System for Content Protection | |
| US20110093883A1 (en) | System, protection method and server for implementing the virtual channel service | |
| CN101197987B (en) | Digital television program recording and playback method and system | |
| CN101453624A (en) | Playing on demand system for video | |
| JP4666015B2 (en) | Content distribution system, content receiving terminal, and content distribution method | |
| CN100589553C (en) | A method for playing scrambled TV programs on a mobile TV terminal | |
| JP2012515460A (en) | Method and apparatus for receiving control word and apparatus for transmitting the same | |
| EP2036349B1 (en) | Renewable conditional access | |
| WO2011143857A1 (en) | Data card, data card system and multi-media service implementation method | |
| KR20060064469A (en) | Device and method for protecting video files that are streaming service by multicast method | |
| WO2008151575A1 (en) | A method and a system for transmitting encrypted control message based on the mobile multimedia broadcast | |
| US9124772B2 (en) | Secure transmission method and apparatus for transport stream | |
| CN102035829B (en) | Encryption apparatus, decryption apparatus, licensing apparatus and content data generation method | |
| CN101668169A (en) | Program decryption and descrambling method, system and mobile terminal | |
| JP2012514374A (en) | Digital broadcasting service method and apparatus | |
| WO2010048879A1 (en) | Method and apparatus for right encryption in set top box | |
| CN108650549B (en) | Digital television data management method and system | |
| WO2017198153A1 (en) | Program playing management method, playing method and apparatus, and playing terminal | |
| WO2014019336A1 (en) | Multi-ca simulcrypt system and method | |
| CN108259962B (en) | Program switching method, set-top box and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20100210 Termination date: 20160420 |