CN102217319B - Advertisement insertion method, device and system - Google Patents

Advertisement insertion method, device and system Download PDF

Info

Publication number
CN102217319B
CN102217319B CN201180000524.5A CN201180000524A CN102217319B CN 102217319 B CN102217319 B CN 102217319B CN 201180000524 A CN201180000524 A CN 201180000524A CN 102217319 B CN102217319 B CN 102217319B
Authority
CN
China
Prior art keywords
advertisement
check value
media content
content
value
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.)
Active
Application number
CN201180000524.5A
Other languages
Chinese (zh)
Other versions
CN102217319A (en
Inventor
张锦辉
夏晖
李从娟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Changshu Intellectual Property Operation Center Co ltd
Guangdong Gaohang Intellectual Property Operation Co ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN102217319A publication Critical patent/CN102217319A/en
Application granted granted Critical
Publication of CN102217319B publication Critical patent/CN102217319B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/812Monomedia components thereof involving advertisement data
    • 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/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26208Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists the scheduling operation being performed under constraints

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Databases & Information Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明实施例公开了一种广告插入方法、设备和系统。所述方法包括:广告插入设备获取媒体内容中的广告时段信息;获取所述广告时段对应的广告内容;用第二校验值更新第一校验值,所述第一校验值是根据所述媒体内容和加密算法得到的校验值,所述第二校验值是根据所述广告内容和加密算法得到的校验值;在所述广告时段插入所述广告内容;转发所述插入广告内容的媒体内容。采用本发明实施例提供的技术方案,可以解决内容被非法篡改、删除或替换,以及合法广告插入的监控问题。

Figure 201180000524

The embodiment of the invention discloses an advertisement insertion method, device and system. The method includes: the advertisement inserting device obtains the advertisement period information in the media content; obtains the advertisement content corresponding to the advertisement period; updates the first check value with the second check value, and the first check value is based on the The check value obtained by the media content and the encryption algorithm, the second check value is the check value obtained according to the advertisement content and the encryption algorithm; insert the advertisement content during the advertisement period; forward the inserted advertisement The media content of the content. By adopting the technical solution provided by the embodiment of the present invention, the monitoring problems of content being illegally tampered with, deleted or replaced, and legal advertisement insertion can be solved.

Figure 201180000524

Description

一种广告插入方法、设备和系统Advertisement insertion method, device and system

技术领域 technical field

本发明涉及网络通信领域,尤其涉及一种广告插入方法、设备和系统。The invention relates to the field of network communication, in particular to an advertisement insertion method, device and system.

背景技术 Background technique

随着网络的发展和竞争的加剧,IPTV(Internet ProtocolTelevision,互联网电视)运营商必须部署全新的、个性化的服务以满足不同客户的需求。例如,通过广告插入技术实现区域定位广告插播和精确定位广告。同时,IPTV的内容监控是IPTV运营的重要组成部分。在IPTV运营中,需要保证IPTV提供的内容在传输过程中不被非法篡改、删除或替换,一旦内容被非法篡改、删除或替换,要能够及时发现。因此,如何在IPTV网络中防止非法的内容篡改、删除或替换,同时保证合法的广告插入,成为一个需要解决的难题。With the development of the network and the intensification of competition, IPTV (Internet Protocol Television, Internet TV) operators must deploy new and personalized services to meet the needs of different customers. For example, regionally-targeted ad insertion and precise positioning of advertisements are realized through ad insertion technology. At the same time, IPTV content monitoring is an important part of IPTV operation. In IPTV operation, it is necessary to ensure that the content provided by IPTV is not illegally tampered with, deleted or replaced during the transmission process. Once the content is illegally tampered with, deleted or replaced, it must be found in time. Therefore, how to prevent illegal content tampering, deletion or replacement in the IPTV network while ensuring legal advertisement insertion has become a difficult problem to be solved.

发明内容 Contents of the invention

本发明实施例提供了一种广告插入方法、设备和系统,以解决广告插入的监控,和内容被非法篡改、删除或替换的问题。Embodiments of the present invention provide an advertisement insertion method, device and system to solve the problems of advertisement insertion monitoring and content being illegally tampered with, deleted or replaced.

为解决上述技术问题,本发明实施例提供了一种广告插入方法,包括:In order to solve the above technical problems, an embodiment of the present invention provides an advertisement insertion method, including:

广告插入设备获取媒体内容中的广告时段信息;The advertisement inserting device obtains the advertisement period information in the media content;

获取所述广告时段对应的广告内容;Obtaining the advertisement content corresponding to the advertisement period;

用第二校验值更新第一校验值,所述第一校验值是根据所述广告时段对应的媒体内容和加密算法得到的校验值,所述第二校验值是根据所述广告内容和加密算法得到的校验值;Update the first check value with the second check value, the first check value is a check value obtained according to the media content corresponding to the advertisement period and the encryption algorithm, and the second check value is based on the The verification value obtained from the advertisement content and the encryption algorithm;

在所述媒体内容中的所述广告时段插入所述广告内容;inserting the advertisement content in the advertisement slot in the media content;

转发所述插入广告内容的媒体内容。Forwarding the media content inserted into the advertisement content.

本发明实施例提供了一种广告插入设备,包括:An embodiment of the present invention provides an advertisement insertion device, including:

获取模块,用于获取媒体内容的广告时段信息;还用于获取所述广告时段对应的广告内容;The obtaining module is used to obtain the advertisement period information of the media content; it is also used to obtain the advertisement content corresponding to the advertisement period;

更新模块,用第二校验值更新第一校验值,所述第一校验值是根据所述媒体内容和加密算法得到的校验值,所述第二校验值是根据所述广告内容和加密算法得到的校验值;An update module, updating the first check value with a second check value, the first check value is a check value obtained according to the media content and encryption algorithm, and the second check value is based on the advertisement The content and the verification value obtained by the encryption algorithm;

插入模块,用于在所述媒体内容中的所述广告时段插入广告内容;an insertion module, configured to insert advertisement content in the advertisement period in the media content;

发送器,用于转发所述插入广告内容的媒体内容。A sender, configured to forward the media content inserted into the advertisement content.

本发明实施例提供了一种广告插入系统,包括广告插入设备和监控中心,其中:An embodiment of the present invention provides an advertisement insertion system, including an advertisement insertion device and a monitoring center, wherein:

所述广告插入设备,用于获取媒体内容中的广告时段信息;获取所述广告时段对应的广告内容;用第二校验值更新第一校验值,所述第一校验值是根据所述媒体内容和加密算法得到的校验值,所述第二校验值是根据所述广告内容和加密算法得到的校验值;在所述媒体内容中的所述广告时段插入所述广告内容;转发所述插入广告内容的媒体内容。The advertisement inserting device is used to obtain the advertisement period information in the media content; obtain the advertisement content corresponding to the advertisement period; update the first check value with the second check value, and the first check value is based on the The check value obtained by the media content and the encryption algorithm, the second check value is the check value obtained according to the advertisement content and the encryption algorithm; the advertisement content is inserted into the advertisement period in the media content ; Forwarding the media content inserted into the advertisement content.

采用本发明实施例提供的技术方案,可以支持并监控合法的广告插入,保证内容被正确传输到终端用户。By adopting the technical solutions provided by the embodiments of the present invention, legal advertisement insertion can be supported and monitored, and content can be correctly transmitted to end users.

附图说明 Description of drawings

图1是本发明实施例提供的一种广告插入方法流程图;FIG. 1 is a flowchart of an advertisement insertion method provided by an embodiment of the present invention;

图2是本发明实施例提供的一种广告插入信息交互示意图;Fig. 2 is a schematic diagram of an advertisement insertion information interaction provided by an embodiment of the present invention;

图3是本发明实施例提供的一种广告插入设备框图;Fig. 3 is a block diagram of an advertisement insertion device provided by an embodiment of the present invention;

图4是本发明实施例提供的一种广告插入系统框图。Fig. 4 is a block diagram of an advertisement insertion system provided by an embodiment of the present invention.

具体实施方式 Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明的一部分实施例,而不是全部的实施例。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them.

本发明实施例提供了一种广告插入方法、设备和系统。所述方法包括:广告插入设备获取媒体内容中的广告时段信息;获取所述广告时段对应的广告内容;用第二校验值更新第一校验值,所述第一校验值是根据所述媒体内容和加密算法得到的校验值,所述第二校验值是根据所述广告内容和加密算法得到的校验值;在所述广告时段插入所述广告内容;转发所述插入广告内容的媒体内容。采用本发明实施例提供的技术方案,可以解决广告插入的监控,和内容被非法篡改、删除或替换的问题。The embodiment of the present invention provides an advertisement insertion method, device and system. The method includes: the advertisement inserting device obtains the advertisement period information in the media content; obtains the advertisement content corresponding to the advertisement period; updates the first check value with the second check value, and the first check value is based on the The check value obtained by the media content and the encryption algorithm, the second check value is the check value obtained according to the advertisement content and the encryption algorithm; insert the advertisement content during the advertisement period; forward the inserted advertisement Content's media content. By adopting the technical solution provided by the embodiment of the present invention, the monitoring of advertisement insertion and the problems of illegal tampering, deletion or replacement of content can be solved.

在有线电视网或IPTV网络中,头端发送的节目流中含有固定时长的广告时段,可以通过插播提示信息,插播提示信息中包含广告时段信息。广告时段用于播放广告,广告时段的内容可以被改变,替换成时长相同的不同广告内容。In a cable TV network or an IPTV network, the program stream sent by the headend contains a fixed-length advertisement period, and the prompt information can be inserted through the broadcast, and the advertisement period information is included in the insert prompt information. The advertisement period is used to play advertisements, and the content of the advertisement period can be changed and replaced with different advertisement contents with the same duration.

节目流中连续的视频内容被分为若干个GOP(Group of Pictures,图片组),一个GOP就是一组连续的画面,主要包含内部编码帧或条带(Intra coded frames or slices),前向预测帧或条带(Predicted framesor slices),和双向内插帧或条带(Bi-directional predictive frames orslices)。为叙述方便,以下将内部编码帧或条带统称为I帧,将前向预测帧或条带统称为P帧,将双向内插帧或条带统称为B帧。一个GOP总是以I帧开始,以序号或播放时间标示一个帧。在视频播放器中,P帧、B帧等依赖于其他帧进行解码和播放。通常将为其他帧解码提供参考的帧,或者可以独立解码的帧称为关键帧,例如I帧。The continuous video content in the program stream is divided into several GOPs (Group of Pictures, picture group). A GOP is a group of continuous pictures, mainly including intra coded frames or slices (Intra coded frames or slices), forward prediction Frames or strips (Predicted framesor slices), and bi-directional interpolation frames or strips (Bi-directional predictive frames or slices). For the convenience of description, the intra-coded frames or slices are collectively referred to as I frames, the forward prediction frames or slices are collectively referred to as P frames, and the bidirectional interpolation frames or slices are collectively referred to as B frames. A GOP always begins with an I frame, and a frame is marked with a sequence number or play time. In a video player, P frames, B frames, etc. depend on other frames for decoding and playback. Frames that will generally provide a reference for decoding other frames, or frames that can be decoded independently are called key frames, such as I-frames.

参见图1,是本发明实施例提供的一种广告插入方法流程图,所述方法包括:Referring to Fig. 1 , it is a flow chart of an advertisement insertion method provided by an embodiment of the present invention, and the method includes:

101:广告插入设备获取媒体内容的广告时段信息。101: The advertisement insertion device acquires advertisement period information of the media content.

广告插入设备可以根据本地保存的广告插入策略获取媒体内容的广告时段信息。The advertisement insertion device may obtain the advertisement period information of the media content according to the advertisement insertion strategy stored locally.

广告插入设备也可以从其它设备获取媒体内容的广告时段信息。The advertisement inserting device may also acquire the advertisement period information of the media content from other devices.

广告插入设备也可以监测媒体内容,当监测到所述媒体内容中有广告时段时,获取所述媒体内容的广告时段信息。例如监测媒体内容中是否有插播提示信息,当监测到插播提示信息时,从插播提示信息中获取广告时段信息。The advertisement insertion device may also monitor the media content, and when it detects that there is an advertisement period in the media content, acquire the advertisement period information of the media content. For example, it is monitored whether there is inter-play prompt information in the media content, and when the inter-play prompt information is detected, the advertisement period information is obtained from the inter-play prompt information.

在获取媒体内容的广告时段信息之前,广告插入设备可以获取所述媒体内容的第一校验值。所述第一校验值是根据所述媒体内容和加密算法,例如MD5(Message Digest Algorithm,消息摘要算法第五版)、SHA-1(Secure Hash Algorithm,安全散列算法)等,得到的校验值。Before obtaining the advertisement period information of the media content, the advertisement insertion device may obtain the first verification value of the media content. The first check value is based on the media content and an encryption algorithm, such as MD5 (Message Digest Algorithm, message digest algorithm fifth edition), SHA-1 (Secure Hash Algorithm, secure hash algorithm), etc., obtained verification check value.

所述第一校验值可以包括根据所述媒体内容中的各个帧和加密算法,得到的各个校验值;也可以包括根据所述媒体内容中的关键帧和加密算法,得到的各个校验值。所述关键帧是指为其他帧解码提供参考的帧,或者可以独立解码的帧。The first check value can include each check value obtained according to each frame and encryption algorithm in the media content; it can also include each check value obtained according to the key frame and encryption algorithm in the media content value. The key frame refers to a frame that provides reference for decoding other frames, or a frame that can be decoded independently.

所述广告插入设备可以是业务网关,路由器,交换机等。例如靠近终端的业务路由器,边缘路由器,汇聚交换机,边缘交换机等。The advertisement insertion device may be a service gateway, a router, a switch, and the like. For example, service routers near terminals, edge routers, aggregation switches, edge switches, etc.

所述第一校验值可以由头端或其他设备携带在所述媒体内容中。The first check value may be carried in the media content by the headend or other devices.

所述第一校验值也可以由监控中心通过其他途径,例如信令通道发送给所述广告插入设备。The first verification value may also be sent by the monitoring center to the advertisement insertion device through other means, such as a signaling channel.

所述第一校验值可以经过加密或签名。The first check value may be encrypted or signed.

如果所述广告插入设备获取第一校验值,所述广告插入设备可以对接收到的媒体内容做校验,以确定媒体内容是否被非法篡改、删除或替换。所述广告插入设备可以根据本地接收到的媒体内容和加密算法,得到本地校验值。该加密算法与获取第一校验值的加密算法相同。所述广告插入设备可以通过硬件运行所述加密算法。所述广告插入设备将所述本地校验值与所述第一校验值进行比较。当所述本地校验值与所述第一校验值相同时,校验通过,所述广告插入设备转发所述媒体内容。当所述本地校验值与所述第一校验值不同时,校验不通过。当校验不通过时,所述广告插入设备可以向监控中心发送校验失败的告警消息,所述告警消息中可以包含所述第一校验值。所述广告插入设备也可以根据监控策略处理所述媒体内容,例如停止转发所述媒体内容。所述监控策略可以由监控中心下发,也可以本地生成。If the advertisement insertion device obtains the first verification value, the advertisement insertion device may verify the received media content to determine whether the media content has been illegally tampered with, deleted or replaced. The advertisement insertion device can obtain a local check value according to the locally received media content and encryption algorithm. The encryption algorithm is the same as the encryption algorithm for obtaining the first check value. The advertisement insertion device may run the encryption algorithm through hardware. The advertisement insertion device compares the local check value with the first check value. When the local check value is the same as the first check value, the check passes, and the advertisement insertion device forwards the media content. When the local check value is different from the first check value, the check fails. When the verification fails, the advertisement insertion device may send a verification failure warning message to the monitoring center, and the warning message may include the first verification value. The advertisement insertion device may also process the media content according to a monitoring policy, for example, stop forwarding the media content. The monitoring strategy can be issued by the monitoring center, or generated locally.

102:获取所述广告时段对应的广告内容。102: Obtain advertisement content corresponding to the advertisement period.

所述广告插入设备可以在本地存储的广告内容中选择合适的广告,获取对应的广告内容,也可以从其他设备,例如广告服务器获取广告内容。The advertisement inserting device may select a suitable advertisement from locally stored advertisement contents, and obtain corresponding advertisement contents, or may obtain advertisement contents from other devices, such as an advertisement server.

举例来说,当监测到所述媒体内容中有广告时段时,所述广告插入设备向广告服务器发送插播请求消息,所述插播请求消息中携带所述广告时段信息。广告服务器向所述广告插入设备回应插播应答消息。当广告服务器根据所述广告时段信息确定允许在所述广告时段插播广告时,广告服务器向所述广告插入设备发送拼接请求消息,所述广告插入设备向广告服务器回应拼接应答消息。所述广告插入设备获取广告服务器提供的所述广告时段对应的广告内容。For example, when it is detected that there is an advertisement period in the media content, the advertisement insertion device sends an insertion request message to an advertisement server, and the advertisement insertion request message carries the advertisement period information. The advertisement server responds with an insertion response message to the advertisement insertion device. When the advertisement server determines according to the advertisement period information that the advertisement is allowed to be inserted in the advertisement period, the advertisement server sends a splicing request message to the advertisement inserting device, and the advertisement inserting device responds with a splicing response message to the advertisement server. The advertisement insertion device obtains the advertisement content corresponding to the advertisement period provided by the advertisement server.

广告服务器可以向监控中心发送广告决策信息,所述广告决策信息包括广告时段信息和是否允许插播指示(例如OK表示允许插播,NO表示不允许插播)。The advertisement server may send advertisement decision information to the monitoring center, and the advertisement decision information includes advertisement period information and an indication of whether to allow the insertion (for example, OK indicates that the insertion is allowed, and NO indicates that the insertion is not allowed).

103:用第二校验值更新所述第一校验值。103: Update the first check value with the second check value.

所述广告插入设备可以根据所述广告内容和加密算法,得到所述第二校验值。该加密算法与获取第一校验值的加密算法相同。所述广告插入设备可以通过硬件运行所述加密算法。如果第一校验值包括根据媒体内容中的各个帧和加密算法得到的各个校验值,则第二校验值包括根据广告内容中的各个帧和加密算法得到的各个校验值。如果第一校验值包括根据媒体内容中的关键帧和加密算法得到的各个校验值,则第二校验值包括根据广告内容中的相应关键帧和加密算法得到的各个校验值。The advertisement insertion device may obtain the second verification value according to the advertisement content and the encryption algorithm. The encryption algorithm is the same as the encryption algorithm for obtaining the first check value. The advertisement insertion device may run the encryption algorithm through hardware. If the first check value includes each check value obtained according to each frame in the media content and the encryption algorithm, then the second check value includes each check value obtained according to each frame in the advertisement content and the encryption algorithm. If the first check value includes each check value obtained according to the key frame in the media content and the encryption algorithm, then the second check value includes each check value obtained according to the corresponding key frame in the advertisement content and the encryption algorithm.

当所述媒体内容中包括所述第一校验值时,所述广告插入设备可以用所述第二校验值更新所述媒体内容中的所述第一校验值,以使下游监控设备根据第二校验值对媒体内容中的广告内容部分进行校验。When the media content includes the first check value, the advertisement insertion device may update the first check value in the media content with the second check value, so that the downstream monitoring device The advertisement content part in the media content is verified according to the second verification value.

所述广告插入设备也可以发送校验值更新消息,以使下游监控设备用所述第二校验值更新所述第一校验值,并根据所述第二校验值对媒体内容中的广告内容部分进行校验。所述校验值更新消息中包含所述第二校验值。所述广告插入设备发送校验值更新消息以用第二校验值更新所述第一校验值的方式,可以适用于第一校验值携带在媒体内容中的情况,也可以适用于第一校验值来自监控中心的情况。The advertisement inserting device may also send a check value update message, so that the downstream monitoring device updates the first check value with the second check value, and performs an update on the content in the media content according to the second check value. The ad content part is verified. The check value update message includes the second check value. The manner in which the advertisement insertion device sends a verification value update message to update the first verification value with the second verification value may be applicable to the case where the first verification value is carried in the media content, and may also be applicable to the case where the first verification value is carried in the media content. A check value comes from the situation of the monitoring center.

所述校验值更新消息中还可以包含所述广告插入设备的身份信息,所述广告时段信息等。The verification value update message may also include the identity information of the advertisement insertion device, the advertisement period information, and the like.

所述广告插入设备可以向监控中心发送所述校验值更新消息,以使监控中心向下游监控设备发送所述第二校验值,使下游监控设备用所述第二校验值更新所述第一校验值。当所述校验值更新消息中包含所述广告插入设备的身份信息时,监控中心可以根据该身份信息判断所述校验值更新消息是否合法。当监控中心确定所述校验值更新消息合法时,向下游监控设备发送所述第二校验值,使下游监控设备用所述第二校验值更新所述第一校验值。The advertisement insertion device may send the verification value update message to the monitoring center, so that the monitoring center sends the second verification value to the downstream monitoring device, so that the downstream monitoring device uses the second verification value to update the The first checksum. When the check value update message contains the identity information of the advertisement insertion device, the monitoring center can judge whether the check value update message is legal according to the identity information. When the monitoring center determines that the verification value update message is legal, it sends the second verification value to the downstream monitoring device, so that the downstream monitoring device uses the second verification value to update the first verification value.

所述广告插入设备也可以向下游监控设备发送所述校验值更新消息,以使下游监控设备用所述第二校验值更新所述第一校验值。当所述校验值更新消息中包含广告插入设备的身份信息时,下游监控设备可以根据该身份信息判断所述校验值更新消息是否合法。当下游监控设备确定所述校验值更新消息合法时,用所述第二校验值更新所述第一校验值。The advertisement insertion device may also send the verification value update message to the downstream monitoring device, so that the downstream monitoring device updates the first verification value with the second verification value. When the check value update message contains the identity information of the advertisement insertion device, the downstream monitoring device can judge whether the check value update message is legal according to the identity information. When the downstream monitoring device determines that the check value update message is legal, it updates the first check value with the second check value.

所述身份信息可以是数字证书或安全联盟,监控中心或下游监控设备可以根据所述数字证书或安全联盟认证所述广告插入设备。当认证通过时,所述校验值更新消息合法。The identity information may be a digital certificate or a security association, and the monitoring center or downstream monitoring equipment may authenticate the advertisement insertion device according to the digital certificate or the security association. When the authentication passes, the check value update message is valid.

所述身份信息也可以是设备地址,例如IP地址,MAC地址等,监控中心或下游监控设备可以根据所述设备地址,判断所述广告插入设备是否可信设备。当所述广告插入设备是可信设备时,所述校验值更新消息合法。The identity information may also be a device address, such as an IP address, a MAC address, etc., and the monitoring center or downstream monitoring equipment may determine whether the advertisement insertion device is a trusted device based on the device address. When the advertisement insertion device is a trusted device, the check value update message is legal.

监控中心也可以进一步根据所述广告时段信息判断广告插入是否合法。例如,当所述校验值更新消息合法,且监控中心根据所述广告时段信息和广告服务器提供的广告决策信息确定允许广告插入时,则广告插入合法。The monitoring center can also further judge whether the advertisement insertion is legal according to the advertisement period information. For example, when the verification value update message is legal, and the monitoring center determines that the advertisement insertion is allowed according to the advertisement period information and the advertisement decision information provided by the advertisement server, then the advertisement insertion is legal.

当监控中心收到所述校验值更新消息时,监控中心可以向所述广告插入设备回应校验值更新应答消息。例如,监控中心回应校验值更新应答消息,所述校验值更新应答消息中可以携带OK表示广告插入合法,或者携带NO表示广告插入不合法。所述广告插入设备接收所述校验值更新应答消息。When the monitoring center receives the verification value update message, the monitoring center may respond to the advertisement insertion device with a verification value update response message. For example, the monitoring center responds with a verification value update response message, and the verification value update response message may carry OK to indicate that the advertisement insertion is legal, or carry NO to indicate that the advertisement insertion is not legal. The advertisement insertion device receives the check value update response message.

104:在所述广告时段插入广告内容。104: Insert advertisement content in the advertisement period.

所述广告插入设备可以通过数字节目插播技术在所述广告时段插入广告内容。The advertisement inserting device may insert advertisement content in the advertisement period through digital program insertion technology.

可选的,所述广告插入设备也可以在收到监控中心回应的更新应答消息后,当广告插入合法时,在所述广告时段插入广告内容。Optionally, the advertisement inserting device may also insert advertisement content in the advertisement slot when the advertisement insertion is legal after receiving the update response message from the monitoring center.

105:转发所述插入广告内容的媒体内容。105: Forward the media content inserted into the advertisement content.

所述广告插入设备转发所述插入广告内容的媒体内容。The advertisement insertion device forwards the media content inserted into the advertisement content.

举例来说,参见图2,是本发明实施例提供的一种广告插入的信息交互示意图。媒体内容从头端发送到终端的过程中会经过广告插入设备和下游监控设备。For example, refer to FIG. 2 , which is a schematic diagram of information interaction of an advertisement insertion provided by an embodiment of the present invention. In the process of sending media content from the head end to the terminal, it will pass through advertisement insertion equipment and downstream monitoring equipment.

步骤1:监控中心通过信令通道将第一校验值发送给广告插入设备和下游监控设备。Step 1: The monitoring center sends the first verification value to the advertisement insertion device and the downstream monitoring device through a signaling channel.

步骤2:头端发送媒体内容;Step 2: The head end sends the media content;

步骤3:广告插入设备接收媒体内容,用第一校验值对媒体内容进行校验,校验通过,转发媒体内容。Step 3: The advertisement insertion device receives the media content, verifies the media content with the first verification value, and forwards the media content if the verification passes.

同时广告插入设备监测媒体内容中是否有广告时段。At the same time, the advertisement insertion device monitors whether there is an advertisement period in the media content.

步骤4:下游监控设备接收媒体内容,用第一校验值对媒体内容进行校验,校验通过,将媒体内容转发给终端。Step 4: The downstream monitoring device receives the media content, verifies the media content with the first verification value, and forwards the media content to the terminal if the verification passes.

步骤5:当广告插入设备监测到广告时段时,向广告服务器发送插播请求,广告服务器向所述广告插入设备回应插播应答消息。当广告服务器根据所述广告时段信息确定允许在所述广告时段插播广告时,广告服务器向广告插入设备发送拼接请求消息,广告插入设备向广告服务器回应拼接应答消息。广告插入设备获取广告服务器提供的所述广告时段对应的广告内容。广告插入设备根据广告内容和加密算法得到第二校验值。Step 5: When the advertisement insertion device detects the advertisement period, it sends an insertion request to the advertisement server, and the advertisement server responds with an insertion response message to the advertisement insertion device. When the advertisement server determines according to the advertisement period information that the advertisement is allowed to be inserted in the advertisement period, the advertisement server sends a splicing request message to the advertisement inserting device, and the advertisement inserting device responds to the advertisement server with a splicing response message. The advertisement insertion device obtains the advertisement content corresponding to the advertisement period provided by the advertisement server. The advertisement insertion device obtains the second verification value according to the advertisement content and the encryption algorithm.

广告插入设备向监控中心发送校验值更新消息,所述校验值更新消息中包含第二校验值,广告插入设备的身份信息和广告时段信息。The advertisement insertion device sends a verification value update message to the monitoring center, and the verification value update message includes the second verification value, the identity information of the advertisement insertion device and the advertisement period information.

步骤6:监控中心根据广告插入设备的身份信息对所述广告插入设备认证通过时,广告插入合法;监控中心向广告插入设备回应校验值更新应答消息,允许进行广告插入。Step 6: When the monitoring center passes the authentication of the advertisement insertion device according to the identity information of the advertisement insertion device, the advertisement insertion is legal; the monitoring center responds to the advertisement insertion device with a verification value update response message, allowing the advertisement insertion.

步骤7:监控中心向下游监控设备发送第二校验值。Step 7: The monitoring center sends the second verification value to the downstream monitoring equipment.

下游监控设备用第二校验值更新第一校验值。The downstream monitoring device updates the first check value with the second check value.

步骤8:广告插入设备在广告时段中插入广告内容,并转发所述插入广告内容的媒体内容。Step 8: The advertisement inserting device inserts advertisement content in the advertisement period, and forwards the media content inserted into the advertisement content.

步骤9:下游监控设备接收所述插入广告内容的媒体内容,并根据所述第二校验值对媒体内容中的广告内容部分进行校验。Step 9: The downstream monitoring device receives the media content inserted into the advertisement content, and verifies the advertisement content in the media content according to the second verification value.

当校验通过时,向终端转发所述插入广告内容的媒体内容。When the verification is passed, the media content inserted into the advertisement content is forwarded to the terminal.

采用本发明实施例提供的技术方案,可以支持并监控合法的广告插入,同时通过对媒体内容的校验,可以监控内容在传输过程中是否被篡改、删除或替换,保证内容被正确传输到终端用户。The technical solution provided by the embodiment of the present invention can support and monitor legal advertisement insertion, and at the same time, through the verification of the media content, it can monitor whether the content is tampered with, deleted or replaced during the transmission process, ensuring that the content is correctly transmitted to the terminal user.

参见图3,是本发明实施例提供的一种广告插入设备框图,所述广告插入设备包括获取模块201,更新模块202,插入模块203和发送器204。其中:Referring to FIG. 3 , it is a block diagram of an advertisement insertion device provided by an embodiment of the present invention. The advertisement insertion device includes an acquisition module 201 , an update module 202 , an insertion module 203 and a transmitter 204 . in:

所述获取模块201,用于获取媒体内容的广告时段信息;还用于获取所述广告时段对应的广告内容;The obtaining module 201 is used to obtain the advertisement period information of the media content; it is also used to obtain the advertisement content corresponding to the advertisement period;

所述更新模块202,用于用第二校验值更新第一校验值,所述第一校验值是根据所述媒体内容和加密算法得到的校验值,所述第二校验值是根据所述广告内容和加密算法得到的校验值;The update module 202 is configured to update the first check value with the second check value, the first check value is a check value obtained according to the media content and the encryption algorithm, and the second check value is the verification value obtained according to the advertisement content and the encryption algorithm;

所述插入模块203,用于在所述广告时段插入广告内容;The insertion module 203 is configured to insert advertisement content during the advertisement period;

所述发送器204,用于转发所述插入广告内容的媒体内容。The sender 204 is configured to forward the media content inserted into the advertisement content.

所述广告插入设备可以是业务网关,路由器,交换机等。例如靠近终端的业务路由器,边缘路由器,汇聚交换机,边缘交换机等。The advertisement insertion device may be a service gateway, a router, a switch, and the like. For example, service routers near terminals, edge routers, aggregation switches, edge switches, etc.

所述获取模块201可以根据本地保存的广告插入策略获取媒体内容的广告时段信息。The obtaining module 201 may obtain the advertisement period information of the media content according to the locally saved advertisement insertion strategy.

所述获取模块201也可以从其它设备获取媒体内容的广告时段信息。The obtaining module 201 may also obtain the advertisement period information of the media content from other devices.

所述广告插入设备也可以监测媒体内容,当监测到所述媒体内容中有广告时段时,所述获取模块201获取所述媒体内容的广告时段信息。例如,监测媒体内容中是否有插播提示信息,当监测到插播提示信息时,从插播提示信息中获取广告时段信息。The advertisement insertion device may also monitor media content, and when it detects that there is an advertisement period in the media content, the acquiring module 201 acquires the advertisement period information of the media content. For example, it is monitored whether there is inter-play prompt information in the media content, and when the inter-play prompt information is detected, the advertisement period information is obtained from the inter-play prompt information.

所述获取模块201,还用于在获取媒体内容的广告时段信息之前,获取所述媒体内容的第一校验值。所述第一校验值是根据所述媒体内容和加密算法,得到的校验值。The obtaining module 201 is further configured to obtain a first verification value of the media content before obtaining the advertisement period information of the media content. The first check value is a check value obtained according to the media content and the encryption algorithm.

所述第一校验值可以包括根据所述媒体内容中的各个帧和加密算法得到的各个校验值,也可以包括根据所述媒体内容中的关键帧和加密算法得到的各个校验值。所述关键帧是指为其他帧解码提供参考的帧,或者可以独立解码的帧。The first check value may include each check value obtained according to each frame in the media content and an encryption algorithm, or may include each check value obtained according to a key frame in the media content and an encryption algorithm. The key frame refers to a frame that provides reference for decoding other frames, or a frame that can be decoded independently.

所述第一校验值可以是由头端或其他设备携带在所述媒体内容中。The first check value may be carried in the media content by the headend or other devices.

所述第一校验值也可以由监控中心通过其他途径,例如信令通道发送给所述广告插入设备。The first verification value may also be sent by the monitoring center to the advertisement insertion device through other means, such as a signaling channel.

所述第一校验值可以经过加密或签名。The first check value may be encrypted or signed.

如果所述广告插入设备获取第一校验值,所述广告插入设备可以对接收到的媒体内容做校验,以确定媒体内容是否被非法篡改、删除或替换。所述广告插入可以根据本地接收到的媒体内容和加密算法,得到本地校验值。该加密算法与获取第一校验值的加密算法相同。所述广告插入设备可以通过硬件运行所述加密算法。所述广告插入设备将所述本地校验值与所述第一校验值进行比较。当所述本地校验值与所述第一校验值相同时,校验通过,所述发送器204转发所述媒体内容。当所述本地校验值与所述第一校验值不同时,校验不通过。当校验不通过时,所述广告插入设备可以向监控中心发告警消息,所述告警消息中可以包含所述第一校验值。If the advertisement insertion device obtains the first verification value, the advertisement insertion device may verify the received media content to determine whether the media content has been illegally tampered with, deleted or replaced. The advertisement insertion can obtain a local verification value according to the locally received media content and encryption algorithm. The encryption algorithm is the same as the encryption algorithm for obtaining the first check value. The advertisement insertion device may run the encryption algorithm through hardware. The advertisement insertion device compares the local check value with the first check value. When the local check value is the same as the first check value, the check passes, and the sender 204 forwards the media content. When the local check value is different from the first check value, the check fails. When the verification fails, the advertisement insertion device may send a warning message to the monitoring center, and the warning message may include the first verification value.

所述获取模块201可以在本地存储的广告内容中选择合适的广告,获取对应的广告内容,也可以从其他设备,例如广告服务器获取广告内容。The obtaining module 201 may select a suitable advertisement from locally stored advertisement contents to obtain the corresponding advertisement content, or obtain the advertisement content from other devices, such as an advertisement server.

举例来说,当监测到所述媒体内容中有广告时段时,所述广告插入设备向广告服务器发送插播请求消息,所述插播请求消息中携带所述广告时段信息。广告服务器向所述广告插入设备回应插播应答消息。当广告服务器根据所述广告时段信息确定允许在所述广告时段插播广告时,广告服务器向所述广告插入设备发送拼接请求消息,所述广告插入设备向广告服务器回应拼接应答消息。所述获取模块201获取广告服务器提供的所述广告时段对应的广告内容。For example, when it is detected that there is an advertisement period in the media content, the advertisement insertion device sends an insertion request message to an advertisement server, and the advertisement insertion request message carries the advertisement period information. The advertisement server responds with an insertion response message to the advertisement insertion device. When the advertisement server determines according to the advertisement period information that the advertisement is allowed to be inserted in the advertisement period, the advertisement server sends a splicing request message to the advertisement inserting device, and the advertisement inserting device responds with a splicing response message to the advertisement server. The obtaining module 201 obtains the advertisement content corresponding to the advertisement period provided by the advertisement server.

广告服务器可以向监控中心发送广告决策信息,所述广告决策信息包括广告时段信息和是否允许插播指示(例如OK表示允许插播,NO表示不允许插播)。The advertisement server may send advertisement decision information to the monitoring center, and the advertisement decision information includes advertisement period information and an indication of whether to allow the insertion (for example, OK indicates that the insertion is allowed, and NO indicates that the insertion is not allowed).

所述广告插入设备可以根据所述广告内容和加密算法,得到所述第二校验值。该加密算法与获取第一校验值的加密算法相同。所述广告插入设备可以通过硬件运行所述加密算法。如果第一校验值包括根据媒体内容中的各个帧和加密算法得到的各个校验值,则第二校验值包括根据广告内容中的各个帧和加密算法得到的各个校验值。如果第一校验值包括根据媒体内容中的关键帧和加密算法得到的各个校验值,则第二校验值包括根据广告内容中的相应关键帧和加密算法得到的各个校验值。The advertisement insertion device may obtain the second verification value according to the advertisement content and the encryption algorithm. The encryption algorithm is the same as the encryption algorithm for obtaining the first check value. The advertisement insertion device may run the encryption algorithm through hardware. If the first check value includes each check value obtained according to each frame in the media content and the encryption algorithm, then the second check value includes each check value obtained according to each frame in the advertisement content and the encryption algorithm. If the first check value includes each check value obtained according to the key frame in the media content and the encryption algorithm, then the second check value includes each check value obtained according to the corresponding key frame in the advertisement content and the encryption algorithm.

所述更新模块202具体可用于,当所述媒体内容中包括所述第一校验值时,用所述第二校验值更新所述媒体内容中的所述第一校验值,以使下游监控设备根据第二校验值对媒体内容中的广告内容部分进行校验。The update module 202 can be specifically configured to, when the media content includes the first check value, update the first check value in the media content with the second check value, so that The downstream monitoring device verifies the advertising content in the media content according to the second verification value.

所述更新模块202具体还可用于发送校验值更新消息,以使下游监控设备用所述第二校验值更新所述第一校验值,并根据所述第二校验值对媒体内容中的广告内容部分进行校验。所述校验值更新消息中包含所述第二校验值。所述广告插入设备发送校验值更新消息以用第二校验值更新所述第一校验值的方式,可以适用于第一校验值携带在媒体内容中的情况,也可以适用于第一校验值来自监控中心的情况。The update module 202 may also be specifically configured to send a check value update message, so that the downstream monitoring device updates the first check value with the second check value, and updates the media content according to the second check value. The ad content section in the validation. The check value update message includes the second check value. The manner in which the advertisement insertion device sends a verification value update message to update the first verification value with the second verification value may be applicable to the case where the first verification value is carried in the media content, and may also be applicable to the case where the first verification value is carried in the media content. A check value comes from the situation of the monitoring center.

所述校验值更新消息中还可以包含所述广告插入设备的身份信息,所述广告时段信息等。The verification value update message may also include the identity information of the advertisement insertion device, the advertisement period information, and the like.

所述更新模块202可以向监控中心发送所述校验值更新消息,以使监控中心向下游监控设备发送所述第二校验值,使下游监控设备用所述第二校验值更新所述第一校验值。当所述校验值更新消息中包含所述广告插入设备的身份信息时,监控中心可以根据该身份信息判断所述校验值更新消息是否合法。当监控中心确定所述校验值更新消息合法时,向下游监控设备发送所述第二校验值,使下游监控设备用所述第二校验值更新所述第一校验值。The update module 202 may send the verification value update message to the monitoring center, so that the monitoring center sends the second verification value to the downstream monitoring equipment, so that the downstream monitoring equipment uses the second verification value to update the The first checksum. When the check value update message contains the identity information of the advertisement insertion device, the monitoring center can judge whether the check value update message is legal according to the identity information. When the monitoring center determines that the verification value update message is legal, it sends the second verification value to the downstream monitoring device, so that the downstream monitoring device uses the second verification value to update the first verification value.

所述更新模块202也可以向下游监控设备发送所述校验值更新消息,以使下游监控设备用所述第二校验值更新所述第一校验值。当所述校验值更新消息中包含广告插入设备的身份信息时,下游监控设备可以根据该身份信息判断所述校验值更新消息是否合法。当下游监控设备确定所述校验值更新消息合法时,用所述第二校验值更新所述第一校验值。The updating module 202 may also send the check value update message to the downstream monitoring device, so that the downstream monitoring device updates the first check value with the second check value. When the check value update message contains the identity information of the advertisement insertion device, the downstream monitoring device can judge whether the check value update message is legal according to the identity information. When the downstream monitoring device determines that the check value update message is legal, it updates the first check value with the second check value.

所述身份信息可以是数字证书或安全联盟,监控中心或下游监控设备可以根据所述数字证书或安全联盟认证所述广告插入设备。当认证通过时,所述校验值更新消息合法。The identity information may be a digital certificate or a security association, and the monitoring center or downstream monitoring equipment may authenticate the advertisement insertion device according to the digital certificate or the security association. When the authentication passes, the check value update message is valid.

所述身份信息也可以是设备地址,例如IP地址,MAC地址等,监控中心或下游监控设备可以根据所述设备地址,判断所述广告插入设备是否可信设备。当所述广告插入设备是可信设备时,所述校验值更新消息合法。The identity information may also be a device address, such as an IP address, a MAC address, etc., and the monitoring center or downstream monitoring equipment may determine whether the advertisement insertion device is a trusted device based on the device address. When the advertisement insertion device is a trusted device, the check value update message is legal.

监控中心也可以进一步根据所述广告时段信息判断广告插入是否合法。例如,当所述校验值更新消息合法,且监控中心根据所述广告时段信息和广告服务器提供的广告决策信息确定允许广告插入时,则广告插入合法。The monitoring center can also further judge whether the advertisement insertion is legal according to the advertisement period information. For example, when the verification value update message is legal, and the monitoring center determines that the advertisement insertion is allowed according to the advertisement period information and the advertisement decision information provided by the advertisement server, then the advertisement insertion is legal.

当监控中心收到所述校验值更新消息时,监控中心可以向所述广告插入设备回应校验值更新应答消息。例如,监控中心回应校验值更新应答消息,所述校验值更新应答消息中可以携带OK表示广告插入合法,或者携带NO表示广告插入不合法。所述广告插入设备接收所述校验值更新应答消息。When the monitoring center receives the verification value update message, the monitoring center may respond to the advertisement insertion device with a verification value update response message. For example, the monitoring center responds with a verification value update response message, and the verification value update response message may carry OK to indicate that the advertisement insertion is legal, or carry NO to indicate that the advertisement insertion is not legal. The advertisement insertion device receives the check value update response message.

所述插入模块203可以通过数字节目插播技术在所述广告时段插入广告内容。The inserting module 203 may insert advertisement content in the advertisement period through digital program insertion technology.

可选的,所述插入模块203也可以在收到所述更新应答消息后,当广告插入合法时,在所述广告时段插入广告内容。Optionally, the inserting module 203 may also insert advertisement content in the advertisement period when the advertisement insertion is legal after receiving the update response message.

所述发送器204转发所述插入广告内容的媒体内容。The sender 204 forwards the media content inserted into the advertising content.

参见图4,是本发明实施例提供的一种广告插入的系统框图,所述系统包括广告插入设备301和监控中心302。其中:Referring to FIG. 4 , it is a block diagram of an advertisement insertion system provided by an embodiment of the present invention. The system includes an advertisement insertion device 301 and a monitoring center 302 . in:

所述广告插入设备301,用于获取媒体内容中的广告时段信息;获取所述广告时段对应的广告内容;用第二校验值更新第一校验值,所述第一校验值是根据所述媒体内容和加密算法得到的校验值,所述第二校验值是根据所述广告内容和加密算法得到的校验值;在所述广告时段插入所述广告内容;转发所述插入广告内容的媒体内容。The advertisement inserting device 301 is configured to obtain advertisement period information in the media content; obtain advertisement content corresponding to the advertisement period; update the first check value with the second check value, and the first check value is based on The check value obtained by the media content and the encryption algorithm, the second check value is the check value obtained according to the advertisement content and the encryption algorithm; insert the advertisement content in the advertisement period; forward the inserted The media content of the ad content.

所述广告插入设备301可以是业务网关,路由器,交换机等。例如靠近终端的业务路由器,边缘路由器,汇聚交换机,边缘交换机等。The advertisement insertion device 301 may be a service gateway, a router, a switch, and the like. For example, service routers near terminals, edge routers, aggregation switches, edge switches, etc.

所述广告插入设备301可以根据本地保存的广告插入策略获取媒体内容的广告时段信息。The advertisement inserting device 301 may obtain the advertisement period information of the media content according to the locally saved advertisement insertion policy.

所述广告插入设备301也可以从其它设备获取媒体内容的广告时段信息。The advertisement insertion device 301 may also obtain the advertisement period information of the media content from other devices.

所述广告插入设备301也可以监测所述媒体内容,当监测到所述媒体内容中有广告时段时,获取所述媒体内容的广告时段信息。例如监测媒体内容中是否有插播提示信息,当监测到插播提示信息时,从插播提示信息中获取广告时段信息。The advertisement insertion device 301 may also monitor the media content, and when detecting that there is an advertisement period in the media content, obtain the advertisement period information of the media content. For example, it is monitored whether there is inter-play prompt information in the media content, and when the inter-play prompt information is detected, the advertisement period information is obtained from the inter-play prompt information.

所述广告插入设备301还用于在获取媒体内容的广告时段信息之前,获取所述第一校验值。所述第一校验值是根据所述媒体内容和加密算法,得到的校验值。The advertisement insertion device 301 is further configured to obtain the first verification value before obtaining the advertisement period information of the media content. The first check value is a check value obtained according to the media content and the encryption algorithm.

所述第一校验值可以包括根据所述媒体内容中的各个帧和加密算法,得到的各个校验值;也可以包括根据所述媒体内容中的关键帧和加密算法,得到各个校验值。所述关键帧是指为其他帧解码提供参考的帧,或者可以独立解码的帧。The first check value may include each check value obtained according to each frame and encryption algorithm in the media content; it may also include each check value obtained according to the key frame and encryption algorithm in the media content . The key frame refers to a frame that provides reference for decoding other frames, or a frame that can be decoded independently.

所述第一校验值可以由头端或其他设备携带在所述媒体内容中。The first check value may be carried in the media content by the headend or other devices.

所述第一校验值也可以由监控中心302通过其他途径,例如信令通道发送给所述广告插入设备301。The first verification value may also be sent by the monitoring center 302 to the advertisement insertion device 301 through other means, such as a signaling channel.

所述第一校验值可以经过加密或签名。The first check value may be encrypted or signed.

如果所述广告插入设备301获取第一校验值,所述广告插入设备301可以对接收到的媒体内容做校验,以确定媒体内容是否被非法篡改、删除或替换。所述广告插入设备301可以根据本地接收到的媒体内容和加密算法,得到本地校验值。该加密算法与获取第一校验值的加密算法相同。所述广告插入设备301可以通过硬件运行所述加密算法。所述广告插入设备301将所述本地校验值与所述第一校验值进行比较。当所述本地校验值与所述第一校验值相同时,校验通过,所述广告插入设备301转发所述媒体内容。当所述本地校验值与所述第一校验值不同时,校验不通过。当校验不通过时,所述广告插入设备301可以向监控中心发送校验失败的告警消息,所述告警消息中可以包含所述第一校验值;所述广告插入设备301也可以根据监控策略处理所述媒体内容,例如停止转发所述媒体内容。所述监控策略可以由监控中心下发,也可以本地生成。If the advertisement insertion device 301 acquires the first verification value, the advertisement insertion device 301 may verify the received media content to determine whether the media content has been illegally tampered with, deleted or replaced. The advertisement insertion device 301 can obtain a local check value according to the locally received media content and encryption algorithm. The encryption algorithm is the same as the encryption algorithm for obtaining the first check value. The advertisement insertion device 301 may run the encryption algorithm through hardware. The advertisement insertion device 301 compares the local check value with the first check value. When the local check value is the same as the first check value, the check passes, and the advertisement insertion device 301 forwards the media content. When the local check value is different from the first check value, the check fails. When the verification fails, the advertisement insertion device 301 can send a warning message of verification failure to the monitoring center, and the warning message can include the first verification value; A policy processes the media content, for example, stops forwarding the media content. The monitoring strategy can be issued by the monitoring center, or generated locally.

所述系统还可以包括终端303,用于接收所述媒体内容。The system may further include a terminal 303, configured to receive the media content.

所述终端303包括机顶盒,IPTV电视机,具有IPTV功能的移动终端等。The terminal 303 includes a set-top box, an IPTV television set, a mobile terminal with an IPTV function, and the like.

所述广告插入设备301可以在本地存储的广告内容中选择合适的广告,获取对应的广告内容,也可以从其他设备,例如广告服务器获取广告内容。The advertisement insertion device 301 may select a suitable advertisement from locally stored advertisement contents, and obtain the corresponding advertisement contents, or obtain the advertisement contents from other devices, such as an advertisement server.

举例来说,当监测到所述媒体内容中有广告时段时,所述广告插入设备301向广告服务器发送插播请求消息,所述插播请求消息中携带所述广告时段信息。广告服务器向所述广告插入设备301回应插播应答消息。当广告服务器根据所述广告时段信息确定允许在所述广告时段插播广告时,广告服务器向所述广告插入设备301发送拼接请求消息,所述广告插入设备301向广告服务器回应拼接应答消息。所述广告插入设备301获取广告服务器提供的所述广告时段对应的广告内容。For example, when it is detected that there is an advertisement period in the media content, the advertisement insertion device 301 sends an insertion request message to an advertisement server, and the advertisement insertion request message carries the advertisement period information. The advertisement server responds to the advertisement insertion device 301 with an insertion response message. When the advertisement server determines to allow advertisement insertion in the advertisement period according to the advertisement period information, the advertisement server sends a splicing request message to the advertisement inserting device 301, and the advertisement inserting device 301 responds to the advertisement server with a splicing response message. The advertisement insertion device 301 obtains the advertisement content corresponding to the advertisement period provided by the advertisement server.

广告服务器可以向监控中心302发送广告决策信息,所述广告决策信息包括广告时段信息和是否允许插播指示(例如OK表示允许插播,NO表示不允许插播)。The advertisement server may send the advertisement decision information to the monitoring center 302, the advertisement decision information includes advertisement period information and an indication of whether to allow the insertion (for example, OK indicates that the insertion is allowed, and NO indicates that the insertion is not allowed).

所述广告插入设备301可以根据所述广告内容和加密算法,得到所述第二校验值。该加密算法与获取第一校验值的加密算法相同。所述广告插入设备301可以通过硬件运行所述加密算法。如果第一校验值包括根据媒体内容中的各个帧和加密算法得到的各个校验值,则第二校验值包括根据广告内容中的各个帧和加密算法得到的各个校验值。如果第一校验值包括根据媒体内容中的关键帧和加密算法得到的各个校验值,则第二校验值包括根据广告内容中的相应关键帧和加密算法得到的各个校验值。The advertisement insertion device 301 may obtain the second check value according to the advertisement content and the encryption algorithm. The encryption algorithm is the same as the encryption algorithm for obtaining the first check value. The advertisement insertion device 301 may run the encryption algorithm through hardware. If the first check value includes each check value obtained according to each frame in the media content and the encryption algorithm, then the second check value includes each check value obtained according to each frame in the advertisement content and the encryption algorithm. If the first check value includes each check value obtained according to the key frame in the media content and the encryption algorithm, then the second check value includes each check value obtained according to the corresponding key frame in the advertisement content and the encryption algorithm.

所述系统还可以包括下游监控设备304。The system may also include downstream monitoring equipment 304 .

当所述媒体内容中包括所述第一校验值时,所述广告插入设备301可以用所述第二校验值更新所述媒体内容中携带的所述第一校验值,以使下游监控设备304根据第二校验值对媒体内容中的广告内容部分进行校验。When the media content includes the first check value, the advertisement insertion device 301 may use the second check value to update the first check value carried in the media content, so that the downstream The monitoring device 304 verifies the advertisement content part in the media content according to the second verification value.

所述广告插入设备301也可以发送校验值更新消息,以使下游监控设备304用所述第二校验值更新所述第一校验值,并根据所述第二校验值对媒体内容中的广告内容部分进行校验。所述校验值更新消息中包含所述第二校验值。所述广告插入设备301发送校验值更新消息以用第二校验值更新所述第一校验值的方式,可以适用于第一校验值携带在媒体内容中的情况,也可以适用于第一校验值来自监控中心302的情况。The advertisement inserting device 301 may also send a check value update message, so that the downstream monitoring device 304 updates the first check value with the second check value, and updates the media content according to the second check value. The ad content section in the validation. The check value update message includes the second check value. The manner in which the advertisement inserting device 301 sends a verification value update message to update the first verification value with the second verification value may be applicable to the case where the first verification value is carried in the media content, and may also be applicable to The first verification value comes from the situation of the monitoring center 302 .

所述校验值更新消息中还可以包含所述广告插入设备301的身份信息,所述广告时段信息等。The verification value update message may also include the identity information of the advertisement insertion device 301, the advertisement period information, and the like.

所述广告插入设备301可以向所述监控中心302发送校验值更新请求消息,以使监控中心302向下游监控设备304发送所述第二校验值,使下游监控设备304用所述第二校验值更新所述第一校验值。当所述校验值更新消息中包含所述广告插入设备301的身份信息时,监控中心302可以根据该身份信息判断所述校验值更新消息是否合法。当监控中心302确定所述校验值更新消息合法时,向下游监控设备304发送所述第二校验值,使下游监控设备304用所述第二校验值更新所述第一校验值。The advertisement insertion device 301 may send a verification value update request message to the monitoring center 302, so that the monitoring center 302 sends the second verification value to the downstream monitoring device 304, so that the downstream monitoring device 304 uses the second verification value. The check value updates the first check value. When the verification value update message contains the identity information of the advertisement insertion device 301, the monitoring center 302 can judge whether the verification value update message is legal according to the identity information. When the monitoring center 302 determines that the verification value update message is legal, it sends the second verification value to the downstream monitoring device 304, so that the downstream monitoring device 304 updates the first verification value with the second verification value .

所述广告插入设备301也可以向下游监控设备304发送所述校验值更新消息,以使下游监控设备304根用所述第二校验值更新所述第一校验值。当所述校验值更新消息中包含所述广告插入设备301的身份信息时,下游监控设备304可以根据该身份信息判断所述校验值更新消息是否合法。当下游监控设备304确定所述校验值更新消息合法时,用所述第二校验值更新所述第一校验值。The advertisement insertion device 301 may also send the verification value update message to the downstream monitoring device 304, so that the downstream monitoring device 304 can use the second verification value to update the first verification value. When the check value update message includes the identity information of the advertisement insertion device 301, the downstream monitoring device 304 may judge whether the check value update message is legal according to the identity information. When the downstream monitoring device 304 determines that the check value update message is legal, it updates the first check value with the second check value.

所述身份信息可以是数字证书或安全联盟,监控中心302或下游监控设备304可以根据所述数字证书或安全联盟认证所述广告插入设备。当认证通过时,所述校验值更新消息合法。The identity information may be a digital certificate or a security association, and the monitoring center 302 or the downstream monitoring device 304 may authenticate the advertisement insertion device according to the digital certificate or the security association. When the authentication passes, the check value update message is valid.

所述身份信息也可以是设备地址,例如IP地址,MAC地址等,监控中心302或下游监控设备304可以根据所述设备地址,判断所述广告插入设备301是否是可信设备。当所述广告插入设备301是可信设备时,所述校验值更新消息合法。The identity information may also be a device address, such as IP address, MAC address, etc., and the monitoring center 302 or downstream monitoring device 304 may judge whether the advertisement insertion device 301 is a trusted device according to the device address. When the advertisement insertion device 301 is a trusted device, the check value update message is legal.

监控中心302也可以进一步根据所述广告时段信息判断广告插入是否合法。例如,当所述校验值更新消息合法,且监控中心根据所述广告时段信息和广告服务器提供的广告决策信息确定允许广告插入时,则广告插入合法。The monitoring center 302 may further judge whether the advertisement insertion is legal according to the advertisement period information. For example, when the verification value update message is legal, and the monitoring center determines that the advertisement insertion is allowed according to the advertisement period information and the advertisement decision information provided by the advertisement server, then the advertisement insertion is legal.

当监控中心302收到所述校验值更新消息时,监控中心302可以向所述广告插入设备301回应校验值更新应答消息。例如,监控中心302回应校验值更新应答消息,所述校验值更新应答消息中可以携带OK表示广告插入合法,或者携带NO表示广告插入不合法。所述广告插入设备301接收所述校验值更新应答消息。When the monitoring center 302 receives the verification value update message, the monitoring center 302 may respond to the advertisement insertion device 301 with a verification value update response message. For example, the monitoring center 302 responds with a verification value update response message, and the verification value update response message may carry OK to indicate that the advertisement insertion is legal, or carry NO to indicate that the advertisement insertion is illegal. The advertisement insertion device 301 receives the verification value update response message.

所述广告插入设备301可以通过数字节目插播技术在所述广告时段插入广告内容。The advertisement inserting device 301 may insert advertisement content in the advertisement period through digital program insertion technology.

可选的,所述广告插入设备301也可以在收到监控中心302回应的更新应答消息后,当广告插入合法时,在所述广告时段插入广告内容。Optionally, the advertisement insertion device 301 may also insert the advertisement content in the advertisement period when the advertisement insertion is legal after receiving the update response message from the monitoring center 302 .

所述广告插入设备301转发所述插入广告内容的媒体内容。The advertisement insertion device 301 forwards the media content inserted into the advertisement content.

所述下游监控设备304可以根据所述第二校验值对所述媒体内容中的广告内容部分进行校验。当校验通过时,向所述终端303转发所述插入广告内容的媒体内容。The downstream monitoring device 304 may verify the advertisement content part in the media content according to the second verification value. When the verification is passed, the media content inserted into the advertisement content is forwarded to the terminal 303 .

所述终端303还用于接收所述插入广告内容的媒体内容。The terminal 303 is also configured to receive the media content inserted into the advertisement content.

采用本发明实施例提供的技术方案,可以支持并监控合法的广告插入,同时通过对媒体内容的校验,可以监控内容在传输过程中是否被篡改、删除或替换,保证内容被正确传输到终端用户。The technical solution provided by the embodiment of the present invention can support and monitor legal advertisement insertion, and at the same time, through the verification of the media content, it can monitor whether the content is tampered with, deleted or replaced during the transmission process, ensuring that the content is correctly transmitted to the terminal user.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于计算机可读存储介质中,所述存储介质可以是ROM/RAM,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the method of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium can be a ROM /RAM, disk or CD, etc.

以上所述,仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。The above is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed in the present invention can easily think of changes or Replacement should be covered within the protection scope of the present invention.

Claims (10)

1.一种广告插入方法,其特征在于,包括:1. An advertisement insertion method, characterized in that, comprising: 广告插入设备获取媒体内容中的广告时段信息;The advertisement inserting device obtains the advertisement period information in the media content; 获取所述广告时段对应的广告内容;Obtaining the advertisement content corresponding to the advertisement period; 用第二校验值更新第一校验值,所述第一校验值是根据所述媒体内容和加密算法得到的校验值,所述第二校验值是根据所述广告内容和加密算法得到的校验值;Update the first check value with the second check value, the first check value is a check value obtained according to the media content and encryption algorithm, and the second check value is based on the advertisement content and encryption algorithm The check value obtained by the algorithm; 在所述媒体内容中的所述广告时段插入所述广告内容;inserting the advertisement content in the advertisement slot in the media content; 转发所述插入广告内容的媒体内容。Forwarding the media content inserted into the advertisement content. 2.根据权利要求1所述的方法,其特征在于,所述用第二校验值更新第一校验值,具体包括:2. The method according to claim 1, wherein said updating the first check value with the second check value specifically comprises: 发送校验值更新消息,以使下游监控设备用所述第二校验值更新所述第一校验值,所述校验值更新消息中包含所述第二校验值。Sending a check value update message, so that the downstream monitoring device uses the second check value to update the first check value, and the check value update message includes the second check value. 3.根据权利要求2所述的方法,其特征在于,所述发送校验值更新消息,以使下游监控设备用所述第二校验值更新所述第一校验值,具体包括:3. The method according to claim 2, wherein the sending a check value update message, so that the downstream monitoring device updates the first check value with the second check value, specifically comprises: 向监控中心发送所述校验值更新消息,所述校验值更新消息中还包含所述广告插入设备的身份信息;Sending the verification value update message to the monitoring center, the verification value update message also includes the identity information of the advertisement insertion device; 以使监控中心根据所述广告插入设备的身份信息确定广告插入合法时,向下游监控设备发送所述第二校验值,使下游监控设备用所述第二校验值更新所述第一校验值。When the monitoring center determines that the advertisement insertion is legal according to the identity information of the advertisement insertion device, it sends the second verification value to the downstream monitoring device, so that the downstream monitoring device updates the first verification value with the second verification value. check value. 4.根据权利要求2所述的方法,其特征在于,所述发送校验值更新消息,以使下游监控设备用所述第二校验值更新所述第一校验值,具体包括:4. The method according to claim 2, wherein the sending a check value update message, so that the downstream monitoring device updates the first check value with the second check value, specifically comprises: 向下游监控设备发送所述校验值更新消息,所述校验值更新消息中还包含所述广告插入设备的身份信息;Sending the verification value update message to the downstream monitoring device, the verification value update message also includes the identity information of the advertisement insertion device; 以使下游监控设备根据所述广告插入设备的身份信息确定广告插入合法时,用所述第二校验值更新所述第一校验值。When the downstream monitoring device determines that the advertisement insertion is legal according to the identity information of the advertisement insertion device, the first check value is updated with the second check value. 5.根据权利要求1所述的方法,其特征在于,所述用第二校验值更新第一校验值,具体包括:5. The method according to claim 1, wherein said updating the first check value with the second check value specifically comprises: 当所述媒体内容中包括所述第一校验值时,用所述第二校验值更新所述媒体内容中的所述第一校验值。When the media content includes the first check value, update the first check value in the media content with the second check value. 6.一种广告插入设备,其特征在于,包括:6. An advertisement insertion device, comprising: 获取模块,用于获取媒体内容的广告时段信息;还用于获取所述广告时段对应的广告内容;The obtaining module is used to obtain the advertisement period information of the media content; it is also used to obtain the advertisement content corresponding to the advertisement period; 更新模块,用第二校验值更新第一校验值,所述第一校验值是根据所述媒体内容和加密算法得到的校验值,所述第二校验值是根据所述广告内容和加密算法得到的校验值;An update module, updating the first check value with a second check value, the first check value is a check value obtained according to the media content and encryption algorithm, and the second check value is based on the advertisement The content and the verification value obtained by the encryption algorithm; 插入模块,用于在所述媒体内容中的所述广告时段插入广告内容;an insertion module, configured to insert advertisement content in the advertisement period in the media content; 发送器,用于转发所述插入广告内容的媒体内容。A sender, configured to forward the media content inserted into the advertisement content. 7.根据权利要求6所述的广告插入设备,其特征在于,所述更新模块具体用于:7. The advertisement insertion device according to claim 6, wherein the update module is specifically used for: 当所述媒体内容中包括所述第一校验值时,用所述第二校验值更新所述媒体内容中的所述第一校验值。When the media content includes the first check value, update the first check value in the media content with the second check value. 8.根据权利要求6所述的广告插入设备,其特征在于,所述更新模块具体用于:8. The advertisement insertion device according to claim 6, wherein the update module is specifically used for: 发送校验值更新消息,以使下游监控设备用所述第二校验值更新所述第一校验值,所述校验值更新消息中包含所述第二校验值。Sending a check value update message, so that the downstream monitoring device uses the second check value to update the first check value, and the check value update message includes the second check value. 9.一种广告插入系统,其特征在于,包括广告插入设备和监控中心,其中:9. An advertisement insertion system, comprising an advertisement insertion device and a monitoring center, wherein: 所述广告插入设备,用于获取媒体内容中的广告时段信息;获取所述广告时段对应的广告内容;用第二校验值更新第一校验值,所述第一校验值是根据所述媒体内容和加密算法得到的校验值,所述第二校验值是根据所述广告内容和加密算法得到的校验值;在所述媒体内容中的所述广告时段插入所述广告内容;转发所述插入广告内容的媒体内容。The advertisement inserting device is used to obtain the advertisement period information in the media content; obtain the advertisement content corresponding to the advertisement period; update the first check value with the second check value, and the first check value is based on the The check value obtained by the media content and the encryption algorithm, the second check value is the check value obtained according to the advertisement content and the encryption algorithm; the advertisement content is inserted into the advertisement period in the media content ; Forwarding the media content inserted into the advertisement content. 10.根据权利要求9所述的系统,其特征在于,所述系统还包括终端,用于接收所述插入广告内容的媒体内容。10. The system according to claim 9, further comprising a terminal for receiving the media content inserted into the advertisement content.
CN201180000524.5A 2011-05-25 2011-05-25 Advertisement insertion method, device and system Active CN102217319B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2011/074679 WO2011144086A2 (en) 2011-05-25 2011-05-25 Advertisement insertion method, device and system

Publications (2)

Publication Number Publication Date
CN102217319A CN102217319A (en) 2011-10-12
CN102217319B true CN102217319B (en) 2013-02-27

Family

ID=44746767

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201180000524.5A Active CN102217319B (en) 2011-05-25 2011-05-25 Advertisement insertion method, device and system

Country Status (2)

Country Link
CN (1) CN102217319B (en)
WO (1) WO2011144086A2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107563806B (en) * 2017-08-29 2020-10-09 努比亚技术有限公司 Advertisement interaction regulation and control method and device and computer readable storage medium
US11166054B2 (en) 2018-04-06 2021-11-02 The Nielsen Company (Us), Llc Methods and apparatus for identification of local commercial insertion opportunities
CN112204989B (en) * 2018-12-20 2022-06-14 海信视像科技股份有限公司 Broadcast signal receiving apparatus, advertisement replacing method, and advertisement replacing system
US11082730B2 (en) 2019-09-30 2021-08-03 The Nielsen Company (Us), Llc Methods and apparatus for affiliate interrupt detection

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212673A (en) * 2006-12-29 2008-07-02 盛趣信息技术(上海)有限公司 Device and method for inserting and controlling advertisements in audio/video playing
CN101271488A (en) * 2007-04-23 2008-09-24 盛趣信息技术(上海)有限公司 Method for advertisement insertion in game

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020083441A1 (en) * 2000-08-31 2002-06-27 Flickinger Gregory C. Advertisement filtering and storage for targeted advertisement systems

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212673A (en) * 2006-12-29 2008-07-02 盛趣信息技术(上海)有限公司 Device and method for inserting and controlling advertisements in audio/video playing
CN101271488A (en) * 2007-04-23 2008-09-24 盛趣信息技术(上海)有限公司 Method for advertisement insertion in game

Also Published As

Publication number Publication date
WO2011144086A2 (en) 2011-11-24
WO2011144086A3 (en) 2012-04-26
CN102217319A (en) 2011-10-12

Similar Documents

Publication Publication Date Title
US12045325B2 (en) Reception device, transmission device, and data processing method
US11689782B2 (en) Content distribution pipeline watermarking
CN101534433B (en) Streaming Media Encryption Method
CN101902477B (en) Transmission system, reception system, the recognition methods of media stream and system
TWI750114B (en) Method and device for adaptively streaming video content
US8813115B2 (en) Service access method, device, and system
US8279342B2 (en) System for receiving and storing broadcast content, and device for reception and storage
CN107810613A (en) The method and apparatus that program and device class right are provided in the broadcast stream using inventory file
CN105308980A (en) Real-time anti-piracy for broadcast streams
JP2007518294A (en) Video file encryption method and digital copyright management method using the same
CN109218752B (en) Video playing, providing and detecting method, set top box, media server and system
CN102217319B (en) Advertisement insertion method, device and system
US8970668B2 (en) High bandwidth streaming to media player
WO2011029379A1 (en) Method and electronic program guide server for interactive internet protocol television child lock control
CN111294639A (en) System and method for preventing video from being tampered during real-time online sharing and browsing
CN110740390A (en) video and audio credible playing method for generating associated abstract based on interframe extraction
US7865723B2 (en) Method and apparatus for multicast delivery of program information
CN101299715B (en) Compulsion multicast method and system, route equipment and terminal equipment
WO2012016434A1 (en) Management method for authentication parameters and terminal
US8842823B2 (en) Technique for determining usage of encrypted media content
EP4082216A1 (en) Multimedia streaming techniques using different security policies
CN102523503A (en) Video-on-demand control method and relative device and system
CN101009811A (en) A mark-based supervision method for the network TV content

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
TR01 Transfer of patent right

Effective date of registration: 20201118

Address after: 215500 No.13, Caotang Road, Changshu, Suzhou, Jiangsu Province

Patentee after: Changshu intellectual property operation center Co.,Ltd.

Address before: Unit 2414-2416, main building, no.371, Wushan Road, Tianhe District, Guangzhou City, Guangdong Province

Patentee before: GUANGDONG GAOHANG INTELLECTUAL PROPERTY OPERATION Co.,Ltd.

Effective date of registration: 20201118

Address after: Unit 2414-2416, main building, no.371, Wushan Road, Tianhe District, Guangzhou City, Guangdong Province

Patentee after: GUANGDONG GAOHANG INTELLECTUAL PROPERTY OPERATION Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right
CP02 Change in the address of a patent holder

Address after: 215500 5th floor, building 4, 68 Lianfeng Road, Changfu street, Changshu City, Suzhou City, Jiangsu Province

Patentee after: Changshu intellectual property operation center Co.,Ltd.

Address before: No.13 caodang Road, Changshu City, Suzhou City, Jiangsu Province

Patentee before: Changshu intellectual property operation center Co.,Ltd.

CP02 Change in the address of a patent holder