TWI647955B - Linear channel replacement film system and method thereof - Google Patents

Linear channel replacement film system and method thereof Download PDF

Info

Publication number
TWI647955B
TWI647955B TW106118487A TW106118487A TWI647955B TW I647955 B TWI647955 B TW I647955B TW 106118487 A TW106118487 A TW 106118487A TW 106118487 A TW106118487 A TW 106118487A TW I647955 B TWI647955 B TW I647955B
Authority
TW
Taiwan
Prior art keywords
replacement
information
video
channel
advertisement
Prior art date
Application number
TW106118487A
Other languages
Chinese (zh)
Other versions
TW201904302A (en
Inventor
曾文洲
劉啟昇
許峻維
黃英華
劉繼謚
Original Assignee
中華電信股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中華電信股份有限公司 filed Critical 中華電信股份有限公司
Priority to TW106118487A priority Critical patent/TWI647955B/en
Priority to CN201710672632.6A priority patent/CN107580256B/en
Application granted granted Critical
Publication of TWI647955B publication Critical patent/TWI647955B/en
Publication of TW201904302A publication Critical patent/TW201904302A/en

Links

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本發明揭露了一種線性頻道置換影片之系統與方法,所述系統包含一個線性頻道置換影片管理系統、一個置換影片系統、一個置換資訊資料庫、數個頻道CDN(Content delivery network)檔案庫和一台(含)以上行動智慧終端裝置。本發明可在大數據分析每位使用者的喜好之後,針對使用者給予其專屬客製化廣告,並且也可以在加密頻道節目中插入廣告。 The invention discloses a system and method for linear channel replacement film, the system comprising a linear channel replacement film management system, a replacement film system, a replacement information database, a plurality of channel CDN (Content delivery network) archives and a Taiwan (including) and above mobile smart terminal devices. The present invention can give a user a customized advertisement after the big data analyzes the preferences of each user, and can also insert an advertisement in the encrypted channel program.

Description

線性頻道置換影片系統及其方法 Linear channel replacement film system and method thereof

本發明係關於一種線性頻道置換影片系統及其方法,特別是關於一種針對每位使用者給予客製化廣告和在加密頻道節目中插入廣告的線性頻道置換影片系統及其方法。 The present invention relates to a linear channel replacement film system and method thereof, and more particularly to a linear channel replacement film system and method for providing customized advertisements for each user and inserting advertisements in encrypted channel programs.

目前常見的線性頻道插廣告方法是採取讓每位使用者都給予相同廣告觀賞的做法。如果想要達到每位使用者可觀賞到客製化、針對性的廣告影片服務,以現行直播頻道服務採用HLS串流,單一個線性頻道需要同時提供n個profile的影音檔案且1個profile有3個ts,如有m個使用者,就需要3乘以n乘以m倍的儲存空間來存放m個使用者的HLS單一個線性頻道節目內容,再加上k個線性頻道,那就需要3乘以n乘以m乘以k倍的龐大儲存空間來存放k個線性頻道的HLS節目內容,這種做法需要持續分析直播頻道節目的內容,尋找是否有Digital Cue Tone標記,然後抽離原GOP資訊置換成廣告I-GOP,產生新的直播頻道節目檔,相當耗費運算資源,且無法在加密頻道節目進行插廣告。因此無法針對每位使用者給予客製化廣告和無法在加密頻道節目中插入廣告的缺點。 At present, the common linear channel insertion method is to adopt the practice of giving each user the same advertisement. If you want to achieve a customized and targeted advertising video service for each user, the current live channel service uses HLS streaming. A single linear channel needs to provide n profiles of audio and video files at the same time. 3 ts, if there are m users, you need 3 times to n times m times the storage space to store the HLS single linear channel program content of m users, plus k linear channels, then you need 3 multiply n by the large storage space of m times k times to store the HLS program content of k linear channels. This method needs to continuously analyze the content of the live channel program, find out whether there is a Digital Cue Tone mark, and then withdraw from the original The GOP information is replaced by an advertisement I-GOP, which generates a new live channel program file, which is quite computationally expensive and cannot be inserted into the encrypted channel program. Therefore, it is not possible to give each user a custom advertisement and the disadvantage of being unable to insert an advertisement in an encrypted channel program.

有鑑於上述習知技藝之問題,本發明之目的就是在提供線性頻道置換影片系統及其方法,以解決昔之技藝無法針對每位使用者給予客製化廣告和無法在加密頻道節目中插入廣告的缺點。 In view of the above-mentioned problems of the prior art, the object of the present invention is to provide a linear channel replacement film system and a method thereof, to solve the problem that the prior art cannot provide a customized advertisement for each user and cannot insert an advertisement into an encrypted channel program. Shortcomings.

本發明之線性頻道置換影片系統包含一置換資訊資料庫、一頻道檔案庫、一置換影片系統以及至少一行動終端裝置。置換資訊資料庫儲存多個置換資訊;頻道檔案庫儲存多個廣告影片檔;置換影片系統連接置換資訊資料庫及頻道檔案庫,並根據置換資訊及影片檔進行置換影片;行動終端裝置根據置換影片系統所排定的影片播放順序播放影片及廣告影片檔。 The linear channel replacement film system of the present invention comprises a replacement information database, a channel archive, a replacement movie system and at least one mobile terminal device. The replacement information database stores a plurality of replacement information; the channel archive stores a plurality of advertisement video files; the replacement video system connects the replacement information database and the channel archive, and replaces the video according to the replacement information and the video file; the mobile terminal device according to the replacement video The movie and the video file are played in the order in which the system is scheduled to play.

本發明之線性頻道置換影片方法包含下列步驟:以置換資訊資料庫儲存多個置換資訊;以頻道檔案庫儲存多個廣告影片檔;以置換影片系統連接置換資訊資料庫及頻道檔案庫,並根據置換資訊及影片檔進行置換影片;以及以行動終端裝置根據置換影片系統所排定的影片播放順序播放影片及廣告影片檔。 The linear channel replacement video method of the present invention comprises the steps of: storing a plurality of replacement information in a replacement information database; storing a plurality of advertisement video files in a channel archive; replacing the information database and the channel archive by replacing the video system connection, and The replacement information and the video file are used to replace the video; and the mobile terminal device plays the video and the advertising video file according to the sequence of the video playback scheduled by the replacement video system.

承上所述,依本發明之線性頻道置換影片系統及其方法,其可具有一或多個下述優點: As described above, the linear channel replacement film system and method thereof according to the present invention may have one or more of the following advantages:

1.本發明利用將廣告分段片段置入直播頻道節目分段索引m3u8中,可以在觀賞頻道節目時給予使用者客製化的廣告。 1. The present invention utilizes the segmentation segment of the advertisement into the live channel program segmentation index m3u8, which can be customized to the user when viewing the channel program.

2.本發明解決了現行直播頻道插廣告無法在加密頻道節目中插入廣告的缺點,可讓使用者不論在觀賞加密或清流的直播頻道節目時 給予使用者客製化的廣告。 2. The invention solves the shortcoming that the current live channel insertion advertisement cannot insert an advertisement in the encrypted channel program, and allows the user to watch the encrypted or clear live channel program. Give the user a customized advertisement.

3.本技術具有動態預先調節最小分段時間差的機制,用於解決CDN上直播頻道m3u8檔案的更新頻率不是一個固定值以及與線性頻道節目的最小分段時間長度也不一定是廣告影片最小分段長度時間整數倍,導致使用者端觀賞時畫面會有停頓、中斷的情形。 3. The technology has a mechanism for dynamically pre-adjusting the minimum segmentation time difference, and is used to solve the problem that the update frequency of the live channel m3u8 file on the CDN is not a fixed value and the minimum segmentation time length of the program with the linear channel is not necessarily the minimum score of the advertising film. The length of the segment is an integer multiple, which causes the screen to pause and be interrupted when viewed by the user.

1000‧‧‧線性頻道置換影片管理系統 1000‧‧‧Linear channel replacement video management system

2000‧‧‧置換影片系統 2000‧‧‧Replacement film system

2100‧‧‧載入置換資訊模組 2100‧‧‧Loading replacement information module

2200‧‧‧置換影片模組 2200‧‧‧Replacement film module

2210‧‧‧下載頻道分段m3u8 2210‧‧‧Download channel segment m3u8

2220‧‧‧監控置換條件模組 2220‧‧‧Monitoring Displacement Module

2230‧‧‧置換廣告處理模組 2230‧‧‧Replacement Processing Module

2240‧‧‧置換影片輸出 2240‧‧‧Replacement video output

2241‧‧‧HLS分段索引資訊集 2241‧‧‧HLS segmentation index information set

2250‧‧‧置換條件集 2250‧‧‧Change condition set

2260‧‧‧頻道分段佇列 2260‧‧‧Channel segmentation queue

2300‧‧‧置換影片資訊集 2300‧‧‧Replacement video information set

2400‧‧‧儲存模組 2400‧‧‧ Storage Module

2410‧‧‧目的master m3u8檔 2410‧‧‧ Objective master m3u8 file

2420‧‧‧目的分段索引m3u8檔 2420‧‧‧Target segmentation index m3u8 file

3000‧‧‧置換資訊資料庫 3000‧‧‧Replacement Information Database

3100‧‧‧頻道置換生效資料表 3100‧‧‧ Channel Replacement Effectiveness Data Sheet

3200‧‧‧置換資訊資料表 3200‧‧‧Replacement Information Sheet

4000‧‧‧頻道CDN檔案庫 4000‧‧‧ Channel CDN Archive

4100‧‧‧頻道m3u8檔 4100‧‧‧ channel m3u8 file

4200‧‧‧頻道影片檔 4200‧‧‧ channel video file

5000‧‧‧行動智慧終端裝置 5000‧‧‧Mobile smart terminal device

S300~S307‧‧‧步驟流程 S300~S307‧‧‧Step process

S400~S406‧‧‧步驟流程 S400~S406‧‧‧Step procedure

S500~S508‧‧‧步驟流程 S500~S508‧‧‧Step process

S600~S606‧‧‧步驟流程 S600~S606‧‧‧Step procedure

圖1係為本發明之線性頻道置換影片系統之系統架構示意圖。 1 is a schematic diagram of a system architecture of a linear channel replacement film system of the present invention.

圖2係為本發明之線性頻道置換影片系統之運作示意圖。 2 is a schematic diagram of the operation of the linear channel replacement film system of the present invention.

圖3係為本發明之線性頻道置換影片方法之流程圖。 3 is a flow chart of a method for linear channel replacement video of the present invention.

圖4係為本發明之線性頻道置換影片方法之第一流程圖。 4 is a first flow chart of a method for linear channel replacement video of the present invention.

圖5係為本發明之線性頻道置換影片方法之第二流程圖。 FIG. 5 is a second flow chart of the method for linear channel replacement of the present invention.

圖6係為本發明之線性頻道置換影片方法之第三流程圖。 6 is a third flow chart of the method for linear channel replacement of the present invention.

圖7係為本發明之線性頻道置換影片系統與方法之實施例示意圖。 7 is a schematic diagram of an embodiment of a linear channel replacement film system and method of the present invention.

請參閱圖1,圖1所示揭露本發明線性頻道置換影片系統。此系統包含一個線性頻道置換影片管理系統1000、一個置換影片系統2000、一個置換資訊資料庫3000、數個頻道CDN檔案庫4000和一台(含)以上行動智慧終端裝置5000。 Please refer to FIG. 1. FIG. 1 discloses a linear channel replacement film system of the present invention. The system includes a linear channel replacement movie management system 1000, a replacement movie system 2000, a replacement information database 3000, a plurality of channel CDN archives 4000, and one or more mobile smart terminal devices 5000.

線性頻道置換影片管理系統1000提供網頁介面讓管理者編輯置換服務資訊和頻道置換影片資訊。頻道置換服務資訊,包含頻道號碼、頻道HLS網址、頻道置換服務標記,儲放在置換服務生效資料表3100,包含使用者ID、廣告預計開始時間、廣告秒數、廣告間隔秒數、廣告重複次數和廣告HLS網址等,儲放在置換資訊資料表3200。 The linear channel replacement video management system 1000 provides a web interface for the administrator to edit the replacement service information and the channel replacement movie information. Channel replacement service information, including channel number, channel HLS website address, channel replacement service mark, stored in the replacement service effective data table 3100, including user ID, estimated start time of advertisement, number of seconds of advertisement, number of seconds between advertisements, number of advertisements And the advertisement HLS website, etc., are stored in the replacement information data table 3200.

置換影片系統2000依照置換條件進行線性頻道置換影片,置換影片系統2000包含載入置換資訊2100、置換影片模組2200、置換影片資訊集2300和儲存模組2400。載入置換資訊2100負責定時取回置換資訊資料庫3000的置換資訊給置換影片系統2000使用。置換影片模組2200有以下子模組,包含下載頻道分段m3u8 2210、監控置換條件2220、置換廣告處理2230、置換影片輸出2240、HLS分段索引資訊集2241、置換條件集2250和頻道分段佇列2260;下載頻道分段m3u8 2210負責讀取頻道各畫質之分段索引m3u8檔以及更新頻道分段索引資訊;監控置換條件2220依置換廣告狀態內容判斷執行"非置換"、"置換"、"等待置換完成"等任務,置換廣告狀態初值為"非置換";置換廣告處理2230會依據置換廣告狀態內容以及上次所產生HLS分段索引資訊集2241的內容判斷執行不同功能,例如在廣告分段個數快置換完畢時,啟動動態預先調節最小分段 時間差機制,此機制運用頻道節目與廣告影片之最小分段時間差計算出補償分段數及剩下的廣告分段來進行動態補償,將最後的廣告分段檔案名稱資訊置入到HLS分段索引資訊集2241,讓回到頻道節目時可同步CDN上直播頻道m3u8檔案的更新頻率,進入或離開廣告時播放畫面不會有停頓以及中斷的情形;置換影片輸出2240主要產生目的分段索引m3u8、產生各畫質的目的分段索引m3u8、提供查詢HLS分段索引資訊集2241中是否已經不含廣告;HLS分段索引資訊集2241儲存分段影片路徑絕對化的HLS分段索引資訊;置換條件集2250是由同一個頻道的置換條件組成,其中的資訊包含頻道號碼、廣告開始時間、廣告結束時間、廣告分段影片個數和廣告分段索引清單(含廣告HLS網址路徑)等;頻道分段佇列2260存放具有時間戳記HLS分段索引資訊的歷史清單。置換影片資訊集2300是由廣告影片資訊所組成,其中包含廣告影片的各畫質之廣告分段索引清單、廣告HLS網址等,提供以廣告HLS網址找出該廣告分段索引清單資訊。儲存模組2400提供建立各頻道的檔案目錄夾、以及儲放各頻道目的master m3u8檔以及各置換頻道的各畫質之目的分段索引m3u8檔。 The replacement film system 2000 performs a linear channel replacement movie in accordance with the replacement condition. The replacement movie system 2000 includes a load replacement information 2100, a replacement movie module 2200, a replacement movie information set 2300, and a storage module 2400. The load replacement information 2100 is responsible for periodically retrieving the replacement information of the replacement information database 3000 for use in the replacement movie system 2000. The replacement movie module 2200 has the following sub-modules, including a download channel segment m3u8 2210, a monitoring replacement condition 2220, a replacement advertisement processing 2230, a replacement movie output 2240, an HLS segmentation index information set 2241, a replacement condition set 2250, and a channel segmentation. The queue 2256; the download channel segment m3u8 2210 is responsible for reading the segment index m3u8 file of each picture quality of the channel and updating the channel segment index information; and monitoring the replacement condition 2220 to perform "non-replacement" and "replacement" according to the content of the replacement advertisement state. The task of "waiting for replacement completion", the initial value of the replacement advertisement status is "non-replacement"; the replacement advertisement processing 2230 judges to perform different functions according to the content of the replacement advertisement status and the content of the last generated HLS segmentation index information set 2241, for example, Start dynamic pre-adjustment minimum segmentation when the number of ad segments is fast replaced Time difference mechanism, which uses the minimum segmentation time difference between the channel program and the advertising film to calculate the compensation segment number and the remaining advertisement segments for dynamic compensation, and puts the last advertisement segment file name information into the HLS segment index. The information set 2241 can synchronize the update frequency of the live channel m3u8 file on the CDN when returning to the channel program, and the playback screen will not have pause and interruption when entering or leaving the advertisement; the replacement movie output 2240 mainly generates the target segment index m3u8, Generating the segmentation index m3u8 of each image quality, providing whether the query HLS segmentation index information set 2241 has no advertisements; the HLS segmentation index information set 2241 storing the segmentation film path absoluteized HLS segmentation index information; Set 2250 is composed of the replacement conditions of the same channel, and the information includes the channel number, the advertisement start time, the advertisement end time, the number of advertisement segmentation videos, and the advertisement segmentation index list (including the advertisement HLS URL path); The segment queue 2260 stores a history list with time stamped HLS segmentation index information. The replacement movie information set 2300 is composed of advertisement video information, which includes an advertisement segment index list of each image quality of the advertisement movie, an advertisement HLS website, and the like, and provides the advertisement segment index list information by using the advertisement HLS website. The storage module 2400 provides a file directory folder for establishing each channel, and a target segment index m3u8 file for storing the master m3u8 file of each channel and each picture quality of each replacement channel.

置換資訊資料庫3000有置換服務生效資料表3100和置換資訊資料表3200,提供查詢和記錄相關資訊;置換服務生效資料表3100記錄著頻道號碼、頻道HLS網址和頻道置換服務標記,其中的頻道置換服務標記提供置換影片模組2200判斷該模組要繼續執行還是暫停;置換資訊資料表3200有以下資訊,包含有頻道號碼、使用者ID、廣告預計開始時間、廣告秒數、廣告間隔秒數、廣告重複次數和廣告之網址等資訊。 The replacement information database 3000 has a replacement service effective data table 3100 and a replacement information data table 3200 for providing query and record related information; the replacement service effective data table 3100 records the channel number, the channel HLS address, and the channel replacement service mark, wherein the channel replacement The service tag provides a replacement movie module 2200 to determine whether the module is to be executed or suspended; the replacement information table 3200 has the following information, including the channel number, the user ID, the estimated start time of the advertisement, the number of seconds of the advertisement, the number of seconds between the advertisements, Information such as the number of ad repeats and the URL of the ad.

頻道CDN檔案庫4000,係儲存有頻道m3u8檔及頻道 影片檔。行動智慧終端裝置5000,提供使用者操作觀看HLS直播頻道節目。 Channel CDN archive 4000, which stores channels m3u8 files and channels Video file. The mobile smart terminal device 5000 provides a user to operate the HLS live channel program.

請參閱圖2系統流程圖,(1)線性頻道置換影片管理系統1000透過網頁介面讓管理者編輯置換服務資訊和頻道置換影片資訊,將資訊分別儲存於置換資訊資料庫3000之置換服務生效資料表3100及置換資訊資料表3200中。(2)由載入置換資訊2100定時取回置換服務生效資料表3100,先篩選出還未產生置換影片模組2200執行緒的頻道號碼,自動以頻道號碼為ID產生該執行緒(頻道ID執行緒),再依每一筆的頻道號碼和頻道置換服務標記內容,分別通知該頻道ID執行緒要繼續執行還是暫停。(3)以及定時取回置換資訊資料表3200中未處理的頻道置換影片資訊,將這些資訊中的廣告HLS網址一筆筆向置換影片資訊集2300查詢是否已存在,如果不存在先透過該廣告HLS網址分別取回廣告分段索引清單,建立新的清單於置換影片資訊集2300。 Referring to the system flow chart of FIG. 2, (1) the linear channel replacement video management system 1000 allows the administrator to edit the replacement service information and the channel replacement video information through the web interface, and store the information in the replacement service data library 3000 replacement service effective data table. 3100 and replacement information sheet 3200. (2) The replacement service information table 3100 is periodically retrieved by loading the replacement information 2100, and the channel number of the thread of the replacement movie module 2200 has not been generated, and the thread is automatically generated by using the channel number as the ID (channel ID execution) Thread), according to each channel number and channel replacement service mark content, respectively, to inform the channel ID thread to continue execution or pause. (3) and periodically retrieving the unprocessed channel replacement video information in the replacement information data table 3200, and querying the advertisement HLS website in the information for a pen-for-replacement video information set 2300 to check whether the existing information exists, if there is no first to pass the advertisement HLS The URL retrieves the ad segmentation index list and creates a new list in the replacement video information set 2300.

再利用該筆資訊的廣告重複次數自動計算產生置換條件資訊儲存於置換條件集2250中。(4)當頻道ID執行緒收到啟動命令時,會通知下載頻道分段m3u8 2210執行程序;當頻道ID執行緒收到暫停命令時,會通知下載頻道分段m3u8 2210暫停程序。(5)下載頻道分段m3u8 2210經由頻道HLS網址讀取各畫質的分段索引檔,向頻道分段佇列2260查詢是否有新的分段資訊產生且不重複,如果有話將新的分段資訊轉換成具有時間戳記分段資訊儲存在頻道分段佇列2260,通知監控置換條件2220進行置換條件判斷。不論是否有新的分段資訊產生與否,皆跳到步驟(4)繼續執行處理。 The replacement condition information is automatically stored in the replacement condition set 2250 by automatically calculating the number of advertisement repetitions using the information. (4) When the channel ID thread receives the start command, it will notify the download channel segment m3u8 2210 to execute the program; when the channel ID thread receives the pause command, it will notify the download channel segment m3u8 2210 to suspend the program. (5) The download channel segment m3u8 2210 reads the segment index file of each image quality through the channel HLS web address, and queries the channel segmentation queue 2260 whether new segment information is generated and is not repeated, if there is a new message The segmentation information is converted into time-stamped segmentation information and stored in the channel segmentation queue 2260, and the monitoring replacement condition 2220 is notified to perform the replacement condition determination. Regardless of whether new segmentation information is generated or not, skip to step (4) to continue the processing.

監控置換條件2220,參閱圖3,步驟如下:S300:執行監控置換條件;S301:執行狀態是否為啟動;S302:置換廣告標記是否為「非置換」;S303:取出最新一筆時間戳記HLS分段資訊向置換條件集查詢;S304:是否符合廣告開始及結束之時間條件;S305:將廣告標記設為「置換」,取出目前置換影片資訊;S306:通知置換廣告處理模組處理;以及S307:執行狀態設為暫停。 Monitoring the replacement condition 2220, referring to FIG. 3, the steps are as follows: S300: performing a monitoring replacement condition; S301: whether the execution status is started; S302: whether the replacement advertisement flag is "non-replacement"; S303: taking out the latest time stamp HLS segment information Querying the replacement condition set; S304: whether the time condition of the start and end of the advertisement is met; S305: setting the advertisement mark to "replacement", taking out the current replacement movie information; S306: notifying the replacement advertisement processing module processing; and S307: executing state Set to pause.

其中,當置換廣告狀態為"非置換"時,從頻道分段佇列2260取出最新具有時間戳記HLS分段資訊,向置換條件集2250查詢判斷是否符合廣告之條件,若符合廣告之條件,將置換廣告狀態為"置換",再從置換影片資訊集2300取出current置換影片資訊。接著不論是否符合廣告之條件,通知置換廣告處理2230處理。 Wherein, when the replacement advertisement status is "non-replacement", the latest time-stamped HLS segmentation information is retrieved from the channel segmentation queue 2260, and the replacement condition set 2250 is queried to determine whether the advertisement condition is met, and if the advertisement condition is met, The replacement advertisement status is "Replacement", and then the current replacement movie information is taken out from the replacement movie information set 2300. The replacement advertisement processing 2230 is then notified regardless of whether or not the conditions of the advertisement are met.

廣告處理2230會依據置換廣告狀態內容以及上次所產生HLS分段索引資訊集2241的內容判斷執行不同功能:(1)當置換廣告狀態為"非換置"時,移除標記設為true,請參閱圖4,步驟如下:S400:置換廣告處理開始;S401:執行狀態是否為啟動;S402:置換廣告標記是否為「非置換」;S403:取出最新時間戳記HLS分段資訊;S404:呼叫置換影片輸出模組產生目的分段索引m3u8檔; S405:移除頻道分段佇列第一筆頻道HLS分段資訊;以及S406:執行狀態設為暫停。 The advertisement processing 2230 judges to perform different functions according to the content of the replacement advertisement status and the content of the last generated HLS segmentation index information set 2241: (1) When the replacement advertisement status is "non-replacement", the removal flag is set to true, Referring to FIG. 4, the steps are as follows: S400: replacement advertisement processing starts; S401: whether the execution status is startup; S402: whether the replacement advertisement mark is "non-replacement"; S403: fetching the latest time stamp HLS segment information; S404: call replacement The video output module generates a target segment index m3u8 file; S405: remove the channel segment to list the first channel HLS segmentation information; and S406: the execution state is set to pause.

其中,從頻道分段佇列2260取出最新的一筆頻道HLS分段資訊,傳給置換影片輸出2240更新HLS分段索引資訊集2241內容,產生目的分段索引m3u8檔(不含廣告)後,移除頻道分段佇列2260中第一筆頻道HLS分段資訊,等待下個指令。(2)當置換廣告狀態為"置換"時(步驟S500),請參閱圖5,先計算補償分段數(步驟S501),將移除標記設為true,呼叫置換影片輸出2240,依照移除標記移除第一筆影片分段資訊和新增一個廣告分段檔名資訊到HLS分段索引資訊集22410並將廣告分段計數遞加1以及設定COUNT為補償分段數減1(步驟S502),是否執行動態預先調節最小分段時間差機制之插入廣告處理,判斷三個條件是否同時成立:①廣告分段計數小於廣告分段個數②剩餘廣告分段個數小於(3乘以補償分段數)③以及COUNT不等於零(步驟S503),若這三個條件其中有不成立的,跳到步驟S506繼續執行;若這三個條件同時成立,啟動動態預先調節最小分段時間差的機制之插入廣告處理,將移除標記設為false,呼叫置換影片輸出模組新增一個廣告分段資訊到HLS分段索引資訊集2241,在依內容產生目的分段索引m3u8檔並將COUNT遞減1以及廣告分段計數遞加1,等待廣告分段影片的秒數時間後,跳到步驟S503繼續執行(步驟S504)。呼叫置換影片輸出2240依HLS分段索引資訊集2241內容,產生目的分段索引m3u8檔(步驟S505),判斷廣告是否置換完成,當廣告分段計數小於廣告分段影片個數(步驟S506),當條件不成立時,等待HLS分段索引資訊集2241之第一筆分段影片的秒數時間後,跳到步驟S502繼 續執行(步驟S507);當條件成立時,同步化頻道分段佇列2260及更新HLS分段索引資訊集2241,並將置換廣告狀態改為"等待置換完成",跳到步驟S600繼續執行(步驟S508)。 The latest piece of channel HLS segmentation information is retrieved from the channel segmentation queue 2260, and the replacement movie output 2240 is updated to update the HLS segmentation index information set 2241, and the destination segmentation index m3u8 file (excluding the advertisement) is generated. In addition to the first channel HLS segmentation information in the channel segmentation queue 2260, the next instruction is awaited. (2) When the replacement advertisement status is "Replacement" (step S500), referring to FIG. 5, the compensation segment number is first calculated (step S501), the removal flag is set to true, and the call replacement movie output 2240 is removed. The flag removes the first movie segment information and adds an advertisement segment file name information to the HLS segment index information set 22410 and increments the advertisement segment count by 1 and sets COUNT to the compensation segment number minus 1 (step S502) Whether to perform the dynamic ad pre-adjustment of the minimum segmentation time difference mechanism of the insertion advertisement process, to determine whether the three conditions are simultaneously established: 1 the ad segment count is less than the number of ad segments 2 the number of remaining ad segments is less than (3 times the compensation score) The number of segments 3 and COUNT are not equal to zero (step S503). If any of the three conditions is not true, the process goes to step S506 to continue; if the three conditions are simultaneously established, the mechanism for initiating the dynamic pre-adjustment of the minimum segment time difference is inserted. The advertisement processing sets the removal flag to false, and the call replacement movie output module adds an advertisement segmentation information to the HLS segmentation index information set 2241, and generates a destination segmentation index m3u8 file according to the content and COUNT Save ad segment 1 and incrementing a count, the number of seconds to wait for video advertising segment, execution jumps to step S503 to continue (step S504). The call replacement movie output 2240 generates the destination segment index m3u8 file according to the content of the HLS segment index information set 2241 (step S505), determines whether the advertisement replacement is completed, and when the advertisement segment count is smaller than the number of the advertisement segmentation movie (step S506), When the condition is not established, after waiting for the second time of the first segmented movie of the HLS segment index information set 2241, the process proceeds to step S502. Continued execution (step S507); when the condition is satisfied, synchronize the channel segmentation queue 2260 and update the HLS segmentation index information set 2241, and change the replacement advertisement status to "wait for replacement completion", and skip to step S600 to continue execution ( Step S508).

同步化頻道分段佇列2260,是將頻道分段佇列2260的最後一筆資訊的時間戳記改為現在的時間戳記;以及修正倒數第二筆資訊的時間戳記,將該佇列刪除到只剩最後兩筆資訊。 Synchronizing the channel segmentation queue 2260, changing the timestamp of the last piece of information of the channel segmentation queue 2260 to the current timestamp; and correcting the timestamp of the second-to-last information, deleting the queue to only the remaining The last two pieces of information.

(3)當置換廣告狀態為"等待置換完成"時,請參閱圖6,先判斷置換廣告標記是否為"等待置換完成"(步驟S600),等待HLS分段索引資訊集2241之第一筆分段影片的時間秒數以及將COUNT設為補償分段數減1(步驟S601),將移除標記設為true,呼叫置換影片輸出2240移除HLS分段索引資訊集2241之第一筆分段影片資訊,並從頻道分段佇列2260取出第一筆的HLS分段資訊加入HLS分段索引資訊集2241中,在每次置換廣告狀態剛切換到"等待置換完成"時,需加入EXT-X-DISCONTINUITY TAG),產生目地分段索引m3u8檔(步驟S602),判斷是否執行動態預先調節最小分段時間差機制之移除廣告處理,向置換影片輸出2240查詢HLS分段索引資訊集的第一筆是否為廣告資訊以及COUNT是否為零,如果條件成立,啟動動態預先調節最小分段時間差的機制之移除廣告處理,如果條件不成立,跳到S605執行(步驟S603),執行動態預先調節最小分段時間差的機制之移除廣告處理,呼叫置換影片輸出2240僅移出HLS分段索引資訊集2241之第一筆分段資訊,產生目地分段索引m3u8檔,COUNT遞減1,判斷移除後的第一筆資訊是否為廣告且COUNT不是零,如果條件成立,等待該資訊的時間秒數,跳到S603 繼續執行,如果條件不成立,跳到S605執行(S604),判斷HLS分段索引資訊集2241之第一筆資訊是否為廣告,如果是廣告,跳到S601繼續執行,如果不是廣告,跳到S606執行(S605),將置換廣告狀態改為"非置換"和移除該筆置換條件,等待監控置換條件2220的通知執行(步驟S606)。置換影片輸出2240會依置換廣告狀態及移除標記來更新HLS分段索引資訊集2241的記錄,再由記錄內容中的頻道分段影片前加入頻道HLS網址(分段影片路徑絕對化),放入HLS分段索引資訊集2241中,再產生該畫質的目的分段索引m3u8。(A)當置換廣告狀態為"非置換"時,有兩種情形:(1)初始化(HLS分段索引資訊集2241是空的),該模組將從頻道分段佇列2260取出前3筆資訊,分段影片路徑絕對化後儲存到HLS分段索引資訊集2241,並產生該頻道的目的master m3u8檔及該畫質之目的分段索引m3u8檔。(2)更新(HLS分段索引資訊集2241有內容),該模組會先從頻道分段佇列2260取出最新的一筆資訊,分段影片路徑絕對化後儲存到HLS分段索引資訊集2241及移除第一筆資訊,依產生該畫質之目的分段索引m3u8檔。(B)當置換廣告狀態為"置換"時,依輸入參數可選擇移除HLS分段索引資訊集2241的第一筆資訊或加入從頻道分段佇列2260取出第一筆資訊。並以廣告分段計數為index從current置換影片清單取得廣告分段影片的資訊,放入HLS分段索引資訊集2241中產生該畫質之目的分段索引m3u8檔後,將廣告分段計數值遞加1,並回傳該分段索引第一筆分段影片秒數。(C)當置換廣告狀態為"等待置換完成"時,依輸入參數可選擇移除HLS分段索引資訊集2241的第一筆資訊或加入從頻道分段佇列2260取出第一筆資訊等。 (3) When the replacement advertisement status is "waiting for replacement completion", referring to FIG. 6, it is first determined whether the replacement advertisement flag is "waiting for replacement completion" (step S600), and waits for the first stroke of the HLS segmentation index information set 2241. The time seconds of the segment movie and the setting of COUNT to the number of compensation segments minus 1 (step S601), the removal flag is set to true, and the call replacement movie output 2240 removes the first segment of the HLS segmentation index information set 2241. The video information, and the first HLS segmentation information is taken from the channel segmentation queue 2260 and added to the HLS segmentation index information set 2241. When each replacement advertisement state is just switched to "waiting for replacement completion", it is necessary to add EXT- X-DISCONTINUITY TAG), generating a destination segmentation index m3u8 file (step S602), determining whether to perform a dynamic pre-adjustment minimum segmentation time difference mechanism for removing advertisement processing, and querying the replacement movie output 2240 for the first of the HLS segmentation index information set. Whether the pen is advertisement information and whether COUNT is zero. If the condition is met, the removal advertisement process of the mechanism of dynamically pre-adjusting the minimum segmentation time difference is started. If the condition is not established, the process proceeds to S605 (step S603), and execution is performed. The pre-adjustment of the minimum segmentation time difference mechanism for the removal of the advertisement process, the call replacement film output 2240 only moves out of the first segmentation information of the HLS segmentation index information set 2241, generates the target segmentation index m3u8 file, and the COUNT decrements by 1, judging Whether the first information after the removal is an advertisement and COUNT is not zero. If the condition is met, wait for the number of seconds of the information and skip to S603. If the condition is not met, go to S605 to execute (S604), determine whether the first information of the HLS segment index information set 2241 is an advertisement, if it is an advertisement, skip to S601 to continue execution, if not, go to S606 to execute (S605), the replacement advertisement status is changed to "non-replacement" and the pen replacement condition is removed, and the notification execution of the monitoring replacement condition 2220 is awaited (step S606). The replacement movie output 2240 updates the record of the HLS segmentation index information set 2241 according to the replacement advertisement status and the removal flag, and then joins the channel HLS URL (the segmentation movie path is absolute) by the channel segmentation movie in the recorded content, and puts In the HLS segment index information set 2241, the target segment index m3u8 of the image quality is generated. (A) When the replacement advertisement status is "non-replacement", there are two cases: (1) initialization (HLS segmentation index information set 2241 is empty), and the module will take out the first 3 from the channel segmentation queue 2260. The pen information is segmented and stored in the HLS segmentation index information set 2241, and the target master m3u8 file of the channel and the target segment index m3u8 file of the image quality are generated. (2) Update (the HLS segment index information set 2241 has content), the module will first retrieve the latest piece of information from the channel segmentation queue 2260, and the segmentation film path is absoluteized and stored in the HLS segmentation index information set 2241. And remove the first information, segmentation index m3u8 file according to the purpose of generating the image quality. (B) When the replacement advertisement status is "Replacement", the first information of the HLS segmentation index information set 2241 may be selected to be removed or the first information may be taken out from the channel segmentation queue 2260 according to the input parameters. And obtaining the information of the advertisement segmentation movie from the current replacement movie list by using the advertisement segmentation count as the index, and placing the segmentation index of the target segment index m3u8 of the image quality in the HLS segmentation index information set 2241 Add 1 and return the number of seconds of the first segment of the segment index. (C) When the replacement advertisement status is "waiting for replacement completion", the first information of the HLS segmentation index information set 2241 may be removed or the first information may be taken out from the channel segmentation queue 2260 according to the input parameters.

〈實施例〉 <Example>

請參考圖2之線性頻道置換影片系統流程圖,假設已從線性頻道置換影片管理系統1000將那些頻道可提供置換影片服務和置換影片資訊的內容,分別輸入到置換資訊資料庫3000的置換服務生效資料表3100及置換資訊資料表3200中。 Please refer to the flow chart of the linear channel replacement film system of FIG. 2, assuming that the content of the replacement video service and the replacement video information provided by the linear channel replacement video management system 1000 are respectively input to the replacement information database 3000. The data sheet 3100 and the replacement information data sheet 3200.

置換服務生效資料表3100的內容如下: The contents of the replacement service effective data sheet 3100 are as follows:

一、針對單一使用者給予客製化廣告,其中的置換資訊資料表3200內容如下: 1. For a single user to give customized advertisements, the contents of the replacement information table 3200 are as follows:

1.產生及啟動置換影片模組2200執行緒;定時取出置換服務生效資料表3100內容以及利用chNo查詢是否有相對應之置換影片模組2200執行緒,如果沒有產生以chNo為ID之置換影片模組2200執行緒。以此例有兩個ID分別是:ID15與ID16置換影片模組的執行緒產生,只有ID15的置換服務標記是啟動。 1. Generate and start a replacement movie module 2200 thread; periodically retrieve the replacement service effective data table 3100 content and use chNo to query whether there is a corresponding replacement movie module 2200 thread, if no replacement film module with chNo is generated Group 2200 thread. In this example, there are two IDs: ID15 and ID16 replace the thread module's thread generation, and only the ID15 replacement service tag is started.

2.新增置換影片資訊及新增置換條件:定時取出置換資訊資料表3200之新增置換資訊後, 2. Add replacement video information and new replacement conditions: After periodically removing the new replacement information of the replacement information data table 3200,

2-1.先將adLink的值經由置換影片資訊集2300查詢判斷是否有重覆的置換資訊,如果沒重覆則透過adLink記錄的置換影片之網 址取回置換影片分段索引清單(adList)、分析該清單一個分段片長(duration)以及將adLink、adList、adDuration等資訊,儲放到置換影片資訊集2300,如下: 2-1. First, the value of the adLink is searched through the replacement video information set 2300 to determine whether there is repeated replacement information. If there is no repetition, the replacement video segment index list (adList) is retrieved through the URL of the replacement video recorded by the adLink. The list is analyzed for a duration and the information such as adLink, adList, and adDuration is stored in the replacement movie information set 2300, as follows:

2-2.以adLink為ID向置換影片資訊集2300取回置換影片分段索引清單adID,並依載入置換資訊repeatTimes為3,在置換條件集2250產生3筆頻道置換影片資訊,其中第二筆的adStartTime是由第一筆adTime、adDuration和intervalDuration計算出來的,2015-12-1620:00:00+14Sec+300Sec=2015-12-1620:05:14,依此類推第三筆的adStartTime,以及給予user1的廣告如下: 2-2. Retrieving the replacement movie segment index list adID with the adLink ID as the ID, and generating 3 channel replacement video information in the replacement condition set 2250 according to the loading replacement information repeatTimes 3, wherein the second The pen's adStartTime is calculated by the first adTime, adDuration and intervalDuration, 2015-12-1620:00:00+14Sec+300Sec=2015-12-1620:05:14, and so on, the third adStartTime, And the advertisements given to user1 are as follows:

利用置換服務資訊中的頻道HLS網址,讀取各畫質的分段索引檔,當有新的頻道HLS分段資訊時,將其透過具有時間戳記HLS分段資訊轉換後,儲存頻道分段佇列中通知監控置換條件模組進行置換條件判斷。除非收到暫停置換影片服務時進入等待,否則重覆此步驟。置換廣告狀態初值為"非置換"。假設頻道分段佇列2260已有資訊,如下 The segmentation index file of each image quality is read by using the channel HLS URL in the replacement service information. When there is a new channel HLS segmentation information, it is converted by the time stamp HLS segmentation information, and the channel segmentation is stored. The notification monitoring replacement condition module in the column performs the replacement condition judgment. Repeat this step unless you wait until you receive a pause in the replacement movie service. The initial value of the replacement ad status is "non-replacement". Assume that the channel segmentation queue 2260 has information, as follows

假設該頻道其中一個畫質分段索引有新的分段資訊產生,內容如下: Assume that one of the image quality segmentation indexes of the channel has new segmentation information, and the content is as follows:

以及置換影片輸出2240內的HLS分段索引資訊集2241和目的分段索引m3u8檔,如下: And the HLS segment index information set 2241 and the destination segment index m3u8 file in the replacement movie output 2240, as follows:

3.ID15執行緒之下載頻道分段m3u8 2210,透過頻道HLS網址輾轉讀取頻道各畫質的分段清單,並向ID15執行緒的頻道分段佇列2260查詢判斷各畫質是否有新的分段資訊產生且沒有重複, 3. ID15 thread download channel segment m3u8 2210, through the channel HLS URL to read the channel list of each image quality, and to the ID15 thread channel segment queue 2260 query to determine whether each image quality has a new Segmentation information is generated and there is no duplication,

3-1.參考圖7轉換成帶具有時間戳記HLS分段資訊後,更新一筆資訊到頻道分段佇列2260,如下 3-1. After converting to a HLS segmentation information with a time stamp with reference to FIG. 7, update a message to the channel segmentation queue 2260, as follows

3-2.取出這筆更新的資訊,通知監控置換條件模組2220進行置換條件判斷。 3-2. The updated information is taken out, and the monitoring replacement condition module 2220 is notified to perform the replacement condition determination.

4.監控置換條件模組2220,會依置換廣告狀態的內容進行底下程序,當其內容為"非置換"時,從頻道分段佇列2260中取出最新的一筆具有時間戳記HLS分段資訊,向置換條件集2250查詢判斷是否符合廣告之條件,若符合廣告之條件,將置換廣告狀態為"置換"和將廣告分段指標計數初值為零。接著不論是否符合廣告之條件,通知置換廣告處理2230處理。 4. The monitoring replacement condition module 2220 performs the following procedure according to the content of the replacement advertisement state. When the content is "non-replacement", the latest one-time time-stamped HLS segmentation information is taken out from the channel segmentation queue 2260. The replacement condition set 2250 is queried to determine whether the condition of the advertisement is met. If the condition of the advertisement is met, the replacement advertisement status is "displacement" and the initial value of the advertisement segmentation index is zero. The replacement advertisement processing 2230 is then notified regardless of whether or not the conditions of the advertisement are met.

置換廣告處理2230會依據置換廣告狀態內容以及上次所產生的HLS分段索引資訊集2241內容判斷執行不同功能:請參閱圖3,將取得的更新資訊之sTimeStamp值為stime4、eTimeStamp值為etime4與置換條件集2250之adStartTime比對。 The replacement advertisement processing 2230 determines to perform different functions according to the content of the replacement advertisement status and the content of the HLS segmentation index information set 2241 generated last time: Referring to FIG. 3, the sTimeStamp value of the updated information obtained is stime4, and the eTimeStamp value is etime4 and The replacement condition set 2250 is the adStartTime alignment.

4-1.假設置換條件未成立,代表adStartTime不在該筆資訊stime4、etime4之間,將置換廣告狀態設為"非置換"(A)置換廣告處理2230進行"非置換"處理,請參閱圖4,呼叫置換影片輸出2240依照HLS 分段索引資訊集2241的內容,產生含user1名稱之目的分段索引m3u8;例:user1index.m3u8),回傳現在m3u8輸出的第一筆分段影片秒數為4.11秒(片段秒數取整數為4秒),如下: 4-1. Assuming that the replacement condition is not satisfied, the representative adStartTime is not between the pieces of information stime4 and etime4, and the replacement advertisement status is set to "non-replacement" (A) replacement advertisement processing 2230 for "non-replacement" processing, see FIG. The call replacement movie output 2240 generates a destination segment index m3u8 containing the user1 name according to the content of the HLS segmentation index information set 2241; for example: user1index.m3u8), and returns the first segmented movie seconds output by the m3u8. 4.11 seconds (the number of seconds of the fragment is 4 seconds), as follows:

等待4秒後,當下載頻道分段m3u8 2210又有新的分段資訊產生後,移除頻道分段佇列2260第一筆資料及更新HLS分段索引資訊集2241內容: After waiting for 4 seconds, when the download channel segment m3u8 2210 has new segmentation information generated, the channel segmentation column 2260 first data is updated and the HLS segmentation index information set 2241 content is updated:

4-2.假設置換條件成立,代表adStartTime在該筆資訊stime4、etime4之間,將置換廣告狀態設為"置換",設定廣告分段計數值為0。 4-2. Assuming that the replacement condition is satisfied, on behalf of adStartTime, the replacement advertisement status is set to "displacement" between the pieces of information stime4 and etime4, and the advertisement segment count value is set to zero.

(B)置換廣告處理2230進行"換置"處理,請參閱圖5,獲得計算補償分段數為2,呼叫置換影片輸出2240,產生目的分段索引 m3u8檔,在該檔中加入EXT-X-DISCONTINUITY tag,讓行動智慧終端裝置5000可正常從頻道節目播放廣告影片,以及回傳第一筆分段影片秒數為4.11秒(片段秒數取整數為4秒),如下:, (B) The replacement advertisement processing 2230 performs a "placement" process. Referring to FIG. 5, the calculation compensation segment number is 2, the call replacement movie output 2240 is generated, and the destination segment index m3u8 file is generated, and EXT-X is added to the file. The -DISCONTINUITY tag allows the mobile smart terminal device 5000 to normally play the commercial video from the channel program, and the number of seconds to return the first segmented movie is 4.11 seconds (the number of seconds of the segment is 4 seconds), as follows:

此例"adList"內共有7個廣告分段影片,判斷發現廣告還沒置換完成,在等待片段秒數4秒後,請參閱圖5,經S502~S504後,此次啟動了動態預先調節最小分段時間差之機制,經該機制處理後,影片輸出2240共插入兩個廣告分段檔名到HLS分段索引資訊集2241以及產生目的分段索引m3u8檔後,廣告分段計數為3,剩餘廣告分段影片個數為4,如下: In this example, there are 7 ad segmentation videos in "adList". It is judged that the advertisement has not been replaced yet. After waiting for the segment seconds for 4 seconds, please refer to Figure 5. After S502~S504, the dynamic pre-adjustment minimum is activated. After the mechanism of the segmentation time difference, the movie output 2240 inserts two advertisement segment file names into the HLS segment index information set 2241 and generates the destination segment index m3u8 file, and the advertisement segment count is 3, and the remaining The number of ad segmented videos is 4, as follows:

在S506判斷廣告分段計數為3還是小於廣告分段影片個數7,發現廣告還沒置換完成,經S502~S504後,產生目的分段索引m3u8檔後,廣告分段計數為5,剩餘廣告分段影片個數為2,如下: In S506, it is determined whether the advertisement segment count is 3 or less than the number of advertisement segmentation films, and it is found that the advertisement has not been replaced yet. After S502~S504, after the destination segment index m3u8 file is generated, the advertisement segmentation count is 5, and the remaining advertisements are The number of segmented videos is 2, as follows:

再等待2秒後,判斷廣告分段計數為5還是小於廣告分段影片個數7,執行S502~S504,廣告分段計數為7,剩餘廣告分段影片個數為零,如下: After waiting for 2 seconds, it is judged whether the advertisement segment count is 5 or less than the number of advertisement segmentation films 7, and S502~S504 is executed, the advertisement segmentation count is 7, and the remaining advertisement segmentation film number is zero, as follows:

依S506判斷廣告分段計數7等於廣告分段影片個數7,同步化頻道分段佇列2260,將頻道分段佇列2260的最後一筆資訊的時間戳記改為現在的時間戳記;以及修正倒數第二筆資訊的時間戳記,將該佇列刪除到只剩最後兩筆資訊並更新HLS分段索引資訊集2241及置換廣告狀態改為"等待置換完成",跳到置換廣告處理2230繼續執行,如下 According to S506, it is determined that the advertisement segment count 7 is equal to the number of advertisement segmentation films 7, the synchronization channel segmentation queue 2260, the time stamp of the last piece of information of the channel segmentation queue 2260 is changed to the current time stamp; and the correction countdown The timestamp of the second information is deleted, only the last two pieces of information are left and the HLS segmentation index information set 2241 is updated and the replacement advertisement status is changed to "waiting for replacement completion", and the replacement advertisement processing 2230 is continued to execute. as follows

(C).當置換廣告狀態為"等待置換完成"時,請參閱圖6,等待2秒後,將 COUNT設為補償分段數減1,呼叫置換影片輸出2240移除HLS分段索引資訊集2241之第一筆分段ad2.ts影片並加入從頻道分段佇列2260取出第一筆的HLS分段資訊N-1.ts,產生目地分段索引m3u8檔,如下: (C). When the replacement advertisement status is "Waiting for replacement completion", please refer to Figure 6. After waiting for 2 seconds, set COUNT to the number of compensation segments minus 1, and call replacement movie output 2240 to remove the HLS segmentation index information set. The first segment of the 2241 ad2.ts movie is added to the first segment of the HLS segmentation information N-1.ts from the channel segmentation queue 2260 to generate the target segmentation index m3u8 file, as follows:

判斷是否執行動態預先調節分段時間差機制之移除廣告處理?因為HLS分段索引資訊集的第一筆為廣告資訊以及COUNT為1,判斷成立,啟動動態預先調節最小分段時間差機制之移除廣告處理,動態預先調節最小分段時間差機制之移除廣告處理:移出HLS分段索引資訊集2241第一筆分段資訊ad3.ts、COUNT遞減1,產生目地分段索引m3u8檔,如下: Determine whether to perform the dynamic pre-adjustment segmentation time difference mechanism to remove the ad processing? Because the first piece of the HLS segmentation index information set is the advertisement information and the COUNT is 1, the judgment is established, the dynamic pre-adjustment minimum segment time difference mechanism is adopted to remove the advertisement processing, and the dynamic pre-adjustment minimum segment time difference mechanism is adopted to remove the advertisement processing. : Move out the HLS segmentation index information set 2241, the first segmentation information ad3.ts, COUNT decrement 1, and generate the target segmentation index m3u8 file, as follows:

查詢判斷HLS分段索引資訊集2241的第一筆資訊是否為廣告,第一筆資訊為ad4.ts廣告資訊但COUNT為零,所以離開動態預先調節最小分段時間差機制之移除廣告處理。 The query determines whether the first information of the HLS segment index information set 2241 is an advertisement, and the first information is ad4.ts advertisement information but COUNT is zero, so the dynamic advertisement pre-adjustment minimum segment time difference mechanism is removed from the advertisement processing.

跳到S605查詢頻道置換影片分段m3u8中是否已經不含廣告,因為HLS分段索引資訊集的第一筆為ad4.ts廣告資訊,回到S601等待2秒後,將COUNT設為補償分段數減1,移除HLS分段索引資訊集2241之第一筆分段ad4.ts影片並加入從頻道分段佇列2260取出第一筆的HLS分段資訊N.ts,產生目地分段索引m3u8檔,如下, Skip to S605 to query whether the channel replacement movie segment m3u8 does not contain advertisements, because the first pen of the HLS segment index information set is ad4.ts advertising information, and return to S601 for 2 seconds, then set COUNT as compensation segment. Subtract 1 to remove the first segment ad4.ts movie of the HLS segmentation index information set 2241 and add the first HLS segmentation information N.ts from the channel segmentation queue 2260 to generate the destination segmentation index. M3u8 file, as follows,

在經過動態預先調節最小分段時間差機制之移除廣告處理後,目地分段索引m3u8檔的結果,如下: After the removal of the advertisement processing by the dynamic pre-adjustment minimum segmentation time difference mechanism, the result of the segmentation index m3u8 file is as follows:

經再次跳到S605以及動態預先調節最小分段時間差機制之移除廣告處理後,目地分段索引m3u8檔的結果,如下: After skipping to S605 and dynamically removing the minimum segmentation time difference mechanism to remove the advertisement processing, the result of the target segmentation index m3u8 file is as follows:

跳到S605並查詢頻道置換影片分段m3u8中是否已經 不含廣告(S605),發現HLS分段索引資訊集的第一筆為N-1.ts不是廣告資訊。 Skip to S605 and check if the channel replacement movie segment m3u8 is already Without advertising (S605), the first pen in the HLS segmentation index information set was found to be N-1.ts not advertising information.

將置換條件集2250的該筆置換條件移除,並將置換廣告狀態改為"非置換",跳到執行監控置換條件2220開始。 The replacement condition of the replacement condition set 2250 is removed, and the replacement advertisement status is changed to "non-replacement", and the jump to the execution monitor replacement condition 2220 begins.

二、對多位使用者給予客製化廣告,置換資訊資料表3200的內容如下:置換資訊資料表3200的內容如下: 2. For a number of users to give customized advertisements, the contents of the replacement information sheet 3200 are as follows: The contents of the replacement information sheet 3200 are as follows:

如同(一)單一使用者給予客製化廣告的步驟所述,其中不同的部份,如下: As described in (a) the steps a single user gives to a customized advertisement, the different parts are as follows:

1.置換條件集2250的新增內容(users中的空字串代表未在users描述的使用者): 1. What's new in the replacement condition set 2250 (the empty string in users represents the user not described in users):

2.分別產生含users資訊之目的master.m3u8和目的index.m3u8,如此例:目的master.m3u8(包含有master.m3u8、user1master.m3u8和user2master.m3u8)以及目的index.m3u8(包含有index.m3u8、user1index.m3u8和user2index.m3u8)。 2. Generate master.m3u8 and destination index.m3u8 with user information respectively. For example: the destination master.m3u8 (including master.m3u8, user1master.m3u8 and user2master.m3u8) and the destination index.m3u8 (including index. M3u8, user1index.m3u8 and user2index.m3u8).

3.如同單一使用者給予客製化廣告的步驟,依照adID資訊分別進行廣告置換,提供給多位使用者客製化廣告。 3. As a single user gives a customized advertisement step, the advertisement is replaced according to the adID information, and the advertisement is provided to a plurality of users.

以上所述僅為舉例性,而非為限制性者。任何未脫離本發明之精神與範疇,而對其進行之等效修改或變更,均應包含於後附之申請專利範圍中。 The above is intended to be illustrative only and not limiting. Any equivalent modifications or alterations to the spirit and scope of the invention are intended to be included in the scope of the appended claims.

Claims (6)

一種線性頻道置換影片系統,包含:一置換資訊資料庫,儲存多個置換資訊;一頻道檔案庫,儲存多個廣告影片檔;一置換影片系統,連接該置換資訊資料庫及該頻道檔案庫,並根據該些置換資訊及該些影片檔進行置換多個影片,其中,該置換影片系統包括一置換影片資訊集,儲存該些廣告影片檔之資訊;至少一行動終端裝置,根據該置換影片系統所排定的影片播放順序播放該些影片及該些廣告影片檔;以及一線性頻道置換影片管理系統,提供一介面以進行編輯該些置換資訊及該些廣告影片檔之資訊,並儲存於一頻道置換生效資料表以及一置換資訊資料表;其中,該線性頻道置換影片管理系統定時取回該置換資訊資料表中未處理的頻道置換影片資訊,將該頻道置換影片資訊中的廣告HLS網址依序在該置換影片資訊集中查詢是否已存在,若不存在則透過該廣告HLS網址分別取回廣告分段索引清單以建立新的清單於該置換影片資訊集。 A linear channel replacement video system includes: a replacement information database storing a plurality of replacement information; a channel archive storing a plurality of advertisement video files; a replacement video system connecting the replacement information database and the channel archive; And replacing the plurality of videos according to the replacement information and the video files, wherein the replacement video system includes a replacement video information set, and storing information of the advertisement video files; at least one mobile terminal device according to the replacement video system The scheduled video playback sequence plays the videos and the advertisement video files; and a linear channel replacement video management system provides an interface for editing the replacement information and the information of the advertisement video files, and storing the information in one a channel replacement effective data table and a replacement information data table; wherein the linear channel replacement video management system periodically retrieves unprocessed channel replacement video information in the replacement information data table, and replaces the advertisement HLS URL in the channel information Whether the query in the replacement video information set already exists, if not exist The ad URL HLS were retrieved advertising segment index list to create a new list in the replacement video information set. 如申請專利範圍第1項所述之線性頻道置換影片系統,其中該置換影片系統更包括:一置換資訊載入模組,定時取得該些置換資訊;一儲存模組,儲存該些影片之資訊;以及一置換影片模組,根據該些置換資訊、該些廣告影片檔之資訊以及該些 影片之資訊決定該些影片及廣告影片檔的播放順序。 The linear channel replacement video system of claim 1, wherein the replacement video system further comprises: a replacement information loading module for periodically acquiring the replacement information; and a storage module for storing the information of the video And a replacement video module, based on the replacement information, the information of the advertisement video files, and the The information of the film determines the order in which the videos and the video files are played. 如申請專利範圍第2項所述之線性頻道置換影片系統,其中該置換影片模組更包含:一監控置換條件模組,根據該些廣告影片檔之狀態判斷是否要進行將該些影片置換為該些廣告影片檔。 The linear channel replacement video system of claim 2, wherein the replacement video module further comprises: a monitoring replacement condition module, and determining, according to the status of the advertising video files, whether to replace the video with the These advertising video files. 一種線性頻道置換影片方法,包含:以一置換資訊資料庫儲存多個置換資訊;以一頻道檔案庫儲存多個廣告影片檔;以一置換影片系統連接該置換資訊資料庫及該頻道檔案庫,並根據該些置換資訊及該些影片檔進行置換多個影片,其中,該置換影片系統包括一置換影片資訊集以儲存該些廣告影片檔之資訊;以至少一行動終端裝置根據該置換影片系統所排定的影片播放順序播放該些影片及該些廣告影片檔;以一線性頻道置換影片管理系統提供一介面以進行編輯該些置換資訊及該些廣告影片檔之資訊;以及以該線性頻道置換影片管理系統係儲存一頻道置換生效資料表以及一置換資訊資料表;其中,該線性頻道置換影片管理系統定時取回該置換資訊資料表中未處理的頻道置換影片資訊,將該頻道置換影片資訊中的廣告HLS網址依序在該置換影片資訊集中查詢是否已存在,若不存在則透過該廣告HLS網址分別取回廣告分段索引清單以建立新的清單於該置換影片資訊集。 A linear channel replacement video method includes: storing a plurality of replacement information in a replacement information database; storing a plurality of advertisement video files in a channel archive; and connecting the replacement information database and the channel archive in a replacement video system, And replacing the plurality of videos according to the replacement information and the video files, wherein the replacement video system includes a replacement video information set for storing information of the advertisement video files; and at least one mobile terminal device according to the replacement video system The scheduled video playback sequence plays the videos and the advertisement video files; a linear channel replacement video management system provides an interface for editing the replacement information and the information of the advertisement video files; and the linear channel The replacement video management system stores a channel replacement effective data table and a replacement information data table; wherein the linear channel replacement video management system periodically retrieves unprocessed channel replacement video information in the replacement information data table, and replaces the channel with the video information. The advertisement HLS URL in the information is sequentially checked in the replacement video information collection. Already exists, if there were to retrieve the sub-index of the ad inventory through the ad HLS URL to create a new list in the replacement video information set. 如申請專利範圍第4項所述之線性頻道置換影片方法,其中該置換影片 系統更包括一置換資訊載入模組、一儲存模組以及一置換影片模組,且方法更包含下列步驟:以該置換資訊載入模組定時取得該些置換資訊;以該置換影片資訊集儲存該些廣告影片檔之資訊;以及以該置換影片模組根據該些置換資訊、該些廣告影片檔之資訊以及該些影片之資訊決定該些影片及廣告影片檔的播放順序。 a linear channel replacement film method as described in claim 4, wherein the replacement film The system further includes a replacement information loading module, a storage module and a replacement video module, and the method further comprises the steps of: acquiring the replacement information by using the replacement information loading module; and replacing the video information set with the replacement information The information of the advertisement video files is stored; and the replacement video module determines the play order of the video and the advertisement video files based on the replacement information, the information of the advertisement video files, and the information of the video files. 如申請專利範圍第5項所述之線性頻道置換影片方法,其中該置換影片模組更包含一監控置換條件模組,且方法更包含下列步驟:以該監控置換條件模組根據該些廣告影片檔之狀態判斷是否要進行將該些影片置換為該些廣告影片檔。 The method of claim 4, wherein the replacement video module further comprises a monitoring replacement condition module, and the method further comprises the step of: using the monitoring replacement condition module according to the advertising videos. The status of the file determines whether the movie is to be replaced with the video files.
TW106118487A 2017-06-05 2017-06-05 Linear channel replacement film system and method thereof TWI647955B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
TW106118487A TWI647955B (en) 2017-06-05 2017-06-05 Linear channel replacement film system and method thereof
CN201710672632.6A CN107580256B (en) 2017-06-05 2017-08-08 Linear channel replacement film system and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW106118487A TWI647955B (en) 2017-06-05 2017-06-05 Linear channel replacement film system and method thereof

Publications (2)

Publication Number Publication Date
TWI647955B true TWI647955B (en) 2019-01-11
TW201904302A TW201904302A (en) 2019-01-16

Family

ID=61035852

Family Applications (1)

Application Number Title Priority Date Filing Date
TW106118487A TWI647955B (en) 2017-06-05 2017-06-05 Linear channel replacement film system and method thereof

Country Status (2)

Country Link
CN (1) CN107580256B (en)
TW (1) TWI647955B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110267117B (en) * 2019-06-11 2020-11-27 网宿科技股份有限公司 Streaming media data processing method and streaming media processing server

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140150019A1 (en) * 2012-06-28 2014-05-29 Azuki Systems, Inc. Method and system for ad insertion in over-the-top live media delivery
CN104320679A (en) * 2014-10-11 2015-01-28 中兴通讯股份有限公司 Method for obtaining user information based on HLS protocol and server
US9351037B2 (en) * 2012-02-07 2016-05-24 Turner Broadcasting System, Inc. Method and system for contextual advertisement replacement utilizing automatic content recognition
US20160345074A1 (en) * 2015-05-21 2016-11-24 Viviso Inc. Apparatus and Method for Replacing Conventional Commercials with Targeted Advertisements in Online Live Streams

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1277298A2 (en) * 2000-04-28 2003-01-22 Intel Corporation System and method for providing content interruptions
EP1267572A2 (en) * 2001-06-11 2002-12-18 Canal+ Technologies Société Anonyme Improvements in the field of programme delivery
US20060218617A1 (en) * 2005-03-22 2006-09-28 Microsoft Corporation Extensible content identification and indexing
CN101272449B (en) * 2008-03-28 2010-12-15 山东泰信电子有限公司 Television advertisement cut-broadcasting method based on digital TV set-top box
US8798442B2 (en) * 2009-12-12 2014-08-05 At&T Intellectual Property I, Lp System, method and computer program product for updating advertising data for recorded video data
CN106792007A (en) * 2017-01-19 2017-05-31 深圳市奥拓电子股份有限公司 A kind of video transmission method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9351037B2 (en) * 2012-02-07 2016-05-24 Turner Broadcasting System, Inc. Method and system for contextual advertisement replacement utilizing automatic content recognition
US20140150019A1 (en) * 2012-06-28 2014-05-29 Azuki Systems, Inc. Method and system for ad insertion in over-the-top live media delivery
CN104320679A (en) * 2014-10-11 2015-01-28 中兴通讯股份有限公司 Method for obtaining user information based on HLS protocol and server
US20160345074A1 (en) * 2015-05-21 2016-11-24 Viviso Inc. Apparatus and Method for Replacing Conventional Commercials with Targeted Advertisements in Online Live Streams

Also Published As

Publication number Publication date
TW201904302A (en) 2019-01-16
CN107580256B (en) 2020-09-08
CN107580256A (en) 2018-01-12

Similar Documents

Publication Publication Date Title
US11284130B2 (en) Dynamic insertion of content within live streaming video
US10616630B2 (en) Method for querying information of a currently broadcasted TV program and smart TV
JP6084537B2 (en) Method for in-video bookmarking and non-transitory computer readable recording medium
CN111885396B (en) System and method for splicing advertisements in streaming content
KR101117915B1 (en) Method and system for playing a same motion picture among heterogeneity terminal
US9170712B2 (en) Presenting content related to current media consumption
US20160353168A1 (en) Methods, apparatuses, and/or systems for distributing video compilations of user-captured videos
US8078695B2 (en) Media on demand using an intermediary device to output media from a remote computing device
US11966433B1 (en) Subscribe to people in videos
TWI647955B (en) Linear channel replacement film system and method thereof
WO2014103374A1 (en) Information management device, server and control method
JP4055776B2 (en) Content distribution system, and peer and peer program used therefor
JP5308946B2 (en) Data providing apparatus, data providing method, data providing program, and data providing system
JP2013142906A (en) Event evaluation device and event evaluation method
JP2007066370A (en) Play-back apparatus and play-back method
RU2671306C1 (en) Advertising replacing in streaming video broadcasts in computer networks method and system
US20150026583A1 (en) Media content boards
JP6375665B2 (en) VIDEO DATA MANAGEMENT DEVICE, VIDEO DATA MANAGEMENT METHOD, AND VIDEO DATA MANAGEMENT PROGRAM
JP3896371B2 (en) Video storage device and video playback device
US12046262B2 (en) Content playback control
JP2009071398A (en) Recording apparatus and method, and recording medium
EP3531707A1 (en) Audio content playback control
JP2010268089A (en) Content distribution device
US20200004833A1 (en) Method and system for managing a time-based database for contextual searching and commenting on multimedia
CN111556010A (en) Live stream caching method and device, electronic equipment and storage medium