CN114339366A - Method, device and equipment for replacing advertisements in review programs - Google Patents

Method, device and equipment for replacing advertisements in review programs Download PDF

Info

Publication number
CN114339366A
CN114339366A CN202111634201.3A CN202111634201A CN114339366A CN 114339366 A CN114339366 A CN 114339366A CN 202111634201 A CN202111634201 A CN 202111634201A CN 114339366 A CN114339366 A CN 114339366A
Authority
CN
China
Prior art keywords
advertisement
original
fragment
playing
new
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111634201.3A
Other languages
Chinese (zh)
Inventor
孔德龙
刘伟
伍明智
钟国俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Fonsview Technologies Co ltd
Original Assignee
Wuhan Fonsview Technologies Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Fonsview Technologies Co ltd filed Critical Wuhan Fonsview Technologies Co ltd
Priority to CN202111634201.3A priority Critical patent/CN114339366A/en
Publication of CN114339366A publication Critical patent/CN114339366A/en
Pending legal-status Critical Current

Links

Images

Abstract

The application discloses a method, a device and a computer device for replacing advertisements in a review program.A first type of original TS fragments which simultaneously comprise original advertisements and feature film content are divided into original advertisement TS fragments and feature film content TS fragments according to original advertisement distribution information, the feature film content TS fragments are stored in a streaming media system, and the playing addresses of the feature film content TS fragments are stored; determining the playing address of the new advertisement TS fragment; receiving a playback program playing request sent by a playing end, replacing the playing address of the first type of original TS fragments segmented in the original M3U8 index with the playing address of feature content TS fragments, and replacing the playing address of the original advertisement TS fragments with the playing address of new advertisement TS fragments to form a new M3U8 index file; and a new M3U8 index file is returned to the playing end, so that the advertisement replacement is completed without restarting the player, smooth playing after replacing the advertisement is ensured, and the loss of the feature film content or the replaced new advertisement content is avoided.

Description

Method, device and equipment for replacing advertisements in review programs
Technical Field
The present application relates to the field of network television technologies, and in particular, to a method and an apparatus for replacing an advertisement in a review program, and a computer device.
Background
In the video service of the current Internet Protocol Television (IPTV), recording a live program and providing a live program review service after the live program is finished are important service functions in the video service. At present, the recording of live programs is basically based on absolute time recording and is provided for users to watch in a program list mode, the content recorded usually comprises advertisements put in live broadcasting, and the advertisements watched when the users watch the live programs and watch the live programs are the same. If the advertisement in the recorded live review program can be changed, namely the original advertisement in the review program is replaced by a new advertisement, higher economic benefit can be brought to the video service.
In the existing advertisement playing mode, an advertisement replacing method is that the feature content of a program and a new advertisement to be played are played on two lines, and the specific method is that the new advertisement content is put in advance to a playing end, when the advertisement needs to be replaced and played, the playing end firstly closes a player currently playing a video according to the playing strategy of the advertisement, restarts the player to play the new advertisement after the set advertisement playing address, ends the player after the new advertisement playing is finished, returns to the playing address of the feature content, and restarts the player to continue playing the feature content. It can be seen from this flow that, because the new advertisement and the feature film content are set in two playing lines, when the advertisement is launched, the player is repeatedly switched and restarted, and the buffer is reloaded to cause the playing to be stuck, which may affect the viewing experience of the user. In another way, if a review mode based on the streaming media transport protocol HLS is adopted, although TS segments containing advertisement content can be replaced, review programs are recorded based on absolute time or program lists, if there is a TS segment containing both advertisement content and feature content in a review recording of a live program, advertisement replacement will cause loss of the feature content or advertisement content, so that normal advertisement replacement cannot be performed.
Disclosure of Invention
The application mainly aims to provide a method, a device and computer equipment for replacing advertisements in a review program, and aims to solve the technical problems that in the prior art, when advertisements are replaced, playing is unsmooth and the advertisements cannot be completely replaced.
In a first aspect, the present application provides a method for replacing an advertisement in a review program, the method comprising the steps of:
according to original advertisement distribution information, cutting an original TS fragment simultaneously comprising an original advertisement and feature film content into an original advertisement TS fragment and a feature film content TS fragment so as to separate the original advertisement from the feature film content, wherein the original TS fragment simultaneously comprising the original advertisement and the feature film content is a first type of original TS fragment, the original TS fragment only comprising the original advertisement is a second type of original TS fragment, and the original TS fragment only comprising the feature film content is a third type of original TS fragment;
storing the feature film content TS fragments into a streaming media system, and storing the playing addresses of the feature film content TS fragments;
determining the playing address of the new advertisement TS fragment;
receiving a playback program playing request sent by a playing end, replacing the playing address of the first type of original TS fragments segmented in the original M3U8 index with the playing address of the feature content TS fragments, and replacing the playing address of the original advertisement TS fragments with the playing address of the new advertisement TS fragments to form a new M3U8 index file;
and returning the new M3U8 index file to the playing end so that the playing end plays videos according to the new M3U8 index file.
In some embodiments, the receiving a playback request of a review program sent by a playback end, replacing a playback address of the first type of original TS segments segmented in an original M3U8 index with a playback address of the feature content TS segments, and replacing a playback address of the original advertisement TS segments with a playback address of the new advertisement TS segments, so as to form a new M3U8 index file, includes:
judging whether the original advertisement TS fragments comprise complete advertisement fragments;
if so, replacing the playing address of the original advertisement TS fragment with the playing address of the new advertisement TS fragment to form a new M3U8 index file;
if not, replacing the original advertisement TS fragments and other second type original fragments of the advertisement together with the playing addresses of the new advertisement TS fragments to form the new M3U8 index file.
In some embodiments, replacing the original advertisement TS segment and other second type original segments of the advertisement with the playing address of the new advertisement TS segment to form the new M3U8 index file, including;
and if the second type of original TS fragments exist before and/or after the cut original advertisement TS fragments, replacing the original advertisement TS fragments and the second type of original TS fragments with the playing addresses of the new advertisement TS fragments to form the new M3U8 index file.
In some embodiments, before determining the playing address of the new advertisement TS segment, the method further includes:
converting a new advertisement into a TS fragment format to obtain a TS fragment of the new advertisement;
and injecting the new advertisement TS fragments into the streaming media system, and storing the playing addresses of the new advertisement TS fragments.
In some embodiments, before said cutting the original TS segment including both the original advertisement and the feature content into the original advertisement TS segment and the feature content TS segment according to the original advertisement distribution information, the method includes:
and acquiring a program list of a channel, and determining the distribution information of the original advertisement in the original TS fragment according to the starting time and the ending time of the original advertisement in the program list.
In some embodiments, the replacing the playing address of the original advertisement TS fragment with the playing address of the new advertisement TS fragment comprises:
and determining an advertisement strategy according to the channel type, the program content type, the playing time, the user portrait and/or the duration of the original advertisement of the channel.
In some embodiments, the replacing the playing address of the original advertisement TS fragment with the playing address of the new advertisement TS fragment includes:
and replacing the playing address of the original advertisement TS fragment with the playing address of the new advertisement TS fragment according to the advertisement strategy.
In some embodiments, after the receiving a playback request of a review program sent by a playback end, replacing a playback address of the first type original TS segment segmented in an original M3U8 index with a playback address of the feature content TS segment, and replacing a playback address of the original advertisement TS segment with a playback address of the new advertisement TS segment, the method further includes:
judging whether advertisement replacement is needed or not;
if not, returning the original M3U8 index file to the playing end;
if the original M3U8 index is replaced, replacing the playing address of the first type of original TS fragment segmented in the original M3U8 index with the playing address of the feature film content TS fragment, replacing the playing address of the original advertisement TS fragment with the playing address of the new advertisement TS fragment to form a new M3U8 index file, and returning the corresponding M3U8 file to a playing end.
In a second aspect, the present application further provides an apparatus for replacing an advertisement in a review program, the apparatus comprising:
the system comprises a slicing module, a first classification module and a second classification module, wherein the slicing module is used for slicing an original TS fragment which simultaneously comprises original advertisements and feature film contents into an original advertisement TS fragment and a feature film content TS fragment according to original advertisement distribution information so as to separate the original advertisements from the feature film contents, and the original TS fragment which simultaneously comprises the original advertisements and the feature film contents is a first type of original fragment, only comprises the original advertisement contents is a second type of original fragment, and comprises formal contents is a third type of original fragment;
the storage module is used for storing the feature film content TS into a streaming media system and storing the playing address of the feature film content TS;
a determining module, configured to determine a playing address of the new advertisement TS segment;
the replacing module is used for replacing the playing address of the first type of original TS fragments segmented in the original M3U8 index file with the playing address of the feature content TS fragments according to an advertisement strategy after receiving a playback request of a review program sent by a playback end, and replacing the playing address of the original advertisement TS fragments with the playing address of the new advertisement TS fragments to form a new M3U8 index file;
a returning module, configured to return the new M3U8 index file to the playback end, so that the playback end performs video playback according to the M3U8 index file.
In a third aspect, the present application also provides a computer device comprising a processor, a memory, and a computer program stored on the memory and executable by the processor, wherein the computer program, when executed by the processor, implements the steps of the replacement method for advertisement in a review program as described above.
The application provides a replacement method, a device and computer equipment for advertisements in a review program, which divide an original TS fragment simultaneously comprising original advertisements and feature content into an original advertisement TS fragment and a feature content TS fragment according to original advertisement distribution information so as to separate the original advertisements from the feature content, wherein the original TS fragment simultaneously comprising the original advertisements and the feature content is a first type of original TS fragment, the original TS fragment only comprising the original advertisements is a second type of original TS fragment, and the original TS fragment only comprising the feature content is a third type of original TS fragment; storing the feature film content TS fragments into a streaming media system, and storing the playing addresses of the feature film content TS fragments; determining the playing address of the new advertisement TS fragment; receiving a playback program playing request sent by a playing end, replacing the playing address of the first type of original TS fragments segmented in the original M3U8 index with the playing address of the feature content TS fragments, and replacing the playing address of the original advertisement TS fragments with the playing address of the new advertisement TS fragments to form a new M3U8 index file; and returning the new M3U8 index file to the playing end, so that the playing end plays the video according to the new M3U8 index file, the original TS fragment simultaneously comprises the original advertisement and the feature film content, the integrity of the feature film content and the replaced advertisement can be ensured after the advertisement is replaced, the new M3U8 index file can be used for playing according to a standard HLS protocol, the player does not need to be repeatedly switched, and the user experience is not influenced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart illustrating an alternative method for reviewing advertisements in a program according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of three types of TS fragmentation;
FIG. 3 is a schematic diagram of an advertisement replacement method in a first case;
FIG. 4 is a schematic diagram of an advertisement replacement method in a second case;
FIG. 5 is a diagram illustrating an advertisement replacement method according to a third embodiment;
FIG. 6 is a schematic block diagram of an alternative apparatus for reviewing advertisements in a program according to an embodiment of the present application;
fig. 7 is a block diagram schematically illustrating a structure of a computer device according to an embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The flow diagrams depicted in the figures are merely illustrative and do not necessarily include all of the elements and operations/steps, nor do they necessarily have to be performed in the order depicted. For example, some operations/steps may be decomposed, combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
The embodiment of the application provides a method and a device for replacing advertisements in a review program and computer equipment. The replacing device for the advertisement in the review program can be applied to computer equipment, and the computer equipment can be electronic equipment such as a notebook computer, a desktop computer and the like.
Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
It should be noted that the method in this application is performed based on a streaming media transport protocol HLS (HTTP live streaming), which is a streaming media network transport protocol initiated by apple inc, and its working principle is to divide the whole video stream into small HTTP-based files, which are TS fragments, and the addresses of these TS fragments are stored in an M3U8(extended M3U8 playlist) index file. When a streaming media session is started, the video playing end downloads the M3U8 index file containing the TS fragment address, and the playing end finds and downloads an available media stream, that is, an available TS fragment, according to the M3U8 index file, thereby completing the playing of the video.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for replacing an advertisement in a review program according to an embodiment of the present application.
As shown in fig. 1, the method includes steps S1 through S5. The replacement method of the advertisement in the review program is carried out at the server side.
Step S1, according to the original advertisement distribution information, dividing the original TS fragment including the original advertisement and the feature film content into an original advertisement TS fragment and a feature film content TS fragment, so as to separate the original advertisement and the feature film content, wherein the original TS fragment including the original advertisement and the feature film content is the first type of original TS fragment, the original TS fragment only including the original advertisement is the second type of original TS fragment, and the original TS fragment only including the feature film content is the third type of original TS fragment.
Specifically, the original advertisement distribution information includes a start time and an end time of the original advertisement. Because the review program generated after the live program is recorded is stored in the form of TS segments, the distribution of the original advertisement in the TS segments can be determined after the start time and the end time of the original advertisement are determined, and thus the content in each original TS segment can be determined. As shown in fig. 2, the TS fragments can be divided into three categories according to the content in the original TS fragments: the first type of original TS fragments simultaneously comprise original advertisements and feature film contents, the second type of original TS fragments only comprise the original advertisements, and the third type of original TS fragments only comprise the feature film contents. Before advertisement replacement, the first type of original TS fragment with both original advertisement and feature content is divided into two TS fragments, one being the divided original advertisement TS fragment and the other being the divided feature content TS fragment, and the position of the dotted line in fig. 2 indicates the position of the division. For example, when a review program is recorded by a live video, each original TS fragment has 10 seconds for storage, and if the first 6 seconds of a first type of original TS fragment is a feature content and the last 4 seconds are an original advertisement, the original TS fragment is divided after the 6 th second of the first type of original TS fragment is ended to form a 6-second feature content TS fragment and a 4-second original advertisement TS fragment.
When replacing advertisement, the original advertisement TS fragment can be replaced by the new advertisement TS fragment containing the new advertisement content, so that the purpose of replacing advertisement is achieved. However, the direct replacement of the first type of original TS segments including the original advertisement and the feature content may result in the loss of the feature content, and if the first type of original TS segments are not replaced to preserve the feature content, the loss of the content of the new advertisement may be caused, so that the first type of original TS segments need to be split to separate the original advertisement and the segment content.
It is worth explaining that, before the server splits the original TS segments including both the original advertisement and the feature content according to the original advertisement distribution information, the distribution information of the original advertisement is determined. The server side can synchronously acquire the program list of the channel when the live program list is made into a review program, and mark the starting time and the ending time of the original advertisement in the recorded review program, wherein the starting time and the ending time of the original advertisement are absolute time points in the whole video, so as to determine the distribution information of the original advertisement. And at the same time, the server determines the type of the channel and the type of the program, such as sports, education, children or entertainment, according to the program list of the channel.
Step S2, storing the feature film content TS in a streaming media system, and storing the playing address of the feature film content TS;
it should be noted that, when replacing the advertisement, it is necessary to ensure that the feature film content can be played normally at the playing end, so that the divided feature film content TS fragments need to be injected into the streaming media system, and the playing address of the feature film content TS fragments needs to be stored, so that the feature film content TS fragments can be played according to the standard HLS protocol when being played.
Step S3, determining the playing address of the new advertisement TS fragment;
in some embodiments, a new advertisement uploaded by an advertiser to replace an original advertisement is obtained, and the video format of the new advertisement uploaded by the advertiser may be various, so that after the new advertisement file uploaded by the advertiser is obtained, the new advertisement is converted into a TS fragment format, so that the new advertisement TS fragment is obtained. And injecting the new advertisement TS fragment into the streaming media system, and storing the playing address of the new advertisement TS fragment.
Step S4, receiving a playback request of a review program sent by a playback end, replacing the playback address of the first type of original TS fragment segmented in the original M3U8 index with the playback address of the feature content TS fragment, and replacing the playback address of the original advertisement TS fragment with the playback address of the new advertisement TS fragment to form a new M3U8 index file.
Specifically, for example, the first type of original TS segment that is sliced has a duration of 10 seconds, the first 6 seconds are feature content, the last 4 seconds are original advertisement, and a feature content TS segment of 6 seconds and an original advertisement TS segment of 4 seconds are formed after being sliced. The original TS segment of the first category for the 10 seconds that is sliced is replaced by the feature content TS segment of the 6 seconds, and the original advertisement TS segment of the 4 seconds is replaced by the new advertisement TS segment. Therefore, the completeness of the feature film content playing is ensured, and the original advertisement is replaced by the new advertisement.
It should be noted that before the replacement, it is further determined whether the original advertisement TS segment that is cut down includes the complete advertisement segment. For example, the original advertisement TS fragment that is cut out has 4 seconds, and the complete advertisement fragment is also 4 seconds, then the original advertisement TS fragment includes the complete advertisement fragment, and the original advertisement TS fragment of 4 seconds is directly replaced by a new advertisement TS fragment of 4 seconds, so that the purpose of replacing the original advertisement with the new advertisement is achieved. If the original advertisement TS is sliced for 4 seconds and the complete advertisement segment is more than 4 seconds, the following three situations will occur.
Specifically, as shown in fig. 3, in the advertisement replacement in the first case, the total time of the complete advertisement segment is 14 seconds, the original advertisement TS fragment of the segmented 4 seconds is the beginning part of the complete advertisement segment, the second type of original TS fragment of the segmented first type also includes a complete original TS fragment of the second type with a duration of 10 seconds, and then the original advertisement TS fragment of the segmented 4 seconds and the second type of original TS fragment of the following 10 seconds are replaced together with a new advertisement TS fragment of 14 seconds including a new complete advertisement segment.
As shown in fig. 4, in the advertisement replacement of the second case, for example, the total time of the complete advertisement segment is 14 seconds, the original advertisement TS fragment of the cut 4 seconds is the end part of the complete advertisement segment, the original TS fragment of the first kind that is cut also includes a complete original TS fragment of the second kind with a duration of 10 seconds before the original TS fragment of the first kind that is cut, and then the original advertisement TS fragment of the cut 4 seconds and the previous original TS fragment of the second kind that is 10 seconds are replaced together into a new advertisement TS fragment of 14 seconds that includes a new complete advertisement segment.
As shown in fig. 5, the advertisement replacement of the third case, for example, the total advertisement segment is 18 seconds, and the advertisement segments are divided into three adjacent original TS segments, the first original TS segment of the first type is the original advertisement in the last 2 seconds, the second original TS segment of the second type includes the original advertisement of 10 seconds, and the third original TS segment of the first type is the original advertisement in the first 6 seconds. During replacement, the original advertisement part of the first original TS fragment and the original advertisement part of the third original TS fragment are cut for 8 seconds, and the cut 8-second original advertisement TS fragment and the second-type original TS fragment of the middle 10-second original advertisement are replaced by a 14-second new advertisement TS fragment of a new complete advertisement fragment.
As long as after replacement, the server will form a new M3U8 index file according to the playing address of the replaced TS fragment, so that the playing end can smoothly play the feature content and replace the new advertisement after acquiring the new M3U8 index file.
It should be noted that, if all of the video streams only include the first type of original TS segments, only include the second type of original TS segments, and the replacement of the second type of original TS segments can achieve the purpose of replacing advertisements without causing the loss of feature content and new advertisement content.
In a preferred embodiment, the type of the channel is determined according to the program list of the channel, and the type of the program, such as sports, education, children or entertainment, etc., the time for the advertisement to be played back is determined according to the time for the user to watch the review program, the user portrait formed by the age, gender, etc. of the user watching the program and/or the playing time of the original advertisement is determined as the advertisement strategy, and the new advertisement TS fragment with proper replacement content is selected according to the advertisement strategy when the advertisement is replaced.
The method has the advantages that when the user initiates a playing request from the playing end to the server end, the advertisement is not replaced, and when different users watch the live recorded review program, the advertisement AD1 is watched by all users for the same program content. The advertisements that a user may view after replacing an original advertisement with a new advertisement according to an advertisement policy may be AD2, AD3, AD4, AD5.. etc., and the advertisement playing effect is specifically controlled by the advertisement policy as follows:
the same user U1 requests to play the same review program P1 in different TIME periods TIME1 and TIME2, through the advertisement strategy, the original advertisement content AD1 in the review program P1 can be replaced in the TIME period TIME1 as AD2, and the original advertisement content AD1 in the review program P1 can be replaced in the TIME period TIME2 as AD 3;
different users U1 and U2 request to play the same review program P1 in the same time slot, through the advertisement strategy, the original advertisement content AD1 in the replaceable review program P1 is played as AD4 when the user U1 requests, and the original advertisement content AD1 in the replaceable review program P1 is played as AD5 when the user U2 requests.
And step S4, returning the new M3U8 index file to the playing end, so that the playing end plays videos according to the new M3U8 index file.
It should be noted that, after the server receives the playback request of the client, it needs to determine whether to replace the advertisement according to a specific advertisement delivery policy. If the advertisement replacement is not needed, the original M3U8 index file formed when the review program is recorded is returned to the broadcasting end, so that the broadcasting end directly broadcasts the recorded review program and the original advertisement. If the advertisement needs to be replaced, the replacement is carried out according to the method, a new M3U8 index file is formed according to the replaced TS slicing address, and the M3U8 new index file is returned to the playing end, so that when the playing end plays a review program, the new advertisement in the review program replaces the original advertisement for playing, and the feature film content is not influenced.
It can be seen from the above that, the request broadcast initiated when the user broadcasts the review program through the broadcast end is processed by the client, the M3U8 file required by the review program broadcast is returned to the broadcast end, and when the broadcast end broadcasts the video content, the video content only needs to be broadcast according to the standard HLS protocol. When the advertisement content is played, the player does not need to be repeatedly restarted like the conventional method. Affecting the user experience. Therefore, the smooth playing is realized after the advertisement is replaced, and the loss of the feature film content or the replaced new advertisement is avoided.
Referring to fig. 6, fig. 6 is a schematic block diagram of an alternative apparatus for reviewing advertisements in a program according to an embodiment of the present application.
As shown in fig. 6, the apparatus includes: the device comprises a cutting module, a storage module, a determination module and a replacement module.
The system comprises a slicing module, a first classification module and a second classification module, wherein the slicing module is used for slicing an original TS fragment which simultaneously comprises original advertisements and feature film contents into an original advertisement TS fragment and a feature film content TS fragment according to original advertisement distribution information so as to separate the original advertisements from the feature film contents, and the original TS fragment which simultaneously comprises the original advertisements and the feature film contents is a first type of original fragment, only comprises the original advertisement contents is a second type of original fragment, and comprises formal contents is a third type of original fragment;
the storage module is used for storing the feature film content TS into a streaming media system and storing the playing address of the feature film content TS;
a determining module, configured to determine a playing address of the new advertisement TS segment;
the replacing module is used for replacing the playing address of the first type of original TS fragments segmented in the original M3U8 index file with the playing address of the feature content TS fragments according to an advertisement strategy after receiving a playback request of a review program sent by a playback end, and replacing the playing address of the original advertisement TS fragments with the playing address of the new advertisement TS fragments to form a new M3U8 index file;
a returning module, configured to return the new M3U8 index file to the playback end, so that the playback end performs video playback according to the M3U8 index file.
Wherein the replacement module is further specifically configured to: judging whether the original advertisement TS fragments comprise complete advertisement fragments;
if so, replacing the playing address of the original advertisement TS fragment with the playing address of the new advertisement TS fragment to form a new M3U8 index file;
if not, replacing the original advertisement TS fragments and other second type original fragments of the advertisement together with the playing addresses of the new advertisement TS fragments to form the new M3U8 index file.
Wherein, the replacement module is specifically further configured to: and if the second type of original TS fragments exist before and/or after the cut original advertisement TS fragments, replacing the original advertisement TS fragments and the second type of original TS fragments with the playing addresses of the new advertisement TS fragments to form the new M3U8 index file.
Wherein the determining module is further specifically configured to: converting a new advertisement into a TS fragment format to obtain a TS fragment of the new advertisement;
and injecting the new advertisement TS fragments into the streaming media system, and storing the playing addresses of the new advertisement TS fragments.
Wherein, the replacing device for the advertisement in the review program is further used for: and acquiring a program list of a channel, and determining the distribution information of the original advertisement in the original TS fragment according to the starting time and the ending time of the original advertisement in the program list.
Wherein, the replacing device for the advertisement in the review program is further used for: and determining an advertisement strategy according to the channel type, the program content type, the playing time, the user portrait and/or the duration of the original advertisement of the channel.
Wherein the replacement module is further configured to: and replacing the playing address of the original advertisement TS fragment with the playing address of the new advertisement TS fragment according to the advertisement strategy.
Wherein, the replacing device for the advertisement in the review program is further used for: judging whether advertisement replacement is needed or not;
if not, returning the original M3U8 index file to the playing end;
if the original M3U8 index is replaced, replacing the playing address of the first type of original TS fragment segmented in the original M3U8 index with the playing address of the feature film content TS fragment, replacing the playing address of the original advertisement TS fragment with the playing address of the new advertisement TS fragment to form a new M3U8 index file, and returning the corresponding M3U8 file to a playing end.
It should be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the apparatus and the modules and units described above may refer to the corresponding processes of the replacement method for advertisements in a review program in the foregoing embodiments, and are not described herein again.
The above-described embodiment provides an alternative means for reviewing advertisements in a program, which may be implemented in the form of a computer program that may be run on a computer device as shown in fig. 7.
Referring to fig. 7, fig. 7 is a schematic block diagram illustrating a structure of a computer device according to an embodiment of the present disclosure. The computer device may be a server.
As shown in fig. 7, the computer device includes a processor, a memory, and a network interface connected by a system bus, wherein the memory may include a nonvolatile storage medium and an internal memory.
The non-volatile storage medium may store an operating system and a computer program. The computer program includes program instructions that, when executed, cause a processor to perform any of a variety of alternative methods for reviewing advertisements in a program.
The processor is used for providing calculation and control capability and supporting the operation of the whole computer equipment.
The internal memory provides an environment for the execution of a computer program on a non-volatile storage medium, which when executed by the processor, causes the processor to perform any of a variety of alternative methods for reviewing advertisements in a program.
The network interface is used for network communication, such as sending assigned tasks and the like. Those skilled in the art will appreciate that the architecture shown in fig. 7 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
It should be understood that the Processor may be a Central Processing Unit (CPU), and the Processor may be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, etc. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments. While the invention has been described with reference to specific embodiments, the scope of the invention is not limited thereto, and those skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method for replacing an advertisement in a review program, comprising:
according to original advertisement distribution information, cutting an original TS fragment simultaneously comprising an original advertisement and feature film content into an original advertisement TS fragment and a feature film content TS fragment so as to separate the original advertisement from the feature film content, wherein the original TS fragment simultaneously comprising the original advertisement and the feature film content is a first type of original TS fragment, the original TS fragment only comprising the original advertisement is a second type of original TS fragment, and the original TS fragment only comprising the feature film content is a third type of original TS fragment;
storing the feature film content TS fragments into a streaming media system, and storing the playing addresses of the feature film content TS fragments;
determining the playing address of the new advertisement TS fragment;
receiving a playback program playing request sent by a playing end, replacing the playing address of the first type of original TS fragments segmented in the original M3U8 index with the playing address of the feature content TS fragments, and replacing the playing address of the original advertisement TS fragments with the playing address of the new advertisement TS fragments to form a new M3U8 index file;
and returning the new M3U8 index file to the playing end so that the playing end plays videos according to the new M3U8 index file.
2. The method for replacing advertisements in a review program according to claim 1, wherein the receiving a review program playing request sent by a playing end, replacing the playing address of the first type original TS segment segmented in an original M3U8 index with the playing address of the feature content TS segment, and replacing the playing address of the original advertisement TS segment with the playing address of the new advertisement TS segment to form a new M3U8 index file, includes:
judging whether the original advertisement TS fragments comprise complete advertisement fragments;
if so, replacing the playing address of the original advertisement TS fragment with the playing address of the new advertisement TS fragment to form a new M3U8 index file;
if not, replacing the original advertisement TS fragments and other second type original fragments of the advertisement together with the playing addresses of the new advertisement TS fragments to form the new M3U8 index file.
3. The method of replacing an advertisement in a review program of claim 2 wherein replacing the original advertisement TS clip and other second type original clips of the advertisement with the playing address of the new advertisement TS clip to form the new M3U8 index file comprises;
and if the second type of original TS fragments exist before and/or after the cut original advertisement TS fragments, replacing the original advertisement TS fragments and the second type of original TS fragments with the playing addresses of the new advertisement TS fragments to form the new M3U8 index file.
4. The method for replacing an advertisement in a review program of claim 1, wherein: before determining the playing address of the new advertisement TS fragment, the method further comprises:
converting a new advertisement into a TS fragment format to obtain a TS fragment of the new advertisement;
and injecting the new advertisement TS fragments into the streaming media system, and storing the playing addresses of the new advertisement TS fragments.
5. The method for replacing an advertisement in a review program of claim 1, wherein: before the original TS fragments which simultaneously comprise original advertisements and feature film contents are cut into original advertisement TS fragments and feature film content TS fragments according to the original advertisement distribution information, the method comprises the following steps:
and acquiring a program list of a channel, and determining the distribution information of the original advertisement in the original TS fragment according to the starting time and the ending time of the original advertisement in the program list.
6. The method for replacing an advertisement in a review program of claim 1, wherein: before replacing the playing address of the original advertisement TS fragment with the playing address of the new advertisement TS fragment, the method comprises the following steps:
and determining an advertisement strategy according to the channel type, the program content type, the playing time, the user portrait and/or the duration of the original advertisement of the channel.
7. The method for replacing an advertisement in a review program of claim 7, wherein: replacing the playing address of the original advertisement TS fragment with the playing address of the new advertisement TS fragment comprises:
and replacing the playing address of the original advertisement TS fragment with the playing address of the new advertisement TS fragment according to the advertisement strategy.
8. The method for replacing an advertisement in a review program of claim 1, wherein: after the receiving a playback request of a review program sent by a playing end, replacing the playing address of the first type of original TS segments segmented in the original M3U8 index with the playing address of the feature content TS segment, and before replacing the playing address of the original advertisement TS segment with the playing address of the new advertisement TS segment, the method further includes:
judging whether advertisement replacement is needed or not;
if not, returning the original M3U8 index file to the playing end;
if the original M3U8 index is replaced, replacing the playing address of the first type of original TS fragment segmented in the original M3U8 index with the playing address of the feature film content TS fragment, replacing the playing address of the original advertisement TS fragment with the playing address of the new advertisement TS fragment to form a new M3U8 index file, and returning the corresponding M3U8 file to a playing end.
9. An apparatus for replacing an advertisement in a review program, comprising:
the system comprises a slicing module, a first classification module and a second classification module, wherein the slicing module is used for slicing an original TS fragment which simultaneously comprises original advertisements and feature film contents into an original advertisement TS fragment and a feature film content TS fragment according to original advertisement distribution information so as to separate the original advertisements from the feature film contents, and the original TS fragment which simultaneously comprises the original advertisements and the feature film contents is a first type of original fragment, only comprises the original advertisement contents is a second type of original fragment, and comprises formal contents is a third type of original fragment;
the storage module is used for storing the feature film content TS into a streaming media system and storing the playing address of the feature film content TS;
a determining module, configured to determine a playing address of the new advertisement TS segment;
the replacing module is used for replacing the playing address of the first type of original TS fragments segmented in the original M3U8 index file with the playing address of the feature content TS fragments according to an advertisement strategy after receiving a playback request of a review program sent by a playback end, and replacing the playing address of the original advertisement TS fragments with the playing address of the new advertisement TS fragments to form a new M3U8 index file;
a returning module, configured to return the new M3U8 index file to the playback end, so that the playback end performs video playback according to the M3U8 index file.
10. A computer arrangement comprising a processor, a memory, and a computer program stored on the memory and executable by the processor, wherein the computer program, when executed by the processor, carries out the steps of the method of replacing an advertisement in a review program according to any one of claims 1 to 8.
CN202111634201.3A 2021-12-22 2021-12-22 Method, device and equipment for replacing advertisements in review programs Pending CN114339366A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111634201.3A CN114339366A (en) 2021-12-22 2021-12-22 Method, device and equipment for replacing advertisements in review programs

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111634201.3A CN114339366A (en) 2021-12-22 2021-12-22 Method, device and equipment for replacing advertisements in review programs

Publications (1)

Publication Number Publication Date
CN114339366A true CN114339366A (en) 2022-04-12

Family

ID=81016144

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111634201.3A Pending CN114339366A (en) 2021-12-22 2021-12-22 Method, device and equipment for replacing advertisements in review programs

Country Status (1)

Country Link
CN (1) CN114339366A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102143133A (en) * 2010-08-05 2011-08-03 华为技术有限公司 Method, device and system for supporting advertisement content in hyper text transport protocol (HTTP) stream playing manner
CN103428524A (en) * 2012-05-23 2013-12-04 华为终端有限公司 IPTV server and playing method of recorded content
US8752085B1 (en) * 2012-02-14 2014-06-10 Verizon Patent And Licensing Inc. Advertisement insertion into media content for streaming
CN105959746A (en) * 2016-06-01 2016-09-21 北京奇艺世纪科技有限公司 File generation method and apparatus
CN106210809A (en) * 2016-08-09 2016-12-07 亦非云互联网技术(上海)有限公司 A kind of method and system broken for commercialsy in net cast
CN107483991A (en) * 2017-09-08 2017-12-15 深圳Tcl新技术有限公司 Replacement method, device and the computer-readable recording medium of television advertising
CN112218128A (en) * 2019-07-12 2021-01-12 腾讯科技(深圳)有限公司 Advertisement video playing method, playing client and readable storage medium
WO2021121026A1 (en) * 2019-12-16 2021-06-24 中兴通讯股份有限公司 Advertisement insertion method, electronic device and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102143133A (en) * 2010-08-05 2011-08-03 华为技术有限公司 Method, device and system for supporting advertisement content in hyper text transport protocol (HTTP) stream playing manner
US8752085B1 (en) * 2012-02-14 2014-06-10 Verizon Patent And Licensing Inc. Advertisement insertion into media content for streaming
CN103428524A (en) * 2012-05-23 2013-12-04 华为终端有限公司 IPTV server and playing method of recorded content
CN105959746A (en) * 2016-06-01 2016-09-21 北京奇艺世纪科技有限公司 File generation method and apparatus
CN106210809A (en) * 2016-08-09 2016-12-07 亦非云互联网技术(上海)有限公司 A kind of method and system broken for commercialsy in net cast
CN107483991A (en) * 2017-09-08 2017-12-15 深圳Tcl新技术有限公司 Replacement method, device and the computer-readable recording medium of television advertising
CN112218128A (en) * 2019-07-12 2021-01-12 腾讯科技(深圳)有限公司 Advertisement video playing method, playing client and readable storage medium
WO2021121026A1 (en) * 2019-12-16 2021-06-24 中兴通讯股份有限公司 Advertisement insertion method, electronic device and storage medium

Similar Documents

Publication Publication Date Title
CN108391179B (en) Live broadcast data processing method and device, server, terminal and storage medium
US11910066B2 (en) Providing interactive advertisements
US8645990B2 (en) Dynamic advertising control
US9380092B2 (en) Method and system for inserting content into streaming media at arbitrary time points
US8762564B1 (en) Method and system for dynamically selecting, assembling and inserting content into stream media
JP5318116B2 (en) Select ads to present
US20170195744A1 (en) Live-stream video advertisement system
US20160316233A1 (en) System and method for inserting, delivering and tracking advertisements in a media program
US20140115625A1 (en) Method and system for inserting an advertisement in a media stream
US11470373B2 (en) Server-side dynamic insertion of programming content in an indexed disparate live media output stream
US20050198317A1 (en) Method and apparatus for sharing internet content
US20150271546A1 (en) Synchronized provision of social media content with time-delayed video program events
CN111641866B (en) Method, system, and medium for inserting auxiliary media items into a primary media stream
EP2880866A1 (en) Method and system for dynamically selecting, assembling and inserting content into streaming media
US11863827B2 (en) Client-side dynamic presentation of programming content in an indexed disparate live media output stream
CN104202684A (en) Segmental network video seamless playing method and device
EP3531707A1 (en) Audio content playback control
JP2003244677A (en) Moving picture distribution and reproduction control system and computer program for moving picture distribution and reproduction control
JP2015526005A (en) Provision of media and content for individuals
US20140119710A1 (en) Scene control system and method and recording medium thereof
CN104065978B (en) A kind of method and system of media content positioning
US8620966B2 (en) Network content modification
US20150026711A1 (en) Method and apparatus for video content distribution
JP6203657B2 (en) Video display device
CN114339366A (en) Method, device and equipment for replacing advertisements in review programs

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination