WO2012071931A1 - Method and system for dynamically inserting cut-in program into segmented program - Google Patents
Method and system for dynamically inserting cut-in program into segmented program Download PDFInfo
- Publication number
- WO2012071931A1 WO2012071931A1 PCT/CN2011/079953 CN2011079953W WO2012071931A1 WO 2012071931 A1 WO2012071931 A1 WO 2012071931A1 CN 2011079953 W CN2011079953 W CN 2011079953W WO 2012071931 A1 WO2012071931 A1 WO 2012071931A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- program
- playlist
- interstitial
- normal
- data
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 44
- 230000011218 segmentation Effects 0.000 claims abstract description 64
- 230000037431 insertion Effects 0.000 claims abstract description 58
- 238000003780 insertion Methods 0.000 claims abstract description 29
- 238000012545 processing Methods 0.000 claims description 40
- 238000007906 compression Methods 0.000 claims description 6
- 230000006835 compression Effects 0.000 claims description 5
- 238000010586 diagram Methods 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000018109 developmental process Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11B—INFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
- G11B27/00—Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
- G11B27/02—Editing, e.g. varying the order of information signals recorded on, or reproduced from, record carriers
- G11B27/031—Electronic editing of digitised analogue information signals, e.g. audio or video signals
- G11B27/036—Insert-editing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
- H04N21/23424—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving splicing one content stream with another content stream, e.g. for inserting or substituting an advertisement
Definitions
- the present invention relates to a program insertion technique, and more particularly to a method and system for realizing dynamic insertion of a program when a segmented program is transmitted in a multimedia system.
- the segmented program refers to segmenting the program during the production of the program to generate a plurality of segmented programs and playlists.
- the playlist is first acquired, and then the segmented program is sequentially played according to the playlist.
- This method can easily modify and replace the program content, and is compatible with the existing Content Delivery Network (CDN) system.
- CDN Content Delivery Network
- the existing segmented program advertisement insertion technology is to add an advertisement segmentation program before the segmentation program is completed, and insert the description information of the advertisement segment in the playlist before the client obtains the playlist.
- the playlist is first obtained, and then the playlist is played in order, and the content of the advertisement will be displayed.
- it will become very difficult to insert a commercial for the client during the broadcast of the program, especially on the web CDN system, since the web server is Stateless, it is more difficult to insert ads into customers who are watching segmented shows.
- the technical problem to be solved by the present invention is to provide a method and system for dynamically inserting programs in a segmented program. Even if the client is playing a program, the program can be inserted, and the program can be dynamically inserted, which is very flexible. practical.
- a method for dynamically inserting a program in a segmented program comprising:
- the method also includes:
- Generating a playlist of a new interstitial program according to the new interstitial program positioning a playlist inserted into the interstitial program, updating a playlist of the interstitial program to a playlist of the new interstitial program, to update the interstitial program.
- the method also includes:
- the steps of segmenting the interstitial program include:
- the interlaced program is divided into one or more logical segment data or physical segment data according to logical or physical segmentation, and each segment data starts with a random access unit;
- the decoding information of each segment data is inserted into each segment data.
- the method also includes:
- inserting the playlist of the interstitial program into the segment data of the normal program comprises: inserting an interstitial identifier in a normal program segment of the playlist inserted into the interstitial program; correspondingly, according to the normal program
- the step of acquiring the playlist of the interstitial program in the segment data of a normal program includes: when playing a normal program according to the playlist of the normal program, if it is determined that a normal program is The segmentation data includes the insertion identifier, and the playlist of the inserted program is obtained from the segmentation data of the normal program.
- the step of inserting the playlist of the interstitial program into the segment data of the normal program includes: determining a data length of the playlist of the interstitial program, and if it is greater than a preset data length, compressing the playlist, Insert the compressed playlist and a compressed logo into the positive In the segmentation data of the regular program;
- the step of acquiring the playlist of the interstitial program in the segment data of a normal program includes: when playing the normal program according to the playlist of the normal program, If it is determined that the segmentation data of a normal program includes the compression identifier, the playlist of the interstitial program is obtained from the segment data of the normal program, and then decompressed.
- the step of inserting the playlist of the interstitial program into the segment data of the normal program includes: generating a uniform resource locator URL of the playlist of the interstitial program; and playing the playlist of the interstitial program in the form of its URL Insert into the segmentation data of the normal program;
- the step of acquiring the playlist of the interstitial program in the segment data of a certain normal program comprises: acquiring in the segment data of a normal program
- the playlist of the interstitial program is acquired according to the URL.
- a system for dynamically inserting a program in a segmented program comprising: a front-end program segmentation device, a program insertion processing device, and a terminal program playback device, wherein:
- the front-end program segmentation device is configured to: segment the intervening program to generate a playlist of the interstitial program;
- the program insertion processing device is configured to: insert a playlist of the interstitial program into segment data of a normal program;
- the terminal program playing device is configured to: when the normal program is played according to the playlist of the normal program, if the playlist of the interstitial program is acquired in the segment data of a certain normal program, first according to the interstitial program The playlist plays the inserted program, and after the play of the inserted program is completed, the normal program is continued to be played according to the playlist of the normal program.
- the program insertion processing device is further configured to:
- Generating a playlist of a new interstitial program according to the new interstitial program positioning a playlist inserted into the interstitial program, updating a playlist of the interstitial program to a playlist of the new interstitial program, to update the interstitial program.
- the program insertion processing device is further configured to: Positioning to a position of a playlist inserted into the interstitial program, deleting a playlist of the interstitial program to delete the interstitial program.
- the front-end program segmentation device includes: a first segment processing module and a second segment processing module, where:
- the first segment processing module is configured to: divide the inserted program into one or more logical segment data or physical segment data according to logical or physical segmentation, and each segment data starts with a random access unit;
- the second segment processing module is configured to: insert decoding information of each segment data into each segment data.
- the program insertion processing device is further configured to:
- the playlist of the normal program is searched, and the segmentation data of the normal program played at the time of the insertion is obtained, and the segmentation data of the normal program inserted by the playlist of the interstitial program is determined.
- the program insertion processing device is further configured to: insert a cut-in identifier in a normal program segment inserted into a playlist of the interstitial program;
- the terminal program playing device is further configured to: when the normal program is played according to the playlist of the normal program, if it is determined that the segment data of a normal program includes the insertion identifier, the segment data from the normal program Obtaining a playlist of the interstitial program.
- the program insertion processing device is further configured to: before inserting the playlist of the interstitial program, determining a data length of the playlist of the interstitial program, if it is greater than a preset data length, compressing the program Inserting a playlist of the compressed interstitial program and a compressed identifier into the segmentation data of the normal program;
- the terminal program playing device is further configured to: when the normal program is played according to the playlist of the normal program, if it is determined that the segmentation data of a normal program includes the compressed identifier, the segment data from the normal program After the playlist of the interstitial program is obtained, it is also decompressed.
- the front-end program segmentation device is further configured to: generate a uniform resource locator URL of the playlist of the interstitial program;
- the program insertion processing device is further configured to: insert a URL of the interstitial program as a playlist of the interstitial program into segment data of a normal program;
- the terminal program playing device is further configured to: when the URL is obtained in the segment data of a normal program, acquire a playlist of the interstitial program according to the URL.
- the method and system for dynamically inserting a program in a segmented program can realize the insertion of a program even if the client is playing a program, and can truly realize the dynamic insertion of the program, which is very flexible and practical, and can Applicable to web CDN system.
- FIG. 1 is a flowchart of a method for dynamically inserting a program in a segmented program according to an embodiment of the present invention
- FIG. 2 is a flowchart of a method for segmenting an interpolated program according to an embodiment of the present invention
- FIG. 4 is a schematic diagram of a method for dynamically inserting a program in a segmented program in a web CDN system according to an embodiment of the present invention
- FIG. 5 is a system block diagram of a dynamic insertion program in a segmented program according to an embodiment of the present invention
- FIG. 6 is a flow chart of a method for implementing insertion of an advertisement program through a web CDN system according to an application example of the present invention
- FIG. 7 is a schematic diagram of an MPEG-2 TS segment of a URL encapsulating an advertisement playlist according to an application example of the present invention.
- Fig. 8 is a schematic diagram showing an implementation process of inserting an advertisement program through a web CDN system according to an application example of the present invention.
- FIG. 1 there is shown a dynamic insertion program in a segmented program according to an embodiment of the present invention.
- Method including the steps:
- Step S101 segment the intervening program to generate a playlist of the interstitial program
- Step S102 Insert the playlist of the interstitial program into the segment data of the normal program;
- Step S103 When playing a normal program according to the playlist of the normal program, if the game is obtained in the segment data of a certain normal program The playlist of the interstitial program first plays the interlaced program according to the playlist of the interstitial program, and after the play of the interstitial program is completed, continues to play the normal program according to the playlist of the normal program.
- the present invention subtly inserts a playlist of the inserted program into the segment data of the normal program, and the insert processing does not modify the playlist of the normal program, so that even when the program is played by the client, the insert processing can be performed, thereby real Dynamic insertion is very flexible.
- step S101 may be as shown in FIG. 2, including the steps:
- Step S201 The inserted program is divided into one or more logical segment data or physical segment data according to logical or physical segmentation, and each segment data starts with a random access unit;
- Each segmentation data begins with a random access unit to ensure that each segmentation data can be independently decoded and played.
- any data unit is a random access unit.
- a random access unit refers to a key frame.
- Step S202 Insert decoding information of each segment data into each segment data.
- the decoding information of each piece of segment data is separately inserted in front of each piece of segment data.
- the decoding information of the segment data is obtained first, and then decoded according to the decoding information.
- the segmentation data may be separately inserted into other locations of each segment data, and in the parsing process, the decoding information is located by means of a pointer or the like, and the segment data is decoded according to the data.
- the advertisement playlist describing the segmentation data can be generated according to the segmentation data obtained after the process of step S202.
- an interstitial identifier may also be inserted in the normal program segment of the playlist inserted into the interstitial program.
- the playlist of the interstitial program is acquired from the segmentation data of the normal program.
- the playlist of the interstitial program in order to save the network transmission data, preferably, when the playlist of the interstitial program is greater than a preset data length, it may be compressed, and then the compressed interlaced program is The playlist and its compressed identification are inserted into the segmentation data of the normal program.
- the step S103 if the compression identifier is determined, the compressed playlist of the inserted program needs to be decompressed to obtain a playlist of the inserted program.
- the method further includes: searching for a playlist of the normal program according to the preset insertion time, obtaining segment data of the normal program played when the insertion time is reached, and determining to insert the playlist of the inserted program. Segmentation data for normal programs. Thereby, when the insertion time is reached, the interlaced program can be played, and the timed insertion program can be realized.
- step S102 the inserted program may be updated or deleted, and the specific processing manner is as follows:
- the playlist of the interstitial program may be updated to the new interstitial by updating a playlist of the new interstitial program according to the new interstitial program, positioning the playlist inserted into the interstitial program The way the playlist of the program is implemented.
- the playlist of the interstitial program can be deleted by locating the position of the playlist inserted into the interstitial program.
- the present invention also proposes the following solution. As shown in FIG. 3, the method includes the following steps:
- Step S301 Generate a uniform resource locator URL of the playlist of the interstitial program, to
- the URL identifies a playlist of the interstitial program
- Step S302 When performing the program insertion processing, replacing the playlist of the interstitial program with the URL of the playlist of the interstitial program, performing an insert, update, and delete operation;
- Step S303 When the URL is obtained in the segment data of a normal program during the program playing process, the playlist of the interstitial program is obtained according to the URL.
- the playlist of the normal program may be identified by the URL of the playlist of the normal program, so that the playlist of the normal program may be acquired according to the URL of the playlist of the normal program.
- FIG. 4 the figure shows a schematic diagram of a process in which a server interacts with a client in a web CDN system to dynamically insert a program in a segmented program.
- an embodiment of the present invention further provides a system for dynamically inserting a program in a segmented program.
- the system includes: a front-end program segmentation device, a program insertion processing device, and a terminal program playback device.
- the front-end program segmentation device is configured to: segment the intervening program to generate a playlist of the interstitial program;
- the program insertion processing device is configured to: insert a playlist of the interstitial program into segment data of a normal program;
- the terminal program playing device is configured to: when the normal program is played according to the playlist of the normal program, if the playlist of the interstitial program is acquired in the segment data of a certain normal program, first according to the interstitial program The playlist plays the inserted program, and after the play of the inserted program is completed, the normal program is continued to be played according to the playlist of the normal program.
- the program insertion processing device may be further configured to: generate a playlist of a new interstitial program according to the new interstitial program, locate a location of the playlist inserted into the interstitial program, and update the playlist of the interstitial program to A playlist of the new interstitial program to update the interstitial section.
- the program insertion processing device may be further configured to: locate a location of a playlist inserted into the interstitial program, and delete a playlist of the interstitial program to delete the interstitial program.
- the front-end program segmentation device may include: a first segment processing module and a second segment processing module, where:
- the first segment processing module is configured to: divide the inserted program into one or more logical segment data or physical segment data according to logical or physical segmentation, and each segment data starts with a random access unit;
- the second segment processing module is configured to: insert decoding information of each segment data into each segment data.
- the program insertion processing device may be further configured to: check according to a preset insertion time Looking up a playlist of a normal program, obtaining segmentation data of a normal program played when the insertion time is reached, to determine segmentation data of a normal program inserted by the playlist of the interstitial program.
- the program insertion processing device may be further configured to: insert an interstitial identifier into a normal program segment of the playlist inserted into the interstitial program.
- the terminal program playing device when the normal program is played according to the playlist of the normal program, if it is determined that the segment data of a normal program includes the interstitial identifier, the segment data of the normal program is obtained. A playlist of the inserted program.
- the program insertion processing device may be further configured to: before inserting the playlist of the interstitial program, first determining a data length of the playlist of the interstitial program, if it is greater than a preset data length, performing the The compression process inserts the playlist of the compressed interim program and a compressed identification into the segmentation data of the normal program. If the terminal program playing device plays a normal program according to the playlist of the normal program, if it is determined that the segmentation data of a normal program includes the compressed identifier, the segmentation data of the normal program is obtained from the segmentation data of the normal program. After the playlist of the inserted program is described, it is also decompressed.
- the front-end program segmentation device may be further configured to: generate a uniform resource locator URL of the playlist of the interstitial program.
- the program insertion processing device may be further configured to: insert the URL of the interstitial program as a playlist of the interstitial program into the segment data of the normal program.
- the terminal program playing device may be further configured to: when the URL is obtained in the segment data of a normal program, acquire a playlist of the interstitial program according to the URL.
- This application example uses two moving picture expert group (MPEG, Moving Picture Export Group) -2 transport stream (TS, Transport Stream) files A and B as the program data source and advertising data source, respectively, these two MPEG-2 TS
- the stream includes a QVGA Quarter Video Graphic Array (QVGA) image stream encoded as H.264 and an AAC (Advanced Audio Coding) audio stream.
- the program data source is processed into a plurality of segmented programs, and the program file names are filenameA- 1.ts, filenameA-2.ts, filenameA-50.ts - a total of 50 files, and a program playlist is generated accordingly.
- the method of the invention is equally applicable to the case of multiple streams.
- the method for implementing the interstitial advertisement by using the application example of the present invention is as shown in FIG. 6, and includes the steps:
- Step S601 Acquire information related to decoding of the advertisement program
- the decoding related information is extracted from the advertisement data source MPEG-2 TS file filenameB.ts, and includes a TS package of a program related table (PAT, Program Association Table) and a program map table (PMT, Program Map Table).
- PAT Program Association Table
- PMT Program Map Table
- Step S602 Divide the advertisement program into a plurality of small segment files
- the MPEG-2 TS file filenameB.ts is divided into a plurality of segment data of 20 seconds in length from the position of the key frame of the video image, and each segment data is an MPEG-2 TS file, and each segment is segmented.
- the decoding units of the data start with image key frames.
- the TS packets of the respective decoding related information PAT and PMT are respectively inserted in front of the respective segment data to obtain a plurality of MPEG-2 TS small files
- the advertisement file names are filenameB-1.ts, filenameB-2.ts, filenameB, respectively. -lO.ts a total of 10 files.
- Step S603 Generate a playlist of the advertisement program
- the playlist B of the advertisement program is generated in the Extensible Markup Language (XML) format.
- XML Extensible Markup Language
- Step S604 Construct a uniform resource location identifier URL-B of the advertisement playlist
- the data after segment B of the program is placed on the storage device of the HTTP WEB server, and a uniform resource location identifier URL-B is generated to identify the playlist of the B program.
- Step S605 Insert the URL-B of the advertisement playlist into the program segment data
- the URL-B of the advertisement playlist may be encapsulated into a TS packet.
- RLT Resource Location Table
- FIG. 1 A schematic diagram of an MPEG-2 TS segmentation of a Uniform Resource Locator URL encapsulating an ad playlist is shown in FIG.
- the advertisement insertion device inserts the advertisement B program after 10 minutes according to the demand, the advertisement insertion device retrieves the play list of the A program, and locates the A program that should be played after 10 minutes.
- the Fth segmentation data When the advertisement needs to be inserted during the program playing, the B program is inserted, the advertisement insertion device inserts the advertisement B program after 10 minutes according to the demand, the advertisement insertion device retrieves the play list of the A program, and locates the A program that should be played after 10 minutes.
- the Fth segmentation data When the advertisement needs to be inserted during the program playing, the B program is inserted, the advertisement insertion device inserts the advertisement B program after 10 minutes according to the demand, the advertisement insertion device retrieves the play list of the A program, and locates the A program that should be played after 10 minutes.
- the Fth segmentation data When the advertisement needs to be
- the URL-B length of the playlist of the advertisement B program is not greater than 6096, the URL-B is directly put into the RLT, and the two-bit compression indication 00 indicates that the URL is uncompressed.
- the Uniform Resource Locator URL-B length of the playlist of the advertisement B is greater than 6096, the URL-B is compressed by the GZIP and put into the RLT, and the two-digit compression indication 01 indicates that the URL is compressed by GZIP.
- the TS header is constructed, and the PID is 0xlFFD in the header, and the header and the RLT are combined into 188 bytes into a plurality of TS packets encapsulating the URL of the advertisement playlist, that is, the data carried in the multiple TS packets are common.
- these TS packets are inserted after the F th segment data of the A program.
- Step S606 playing a program, if the URL-B of the advertisement playlist is decoded from the program segment, the advertisement playlist is obtained, and then the advertisement is played according to the advertisement playlist;
- the segmented data is found to have an advertisement uniform resource positioning URL in the process of 10 minutes. If the URL is compressed, it needs to be decompressed first, and then according to the method.
- the uniform resource location URL acquires the B program playlist, and then starts to acquire the B program segment data according to the B program playlist, and starts playing the B program segmentation data after the F segment data of the A program is played.
- Step S607 After the advertisement is completed, the program continues to be played.
- FIG. 8 illustrates a process diagram of an HTTP web server interacting with a client to implement an interstitial advertisement.
- the method and system for dynamically inserting a program in a segmented program can realize the insertion of a program even if the client is playing a program, and can truly realize the dynamic insertion of the program, which is very flexible, practical, and applicable.
- the web CDN system therefore, the invention has strong industrial applicability.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Business, Economics & Management (AREA)
- Marketing (AREA)
- Signal Processing (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Television Signal Processing For Recording (AREA)
Abstract
A method and a system for dynamically inserting a cut-in program into a segmented program. The method comprises: segmenting a cut-in program, generating a cut-in program playlist; inserting the cut-in program playlist into the segmentation data of a regular program; when broadcasting the regular program on the basis of a regular program playlist, if the cut-in program playlist is acquired from any segmentation data of the regular program, then broadcasting first the cut-in program on the basis of the cut-in program playlist, and when the cut-in program broadcast is completed, continuing the regular program broadcast on the basis of the regular program playlist. This technical solution allows the true implementation of dynamic insertion of the cut-in program, and has a high flexibility and practicality.
Description
一种分段节目中动态插播节目的方法及系统 Method and system for dynamically inserting programs in segmented programs
技术领域 Technical field
本发明涉及节目插播技术, 尤其涉及多媒体系统中传送分段节目时, 实 现节目动态插播的方法及系统。 The present invention relates to a program insertion technique, and more particularly to a method and system for realizing dynamic insertion of a program when a segmented program is transmitted in a multimedia system.
背景技术 Background technique
随着通信技术的发展, 多媒体技术的应用越来越广。 分段节目是指在节 目制作时将节目进行分段, 生成多个分段节目和播放列表, 播放时首先获取 播放列表, 然后按照播放列表依次获取分段节目播放。 这种方式能够方便地 对节目内容进行修改和替换, 而且能够兼容现有的内容分发网络(CDN, Content Delivery Network ) 系统。 With the development of communication technology, the application of multimedia technology is becoming more and more extensive. The segmented program refers to segmenting the program during the production of the program to generate a plurality of segmented programs and playlists. When playing, the playlist is first acquired, and then the segmented program is sequentially played according to the playlist. This method can easily modify and replace the program content, and is compatible with the existing Content Delivery Network (CDN) system.
现有分段节目广告插入技术是在分段节目制作完成后, 在客户端获取播 放列表前, 增加广告分段节目, 同时在播放列表中插入广告分段的描述信息。 客户端播放节目时首先获取播放列表, 然后按照播放列表依次播放, 广告内 容将会被展现。 但是一旦客户端获取播放列表, 按照播放列表的描述依次播 放节目时,在该节目播放过程中想给该客户插播一段广告将会变得非常困难, 特别是在 web CDN系统上, 由于 web服务器是无状态,给正在收看分段节目 的客户插入广告更加困难。 The existing segmented program advertisement insertion technology is to add an advertisement segmentation program before the segmentation program is completed, and insert the description information of the advertisement segment in the playlist before the client obtains the playlist. When the client plays the program, the playlist is first obtained, and then the playlist is played in order, and the content of the advertisement will be displayed. However, once the client obtains the playlist and plays the program in sequence according to the description of the playlist, it will become very difficult to insert a commercial for the client during the broadcast of the program, especially on the web CDN system, since the web server is Stateless, it is more difficult to insert ads into customers who are watching segmented shows.
发明内容 Summary of the invention
本发明要解决的技术问题是, 提出一种分段节目中动态插播节目的方法 及系统, 即使客户端正在播放节目, 也可以实现节目的插入, 能够真正地实 现节目的动态插播, 非常灵活、 实用。 The technical problem to be solved by the present invention is to provide a method and system for dynamically inserting programs in a segmented program. Even if the client is playing a program, the program can be inserted, and the program can be dynamically inserted, which is very flexible. practical.
一种分段节目中动态插播节目的方法, 包括: A method for dynamically inserting a program in a segmented program, comprising:
将插播节目分段, 生成插播节目的播放列表; Segmenting the interstitial program to generate a playlist of the interstitial program;
将所述插播节目的播放列表插入正常节目的分段数据中; Inserting a playlist of the interstitial program into segment data of a normal program;
在根据正常节目的播放列表播放正常节目时, 如果在某一正常节目的分
段数据中获取到所述插播节目的播放列表, 则先根据所述插播节目的播放列 表播放插播节目, 在完成插播节目的播放后, 继续根据所述正常节目的播放 列表播放正常节目。 When playing a normal program according to a playlist of a normal program, if it is in a certain normal program The playlist of the interstitial program is obtained in the segment data, and the interlaced program is first played according to the playlist of the interstitial program, and after the play of the interlaced program is completed, the normal program is continued to be played according to the playlist of the normal program.
该方法还包括: The method also includes:
根据新的插播节目生成新的插播节目的播放列表, 定位到插入所述插播 节目的播放列表的位置, 将所述插播节目的播放列表更新为所述新的插播节 目的播放列表, 以更新插播节目。 Generating a playlist of a new interstitial program according to the new interstitial program, positioning a playlist inserted into the interstitial program, updating a playlist of the interstitial program to a playlist of the new interstitial program, to update the interstitial program.
该方法还包括: The method also includes:
定位到插入所述插播节目的播放列表的位置, 删除所述插播节目的播放 列表, 以删除插播节目。 Positioning to a position of a playlist inserted into the interstitial program, deleting a playlist of the interstitial program to delete the interstitial program.
将插播节目分段的步骤包括: The steps of segmenting the interstitial program include:
按照逻辑或者物理分段, 将插播节目分成一个或者多个逻辑分段数据或 者物理分段数据, 每个分段数据均以随机访问单元开始; The interlaced program is divided into one or more logical segment data or physical segment data according to logical or physical segmentation, and each segment data starts with a random access unit;
将各分段数据的解码信息分别插入各分段数据中。 The decoding information of each segment data is inserted into each segment data.
该方法还包括: The method also includes:
将所述插播节目的播放列表插入正常节目的分段数据中前, 根据预设的 插播时刻, 查找正常节目的播放列表, 获得到达所述插播时刻时播放的正常 节目的分段数据, 以确定所述插播节目的播放列表插入的正常节目的分段数 据。 Before inserting the playlist of the interstitial program into the segmentation data of the normal program, searching for a playlist of the normal program according to the preset insertion time, and obtaining segmentation data of the normal program played when the insertion time is reached, to determine The segmentation data of the normal program inserted by the playlist of the interstitial program.
其中: 将所述插播节目的播放列表插入正常节目的分段数据中的步骤包 括: 在插入所述插播节目的播放列表的正常节目分段中插入一插播标识; 相应的, 在根据正常节目的播放列表播放正常节目时, 在某一正常节目 的分段数据中获取到所述插播节目的播放列表的步骤包括: 在根据正常节目 的播放列表播放正常节目时, 如果判断出某一正常节目的分段数据中包括所 述插播标识,则从所述正常节目的分段数据中获取所述插播节目的播放列表。 Wherein: inserting the playlist of the interstitial program into the segment data of the normal program comprises: inserting an interstitial identifier in a normal program segment of the playlist inserted into the interstitial program; correspondingly, according to the normal program When the playlist plays a normal program, the step of acquiring the playlist of the interstitial program in the segment data of a normal program includes: when playing a normal program according to the playlist of the normal program, if it is determined that a normal program is The segmentation data includes the insertion identifier, and the playlist of the inserted program is obtained from the segmentation data of the normal program.
其中: 将所述插播节目的播放列表插入正常节目的分段数据中的步骤包 括: 判断所述插播节目的播放列表的数据长度, 如果大于一预设的数据长度, 则对其进行压缩处理, 将压缩后的插播节目的播放列表和一压缩标识插入正
常节目的分段数据中; The step of inserting the playlist of the interstitial program into the segment data of the normal program includes: determining a data length of the playlist of the interstitial program, and if it is greater than a preset data length, compressing the playlist, Insert the compressed playlist and a compressed logo into the positive In the segmentation data of the regular program;
相应的, 在根据正常节目的播放列表播放正常节目时, 在某一正常节目 的分段数据中获取到所述插播节目的播放列表的步骤包括: 在根据正常节目 的播放列表播放正常节目时, 如果判断出某一正常节目的分段数据中包括所 述压缩标识, 则从所述正常节目的分段数据中获取所述插播节目的播放列表 后, 还对其进行解压缩处理。 Correspondingly, when the normal program is played according to the playlist of the normal program, the step of acquiring the playlist of the interstitial program in the segment data of a normal program includes: when playing the normal program according to the playlist of the normal program, If it is determined that the segmentation data of a normal program includes the compression identifier, the playlist of the interstitial program is obtained from the segment data of the normal program, and then decompressed.
其中: 将所述插播节目的播放列表插入正常节目的分段数据中的步骤包 括: 生成所述插播节目的播放列表的统一资源定位符 URL; 将所述插播节 目的播放列表以其 URL的形式插入正常节目的分段数据中; The step of inserting the playlist of the interstitial program into the segment data of the normal program includes: generating a uniform resource locator URL of the playlist of the interstitial program; and playing the playlist of the interstitial program in the form of its URL Insert into the segmentation data of the normal program;
相应的, 在根据正常节目的播放列表播放正常节目时, 在某一正常节目 的分段数据中获取到所述插播节目的播放列表的步骤包括: 在某一正常节目 的分段数据中获取到所述 URL时, 根据所述 URL获取所述插播节目的播放 列表。 Correspondingly, when the normal program is played according to the playlist of the normal program, the step of acquiring the playlist of the interstitial program in the segment data of a certain normal program comprises: acquiring in the segment data of a normal program When the URL is obtained, the playlist of the interstitial program is acquired according to the URL.
一种分段节目中动态插播节目的系统, 其中, 包括: 前端节目分段设备、 节目插播处理设备及终端节目播放设备, 其中: A system for dynamically inserting a program in a segmented program, comprising: a front-end program segmentation device, a program insertion processing device, and a terminal program playback device, wherein:
所述前端节目分段设备设置成: 将插播节目分段, 生成插播节目的播放 列表; The front-end program segmentation device is configured to: segment the intervening program to generate a playlist of the interstitial program;
所述节目插播处理设备设置成: 将所述插播节目的播放列表插入正常节 目的分段数据中; The program insertion processing device is configured to: insert a playlist of the interstitial program into segment data of a normal program;
所述终端节目播放设备设置成: 在根据正常节目的播放列表播放正常节 目时, 如果在某一正常节目的分段数据中获取到所述插播节目的播放列表, 则先根据所述插播节目的播放列表播放插播节目,在完成插播节目的播放后, 继续根据所述正常节目的播放列表播放正常节目。 The terminal program playing device is configured to: when the normal program is played according to the playlist of the normal program, if the playlist of the interstitial program is acquired in the segment data of a certain normal program, first according to the interstitial program The playlist plays the inserted program, and after the play of the inserted program is completed, the normal program is continued to be played according to the playlist of the normal program.
其中: 所述节目插播处理设备还设置成: Wherein: the program insertion processing device is further configured to:
根据新的插播节目生成新的插播节目的播放列表, 定位到插入所述插播 节目的播放列表的位置, 将所述插播节目的播放列表更新为所述新的插播节 目的播放列表, 以更新插播节目。 Generating a playlist of a new interstitial program according to the new interstitial program, positioning a playlist inserted into the interstitial program, updating a playlist of the interstitial program to a playlist of the new interstitial program, to update the interstitial program.
其中: 所述节目插播处理设备还设置成:
定位到插入所述插播节目的播放列表的位置, 删除所述插播节目的播放 列表, 以删除插播节目。 Wherein: the program insertion processing device is further configured to: Positioning to a position of a playlist inserted into the interstitial program, deleting a playlist of the interstitial program to delete the interstitial program.
其中, 所述前端节目分段设备包括: 第一分段处理模块及第二分段处理 模块, 其中: The front-end program segmentation device includes: a first segment processing module and a second segment processing module, where:
所述第一分段处理模块设置成: 按照逻辑或者物理分段, 将插入节目分 成一个或者多个逻辑分段数据或者物理分段数据, 每个分段数据均以随机访 问单元开始; The first segment processing module is configured to: divide the inserted program into one or more logical segment data or physical segment data according to logical or physical segmentation, and each segment data starts with a random access unit;
所述第二分段处理模块设置成: 将各分段数据的解码信息分别插入各分 段数据中。 The second segment processing module is configured to: insert decoding information of each segment data into each segment data.
其中: 所述节目插播处理设备还设置成: Wherein: the program insertion processing device is further configured to:
根据预设的插播时刻, 查找正常节目的播放列表, 获得到达所述插播时 刻时播放的正常节目的分段数据, 以确定所述插播节目的播放列表插入的正 常节目的分段数据。 According to the preset insertion time, the playlist of the normal program is searched, and the segmentation data of the normal program played at the time of the insertion is obtained, and the segmentation data of the normal program inserted by the playlist of the interstitial program is determined.
其中: 所述节目插播处理设备还设置成: 在插入所述插播节目的播放列 表的正常节目分段中插入一插播标识; Wherein: the program insertion processing device is further configured to: insert a cut-in identifier in a normal program segment inserted into a playlist of the interstitial program;
所述终端节目播放设备还设置成: 在根据正常节目的播放列表播放正常 节目时, 如果判断出某一正常节目的分段数据中包括所述插播标识, 则从所 述正常节目的分段数据中获取所述插播节目的播放列表。 The terminal program playing device is further configured to: when the normal program is played according to the playlist of the normal program, if it is determined that the segment data of a normal program includes the insertion identifier, the segment data from the normal program Obtaining a playlist of the interstitial program.
其中: 所述节目插播处理设备还设置成: 在插入所述插播节目的播放列 表之前, 判断所述插播节目的播放列表的数据长度, 如果大于一预设的数据 长度, 则对其进行压缩处理, 将压缩后的插播节目的播放列表和一压缩标识 插入正常节目的分段数据中; The program insertion processing device is further configured to: before inserting the playlist of the interstitial program, determining a data length of the playlist of the interstitial program, if it is greater than a preset data length, compressing the program Inserting a playlist of the compressed interstitial program and a compressed identifier into the segmentation data of the normal program;
所述终端节目播放设备还设置成: 在根据正常节目的播放列表播放正常 节目时, 如果判断出某一正常节目的分段数据中包括所述压缩标识, 则从所 述正常节目的分段数据中获取所述插播节目的播放列表后, 还对其进行解压 缩处理。 The terminal program playing device is further configured to: when the normal program is played according to the playlist of the normal program, if it is determined that the segmentation data of a normal program includes the compressed identifier, the segment data from the normal program After the playlist of the interstitial program is obtained, it is also decompressed.
其中: 所述前端节目分段设备还设置成: 生成所述插播节目的播放列表 的统一资源定位符 URL;
所述节目插播处理设备还设置成: 以所述插播节目的 URL作为所述插 播节目的播放列表插入正常节目的分段数据中; The front-end program segmentation device is further configured to: generate a uniform resource locator URL of the playlist of the interstitial program; The program insertion processing device is further configured to: insert a URL of the interstitial program as a playlist of the interstitial program into segment data of a normal program;
所述终端节目播放设备还设置成: 在某一正常节目的分段数据中获取到 所述 URL时, 根据所述 URL获取所述插播节目的播放列表。 The terminal program playing device is further configured to: when the URL is obtained in the segment data of a normal program, acquire a playlist of the interstitial program according to the URL.
本发明实施例提出的一种分段节目中动态插播节目的方法及系统, 即使 客户端正在播放节目, 也可以实现节目的插入, 能够真正地实现节目的动态 插播, 非常灵活、 实用, 且能够适用 web CDN系统。 附图概述 The method and system for dynamically inserting a program in a segmented program according to an embodiment of the present invention can realize the insertion of a program even if the client is playing a program, and can truly realize the dynamic insertion of the program, which is very flexible and practical, and can Applicable to web CDN system. BRIEF abstract
图 1是本发明实施例的一种分段节目中动态插播节目的方法流程图; 图 2是本发明实施例的一种对插播节目进行分段处理的方法流程图; 图 3是本发明实施例的一种适用于 web CDN系统的动态插播节目的方法 流程图; 1 is a flowchart of a method for dynamically inserting a program in a segmented program according to an embodiment of the present invention; FIG. 2 is a flowchart of a method for segmenting an interpolated program according to an embodiment of the present invention; A flow chart of a method for dynamically inserting a program for a web CDN system;
图 4是本发明实施例的一种 web CDN系统中实现在分段节目中动态插播 节目的方法示意图; 4 is a schematic diagram of a method for dynamically inserting a program in a segmented program in a web CDN system according to an embodiment of the present invention;
图 5是本发明实施例的一种分段节目中动态插播节目的系统方框图; 图 6是本发明应用实例的通过 web CDN系统实现插入广告节目的方法流 程图; 5 is a system block diagram of a dynamic insertion program in a segmented program according to an embodiment of the present invention; FIG. 6 is a flow chart of a method for implementing insertion of an advertisement program through a web CDN system according to an application example of the present invention;
图 7是本发明应用实例的封装有广告播放列表的 URL的 MPEG-2 TS分 段示意图; 7 is a schematic diagram of an MPEG-2 TS segment of a URL encapsulating an advertisement playlist according to an application example of the present invention;
图 8是本发明应用实例的通过 web CDN系统实现插入广告节目的实现过 程示意图。 Fig. 8 is a schematic diagram showing an implementation process of inserting an advertisement program through a web CDN system according to an application example of the present invention.
本发明的较佳实施方式 Preferred embodiment of the invention
下面将结合附图来详细说明本发明实施方式。 Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
参见图 1 , 该图示出了本发明实施例的一种分段节目中动态插播节目的
方法, 包括步骤: Referring to FIG. 1, there is shown a dynamic insertion program in a segmented program according to an embodiment of the present invention. Method, including the steps:
步骤 S101 : 将插播节目分段, 生成插播节目的播放列表; Step S101: segment the intervening program to generate a playlist of the interstitial program;
步骤 S102: 将所述插播节目的播放列表插入正常节目的分段数据中; 步骤 S103: 在根据正常节目的播放列表播放正常节目时, 如果在某一正 常节目的分段数据中获取到所述插播节目的播放列表, 则先根据所述插播节 目的播放列表播放插播节目, 在完成插播节目的播放后, 继续根据所述正常 节目的播放列表播放正常节目。 Step S102: Insert the playlist of the interstitial program into the segment data of the normal program; Step S103: When playing a normal program according to the playlist of the normal program, if the game is obtained in the segment data of a certain normal program The playlist of the interstitial program first plays the interlaced program according to the playlist of the interstitial program, and after the play of the interstitial program is completed, continues to play the normal program according to the playlist of the normal program.
本发明巧妙地在正常节目的分段数据中插入插播节目的播放列表, 插播 处理不会对正常节目的播放列表进行改动, 这样, 即使在客户端播放节目时, 也可以执行插播处理, 从而真正地实现动态插播, 非常灵活。 The present invention subtly inserts a playlist of the inserted program into the segment data of the normal program, and the insert processing does not modify the playlist of the normal program, so that even when the program is played by the client, the insert processing can be performed, thereby real Dynamic insertion is very flexible.
所述步骤 S101在具体实现时, 可以如图 2所示, 包括步骤: In the specific implementation, the step S101 may be as shown in FIG. 2, including the steps:
步骤 S201 : 按照逻辑或者物理分段, 将插入节目分成一个或者多个逻辑 分段数据或者物理分段数据, 每个分段数据均以随机访问单元开始; Step S201: The inserted program is divided into one or more logical segment data or physical segment data according to logical or physical segmentation, and each segment data starts with a random access unit;
每个分段数据均以随机访问单元开始是为了保证每个分段数据均可以独 立解码播放。 对音频数据而言, 任何一个数据单元都是随机访问单元。 对视 频数据而言, 随机访问单元是指关键帧。 Each segmentation data begins with a random access unit to ensure that each segmentation data can be independently decoded and played. For audio data, any data unit is a random access unit. For video data, a random access unit refers to a key frame.
步骤 S202: 将各分段数据的解码信息分别插入各分段数据中。 Step S202: Insert decoding information of each segment data into each segment data.
较佳地, 可以将各分段数据的解码信息分别插入各分段数据前面, 在解 码过程中, 对每一分段数据, 先得到该分段数据的解码信息, 再根据所述解 码信息解码该分段数据。 当然, 也可以将各分段数据的解码信息分别插入各 分段数据的其他位置, 在解析过程中, 通过指针等方式定位出解码信息, 并 据以解码分段数据。 Preferably, the decoding information of each piece of segment data is separately inserted in front of each piece of segment data. In the decoding process, for each piece of segment data, the decoding information of the segment data is obtained first, and then decoded according to the decoding information. The segmentation data. Of course, the decoding information of each segment data may be separately inserted into other locations of each segment data, and in the parsing process, the decoding information is located by means of a pointer or the like, and the segment data is decoded according to the data.
然后,即可根据步骤 S202处理后得到的分段数据生成对所述分段数据进 行描述的广告播放列表。 Then, the advertisement playlist describing the segmentation data can be generated according to the segmentation data obtained after the process of step S202.
其中,在执行步骤 S102时,还可以在插入所述插播节目的播放列表的正 常节目分段中插入一插播标识。在执行步骤 S103时, 如果判断出某一正常节 目的分段数据中包括所述插播标识, 则从所述正常节目的分段数据中获取所 述插播节目的播放列表。
其中, 在执行步骤 S102时, 为了节约网络传输数据, 较佳地, 还可以在 所述插播节目的播放列表大于一预设数据长度时, 对其进行压缩处理, 然后 将压缩后的插播节目的播放列表及其压缩标识插入正常节目的分段数据中。 在执行步骤 S103时, 如判断出所述压缩标识, 则需对所述压缩后的插播节目 的播放列表进行解压缩处理, 以得到插播节目的播放列表。 Wherein, when step S102 is performed, an interstitial identifier may also be inserted in the normal program segment of the playlist inserted into the interstitial program. When the step S103 is performed, if it is determined that the segmentation data of a certain normal program includes the interpolation identifier, the playlist of the interstitial program is acquired from the segmentation data of the normal program. In the step S102, in order to save the network transmission data, preferably, when the playlist of the interstitial program is greater than a preset data length, it may be compressed, and then the compressed interlaced program is The playlist and its compressed identification are inserted into the segmentation data of the normal program. When the step S103 is performed, if the compression identifier is determined, the compressed playlist of the inserted program needs to be decompressed to obtain a playlist of the inserted program.
其中, 步骤 S102之前, 还可以包括, 根据预设的插播时刻, 查找正常节 目的播放列表, 获得到达所述插播时刻时播放的正常节目的分段数据, 以确 定所述插播节目的播放列表插入的正常节目的分段数据。 从而实现在到达所 述插播时刻时, 能够播放所述插播节目, 实现定时插播节目。 Before step S102, the method further includes: searching for a playlist of the normal program according to the preset insertion time, obtaining segment data of the normal program played when the insertion time is reached, and determining to insert the playlist of the inserted program. Segmentation data for normal programs. Thereby, when the insertion time is reached, the interlaced program can be played, and the timed insertion program can be realized.
其中, 步骤 S102之后, 还可以对插播节目进行更新, 或者删除处理, 具 体处理方式如下: After step S102, the inserted program may be updated or deleted, and the specific processing manner is as follows:
在更新插播节目时, 可以通过根据新的插播节目生成新的插播节目的播 放列表, 定位到插入所述插播节目的播放列表的位置, 将所述插播节目的播 放列表更新为所述新的插播节目的播放列表的方式实现。 When the interstitial program is updated, the playlist of the interstitial program may be updated to the new interstitial by updating a playlist of the new interstitial program according to the new interstitial program, positioning the playlist inserted into the interstitial program The way the playlist of the program is implemented.
在删除插播节目时, 可以通过定位到插入所述插播节目的播放列表的位 置, 删除所述插播节目的播放列表的方式实现。 When the interstitial program is deleted, the playlist of the interstitial program can be deleted by locating the position of the playlist inserted into the interstitial program.
为了使得本发明实施例上述节目插播方法能够有效地适用于 web CDN 系统, 实现在分段节目中动态插播节目, 本发明还提出如下解决方案, 如图 3所示, 包括步骤: In order to enable the above-mentioned program insertion method in the embodiment of the present invention to be effectively applied to the web CDN system to implement dynamic insertion of programs in the segmented program, the present invention also proposes the following solution. As shown in FIG. 3, the method includes the following steps:
步骤 S301 : 生成所述插播节目的播放列表的统一资源定位符 URL, 以 Step S301: Generate a uniform resource locator URL of the playlist of the interstitial program, to
URL标识所述插播节目的播放列表; The URL identifies a playlist of the interstitial program;
步骤 S302: 在执行节目插播处理时, 以所述插播节目的播放列表的 URL 替代所述插播节目的播放列表, 执行插入、 更新、 删除操作; Step S302: When performing the program insertion processing, replacing the playlist of the interstitial program with the URL of the playlist of the interstitial program, performing an insert, update, and delete operation;
步骤 S303: 在节目播放处理时, 在某一正常节目的分段数据中获取到所 述 URL时, 根据所述 URL获取所述插播节目的播放列表。 Step S303: When the URL is obtained in the segment data of a normal program during the program playing process, the playlist of the interstitial program is obtained according to the URL.
另夕卜,还可以以正常节目的播放列表的 URL标识所述正常节目的播放列 表, 从而可以根据所述正常节目的播放列表的 URL获取正常节目的播放列 表。
参见图 4, 该图示出了一种 web CDN系统中, 服务器与客户端交互, 实 现在分段节目中动态插播节目的过程示意图。 In addition, the playlist of the normal program may be identified by the URL of the playlist of the normal program, so that the playlist of the normal program may be acquired according to the URL of the playlist of the normal program. Referring to FIG. 4, the figure shows a schematic diagram of a process in which a server interacts with a client in a web CDN system to dynamically insert a program in a segmented program.
为了实现上述方法, 本发明实施例还提供了一种分段节目中动态插播节 目的系统, 如图 5所示, 该系统包括: 前端节目分段设备、 节目插播处理设 备及终端节目播放设备, 其中: 所述前端节目分段设备设置成: 将插播节目分段, 生成插播节目的播放 列表; In order to implement the above method, an embodiment of the present invention further provides a system for dynamically inserting a program in a segmented program. As shown in FIG. 5, the system includes: a front-end program segmentation device, a program insertion processing device, and a terminal program playback device. Wherein: the front-end program segmentation device is configured to: segment the intervening program to generate a playlist of the interstitial program;
所述节目插播处理设备设置成: 将所述插播节目的播放列表插入正常节 目的分段数据中; The program insertion processing device is configured to: insert a playlist of the interstitial program into segment data of a normal program;
所述终端节目播放设备设置成: 在根据正常节目的播放列表播放正常节 目时, 如果在某一正常节目的分段数据中获取到所述插播节目的播放列表, 则先根据所述插播节目的播放列表播放插播节目,在完成插播节目的播放后, 继续根据所述正常节目的播放列表播放正常节目。 The terminal program playing device is configured to: when the normal program is played according to the playlist of the normal program, if the playlist of the interstitial program is acquired in the segment data of a certain normal program, first according to the interstitial program The playlist plays the inserted program, and after the play of the inserted program is completed, the normal program is continued to be played according to the playlist of the normal program.
其中, 所述节目插播处理设备还可以设置成: 根据新的插播节目生成新 的插播节目的播放列表, 定位到插入所述插播节目的播放列表的位置, 将所 述插播节目的播放列表更新为所述新的插播节目的播放列表, 以更新插播节 。 The program insertion processing device may be further configured to: generate a playlist of a new interstitial program according to the new interstitial program, locate a location of the playlist inserted into the interstitial program, and update the playlist of the interstitial program to A playlist of the new interstitial program to update the interstitial section.
其中, 所述节目插播处理设备还可以设置成: 定位到插入所述插播节目 的播放列表的位置, 删除所述插播节目的播放列表, 以删除插播节目。 The program insertion processing device may be further configured to: locate a location of a playlist inserted into the interstitial program, and delete a playlist of the interstitial program to delete the interstitial program.
其中, 所述前端节目分段设备可以包括: 第一分段处理模块及第二分段 处理模块, 其中: The front-end program segmentation device may include: a first segment processing module and a second segment processing module, where:
所述第一分段处理模块设置成: 按照逻辑或者物理分段, 将插入节目分 成一个或者多个逻辑分段数据或者物理分段数据, 每个分段数据均以随机访 问单元开始; The first segment processing module is configured to: divide the inserted program into one or more logical segment data or physical segment data according to logical or physical segmentation, and each segment data starts with a random access unit;
所述第二分段处理模块设置成: 将各分段数据的解码信息分别插入各分 段数据中。 The second segment processing module is configured to: insert decoding information of each segment data into each segment data.
其中, 所述节目插播处理设备还可以设置成: 根据预设的插播时刻, 查
找正常节目的播放列表, 获得到达所述插播时刻时播放的正常节目的分段数 据, 以确定所述插播节目的播放列表插入的正常节目的分段数据。 The program insertion processing device may be further configured to: check according to a preset insertion time Looking up a playlist of a normal program, obtaining segmentation data of a normal program played when the insertion time is reached, to determine segmentation data of a normal program inserted by the playlist of the interstitial program.
其中, 所述节目插播处理设备还可以设置成: 在插入所述插播节目的播 放列表的正常节目分段中插入一插播标识。 所述终端节目播放设备, 在根据 正常节目的播放列表播放正常节目时, 如果判断出某一正常节目的分段数据 中包括所述插播标识, 则从所述正常节目的分段数据中获取所述插播节目的 播放列表。 The program insertion processing device may be further configured to: insert an interstitial identifier into a normal program segment of the playlist inserted into the interstitial program. The terminal program playing device, when the normal program is played according to the playlist of the normal program, if it is determined that the segment data of a normal program includes the interstitial identifier, the segment data of the normal program is obtained. A playlist of the inserted program.
其中, 所述节目插播处理设备还可以设置成: 在插入所述插播节目的播 放列表之前, 先判断所述插播节目的播放列表的数据长度, 如果大于一预设 的数据长度, 则对其进行压缩处理, 将压缩后的插播节目的播放列表和一压 缩标识插入正常节目的分段数据中。 所述终端节目播放设备, 在根据正常节 目的播放列表播放正常节目时, 如果判断出某一正常节目的分段数据中包括 所述压缩标识, 则从所述正常节目的分段数据中获取所述插播节目的播放列 表后, 还对其进行解压缩处理。 The program insertion processing device may be further configured to: before inserting the playlist of the interstitial program, first determining a data length of the playlist of the interstitial program, if it is greater than a preset data length, performing the The compression process inserts the playlist of the compressed interim program and a compressed identification into the segmentation data of the normal program. If the terminal program playing device plays a normal program according to the playlist of the normal program, if it is determined that the segmentation data of a normal program includes the compressed identifier, the segmentation data of the normal program is obtained from the segmentation data of the normal program. After the playlist of the inserted program is described, it is also decompressed.
其中, 所述前端节目分段设备还可以设置成: 生成所述插播节目的播放 列表的统一资源定位符 URL。 所述节目插播处理设备则还可以设置成: 以 所述插播节目的 URL作为所述插播节目的播放列表插入正常节目的分段数 据中。 所述终端节目播放设备则还可以设置成: 在某一正常节目的分段数据 中获取到所述 URL时, 根据所述 URL获取所述插播节目的播放列表。 The front-end program segmentation device may be further configured to: generate a uniform resource locator URL of the playlist of the interstitial program. The program insertion processing device may be further configured to: insert the URL of the interstitial program as a playlist of the interstitial program into the segment data of the normal program. The terminal program playing device may be further configured to: when the URL is obtained in the segment data of a normal program, acquire a playlist of the interstitial program according to the URL.
为了更好地说明本发明的实现方案,下面将以通过 web CDN系统实现插 入广告节目为一具体应用实例进行说明。 In order to better illustrate the implementation of the present invention, a specific application example will be described below by implementing an advertisement program through a web CDN system.
本应用实例釆用两个运动图像专家组 ( MPEG, Moving Picture Export Group ) -2传输流( TS, Transport Stream )文件 A和 B分别作为节目数据源 和广告数据源,这两个 MPEG-2 TS流分别包括被编码为 H.264的一路 QVGA 四分之一视频图像阵列 (QVGA, Quanter Video Graphic Array ) 图像流和一 路高级音频编码(AAC, Advanced Audio Coding )音频流。 节目数据源被处 理为多个分段节目, 节目文件名分别为 filenameA- 1.ts , filenameA-2.ts, filenameA-50.ts—共 50个文件, 并据以生成了节目播放列表。 需要说明的是,
本发明所述方法同样适用于多路流的情况。 This application example uses two moving picture expert group (MPEG, Moving Picture Export Group) -2 transport stream (TS, Transport Stream) files A and B as the program data source and advertising data source, respectively, these two MPEG-2 TS The stream includes a QVGA Quarter Video Graphic Array (QVGA) image stream encoded as H.264 and an AAC (Advanced Audio Coding) audio stream. The program data source is processed into a plurality of segmented programs, and the program file names are filenameA- 1.ts, filenameA-2.ts, filenameA-50.ts - a total of 50 files, and a program playlist is generated accordingly. It should be noted, The method of the invention is equally applicable to the case of multiple streams.
本发明应用实例实现插播广告的方法如图 6所示, 包括步骤: The method for implementing the interstitial advertisement by using the application example of the present invention is as shown in FIG. 6, and includes the steps:
步骤 S601 : 获取广告节目解码相关信息; Step S601: Acquire information related to decoding of the advertisement program;
从广告数据源 MPEG-2 TS文件 filenameB.ts中提取解码相关信息, 包含 节目相关表( PAT , Program Association Table )和节目映射表( PMT , Program Map Table ) 的 TS包。 The decoding related information is extracted from the advertisement data source MPEG-2 TS file filenameB.ts, and includes a TS package of a program related table (PAT, Program Association Table) and a program map table (PMT, Program Map Table).
步骤 S602: 将广告节目分为多个小分段文件; Step S602: Divide the advertisement program into a plurality of small segment files;
分别从视频图像关键帧的位置开始将 MPEG-2 TS文件 filenameB.ts按照 时间切分为 20秒长度的多个分段数据, 每一个分段数据均为 MPEG-2 TS文 件, 每一个分段数据的解码单元均以图像关键帧开始。 同时分别将各自解码 相关信息 PAT和 PMT的 TS包插入到各自分段数据的前面,得到多个 MPEG-2 TS 小文件, 广告文件名分别为 filenameB-1.ts , filenameB-2.ts , filenameB-lO.ts一共 10个文件。 The MPEG-2 TS file filenameB.ts is divided into a plurality of segment data of 20 seconds in length from the position of the key frame of the video image, and each segment data is an MPEG-2 TS file, and each segment is segmented. The decoding units of the data start with image key frames. At the same time, the TS packets of the respective decoding related information PAT and PMT are respectively inserted in front of the respective segment data to obtain a plurality of MPEG-2 TS small files, and the advertisement file names are filenameB-1.ts, filenameB-2.ts, filenameB, respectively. -lO.ts a total of 10 files.
步骤 S603: 生成广告节目的播放列表; Step S603: Generate a playlist of the advertisement program;
利用可扩展标记语言 (XML, Extensible Markup Language )格式生成广 告节目的播放列表 B。在播放列表中按照顺序分别描述这些 MPEG-2 TS小文 件的播放时长, 文件名等信息。 The playlist B of the advertisement program is generated in the Extensible Markup Language (XML) format. The playback duration, file name and other information of these MPEG-2 TS small files are described in order in the playlist.
步骤 S604: 构造广告播放列表的统一资源定位标识 URL-B; Step S604: Construct a uniform resource location identifier URL-B of the advertisement playlist;
将节目 B分段后的数据放在 HTTP WEB服务器的存储设备上,同时生成 统一资源定位标识 URL-B , 用以标识 B节目的播放列表。 The data after segment B of the program is placed on the storage device of the HTTP WEB server, and a uniform resource location identifier URL-B is generated to identify the playlist of the B program.
步骤 S605: 将广告播放列表的 URL-B插入节目分段数据中; Step S605: Insert the URL-B of the advertisement playlist into the program segment data;
在具体实现时, 可以将广告播放列表的 URL-B封装成 TS包, 基于协议 规定的 TS 包格式, 可以在 MPEG-2 TS 流中扩展一个新的包标识 PID=0xlFFD, 以表示封装有广告播放列表的 URL-B的 TS包,扩展一个新的 表标识 table— id=0xFD, 以表示所述 TS 包的净荷中的资源定位表 ( RLT, Resource Location Table )中封装有广告播放列表的 URL-B。RLT满足 MPEG-2 TS流中节目特定信息 PSI语法。 封装有广告播放列表的统一资源定位 URL 的 MPEG-2 TS分段示意图如图 7所示。
节目播放过程中需要插入广告时, 即插入 B节目播放, 广告插入设备根 据需求在 10分钟后插入广告 B节目, 广告插入设备检索 A节目的播放列表, 定位到 10分钟后应该播放的 A节目的第 F个分段数据。 In a specific implementation, the URL-B of the advertisement playlist may be encapsulated into a TS packet. According to the TS packet format specified by the protocol, a new packet identifier PID=0xlFFD may be extended in the MPEG-2 TS stream to indicate that the advertisement is encapsulated. The TS packet of the URL-B of the playlist is extended by a new table identifier table_id=0xFD to indicate that the resource location table (RLT, Resource Location Table) in the payload of the TS packet is encapsulated with an advertisement playlist. URL-B. The RLT satisfies the program specific information PSI syntax in the MPEG-2 TS stream. A schematic diagram of an MPEG-2 TS segmentation of a Uniform Resource Locator URL encapsulating an ad playlist is shown in FIG. When the advertisement needs to be inserted during the program playing, the B program is inserted, the advertisement insertion device inserts the advertisement B program after 10 minutes according to the demand, the advertisement insertion device retrieves the play list of the A program, and locates the A program that should be played after 10 minutes. The Fth segmentation data.
如果广告 B节目的播放列表的统一资源定位 URL-B长度不大于 6096, 直接将 URL-B放入到 RLT中, 通过两位压缩指示 00表示该 URL未压缩。 If the Uniform Resource Locator URL-B length of the playlist of the advertisement B program is not greater than 6096, the URL-B is directly put into the RLT, and the two-bit compression indication 00 indicates that the URL is uncompressed.
如果广告 B的播放列表的统一资源定位 URL-B长度大于 6096,将 URL-B 通过 GZIP压缩后放入到 RLT中,通过两位压缩指示 01表示该 URL通过 GZIP 压缩。 If the Uniform Resource Locator URL-B length of the playlist of the advertisement B is greater than 6096, the URL-B is compressed by the GZIP and put into the RLT, and the two-digit compression indication 01 indicates that the URL is compressed by GZIP.
最后构造 TS包头, 包头中的 PID=0xlFFD, 将该包头和 RLT按照 188 个字节组合成封装有广告播放列表的 URL的多个 TS 包, 即以所述多个 TS 包中承载的数据共同承载所述广告播放列表的 URL。 最后将这些 TS包插入 到 A节目的第 F个分段数据的后面。 Finally, the TS header is constructed, and the PID is 0xlFFD in the header, and the header and the RLT are combined into 188 bytes into a plurality of TS packets encapsulating the URL of the advertisement playlist, that is, the data carried in the multiple TS packets are common. The URL that carries the ad playlist. Finally, these TS packets are inserted after the F th segment data of the A program.
步骤 S606:播放节目,如果从节目片段中解码出广告播放列表的 URL-B, 则据以获取广告播放列表, 然后根据所述广告播放列表播放广告; Step S606: playing a program, if the URL-B of the advertisement playlist is decoded from the program segment, the advertisement playlist is obtained, and then the advertisement is played according to the advertisement playlist;
根据本方法终端节目播放设备在 10分钟过后, 播放 A节目第 F个分段 数据过程中发现该分段数据中带有广告统一资源定位 URL,如果该 URL被压 缩, 还需要先解压, 然后根据该统一资源定位 URL获取 B节目播放列表, 然 后根据 B节目播放列表开始获取 B节目分段数据,在该 A节目第 F个分段数 据播放完毕后, 开始播放 B节目分段数据。 According to the method, after the terminal program playing device plays the F segment data of the A program, the segmented data is found to have an advertisement uniform resource positioning URL in the process of 10 minutes. If the URL is compressed, it needs to be decompressed first, and then according to the method. The uniform resource location URL acquires the B program playlist, and then starts to acquire the B program segment data according to the B program playlist, and starts playing the B program segmentation data after the F segment data of the A program is played.
步骤 S607: 完成广告播放后, 继续播放节目。 Step S607: After the advertisement is completed, the program continues to be played.
待 B节目播放列表播放完成后, 再接着 A节目播放列表播放 A节目。 为了更形象说明本发明应用实例实施过程, 请参见图 8 , 该图示出了 HTTP Web服务器与客户交互, 实现插播广告的过程示意图。 After the B program playlist is played, the A program playlist is followed by the A program. To further illustrate the implementation of the application example of the present invention, please refer to FIG. 8 , which illustrates a process diagram of an HTTP web server interacting with a client to implement an interstitial advertisement.
当然, 本发明还可有其他多种实施例, 在不背离本发明精神及其实质的 些相应的改变和变形都应属于本发明所附的权利要求的保护范围。 The invention may, of course, be embodied in various other forms and modifications without departing from the spirit and scope of the invention.
工业实用性
本发明实施例的一种分段节目中动态插播节目的方法及系统, 即使客户 端正在播放节目, 也可以实现节目的插入, 能够真正地实现节目的动态插播, 非常灵活、 实用, 且能够适用 web CDN系统, 因此本发明具有很强的工业实 用性。
Industrial applicability The method and system for dynamically inserting a program in a segmented program according to an embodiment of the present invention can realize the insertion of a program even if the client is playing a program, and can truly realize the dynamic insertion of the program, which is very flexible, practical, and applicable. The web CDN system, therefore, the invention has strong industrial applicability.
Claims
1、 一种分段节目中动态插播节目的方法, 包括: A method for dynamically inserting a program in a segmented program, comprising:
将插播节目分段, 生成插播节目的播放列表; Segmenting the interstitial program to generate a playlist of the interstitial program;
将所述插播节目的播放列表插入正常节目的分段数据中; Inserting a playlist of the interstitial program into segment data of a normal program;
在根据正常节目的播放列表播放正常节目时, 如果在某一正常节目的分 段数据中获取到所述插播节目的播放列表, 则先根据所述插播节目的播放列 表播放插播节目, 在完成插播节目的播放后, 继续根据所述正常节目的播放 列表播放正常节目。 When a normal program is played according to the playlist of the normal program, if the playlist of the interstitial program is acquired in the segment data of a certain normal program, the interlaced program is first played according to the playlist of the interstitial program, and the interstitial is completed. After the program is played, the normal program continues to be played according to the playlist of the normal program.
2、 如权利要求 1所述的方法, 该方法还包括: 2. The method of claim 1 further comprising:
根据新的插播节目生成新的插播节目的播放列表, 定位到插入所述插播 节目的播放列表的位置, 将所述插播节目的播放列表更新为所述新的插播节 目的播放列表, 以更新插播节目。 Generating a playlist of a new interstitial program according to the new interstitial program, positioning a playlist inserted into the interstitial program, updating a playlist of the interstitial program to a playlist of the new interstitial program, to update the interstitial program.
3、 如权利要求 1所述的方法, 该方法还包括: 3. The method of claim 1 further comprising:
定位到插入所述插播节目的播放列表的位置, 删除所述插播节目的播放 列表, 以删除插播节目。 Positioning to a position of a playlist inserted into the interstitial program, deleting a playlist of the interstitial program to delete the interstitial program.
4、 如权利要求 1所述的方法, 其中, 将插播节目分段的步骤包括: 按照逻辑或者物理分段, 将插播节目分成一个或者多个逻辑分段数据或 者物理分段数据, 每个分段数据均以随机访问单元开始; 4. The method according to claim 1, wherein the step of segmenting the interleaved program comprises: dividing the interleaved program into one or more logical segment data or physical segmentation data according to logical or physical segmentation, each segment Segment data begins with random access units;
将各分段数据的解码信息分别插入各分段数据中。 The decoding information of each segment data is inserted into each segment data.
5、 如权利要求 1所述的方法, 该方法还包括: 5. The method of claim 1 further comprising:
将所述插播节目的播放列表插入正常节目的分段数据中前, 根据预设的 插播时刻, 查找正常节目的播放列表, 获得到达所述插播时刻时播放的正常 节目的分段数据, 以确定所述插播节目的播放列表插入的正常节目的分段数 据。 Before inserting the playlist of the interstitial program into the segmentation data of the normal program, searching for a playlist of the normal program according to the preset insertion time, and obtaining segmentation data of the normal program played when the insertion time is reached, to determine The segmentation data of the normal program inserted by the playlist of the interstitial program.
6、 如权利要求 1所述的方法, 其中: 将所述插播节目的播放列表插入正常节目的分段数据中的步骤包括: 在 插入所述插播节目的播放列表的正常节目分段中插入一插播标识; 6. The method of claim 1 wherein: Inserting the playlist of the interstitial program into the segment data of the normal program includes: inserting an interstitial identifier into a normal program segment of the playlist inserted into the interstitial program;
相应的, 在根据正常节目的播放列表播放正常节目时, 在某一正常节目 的分段数据中获取到所述插播节目的播放列表的步骤包括: 在根据正常节目 的播放列表播放正常节目时, 如果判断出某一正常节目的分段数据中包括所 述插播标识,则从所述正常节目的分段数据中获取所述插播节目的播放列表。 Correspondingly, when the normal program is played according to the playlist of the normal program, the step of acquiring the playlist of the interstitial program in the segment data of a normal program includes: when playing the normal program according to the playlist of the normal program, If it is determined that the segmentation data of a normal program includes the insertion identifier, the playlist of the interstitial program is obtained from the segmentation data of the normal program.
7、 如权利要求 1所述的方法, 其中: 7. The method of claim 1 wherein:
将所述插播节目的播放列表插入正常节目的分段数据中的步骤包括: 判 断所述插播节目的播放列表的数据长度, 如果大于一预设的数据长度, 则对 其进行压缩处理, 将压缩后的插播节目的播放列表和一压缩标识插入正常节 目的分段数据中; The step of inserting the playlist of the interstitial program into the segment data of the normal program includes: determining a data length of the playlist of the interstitial program, if it is greater than a preset data length, compressing the compressed data, compressing a playlist of the subsequent interstitial program and a compressed identification inserted into the segmentation data of the normal program;
相应的, 在根据正常节目的播放列表播放正常节目时, 在某一正常节目 的分段数据中获取到所述插播节目的播放列表的步骤包括: 在根据正常节目 的播放列表播放正常节目时, 如果判断出某一正常节目的分段数据中包括所 述压缩标识, 则从所述正常节目的分段数据中获取所述插播节目的播放列表 后, 还对其进行解压缩处理。 Correspondingly, when the normal program is played according to the playlist of the normal program, the step of acquiring the playlist of the interstitial program in the segment data of a normal program includes: when playing the normal program according to the playlist of the normal program, If it is determined that the segmentation data of a normal program includes the compression identifier, the playlist of the interstitial program is obtained from the segment data of the normal program, and then decompressed.
8、 如权利要求 1-7中任何一项所述的方法, 其中: 8. The method of any of claims 1-7, wherein:
将所述插播节目的播放列表插入正常节目的分段数据中的步骤包括: 生 成所述插播节目的播放列表的统一资源定位符 URL; 将所述插播节目的播 放列表以其 URL的形式插入正常节目的分段数据中; Inserting the playlist of the interstitial program into the segment data of the normal program includes: generating a uniform resource locator URL of the playlist of the interstitial program; inserting the playlist of the interstitial program into the normal form in the form of its URL In the segmentation data of the program;
相应的, 在根据正常节目的播放列表播放正常节目时, 在某一正常节目 的分段数据中获取到所述插播节目的播放列表的步骤包括: 在某一正常节目 的分段数据中获取到所述 URL时, 根据所述 URL获取所述插播节目的播放 列表。 Correspondingly, when the normal program is played according to the playlist of the normal program, the step of acquiring the playlist of the interstitial program in the segment data of a certain normal program comprises: acquiring in the segment data of a normal program When the URL is obtained, the playlist of the interstitial program is acquired according to the URL.
9、 一种分段节目中动态插播节目的系统, 其中, 包括: 前端节目分段设 备、 节目插播处理设备及终端节目播放设备, 其中: A system for dynamically inserting a program in a segmented program, comprising: a front-end program segmentation device, a program insertion processing device, and a terminal program playback device, wherein:
所述前端节目分段设备设置成: 将插播节目分段, 生成插播节目的播放 列表; The front-end program segmentation device is configured to: segment the intervening program to generate a play of the interstitial program List
所述节目插播处理设备设置成: 将所述插播节目的播放列表插入正常节 目的分段数据中; The program insertion processing device is configured to: insert a playlist of the interstitial program into segment data of a normal program;
所述终端节目播放设备设置成: 在根据正常节目的播放列表播放正常节 目时, 如果在某一正常节目的分段数据中获取到所述插播节目的播放列表, 则先根据所述插播节目的播放列表播放插播节目,在完成插播节目的播放后, 继续根据所述正常节目的播放列表播放正常节目。 The terminal program playing device is configured to: when the normal program is played according to the playlist of the normal program, if the playlist of the interstitial program is acquired in the segment data of a certain normal program, first according to the interstitial program The playlist plays the inserted program, and after the play of the inserted program is completed, the normal program is continued to be played according to the playlist of the normal program.
10、 如权利要求 9所述的系统, 其中: 所述节目插播处理设备还设置成: 根据新的插播节目生成新的插播节目的播放列表, 定位到插入所述插播 节目的播放列表的位置, 将所述插播节目的播放列表更新为所述新的插播节 目的播放列表, 以更新插播节目。 10. The system according to claim 9, wherein: the program insertion processing device is further configured to: generate a playlist of a new interstitial program according to the new interstitial program, and locate a position of the playlist inserted into the interstitial program, The playlist of the interstitial program is updated to a playlist of the new interstitial program to update the interstitial program.
11、 如权利要求 9所述的系统, 其中: 所述节目插播处理设备还设置成: 定位到插入所述插播节目的播放列表的位置, 删除所述插播节目的播放 列表, 以删除插播节目。 11. The system of claim 9, wherein: the program insertion processing device is further configured to: locate a location of a playlist inserted into the interstitial program, delete a playlist of the interstitial program, to delete an interstitial program.
12、 如权利要求 9所述的系统, 其中, 所述前端节目分段设备包括: 第 一分段处理模块及第二分段处理模块, 其中: The system of claim 9, wherein the front-end program segmentation device comprises: a first segment processing module and a second segment processing module, wherein:
所述第一分段处理模块设置成: 按照逻辑或者物理分段, 将插入节目分 成一个或者多个逻辑分段数据或者物理分段数据, 每个分段数据均以随机访 问单元开始; The first segment processing module is configured to: divide the inserted program into one or more logical segment data or physical segment data according to logical or physical segmentation, and each segment data starts with a random access unit;
所述第二分段处理模块设置成: 将各分段数据的解码信息分别插入各分 段数据中。 The second segment processing module is configured to: insert decoding information of each segment data into each segment data.
13、 如权利要求 9所述的系统, 其中: 所述节目插播处理设备还设置成: 根据预设的插播时刻, 查找正常节目的播放列表, 获得到达所述插播时 刻时播放的正常节目的分段数据, 以确定所述插播节目的播放列表插入的正 常节目的分段数据。 13. The system according to claim 9, wherein: the program insertion processing device is further configured to: search for a playlist of a normal program according to a preset insertion time, and obtain a score of a normal program played when the insertion time is reached. Segment data to determine segmentation data of a normal program inserted by a playlist of the interstitial program.
14、 如权利要求 9所述的系统, 其中: 所述节目插播处理设备还设置成: 在插入所述插播节目的播放列表的正 常节目分段中插入一插播标识; 14. The system of claim 9 wherein: The program insertion processing device is further configured to: insert a cut-in identifier in a normal program segment inserted into a playlist of the interstitial program;
所述终端节目播放设备还设置成: 在根据正常节目的播放列表播放正常 节目时, 如果判断出某一正常节目的分段数据中包括所述插播标识, 则从所 述正常节目的分段数据中获取所述插播节目的播放列表。 The terminal program playing device is further configured to: when the normal program is played according to the playlist of the normal program, if it is determined that the segment data of a normal program includes the insertion identifier, the segment data from the normal program Obtaining a playlist of the interstitial program.
15、 如权利要求 9所述的系统, 其中: 15. The system of claim 9 wherein:
所述节目插播处理设备还设置成:在插入所述插播节目的播放列表之前, 判断所述插播节目的播放列表的数据长度, 如果大于一预设的数据长度, 则 对其进行压缩处理, 将压缩后的插播节目的播放列表和一压缩标识插入正常 节目的分段数据中; The program insertion processing device is further configured to: before inserting the playlist of the interstitial program, determining a data length of the playlist of the interstitial program, if it is greater than a preset data length, compressing the a playlist of the compressed interim program and a compressed identification inserted into the segmentation data of the normal program;
所述终端节目播放设备还设置成: 在根据正常节目的播放列表播放正常 节目时, 如果判断出某一正常节目的分段数据中包括所述压缩标识, 则从所 述正常节目的分段数据中获取所述插播节目的播放列表后, 还对其进行解压 缩处理。 The terminal program playing device is further configured to: when the normal program is played according to the playlist of the normal program, if it is determined that the segmentation data of a normal program includes the compressed identifier, the segment data from the normal program After the playlist of the interstitial program is obtained, it is also decompressed.
16、 如权利要求 9-15中任何一项所述的系统, 其中: 16. The system of any of claims 9-15, wherein:
所述前端节目分段设备还设置成: 生成所述插播节目的播放列表的统一 资源定位符 URL; The front-end program segmentation device is further configured to: generate a uniform resource locator URL of the playlist of the interstitial program;
所述节目插播处理设备还设置成: 以所述插播节目的 URL作为所述插 播节目的播放列表插入正常节目的分段数据中; The program insertion processing device is further configured to: insert a URL of the interstitial program as a playlist of the inserted program into segment data of a normal program;
所述终端节目播放设备还设置成: 在某一正常节目的分段数据中获取到 所述 URL时, 根据所述 URL获取所述插播节目的播放列表。 The terminal program playing device is further configured to: when the URL is obtained in the segment data of a normal program, acquire a playlist of the interstitial program according to the URL.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010105701298A CN102487453A (en) | 2010-12-02 | 2010-12-02 | Method for dynamically inserting program in segmental program and system thereof |
CN201010570129.8 | 2010-12-02 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2012071931A1 true WO2012071931A1 (en) | 2012-06-07 |
Family
ID=46152903
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2011/079953 WO2012071931A1 (en) | 2010-12-02 | 2011-09-21 | Method and system for dynamically inserting cut-in program into segmented program |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN102487453A (en) |
WO (1) | WO2012071931A1 (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103024609B (en) * | 2012-12-21 | 2016-09-28 | 北京赛科世纪数码科技有限公司 | A kind of method and system updating digital television broadcasting web page server address |
CN104244028B (en) * | 2014-06-18 | 2017-11-24 | 华为技术有限公司 | A kind of content distribution method based on code stream adaptive technique, apparatus and system |
CN105207976B (en) * | 2014-06-23 | 2018-12-07 | 北京大学 | The multimedia messages of AVS-DASH system intercut control method, system and client |
TWI572202B (en) * | 2014-09-19 | 2017-02-21 | 財團法人資訊工業策進會 | Program event detection method, apparatus, and program data transmission system |
CN104575555B (en) * | 2014-12-24 | 2018-09-07 | 百度在线网络技术(北京)有限公司 | A kind of method and apparatus playing media resource |
CN104967883A (en) * | 2015-07-06 | 2015-10-07 | 无锡天脉聚源传媒科技有限公司 | Playlist editing method and device |
CN105208465A (en) * | 2015-09-23 | 2015-12-30 | 青岛海信传媒网络技术有限公司 | Method for inserting inter-cut program into live program and server |
CN106231402A (en) * | 2016-07-18 | 2016-12-14 | 杭州当虹科技有限公司 | A kind of method in terminal, multiple video seamless connections play |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070055983A1 (en) * | 2005-08-24 | 2007-03-08 | C-Cor Incorporated | Logical content ad insertion |
CN101110935A (en) * | 2007-07-31 | 2008-01-23 | 腾讯科技(深圳)有限公司 | Method and system for inter cutting advertisement in network television roll-broadcasting program |
CN101557464A (en) * | 2009-04-01 | 2009-10-14 | 深圳市融创天下科技发展有限公司 | Method for dynamically embedding other media segments in video program playback |
CN101668194A (en) * | 2008-09-05 | 2010-03-10 | 中兴通讯股份有限公司 | Method and device for inserting and playing advertisement based on content fragmentation |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1627813A (en) * | 2003-12-09 | 2005-06-15 | 皇家飞利浦电子股份有限公司 | Method and appts. of generating wonderful part |
CN100534172C (en) * | 2007-06-21 | 2009-08-26 | 腾讯科技(深圳)有限公司 | A method and system for advertisement insertion in network TV living broadcast program |
CN101656755B (en) * | 2008-08-22 | 2015-07-08 | 华为技术有限公司 | Method and device for transmitting and broadcasting advertising programs |
CN101677394B (en) * | 2008-09-16 | 2013-05-08 | 中兴通讯股份有限公司 | Method and apparatus for commercial break based on IPTV |
-
2010
- 2010-12-02 CN CN2010105701298A patent/CN102487453A/en active Pending
-
2011
- 2011-09-21 WO PCT/CN2011/079953 patent/WO2012071931A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070055983A1 (en) * | 2005-08-24 | 2007-03-08 | C-Cor Incorporated | Logical content ad insertion |
CN101110935A (en) * | 2007-07-31 | 2008-01-23 | 腾讯科技(深圳)有限公司 | Method and system for inter cutting advertisement in network television roll-broadcasting program |
CN101668194A (en) * | 2008-09-05 | 2010-03-10 | 中兴通讯股份有限公司 | Method and device for inserting and playing advertisement based on content fragmentation |
CN101557464A (en) * | 2009-04-01 | 2009-10-14 | 深圳市融创天下科技发展有限公司 | Method for dynamically embedding other media segments in video program playback |
Also Published As
Publication number | Publication date |
---|---|
CN102487453A (en) | 2012-06-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6681986B2 (en) | Coded next generation audio data selection for transport | |
WO2012071931A1 (en) | Method and system for dynamically inserting cut-in program into segmented program | |
KR101594351B1 (en) | Streaming of multimedia data from multiple sources | |
CN111837403B (en) | Handling interactivity events for streaming media data | |
KR101689616B1 (en) | Method for transmitting/receiving media segment and transmitting/receiving apparatus thereof | |
CA2838788C (en) | Extensions to trigger parameters table for interactive television | |
US20170195744A1 (en) | Live-stream video advertisement system | |
CN106993239B (en) | Information display method in live broadcast process | |
US20160316233A1 (en) | System and method for inserting, delivering and tracking advertisements in a media program | |
US10715571B2 (en) | Self-adaptive streaming medium processing method and apparatus | |
KR102598237B1 (en) | Method and apparatus for digital broadcast services | |
WO2008061416A1 (en) | A method and a system for supporting media data of various coding formats | |
EP3342174A2 (en) | Transporting coded audio data | |
US20120033035A1 (en) | Method and system for transmitting/receiving 3-dimensional broadcasting service | |
WO2018014691A1 (en) | Method and device for acquiring media data | |
CN106210809A (en) | A kind of method and system broken for commercialsy in net cast | |
WO2017185601A1 (en) | Method and device for providing and downloading video | |
US20100262492A1 (en) | Method and arrangement relating to a media structure | |
CN102594773B (en) | A kind of method and system for realizing data acquisition | |
WO2012071932A1 (en) | Method and system for quick launch of segmented program | |
JP2007267144A (en) | Method for distributing information, server device and program | |
KR102465142B1 (en) | Apparatus and method for transmitting and receiving signals in a multimedia system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 11845584 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 11845584 Country of ref document: EP Kind code of ref document: A1 |