CN111294611A - Video insertion method and device, electronic equipment and computer readable storage medium - Google Patents

Video insertion method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN111294611A
CN111294611A CN202010062592.5A CN202010062592A CN111294611A CN 111294611 A CN111294611 A CN 111294611A CN 202010062592 A CN202010062592 A CN 202010062592A CN 111294611 A CN111294611 A CN 111294611A
Authority
CN
China
Prior art keywords
video
video sequence
type
sequence
original
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.)
Granted
Application number
CN202010062592.5A
Other languages
Chinese (zh)
Other versions
CN111294611B (en
Inventor
蒋晓明
王迪
王成傲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology 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 Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202010062592.5A priority Critical patent/CN111294611B/en
Publication of CN111294611A publication Critical patent/CN111294611A/en
Application granted granted Critical
Publication of CN111294611B publication Critical patent/CN111294611B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/23424Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving splicing one content stream with another content stream, e.g. for inserting or substituting an advertisement
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
    • H04N21/2668Creating a channel for a dedicated end-user group, e.g. insertion of targeted commercials based on end-user profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/44016Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving splicing one content stream with another content stream, e.g. for substituting a video clip

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The present disclosure provides a video insertion method, apparatus, electronic device and computer-readable storage medium, the method comprising: receiving a video insertion request, wherein the video insertion request comprises a video to be inserted, and acquiring an original video sequence, and the original video sequence comprises a first video of a first type and a second video of a second type; determining the video type of a video to be inserted; and if the video type is the second type, inserting the video to be inserted into the original video sequence, wherein the videos of the second type in the new inserted video sequence are not adjacent. According to the scheme, after the video to be inserted is inserted into the original video sequence, the video to be inserted can be nonadjacent to each second video in the original video sequence, so that when the video in the inserted new video sequence is watched, the watching experience of a user can be improved due to the nonadjacent second type of videos.

Description

Video insertion method and device, electronic equipment and computer readable storage medium
Technical Field
The present disclosure relates to the field of multimedia processing technologies, and in particular, to a video insertion method, an apparatus, an electronic device, and a computer-readable storage medium.
Background
In the prior art, different types of videos may be included in a video sequence provided to a user terminal, and if a background manager wants to insert a certain video into the video sequence, the video may be directly inserted into the video sequence, so that the sequence of the videos in the inserted new video sequence changes, and the experience of the user in watching the video may be affected.
Disclosure of Invention
The present disclosure aims to solve at least one of the above technical drawbacks and improve the user experience.
The technical scheme adopted by the disclosure is as follows:
in a first aspect, the present disclosure provides a video insertion method, including:
receiving a video insertion request, wherein the video insertion request comprises a video to be inserted;
acquiring an original video sequence, wherein the original video sequence comprises a first type of video and a second type of video;
determining the video type of a video to be inserted;
and if the video type is the second type, inserting the video to be inserted into the original video sequence, wherein the videos of the second type in the new inserted video sequence are not adjacent.
In an embodiment of the first aspect of the present disclosure, if the video type is the second type, inserting the video to be inserted into the original video sequence includes:
if the video insertion request does not include the insertion position information of the video to be inserted in the original video sequence, inserting the video to be inserted into the original video sequence, wherein the videos which belong to the second type in the new video sequence after insertion are not adjacent;
if the video insertion request includes the insertion position information of the video to be inserted in the original video sequence, the method further includes:
and inserting the video to be inserted into the original video sequence according to the insertion position information, and inserting the video to be inserted into the position corresponding to the insertion position information to obtain a new inserted video sequence.
In an embodiment of the first aspect of the present disclosure, according to the insertion position information, inserting a video to be inserted into the original video sequence into a position corresponding to the insertion position information, to obtain a new video sequence after insertion, including:
inserting the video to be inserted into the original video sequence and inserting the video to be inserted into the position corresponding to the position information according to the insertion position information;
determining a positional relationship between adjacent videos of the second type in the inserted video sequence;
if the position relation meets the preset requirement, determining the inserted video sequence as a new video sequence;
and if the position relation does not meet the preset requirement, adjusting the position of the video in the inserted video sequence so that the adjusted video sequence meets the preset requirement to obtain a new video sequence.
In an embodiment of the first aspect of the present disclosure, the positional relationship refers to a number of videos of the first type that are spaced between adjacent videos of the second type;
the position relation meeting the preset requirement means that the number of the videos is not less than the first set number.
In an embodiment of the first aspect of the present disclosure, inserting a video to be inserted into an original video sequence includes:
if the original video sequence does not comprise the third type of video, inserting the video to be inserted into the original video sequence;
if the original video sequence includes a third type of video, the method further comprises:
and forbidding to insert the video to be inserted into the original video sequence and generating corresponding prompt information.
In an embodiment of the first aspect of the present disclosure, the method further comprises:
and sending the inserted new video sequence to the user terminal so that the user terminal displays the videos in the inserted new video sequence according to the arrangement sequence of the videos.
In a second aspect, the present disclosure provides a video insertion apparatus, comprising:
the video insertion module is used for receiving a video insertion request, and the video insertion request comprises a video to be inserted;
the video sequence acquisition module is used for acquiring an original video sequence, wherein the original video sequence comprises a first type of video and a second type of video;
the video type determining module is used for determining the video type of a video to be inserted;
and the video insertion module is used for inserting the video to be inserted into the original video sequence when the video type is the second type, and the videos of the second type in the inserted new video sequence are not adjacent.
In an embodiment of the second aspect of the present disclosure, when the video type is the second type and the video to be inserted is inserted into the original video sequence, the video insertion module is specifically configured to:
inserting the video to be inserted into the original video sequence if the video insertion request does not include the insertion position information of the video to be inserted in the original video sequence, wherein the video to be inserted is not adjacent to each other in the inserted new video sequence and belongs to the second type;
if the video insertion request comprises insertion position information of the video to be inserted in the original video sequence; the device also includes:
and the video inserting module is used for inserting the video to be inserted into the original video sequence into the position corresponding to the inserting position information according to the inserting position information to obtain a new inserted video sequence.
In an embodiment of the second aspect of the present disclosure, the video insertion module is specifically configured to, when inserting the video to be inserted into the original video sequence into the position corresponding to the insertion position information according to the insertion position information, and obtaining a new video sequence after insertion:
inserting the video to be inserted into the original video sequence and inserting the video to be inserted into the position corresponding to the position information according to the insertion position information;
determining a positional relationship between adjacent videos of the second type in the inserted video sequence;
if the position relation meets the preset requirement, determining the inserted video sequence as a new video sequence;
and if the position relation does not meet the preset requirement, adjusting the position of the video in the inserted video sequence so that the adjusted video sequence meets the preset requirement to obtain a new video sequence.
In an embodiment of the second aspect of the present disclosure, the positional relationship refers to the number of videos of the first type that are spaced between adjacent videos of the second type;
the position relation meeting the preset requirement means that the number of the videos is not less than the first set number.
In an embodiment of the second aspect of the present disclosure, when the video to be inserted is inserted into the original video sequence, the video insertion module is specifically configured to:
if the original video sequence does not comprise the third type of video, inserting the video to be inserted into the original video sequence;
if the original video sequence includes a third type of video, the apparatus further comprises:
and the insertion forbidding module is used for forbidding the video to be inserted from being inserted into the original video sequence and generating corresponding prompt information.
In an embodiment of the second aspect of the present disclosure, the apparatus further comprises:
and the video processing module is used for sending the inserted new video sequence to the user terminal so that the user terminal displays the video sequences according to the arrangement sequence of the videos in the inserted new video sequence.
In a third aspect, the present disclosure provides an electronic device comprising:
a processor and a memory;
a memory for storing computer operating instructions;
a processor for performing the method as shown in any embodiment of the first aspect of the present disclosure by invoking computer operational instructions.
In a fourth aspect, the present disclosure provides a computer readable storage medium having stored thereon at least one instruction, at least one program, set of codes, or set of instructions, which is loaded and executed by a processor to implement a method as shown in any one of the embodiments of the first aspect of the present disclosure.
The technical scheme provided by the embodiment of the disclosure has the following beneficial effects:
the video insertion method, the video insertion device, the electronic device and the computer readable storage medium in the embodiments of the present disclosure may determine a video type of a video to be inserted in a request when the video insertion request is received, and if the video to be inserted is a second type of video, the video to be inserted may be inserted into an original video sequence, and the second type of video in an inserted new video sequence is not adjacent. According to the scheme, after the video to be inserted is inserted into the original video sequence, the video to be inserted is not adjacent to the second video in the original video sequence, so that when the video in the inserted new video sequence is watched, the second type of video is not adjacent, and therefore the watching experience of a user can be improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings used in the description of the embodiments of the present disclosure will be briefly described below.
Fig. 1 is a schematic flowchart of a video insertion method according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a video insertion apparatus according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing the devices, modules or units, and are not used for limiting the devices, modules or units to be different devices, modules or units, and also for limiting the sequence or interdependence relationship of the functions executed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The following describes the technical solutions of the present disclosure and how to solve the above technical problems in specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present disclosure will be described below with reference to the accompanying drawings.
As shown in fig. 1, a flow chart of a video insertion method, an embodiment of the present disclosure provides a video insertion method, which may include:
step S110, receiving a video insertion request, wherein the video insertion request comprises a video to be inserted.
The video insertion request indicates a request that a background manager wants to insert a video to be inserted into an original video sequence, the number of the videos to be inserted into the original video sequence at a time is not limited in the disclosure.
Step S120, an original video sequence is obtained, where the original video sequence includes a first type of video and a second type of video.
The original video sequence comprises at least two videos, the dividing mode of the video types in the original video sequence can be divided according to the actual application requirements and can be specified according to requirements, for example, a first video of a first type is a video which is usually watched by a user, such as a user video shot by the user, a second video of a second type is a promotion video, such as an advertisement video and a moving video, wherein the advertisement video refers to a video with the video content being advertisement content, and a merchant can promote products in the video by means of the advertisement video. Active video refers to video that the platform does for a particular event or festival. In practical application, the video may carry a type identifier carrying the video, and the type of the video may be determined based on the identifier.
Step S130, determining a video type of the video to be inserted.
Step S140, if the video type is the second type, inserting the video to be inserted into the original video sequence, and the videos of the second type in the new video sequence after insertion are not adjacent.
When the video type of the video to be inserted is the second type, the video to be inserted is the video which needs to be watched by the user in advance, the video to be inserted can be inserted into the original video sequence, namely the video to be inserted is added into the original video sequence, and when the inserted new video sequence is displayed to the user, the video to be inserted can be watched by the user in advance.
Wherein, because the first video of the first type is a video that the user usually watches, in order not to affect the user's experience of watching the first video, every two videos of the second type are not adjacent, so that the user can discontinuously see the videos of the second type.
It is understood that after the video to be inserted is inserted into the original video sequence, the positions of the videos in the new video sequence after the video to be inserted may be sequentially shifted backward.
According to the scheme in the embodiment of the disclosure, when a video insertion request is received, the video type of the video to be inserted in the request can be determined, if the video to be inserted is the second type of video, the video to be inserted can be inserted into the original video sequence, and the second type of video in the inserted new video sequence is not adjacent. According to the scheme, after the video to be inserted is inserted into the original video sequence, the video to be inserted is not adjacent to the second video in the original video sequence, so that when the video in the inserted new video sequence is watched, the second type of video is not adjacent, and the watching experience of a user can be improved.
In the embodiment of the present disclosure, if the video type is the second type, in step S140, inserting the video to be inserted into the original video sequence may include:
and if the video type is the second type and the video insertion request does not include the insertion position information of the video to be inserted in the original video sequence, inserting the video to be inserted into the original video sequence, wherein the videos which belong to the second type in the inserted new video sequence are not adjacent.
If the video insertion request comprises insertion position information of the video to be inserted in the original video sequence; the method further comprises the following steps:
and inserting the video to be inserted into the original video sequence according to the insertion position information, and inserting the video to be inserted into the position corresponding to the insertion position information to obtain a new inserted video sequence.
The background manager can indicate the position of the video to be inserted into the original video sequence in the video insertion request, and the insertion position information represents the position of the video to be inserted into the original video sequence. When the video insertion request includes the insertion position information, the video to be inserted may be inserted into the original video sequence at a position corresponding to the insertion position information based on the insertion position information. At this time, the video to be inserted may be a first type of video, may also be a second type of video, and may also be other types of videos.
After the video to be inserted is inserted into the original video sequence based on the above manner, the video to be inserted may be adjacent to or not adjacent to the second video of the second type in the original video sequence.
If the background manager may not indicate the position of the video to be inserted into the original video sequence in the video insertion request, that is, the video insertion request does not include the insertion position information, when the video type of the video to be inserted is the second type, the video to be inserted may be inserted into the original video sequence according to the insertion method in step S130, and each video belonging to the second type in the new video sequence after insertion is not adjacent.
In the embodiment of the present disclosure, after the video to be inserted is inserted into the original video sequence according to the insertion position information, if an adjacent video of the video to be inserted in the new video sequence is a second video, the position of the second video in the new video sequence may be adjusted so that the second video is not adjacent to the video with insertion.
In the embodiment of the present disclosure, according to the insertion position information, inserting the video to be inserted into the original video sequence into a position corresponding to the insertion position information, to obtain a new video sequence after insertion, which may include:
inserting the video to be inserted into the original video sequence and inserting the video to be inserted into the position corresponding to the position information according to the insertion position information;
determining a positional relationship between adjacent videos of the second type in the inserted video sequence;
if the position relation meets the preset requirement, determining the inserted video sequence as a new video sequence;
and if the position relation does not meet the preset requirement, adjusting the position of the video in the inserted video sequence so that the adjusted video sequence meets the preset requirement to obtain a new video sequence.
The position relationship between the adjacent videos refers to a distance between the adjacent videos, and the position relationship may be configured based on actual requirements, and the position relationship between the adjacent videos in the video sequence is represented by a position relationship corresponding to a preset requirement. The preset requirement may be configured based on an actual requirement, for example, a distance between adjacent videos, when a positional relationship between the adjacent videos meets the preset requirement, the position of the video in the inserted video sequence does not need to be adjusted, and if the positional relationship between the adjacent videos does not meet the preset requirement, the position of the video in the inserted video sequence needs to be adjusted, so that the adjusted video sequence meets the preset requirement, and a new video sequence is obtained.
In the embodiment of the present disclosure, the positional relationship refers to the number of videos of the first type that are spaced between adjacent videos belonging to the second type;
the position relation meeting the preset requirement means that the number of the videos is not less than the first set number.
The position relation meeting the preset requirement means that every two videos of the second type are separated by a first set number of first videos; after inserting the video to be inserted into the original video sequence according to the insertion position information, if the first video with the first set quantity is not separated between the videos of the second type in the new inserted video sequence, the position of the video in the inserted video sequence needs to be adjusted so that the adjusted video sequence meets the preset requirement, and the new video sequence is obtained.
The first set number may be configured based on actual requirements, for example, the number of videos displayed at one time based on a user interface of the user terminal, and the interval between two videos of the second type may be reasonably set based on the number of videos displayed at one time based on the user interface.
As an example, if the first set number is 2, every two second videos may be separated by 2 first videos.
After inserting the video to be inserted into the original video sequence according to the insertion position information, if the number of first videos separated from the second type of videos in the new video sequence by the first set number is not smaller than the first set number after the video to be inserted is inserted into the original video sequence, the number of first videos separated from the second type of videos in the new video sequence is smaller than the first set number, and then the position of the videos (which may be the first type of videos, the second type of videos, or the first type of videos and the second type of videos) in the inserted video sequence may be adjusted, that is, the order of the second videos in the new video sequence is adjusted, so that the first videos separated from the second type of videos in the adjusted video sequence by the first set number are separated.
It can be understood that, in order to meet the insertion requirement of the user, the positions of the video to be inserted and the adjacent video of the video to be inserted may not be adjusted.
As an example, for example, the original video sequence is aababaaa, where a represents a first video of a first type, B represents a second video of a second type, the video to be inserted is C, C is a video of the second type, the first set number is 2, that is, every two videos of the second type are separated by 2 first videos, the insertion position information is a fifth position in the original video sequence, and after the video to be inserted is inserted into the original video sequence according to the insertion position information, the inserted video sequence is AABACABAA.
The number of videos in the adjusted video sequence may be the same as or different from the number of videos in the inserted new video sequence. As shown in the above example, if the adjusted video sequence may be ABAACAABA, the number of videos in the adjusted video sequence is the same as that in the inserted new video sequence, and if the adjusted video sequence is consistent with the video arrangement in the original video sequence, that is, there are two first videos before and after each second type of video, the adjusted video sequence may be AABAACAABAA, that is, one first video is added before the first second video, and one first video is added after the last second video, the number of videos in the adjusted video sequence and the inserted new video sequence is different.
In an embodiment of the present disclosure, inserting a video to be inserted into an original video sequence may include:
if the original video sequence does not comprise the third type of video, inserting the video to be inserted into the original video sequence;
if the original video sequence includes a third type of video, the method further comprises:
and forbidding to insert the video to be inserted into the original video sequence and generating corresponding prompt information.
The third type of video refers to some specified types of videos, for example, advertisement videos of specified merchants, the position of the third video in the original video sequence is preset and is not allowed to be changed, if the third type of video is included in the original video sequence, when a video insertion request is received, the video to be inserted is prohibited from being inserted into the original video sequence, corresponding prompt information is generated, a background manager is informed of the prompt information, and the video to be inserted is not allowed to be inserted into the original video sequence including the third video.
The prompt information may be a pre-configured character string, a character, or the like, and the specific representation form of the prompt information is not limited in this disclosure.
In the embodiment of the disclosure, the third video and the second video are separated by a second set number of first videos.
If the original video sequence includes both the second video of the second type and the third video of the third type, in order to make the third video and the second video spaced too close to each other when the user watches the videos in the original video sequence, which brings a poor watching experience to the user, the third video and the second video may be spaced by a second set number of first videos.
The second set number may be configured based on actual requirements, for example, based on the number of videos displayed at one time on the user interface of the user terminal, and the second set number may be the same as or different from the first set number.
In an embodiment of the present disclosure, the method further includes:
sending the inserted new video sequence to a user terminal so that the user terminal displays the video sequences in the inserted new video sequence according to the arrangement sequence of the videos;
or sending the adjusted video sequence to the user terminal so that the user terminal displays the video sequences according to the sequence of the video sequences.
After the video to be inserted is inserted into the original video sequence, the obtained new inserted video sequence can be sent to the user terminal, so that the user terminal can display the videos according to the arrangement sequence of the videos in the new inserted video sequence. If the position of the second type of video in the inserted new video sequence is adjusted after the inserted new video sequence is obtained, the adjusted video sequence can be sent to the user terminal, so that the user terminal can display the video in the order of the videos in the adjusted video sequence. That is to say, the new video sequence sent to the user terminal may be a new video sequence obtained by inserting the video to be inserted into the original video sequence, or may be a new video sequence obtained by inserting the video to be inserted into the original video sequence and then adjusting the position of the video in the video sequence.
Based on the same principle as the video insertion method shown in fig. 1, an embodiment of the present disclosure also provides a video insertion apparatus 20, as shown in fig. 2, where the apparatus 20 may include: an insertion request receiving module 210, a video sequence acquiring module 220, a video type determining module 230, and a video insertion module 240, wherein,
an insertion request receiving module 210, configured to receive a video insertion request, where the video insertion request includes a video to be inserted;
a video sequence obtaining module 220, configured to obtain an original video sequence, where the original video sequence includes a first type of video and a second type of video;
a video type determining module 230, configured to determine a video type of a video to be inserted;
the video inserting module 240 is configured to insert the video to be inserted into the original video sequence when the video type is the second type, and each video of the second type in the inserted new video sequence is not adjacent.
The video insertion device of the embodiment of the disclosure may determine the video type of the video to be inserted in the request when receiving the video insertion request, and if the video to be inserted is the second type of video, the video to be inserted may be inserted into the original video sequence, and the second type of video in the new video sequence after insertion is not adjacent. According to the scheme, after the video to be inserted is inserted into the original video sequence, the video to be inserted is not adjacent to the second video in the original video sequence, so that when the video in the inserted new video sequence is watched, the second type of video is not adjacent, and the watching experience of a user can be improved.
Optionally, when the video type is the second type and the video to be inserted is inserted into the original video sequence, the video insertion module 240 is specifically configured to:
inserting the video to be inserted into the original video sequence if the video insertion request does not include the insertion position information of the video to be inserted in the original video sequence, wherein the video to be inserted is not adjacent to each other in the inserted new video sequence and belongs to the second type;
if the video insertion request comprises insertion position information of the video to be inserted in the original video sequence; the device also includes:
and the video inserting module is used for inserting the video to be inserted into the original video sequence into the position corresponding to the inserting position information according to the inserting position information to obtain a new inserted video sequence.
Optionally, when the video insertion module inserts the video to be inserted into the original video sequence according to the insertion position information and obtains a new video sequence after insertion, the video insertion module is specifically configured to:
inserting the video to be inserted into the original video sequence and inserting the video to be inserted into the position corresponding to the position information according to the insertion position information;
determining a positional relationship between adjacent videos of the second type in the inserted video sequence;
if the position relation meets the preset requirement, determining the inserted video sequence as a new video sequence;
and if the position relation does not meet the preset requirement, adjusting the position of the video in the inserted video sequence so that the adjusted video sequence meets the preset requirement to obtain a new video sequence.
Optionally, the positional relationship refers to the number of videos of the first type that are spaced between adjacent videos of the second type;
the position relation meeting the preset requirement means that the number of the videos is not less than the first set number.
Optionally, when the video to be inserted is inserted into the original video sequence, the video insertion module 240 is specifically configured to:
if the original video sequence does not comprise the third type of video, inserting the video to be inserted into the original video sequence;
if the original video sequence includes a third type of video, the apparatus further comprises:
and the insertion forbidding module is used for forbidding the video to be inserted from being inserted into the original video sequence and generating corresponding prompt information.
Optionally, the apparatus further comprises:
and the video processing module is used for sending the inserted new video sequence to the user terminal so that the user terminal displays the video sequences according to the arrangement sequence of the videos in the inserted new video sequence.
The apparatus of the embodiment of the present disclosure may execute the video insertion method shown in fig. 1, and the implementation principles thereof are similar, the actions executed by the modules in the video insertion apparatus in the embodiments of the present disclosure correspond to the steps in the video insertion method in the embodiments of the present disclosure, and for the detailed functional description of the modules of the video insertion apparatus, reference may be specifically made to the description in the corresponding video insertion method shown in the foregoing, and details are not repeated here.
Based on the same principle as the method in the embodiments of the present disclosure, reference is made below to fig. 3, which shows a schematic structural diagram of an electronic device 600 suitable for implementing the embodiments of the present disclosure. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 3 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
The electronic device includes: a memory and a processor, wherein the processor may be referred to as the processing device 601 hereinafter, and the memory may include at least one of a Read Only Memory (ROM)602, a Random Access Memory (RAM)603 and a storage device 608 hereinafter, which are specifically shown as follows:
as shown in fig. 3, electronic device 600 may include a processing means (e.g., central processing unit, graphics processor, etc.) 601 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 3 illustrates an electronic device 600 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 609, or may be installed from the storage means 608, or may be installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (Hyper Text transfer protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules or units described in the embodiments of the present disclosure may be implemented by software or hardware. Wherein the designation of a module or unit does not in some cases constitute a limitation of the unit itself.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, [ example one ] there is provided a video insertion method, comprising:
receiving a video insertion request, wherein the video insertion request comprises a video to be inserted;
acquiring an original video sequence, wherein the original video sequence comprises a first type of video and a second type of video;
determining the video type of the video to be inserted;
and if the video type is the second type, inserting the video to be inserted into the original video sequence, wherein the videos of the second type in the inserted new video sequence are not adjacent.
According to one or more embodiments of the present disclosure, if the video type is the second type, inserting the video to be inserted into the original video sequence includes:
if the video insertion request does not include the insertion position information of the video to be inserted in the original video sequence, inserting the video to be inserted into the original video sequence, wherein the videos which belong to the second type in the inserted new video sequence are not adjacent;
if the video insertion request includes the insertion position information of the video to be inserted in the original video sequence, the method further includes:
and inserting the video to be inserted into the position corresponding to the insertion position information in the original video sequence according to the insertion position information to obtain a new inserted video sequence.
According to one or more embodiments of the present disclosure, the inserting the video to be inserted into the position corresponding to the insertion position information in the original video sequence according to the insertion position information to obtain an inserted new video sequence includes:
inserting the video to be inserted into the position corresponding to the insertion position information in the original video sequence according to the insertion position information;
determining a positional relationship between adjacent videos of the second type in the inserted video sequence;
if the position relation meets the preset requirement, determining the inserted video sequence as the new video sequence;
and if the position relation does not meet the preset requirement, adjusting the position of the video in the inserted video sequence so that the adjusted video sequence meets the preset requirement to obtain the new video sequence.
According to one or more embodiments of the present disclosure, the positional relationship refers to a number of videos of the first type that are spaced between adjacent videos belonging to the second type;
the position relation meeting the preset requirement means that the number of the videos is not less than a first set number.
According to one or more embodiments of the present disclosure, the inserting the video to be inserted into the original video sequence includes:
if the original video sequence does not comprise a third type of video, inserting the video to be inserted into the original video sequence;
if the original video sequence includes the third type of video, the method further includes:
and forbidding to insert the video to be inserted into the original video sequence, and generating corresponding prompt information.
In accordance with one or more embodiments of the present disclosure, the method further comprises:
and sending the inserted new video sequence to a user terminal so that the user terminal displays the video sequences in the inserted new video sequence according to the sequence.
According to one or more embodiments of the present disclosure, [ example two ] there is provided an apparatus of video insertion, the apparatus comprising:
the video insertion module is used for receiving a video insertion request, and the video insertion request comprises a video to be inserted;
the video sequence acquisition module is used for acquiring an original video sequence, wherein the original video sequence comprises a first type of video and a second type of video;
the video type determining module is used for determining the video type of the video to be inserted;
and the video inserting module is used for inserting the video to be inserted into the original video sequence when the video type is the second type, and the videos of the second type in the inserted new video sequence are not adjacent.
According to one or more embodiments of the present disclosure, when the video type is the second type and the video to be inserted is inserted into the original video sequence, the video insertion module is specifically configured to:
inserting the video to be inserted into the original video sequence if the video insertion request does not include the insertion position information of the video to be inserted into the original video sequence, wherein the video to be inserted is not adjacent to each other in the inserted new video sequence and belongs to the second type;
if the video insertion request comprises the insertion position information of the video to be inserted in the original video sequence; the device also includes:
and the video inserting module is used for inserting the video to be inserted into the position corresponding to the insertion position information in the original video sequence according to the insertion position information to obtain a new inserted video sequence.
According to one or more embodiments of the present disclosure, when the video insertion module inserts the video to be inserted into the position corresponding to the insertion position information in the original video sequence according to the insertion position information to obtain an inserted new video sequence, the video insertion module is specifically configured to:
inserting the video to be inserted into the position corresponding to the insertion position information in the original video sequence according to the insertion position information;
determining a positional relationship between adjacent videos of the second type in the inserted video sequence;
if the position relation meets the preset requirement, determining the inserted video sequence as the new video sequence;
and if the position relation does not meet the preset requirement, adjusting the position of the video in the inserted video sequence so that the adjusted video sequence meets the preset requirement to obtain the new video sequence.
According to one or more embodiments of the present disclosure, the positional relationship refers to a number of videos of the first type that are spaced between adjacent videos belonging to the second type;
the position relation meeting the preset requirement means that the number of the videos is not less than a first set number.
According to one or more embodiments of the present disclosure, when the video to be inserted is inserted into the original video sequence, the video insertion module is specifically configured to:
if the original video sequence does not comprise a third type of video, inserting the video to be inserted into the original video sequence;
if the original video sequence includes the third type of video, the apparatus further includes:
and the insertion forbidding module is used for forbidding the video to be inserted from being inserted into the original video sequence and generating corresponding prompt information.
According to one or more embodiments of the present disclosure, the apparatus further comprises:
and the video processing module is used for sending the inserted new video sequence to a user terminal so that the user terminal displays the videos in the inserted new video sequence according to the arrangement sequence of the videos.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (10)

1. A video insertion method, comprising:
receiving a video insertion request, wherein the video insertion request comprises a video to be inserted;
acquiring an original video sequence, wherein the original video sequence comprises a first type of video and a second type of video;
determining the video type of the video to be inserted;
and if the video type is the second type, inserting the video to be inserted into the original video sequence, wherein the videos of the second type in the inserted new video sequence are not adjacent.
2. The method of claim 1, wherein inserting the video to be inserted into the original video sequence if the video type is the second type comprises:
if the video insertion request does not include the insertion position information of the video to be inserted in the original video sequence, inserting the video to be inserted into the original video sequence, wherein the videos which belong to the second type in the inserted new video sequence are not adjacent;
if the video insertion request includes the insertion position information of the video to be inserted in the original video sequence, the method further includes:
and inserting the video to be inserted into the position corresponding to the insertion position information in the original video sequence according to the insertion position information to obtain a new inserted video sequence.
3. The method according to claim 2, wherein said inserting the video to be inserted into the original video sequence at a position corresponding to the insertion position information according to the insertion position information to obtain an inserted new video sequence, comprises:
inserting the video to be inserted into the position corresponding to the insertion position information in the original video sequence according to the insertion position information;
determining a positional relationship between adjacent videos of the second type in the inserted video sequence;
if the position relation meets the preset requirement, determining the inserted video sequence as the new video sequence;
and if the position relation does not meet the preset requirement, adjusting the position of the video in the inserted video sequence so that the adjusted video sequence meets the preset requirement to obtain the new video sequence.
4. The method according to claim 3, wherein the position relationship refers to the number of videos of the first type that are separated between adjacent videos of the second type;
the position relation meeting the preset requirement means that the number of the videos is not less than a first set number.
5. The method according to any of claims 1 to 4, wherein said inserting the video to be inserted into the original video sequence comprises:
if the original video sequence does not comprise a third type of video, inserting the video to be inserted into the original video sequence;
if the original video sequence includes the third type of video, the method further includes:
and forbidding to insert the video to be inserted into the original video sequence, and generating corresponding prompt information.
6. The method according to any one of claims 1 to 4, further comprising:
and sending the inserted new video sequence to a user terminal so that the user terminal displays the video sequences in the inserted new video sequence according to the sequence.
7. A video insertion apparatus, comprising:
the video insertion module is used for receiving a video insertion request, and the video insertion request comprises a video to be inserted;
the video sequence acquisition module is used for acquiring an original video sequence, wherein the original video sequence comprises a first type of video and a second type of video;
the video type determining module is used for determining the video type of the video to be inserted;
and the video inserting module is used for inserting the video to be inserted into the original video sequence when the video type is the second type, and the videos of the second type in the inserted new video sequence are not adjacent.
8. The apparatus according to claim 7, wherein the video insertion module, when the video type is the second type and the video to be inserted is inserted into the original video sequence, is specifically configured to:
inserting the video to be inserted into the original video sequence if the video insertion request does not include the insertion position information of the video to be inserted into the original video sequence, wherein the video to be inserted is not adjacent to each other in the inserted new video sequence and belongs to the second type;
if the video insertion request comprises the insertion position information of the video to be inserted in the original video sequence; the device further comprises:
and the video inserting module is used for inserting the video to be inserted into the position corresponding to the insertion position information in the original video sequence according to the insertion position information to obtain a new inserted video sequence.
9. An electronic device, comprising:
a processor and a memory;
the memory is used for storing computer operation instructions;
the processor is used for executing the method of any one of claims 1 to 6 by calling the computer operation instruction.
10. A computer readable storage medium storing at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement the method of any of claims 1 to 6.
CN202010062592.5A 2020-01-19 2020-01-19 Video insertion method and device, electronic equipment and computer readable storage medium Active CN111294611B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010062592.5A CN111294611B (en) 2020-01-19 2020-01-19 Video insertion method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010062592.5A CN111294611B (en) 2020-01-19 2020-01-19 Video insertion method and device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111294611A true CN111294611A (en) 2020-06-16
CN111294611B CN111294611B (en) 2022-11-29

Family

ID=71029155

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010062592.5A Active CN111294611B (en) 2020-01-19 2020-01-19 Video insertion method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111294611B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1071287A2 (en) * 1999-07-19 2001-01-24 Lucent Technologies Inc. Television advertisement delivery system and method
CN102065327A (en) * 2010-12-30 2011-05-18 百视通网络电视技术发展有限责任公司 Advertisement cut-in method and system
CN103051939A (en) * 2012-12-31 2013-04-17 中央电视台 Method for arrangement processing of inserting advertisement
CN110290427A (en) * 2013-09-17 2019-09-27 英特尔Ip公司 The delivering of target media content
CN110495182A (en) * 2017-06-22 2019-11-22 谷歌有限责任公司 Effective insertion of media item in Media Stream

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1071287A2 (en) * 1999-07-19 2001-01-24 Lucent Technologies Inc. Television advertisement delivery system and method
CN102065327A (en) * 2010-12-30 2011-05-18 百视通网络电视技术发展有限责任公司 Advertisement cut-in method and system
CN103051939A (en) * 2012-12-31 2013-04-17 中央电视台 Method for arrangement processing of inserting advertisement
CN110290427A (en) * 2013-09-17 2019-09-27 英特尔Ip公司 The delivering of target media content
CN110495182A (en) * 2017-06-22 2019-11-22 谷歌有限责任公司 Effective insertion of media item in Media Stream

Also Published As

Publication number Publication date
CN111294611B (en) 2022-11-29

Similar Documents

Publication Publication Date Title
CN111399956B (en) Content display method and device applied to display equipment and electronic equipment
US11711441B2 (en) Method and apparatus for publishing video synchronously, electronic device, and readable storage medium
CN111163329B (en) Live broadcast room gift list configuration method, device, medium and electronic equipment
CN112383787B (en) Live broadcast room creating method and device, electronic equipment and storage medium
CN111459364B (en) Icon updating method and device and electronic equipment
CN111163324B (en) Information processing method and device and electronic equipment
CN111163336B (en) Video resource pushing method and device, electronic equipment and computer readable medium
CN110633126A (en) Information display method and device and electronic equipment
CN110837534A (en) Data list display method, device, equipment and storage medium
CN110674481A (en) Account registration method, device, equipment and storage medium of application program
CN111596992B (en) Navigation bar display method and device and electronic equipment
CN111225255B (en) Target video push playing method and device, electronic equipment and storage medium
CN110996155B (en) Video playing page display method and device, electronic equipment and computer readable medium
CN110619101B (en) Method and apparatus for processing information
CN111756953A (en) Video processing method, device, equipment and computer readable medium
CN112307393A (en) Information issuing method and device and electronic equipment
CN110705536A (en) Chinese character recognition error correction method and device, computer readable medium and electronic equipment
CN111259287B (en) Page content display method and device, electronic equipment and storage medium
CN111294611B (en) Video insertion method and device, electronic equipment and computer readable storage medium
CN111212296B (en) Live broadcast room gift list configuration method, device, medium and electronic equipment
CN111444457B (en) Data release method and device, storage medium and electronic equipment
CN111290692B (en) Picture display method and device, electronic equipment and computer readable medium
CN112162682A (en) Content display method and device, electronic equipment and computer readable storage medium
CN111399730A (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
CN111240718A (en) Theme updating method and device, electronic equipment and medium

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
GR01 Patent grant
GR01 Patent grant