CN115665452A - Method and device for embedding push content in video and electronic equipment - Google Patents

Method and device for embedding push content in video and electronic equipment Download PDF

Info

Publication number
CN115665452A
CN115665452A CN202211264240.3A CN202211264240A CN115665452A CN 115665452 A CN115665452 A CN 115665452A CN 202211264240 A CN202211264240 A CN 202211264240A CN 115665452 A CN115665452 A CN 115665452A
Authority
CN
China
Prior art keywords
video
clip
video clip
embedded
push content
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
CN202211264240.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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202211264240.3A priority Critical patent/CN115665452A/en
Publication of CN115665452A publication Critical patent/CN115665452A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Television Signal Processing For Recording (AREA)

Abstract

The utility model provides a method, a device and electronic equipment for embedding push content in video, which relate to the technical field of artificial intelligence, in particular to the technical fields of image processing, computer vision, deep learning and the like, in particular to scenes such as smart cities and smart government affairs. The specific implementation scheme is as follows: acquiring an original video; aiming at each video clip in the original video, when target push content matched with the clip characteristics of the video clip exists, embedding the video clip according to the target push content to obtain an embedded video clip corresponding to the video clip; the embedded video clip and the second video clip corresponding to the first video clip in the original video are spliced to obtain the embedded video, so that appropriate push content can be selected for the video clip according to the clip characteristics of the video clip, the embedding processing is further performed, manual processing is avoided, the push content embedded in the video clip is ensured to be the push content required in the video, and the pushing efficiency is improved.

Description

Method and device for embedding push content in video and electronic equipment
Technical Field
The present disclosure relates to the field of artificial intelligence technologies, and in particular, to the technical fields of image processing, computer vision, deep learning, and the like, and in particular, to a method and an apparatus for embedding push content in a video, and an electronic device.
Background
At present, there are two main schemes for embedding push content in a video, one is to manually select at least one frame in a video and embed push content in the at least one frame; one is to manually set an embedding template, where a position of a frame to be embedded and a position of push content to be embedded in the frame are set in the embedding template, and the electronic device performs embedding processing according to the embedding template, the video, and the push content.
In the first scheme, the labor cost is high and the efficiency is poor. In the second scheme, the embedded template needs to be manually set, and the embedded push content is not necessarily the push content needed in the video, so that the labor cost is high and the efficiency is poor.
Disclosure of Invention
The disclosure provides a method and a device for embedding push content in a video and electronic equipment.
According to an aspect of the present disclosure, a method for embedding push content in a video is provided, including: acquiring an original video and the fragment characteristics of at least one video fragment in the original video; for each video clip, under the condition that target push content corresponding to the video clip exists, embedding the video clip according to the target push content to obtain an embedded video clip corresponding to the video clip, wherein the target push content is matched with the clip characteristics of the video clip; splicing the embedded video clip corresponding to the first video clip and the second video clip in the original video to obtain an embedded video; the first video clip is a video clip matched with the target push content; the second video segment is a video segment of the original video except the first video segment.
According to another aspect of the present disclosure, there is provided an apparatus for embedding push content in a video, including: the device comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring an original video and the fragment characteristics of at least one video fragment in the original video; the first processing module is used for embedding the video clips according to the target push content under the condition that the target push content corresponding to each video clip exists, so as to obtain the embedded video clips corresponding to the video clips, wherein the target push content is matched with the clip characteristics of the video clips; the second processing module is used for splicing the embedded video clip corresponding to the first video clip in the original video and the second video clip to obtain an embedded video; the first video clip is a video clip matched with the target push content; the second video segment is a video segment of the original video other than the first video segment.
According to another aspect of the present disclosure, there is provided an electronic device including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the method for embedding push content in video as set forth above in this disclosure.
According to another aspect of the present disclosure, there is provided a non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method of embedding push content in video set forth above in the present disclosure.
According to another aspect of the present disclosure, a computer program product is provided, comprising a computer program which, when executed by a processor, performs the steps of the method for embedding push content in video as set forth above in the present disclosure.
It should be understood that the statements in this section are not intended to identify key or critical features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 is a schematic diagram according to a first embodiment of the present disclosure;
FIG. 2 is a schematic diagram according to a second embodiment of the present disclosure;
FIG. 3 is a schematic diagram according to a third embodiment of the present disclosure;
FIG. 4 is a block diagram of a method of embedding push content in a video;
FIG. 5 is a schematic diagram according to a fourth embodiment of the present disclosure;
fig. 6 is a block diagram of an electronic device for implementing a method of embedding push content in video according to an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
At present, there are two main schemes for embedding push content in a video, one is to manually select at least one frame in a video and embed push content in at least one frame; one is to manually set an embedding template, where a position of a frame to be embedded and a position of push content to be embedded in the frame are set, and the electronic device performs embedding processing according to the embedding template, the video and the push content.
In the first scheme, the labor cost is high, and the efficiency is poor. In the second scheme, the embedded template needs to be manually set, and the embedded push content is not necessarily the push content needed in the video, so that the labor cost is high and the efficiency is poor.
In order to solve the above problem, the present disclosure provides a method and an apparatus for embedding push content in a video, and an electronic device.
Fig. 1 is a schematic diagram according to a first embodiment of the present disclosure, and it should be noted that the method for embedding push content in video according to the embodiment of the present disclosure is applicable to an apparatus for embedding push content in video, where the apparatus may be configured in an electronic device, so that the electronic device may perform a function of embedding push content in video.
The electronic device may be any device having a computing capability, for example, a Personal Computer (PC), a mobile terminal, a server, and the like, and the mobile terminal may be a hardware device having various operating systems, touch screens, and/or display screens, such as an in-vehicle device, a mobile phone, a tablet Computer, a Personal digital assistant, and a wearable device.
As shown in fig. 1, the method for embedding push content in video may include the following steps:
step 101, an original video and a segment feature of at least one video segment in the original video are obtained.
In the embodiment of the present disclosure, the original video may be a video in which the push content is not embedded. The push content, for example, the image to be pushed, the video to be pushed, the three-dimensional model, the description content of the image to be pushed, the description content of the video to be pushed, the description content of the three-dimensional model, the link of the image to be pushed, the link of the video to be pushed, the link of the three-dimensional model, the name of the image to be pushed, the name of the video to be pushed, the name of the three-dimensional model, and the like, may be set according to actual needs.
In the embodiment of the present disclosure, the electronic device may perform the process of step 101, for example, to obtain an original video and frame characteristics of video frames in the original video; according to the frame characteristics of the video frame, carrying out segmentation processing on the original video to obtain at least one video segment; and for each video clip, determining the clip characteristics of the video clip according to the frame characteristics of the video frames in the video clip.
The frame characteristics of the video frame include, for example, classification, content subject, spatio-temporal position information corresponding to the content subject, resolution, and the like. The categories include, for example, a sports category, a mother-baby category, and a scenic spot category. The content subject is an object in the video frame, such as a person, an article, and the like. The spatiotemporal position information corresponding to the content main body comprises: and the relative position information of the content body in the video frame at the time point of the video frame where the content body is positioned.
The segment characteristics of the video segment include, for example, classification, content body, spatio-temporal position information corresponding to the content body, resolution, and the like. It should be noted that the classification of the video segment may be a classification that occurs the most frequently or accounts for the most frequently among the classifications of the video frames in the video segment.
The frame characteristics of the video frame may be obtained, for example, by inputting the video frame into a preset characteristic extraction model and obtaining the frame characteristics output by the characteristic extraction model.
The original video is divided based on the frame characteristics of the video frames to obtain at least one video clip, and the consistency of the content in each video clip can be ensured, so that the correlation between the subsequently selected target push content and the content in the video clip is improved, the push content embedded in the video clip is further ensured to be the push content required by the video clip, and the push efficiency is improved.
102, for each video segment, under the condition that target push content corresponding to the video segment exists, embedding the video segment according to the target push content to obtain an embedded video segment corresponding to the video segment, wherein the target push content is matched with the segment characteristics of the video segment.
In this disclosure, the process of the electronic device executing step 102 may be, for example, that, for each video segment, the electronic device may query a push content library according to segment characteristics of the video segment, and determine whether to acquire push content in the push content library that matches the segment characteristics of the video segment; if the matching push content is acquired, determining the matching push content as a target push content corresponding to the video clip; if the push content is not acquired, it is determined that the video clip does not have the corresponding target push content, that is, the push content suitable for being embedded into the video clip is not acquired.
When the target push content corresponding to the video clip does not exist, the video clip may not be embedded, that is, the video clip does not have a corresponding embedded video clip.
In the embodiment of the present disclosure, the push content includes, for example, an image to be pushed, a video to be pushed, a three-dimensional model, description content of the image to be pushed, description content of the video to be pushed, description content of the three-dimensional model, a link of the image to be pushed, a link of the video to be pushed, a link of the three-dimensional model, a name of the image to be pushed, a name of the video to be pushed, a name of the three-dimensional model, and the like. In one example, in a case where the target push content corresponding to the video clip is a non-video, such as an image, a description, a link, a three-dimensional model, etc., the electronic device may select a video frame from the video clip for embedding the target push content according to the characteristics of the clip corresponding to the video clip.
When selecting a video frame from a video clip, the selected video frame may satisfy at least one of the following conditions: the content body related to the target push content exists in the content body in the video frame, and an area suitable for embedding the target push content exists around the related content body in the video frame. Wherein the content body related to the target push content is, for example, a table, and the target push content is push content suitable for being placed on the table.
In another example, in a case that the target push content corresponding to the video clip is a video, the electronic device may select a plurality of consecutive video frames from the video clip according to the clip characteristics corresponding to the video clip, for embedding the target push content. The frame number of the target push content may be consistent with the frame number of the selected consecutive video frames, and one of the consecutive video frames is used for embedding one frame in the target push content.
103, splicing an embedded video segment corresponding to a first video segment in an original video and a second video segment to obtain an embedded video; the first video clip is matched with the target push content; the second video segment is a video segment of the original video other than the first video segment.
In the embodiment of the present disclosure, the embedded video segment corresponding to the first video segment and the second video segment may be spliced according to the sequence of each video segment in the original video, so as to obtain the embedded video.
In the embodiment of the present disclosure, after step 103, the electronic device may further perform the following processes: storing the embedded video corresponding to the original video; when a request for an original video sent by a terminal device is received, sending the embedded video corresponding to the original video to the terminal device, so that the terminal device plays the embedded video.
The electronic device stores the original video and the corresponding embedded video, and can provide the embedded video corresponding to the original video according to the request of the terminal device for the original video, so that the terminal device can play the embedded video, and the pushing efficiency is further improved.
According to the method for embedding the push content into the video, the original video and the segment characteristics of at least one video segment in the original video are obtained; for each video clip, under the condition that target push content corresponding to the video clip exists, embedding the video clip according to the target push content to obtain an embedded video clip corresponding to the video clip, wherein the target push content is matched with the clip characteristics of the video clip; splicing an embedded video clip corresponding to a first video clip in an original video and a second video clip to obtain an embedded video; the first video clip is matched with the target push content; the second video clip is the video clip except the first video clip in the original video, so that the appropriate push content can be selected for the video clip according to the clip characteristics of the video clip, the embedding processing is carried out, the manual processing is avoided, the labor cost is reduced, the push content embedded in the video clip is ensured to be the push content required in the video, and the push efficiency is improved.
In order to accurately combine the segment characteristics of the video segment and determine the target push content corresponding to the video segment, the matching degree between the segment characteristics of the video segment and the push content in the push content library can be determined, and then the target push content corresponding to the video segment is determined according to the matching degree. As shown in fig. 2, fig. 2 is a schematic diagram according to a second embodiment of the present disclosure, and the embodiment shown in fig. 2 may include the following steps:
step 201, an original video and a segment feature of at least one video segment in the original video are obtained.
Step 202, for each video clip, obtaining a matching degree between the clip feature of the video clip and the push feature of a plurality of push contents in the push content library.
In the embodiment of the present disclosure, the push feature of the push content includes, for example, a classification of the video clip required to be embedded, a content body included in the video clip required to be embedded, spatio-temporal position information of the content body in the video clip required to be embedded, a resolution of the video clip required to be embedded, and the like.
The electronic device can determine, for each video segment, for each push content in the push content library, a matching degree between the segment feature of the video segment and the push feature of the push content in combination with the segment feature of the video segment and the push feature of the push content. The matching degree, such as the similarity between the segment feature and the push feature, may be set according to actual needs.
Step 203, when a first matching degree greater than or equal to the threshold value of the matching degree exists, determining the push content corresponding to the first matching degree as the target push content corresponding to the video clip.
The threshold of the matching degree may be, for example, 60%, and may be set according to actual needs.
And 204, for each video segment, under the condition that target push content corresponding to the video segment exists, embedding the video segment according to the target push content to obtain an embedded video segment corresponding to the video segment, wherein the target push content is matched with the segment characteristics of the video segment.
In the embodiment of the present disclosure, in a case that the number of target push contents corresponding to a video segment is multiple, the process of the electronic device determining the embedded video segment corresponding to the video segment may be, for example, selecting one push content from the multiple target push contents; and embedding the video clip according to the selected push content to obtain an embedded video clip corresponding to the video clip.
In the above scheme, the electronic device may randomly select one push content from a plurality of target push contents, and perform embedding processing on the video clip according to the randomly selected push content to obtain an embedded video clip corresponding to the video clip.
When the number of the target push contents corresponding to the video clip is multiple, the electronic device selects one push content from the multiple target push contents to perform embedding processing, so that excessive push contents can be prevented from being embedded into the video clip, the playing effect of the video clip is ensured, and the pushing efficiency of the push contents in the video clip is further improved.
Step 205, splicing the embedded video segment corresponding to the first video segment in the original video and the second video segment to obtain an embedded video; the first video clip is matched with the target push content; the second video segment is a video segment of the original video other than the first video segment.
It should be noted that details of step 201, step 204, and step 205 may refer to step 101, step 102, and step 103 in the embodiment shown in fig. 1, and detailed description thereof is omitted here.
According to the method for embedding the push content in the video, the original video and the fragment characteristics of at least one video fragment in the original video are obtained; aiming at each video clip, acquiring matching degrees between the clip characteristics of the video clip and the push characteristics of a plurality of pieces of push content in a push content library; when a first matching degree which is greater than or equal to a threshold value of the matching degree exists, determining the push content corresponding to the first matching degree as target push content corresponding to the video clip; for each video clip, under the condition that target push content corresponding to the video clip exists, embedding the video clip according to the target push content to obtain an embedded video clip corresponding to the video clip, wherein the target push content is matched with the clip characteristics of the video clip; splicing an embedded video clip corresponding to a first video clip in an original video and a second video clip to obtain an embedded video; the first video clip is matched with the target push content; the second video clip is the video clip except the first video clip in the original video, so that the proper push content can be selected for the video clip according to the clip characteristics of the video clip and the push characteristics of the push content in the push content library, and then the embedding processing is carried out, the manual processing is avoided, the labor cost is reduced, the push content embedded in the video clip is ensured to be the push content required in the video, and the push efficiency is improved.
When the number of the target push contents corresponding to the video clip is multiple, in order to facilitate the electronic device to select a suitable push content from the multiple target push contents for embedding, the suitable push content may be selected according to a video score obtained after the multiple target push contents are embedded into the video clip. As shown in fig. 3, fig. 3 is a schematic diagram according to a third embodiment of the present disclosure, and the embodiment shown in fig. 3 may include the following steps:
step 301, acquiring an original video and a segment characteristic of at least one video segment in the original video.
Step 302, for each video segment, under the condition that there is a target push content corresponding to the video segment and the number of the target push contents is single, embedding the video segment according to the target push content to obtain an embedded video segment corresponding to the video segment, wherein the target push content is matched with the segment characteristics of the video segment.
Step 303, for each video segment, if there is a target push content corresponding to the video segment and the number of the target push contents is multiple, embedding the video segment according to the multiple target push contents to obtain multiple candidate embedded video segments, where the target push contents are matched with segment features of the video segment.
In the embodiment of the disclosure, the electronic device may perform embedding processing on the video segment according to each target push content corresponding to the video segment, so as to obtain a candidate embedded video segment; and then a plurality of candidate embedded video clips are obtained.
Step 304, selecting one embedded video segment from the plurality of candidate embedded video segments, and determining the embedded video segment as the embedded video segment corresponding to the video segment.
In an example of the disclosed embodiment, the electronic device may randomly select one embedded video segment from a plurality of candidate embedded video segments; and determining the selected candidate embedded video clip as the embedded video clip corresponding to the video clip.
In another example, the electronic device performing the process of step 304 can be, for example, determining video scores for a plurality of candidate embedded video segments; sequencing the plurality of candidate embedded video clips according to the video scores to obtain a sequencing result; and determining the candidate embedded video clip ranked at the top in the ranking result as the embedded video clip corresponding to the video clip.
In an example of the disclosed embodiment, the electronic device may determine the video score of the candidate embedded video segment by, for example, determining a correlation between the push content and the content of the video segment in the candidate embedded video segment, an aesthetic measure of the candidate embedded video segment, an embedding authenticity of the candidate embedded video segment, and the like by the electronic device, and determining the video score of the candidate embedded video segment according to at least one of the parameters.
When a plurality of parameters are adopted in the process of determining the video score, the weights of the adopted parameters can be determined; and weighting the parameters according to the weight to obtain the video scores of the candidate embedded video clips.
In another example, in the embodiment of the present disclosure, the process of the electronic device determining the video score of the candidate embedded video segment may be, for example, the electronic device inputs the candidate embedded video segment into a preset video scoring model, and obtains the video score output by the video scoring model.
The electronic equipment selects the embedded video clip with the highest video score from the plurality of candidate embedded video clips according to the video scores of the plurality of candidate embedded video clips, determines the embedded video clip corresponding to the video clip, can further ensure the correlation degree between the content in the embedded video clip and the push content, ensures that the appropriate push content is selected for the video clip, ensures the playing effect of the video clip, and further improves the push efficiency of the push content in the video clip.
305, splicing an embedded video segment corresponding to a first video segment in an original video and a second video segment to obtain an embedded video; the first video clip is matched with the target push content; the second video segment is a video segment of the original video except the first video segment.
It should be noted that details of step 301, step 302 and step 305 may refer to step 101, step 102 to step 103 in the embodiment shown in fig. 1, and are not described in detail here.
According to the method for embedding the push content in the video, the original video and the fragment characteristics of at least one video fragment in the original video are obtained; for each video clip, under the condition that target push content corresponding to the video clip exists and the number of the target push content is single, embedding the video clip according to the target push content to obtain an embedded video clip corresponding to the video clip, wherein the target push content is matched with the clip characteristics of the video clip; for each video clip, under the condition that target push contents corresponding to the video clip exist and the number of the target push contents is multiple, respectively embedding the video clip according to the multiple target push contents to obtain multiple candidate embedded video clips, wherein the target push contents are matched with the clip characteristics of the video clip; selecting one embedded video clip from a plurality of candidate embedded video clips, and determining the embedded video clip as the embedded video clip corresponding to the video clip; splicing an embedded video clip corresponding to a first video clip in an original video and a second video clip to obtain an embedded video; the first video clip is matched with the target push content; the second video clip is the video clip except the first video clip in the original video, so that the appropriate target push content can be selected for the video clip according to the clip characteristics of the video clip and the push characteristics of the push content in the push content library, and the appropriate embedded video clip can be selected from a plurality of candidate embedded video clips by combining the video scores of the embedded video, thereby avoiding manual processing, reducing the labor cost, ensuring that the push content embedded in the video clip is the push content required in the video, and improving the push efficiency.
The following examples are given. As shown in fig. 4, fig. 4 is a schematic diagram of a framework of a method for embedding push content in a video. In fig. 4, (1) an original video is acquired; (2) Performing content understanding on each video frame in an original video (frame sequence), acquiring frame characteristics of the video frame, such as category (classification), resolution, main body (content main body) and the like, and storing the frame characteristics in a library; segmenting the original video according to the frame characteristics to obtain at least one video segment in the original video; determining target push content corresponding to the video segments by combining advertisement putting data (push characteristics of push content in a push content library); (3) Under the condition that a plurality of target push contents correspond to the video segments, embedding the video segments according to the plurality of target push contents, and grading (video grading) the plurality of embedded video segments so as to select the embedded video segments corresponding to the video segments; splicing an embedded video clip corresponding to a first video clip in an original video and a second video clip to obtain an embedded video; the first video clip is matched with the target push content; the second video segment is a video segment of the original video other than the first video segment. The embedded video is the video with successful bidding; and (4) warehousing bidding success video data.
The content understanding is performed on each video frame in the original video, and the frame characteristics of each obtained video frame, that is, video understanding data, can be put in storage. The pushed content (advertisement material) and the pushing characteristics (putting scene and the like) of the pushed content can be put in storage in advance.
In order to implement the above embodiments, the present disclosure further provides an apparatus for embedding push content in a video.
As shown in fig. 5, fig. 5 is a schematic diagram according to a fourth embodiment of the present disclosure. The apparatus 500 for embedding push content in video includes: a first acquisition module 510, a first processing module 520, and a second processing module 530.
The first obtaining module 510 is configured to obtain an original video and a segment feature of at least one video segment in the original video; a first processing module 520, configured to, for each video segment, perform embedding processing on the video segment according to a target push content corresponding to the video segment when the target push content exists, to obtain an embedded video segment corresponding to the video segment, where the target push content matches with a segment feature of the video segment; a second processing module 530, configured to perform splicing processing on an embedded video segment corresponding to a first video segment in the original video and a second video segment to obtain an embedded video; the first video clip is a video clip matched with the target push content; the second video segment is a video segment of the original video except the first video segment.
As a possible implementation manner of the embodiment of the present disclosure, the first obtaining module 510 is specifically configured to obtain the original video and frame characteristics of video frames in the original video; according to the frame characteristics of the video frame, carrying out segmentation processing on the original video to obtain at least one video segment; and for each video clip, determining the clip characteristics of the video clip according to the frame characteristics of the video frames in the video clip.
As a possible implementation manner of the embodiment of the present disclosure, the apparatus further includes: a second obtaining module and a determining module; the second obtaining module is configured to obtain, for each video segment, a matching degree between a segment feature of the video segment and a push feature of a plurality of push contents in a push content library; the determining module is configured to determine, when a first matching degree greater than or equal to a matching degree threshold exists, the push content corresponding to the first matching degree as the target push content corresponding to the video clip.
As a possible implementation manner of the embodiment of the present disclosure, the number of target push contents corresponding to the video clip is multiple; the first processing module 520 is specifically configured to select one push content from the plurality of target push contents; and embedding the video clip according to the selected push content to obtain an embedded video clip corresponding to the video clip.
As a possible implementation manner of the embodiment of the present disclosure, the number of target push contents corresponding to the video clip is multiple; the first processing module 520 is specifically configured to perform embedding processing on the video segments according to the multiple target push contents, so as to obtain multiple candidate embedded video segments; and selecting one embedded video clip from the candidate embedded video clips, and determining the embedded video clip corresponding to the video clip.
As a possible implementation manner of the embodiment of the present disclosure, the first processing module 520 is specifically configured to determine video scores of a plurality of candidate embedded video segments; sequencing the candidate embedded video clips according to the video scores to obtain a sequencing result; and determining the candidate embedded video clip ranked at the top in the ranking result as the embedded video clip corresponding to the video clip.
As a possible implementation manner of the embodiment of the present disclosure, the apparatus further includes: the device comprises a storage module and a sending module; the storage module is used for storing the embedded video corresponding to the original video; the sending module is used for sending the embedded video corresponding to the original video to the terminal equipment when receiving a request for the original video sent by the terminal equipment so as to enable the terminal equipment to play the embedded video.
The device for embedding the push content in the video, which is disclosed by the embodiment of the disclosure, acquires the original video and the segment characteristics of at least one video segment in the original video; for each video clip, under the condition that target push content corresponding to the video clip exists, embedding the video clip according to the target push content to obtain an embedded video clip corresponding to the video clip, wherein the target push content is matched with the clip characteristics of the video clip; splicing an embedded video clip corresponding to a first video clip in an original video and a second video clip to obtain an embedded video; the first video clip is matched with the target push content; the second video clip is the video clip except the first video clip in the original video, so that the appropriate push content can be selected for the video clip according to the clip characteristics of the video clip, the embedding processing is carried out, the manual processing is avoided, the labor cost is reduced, the push content embedded in the video clip is ensured to be the push content required in the video, and the push efficiency is improved.
In the technical scheme of the disclosure, the collection, storage, use, processing, transmission, provision, disclosure and other processing of the personal information of the related user are all carried out on the premise of obtaining the consent of the user, and all accord with the regulation of related laws and regulations without violating the good custom of the public order.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
FIG. 6 illustrates a schematic block diagram of an example electronic device 600 that can be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic devices may also represent various forms of mobile devices, such as personal digital processors, cellular telephones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not intended to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 6, the device 600 comprises a computing unit 601, which may perform various suitable actions and processes according to a computer program stored in a Read Only Memory (ROM) 602 or loaded from a storage unit 608 into a Random Access Memory (RAM) 603. In the RAM603, various programs and data required for the operation of the device 600 can also be stored. The calculation unit 601, the ROM 602, and the RAM603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
A number of components in the device 600 are connected to the I/O interface 605, including: an input unit 606 such as a keyboard, a mouse, or the like; an output unit 607 such as various types of displays, speakers, and the like; a storage unit 608, such as a magnetic disk, optical disk, or the like; and a communication unit 609 such as a network card, modem, wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
Computing unit 601 may be a variety of general and/or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The calculation unit 601 performs the various methods and processes described above, such as a method of embedding push content in video. For example, in some embodiments, the method of embedding push content in video may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as storage unit 608. In some embodiments, part or all of a computer program may be loaded onto and/or installed onto device 600 via ROM 602 and/or communications unit 609. When the computer program is loaded into RAM603 and executed by the computing unit 601, one or more steps of the method of embedding push content in video described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured by any other suitable means (e.g., by means of firmware) to perform the method of embedding push content in video.
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
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 compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server with a combined blockchain.
It should be understood that various forms of the flows shown above, reordering, adding or deleting steps, may be used. For example, the steps described in the present disclosure may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and the present disclosure is not limited herein.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (17)

1. A method of embedding push content in a video, comprising:
acquiring an original video and the fragment characteristics of at least one video fragment in the original video;
for each video clip, under the condition that target push content corresponding to the video clip exists, embedding the video clip according to the target push content to obtain an embedded video clip corresponding to the video clip, wherein the target push content is matched with the clip characteristics of the video clip;
splicing the embedded video clip corresponding to the first video clip and the second video clip in the original video to obtain an embedded video; the first video clip is a video clip matched with the target push content; the second video segment is a video segment of the original video except the first video segment.
2. The method of claim 1, wherein the obtaining the original video and the segment content characteristics of at least one video segment in the original video comprises:
acquiring the original video and the frame characteristics of video frames in the original video;
according to the frame characteristics of the video frame, carrying out segmentation processing on the original video to obtain at least one video segment;
and for each video clip, determining the clip characteristics of the video clip according to the frame characteristics of the video frames in the video clip.
3. The method of claim 1, wherein the method further comprises:
aiming at each video clip, obtaining the matching degree between the clip characteristics of the video clip and the push characteristics of a plurality of push contents in a push content library;
when a first matching degree which is greater than or equal to a threshold value of the matching degree exists, determining the push content corresponding to the first matching degree as the target push content corresponding to the video clip.
4. The method of claim 1, wherein the number of target push contents corresponding to the video segment is plural; the embedding the video clip according to the target push content to obtain an embedded video clip corresponding to the video clip includes:
selecting one push content from a plurality of the target push contents;
and embedding the video clip according to the selected push content to obtain an embedded video clip corresponding to the video clip.
5. The method of claim 1, wherein the number of target push contents corresponding to the video segment is plural; the embedding the video clip according to the target push content to obtain an embedded video clip corresponding to the video clip includes:
embedding the video clips according to the target push contents to obtain a plurality of candidate embedded video clips;
and selecting one embedded video clip from the candidate embedded video clips, and determining the embedded video clip corresponding to the video clip.
6. The method of claim 5, wherein the selecting one of the plurality of candidate embedded video segments to determine the embedded video segment corresponding to the video segment comprises:
determining video scores for a plurality of the candidate embedded video segments;
sequencing the candidate embedded video clips according to the video scores to obtain a sequencing result;
and determining the candidate embedded video clip ranked at the top in the ranking result as the embedded video clip corresponding to the video clip.
7. The method of claim 1, wherein the method further comprises:
storing the embedded video corresponding to the original video;
when a request for the original video sent by a terminal device is received, sending the embedded video corresponding to the original video to the terminal device, so that the terminal device plays the embedded video.
8. An apparatus for embedding push content in video, comprising:
the device comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring an original video and the fragment characteristics of at least one video fragment in the original video;
the first processing module is used for embedding each video clip according to the target push content under the condition that the target push content corresponding to the video clip exists, so as to obtain the embedded video clip corresponding to the video clip, wherein the target push content is matched with the clip characteristics of the video clip;
the second processing module is used for splicing the embedded video clip corresponding to the first video clip and the second video clip in the original video to obtain an embedded video; the first video clip is a video clip matched with the target push content; the second video segment is a video segment of the original video except the first video segment.
9. The apparatus of claim 8, wherein the first acquisition module is specifically configured to,
acquiring the original video and the frame characteristics of video frames in the original video;
according to the frame characteristics of the video frame, carrying out segmentation processing on the original video to obtain at least one video segment;
and for each video clip, determining the clip characteristics of the video clip according to the frame characteristics of the video frames in the video clip.
10. The apparatus of claim 8, wherein the apparatus further comprises: a second obtaining module and a determining module;
the second obtaining module is configured to obtain, for each video segment, a matching degree between a segment feature of the video segment and a push feature of a plurality of push contents in a push content library;
the determining module is configured to determine, when a first matching degree greater than or equal to a matching degree threshold exists, the push content corresponding to the first matching degree as the target push content corresponding to the video segment.
11. The apparatus of claim 8, wherein the video clip corresponds to a plurality of target push contents; the first processing module is specifically configured to,
selecting one push content from a plurality of the targeted push contents;
and embedding the video clip according to the selected push content to obtain an embedded video clip corresponding to the video clip.
12. The apparatus of claim 8, wherein the video clip corresponds to a plurality of target push contents; the first processing module is specifically configured to,
embedding the video clips according to the target push contents to obtain a plurality of candidate embedded video clips;
and selecting one embedded video clip from a plurality of candidate embedded video clips, and determining the embedded video clip corresponding to the video clip.
13. The apparatus according to claim 12, wherein the first processing means is in particular adapted to,
determining video scores for a plurality of the candidate embedded video segments;
sequencing the candidate embedded video clips according to the video scores to obtain a sequencing result;
and determining the candidate embedded video clip ranked at the top in the ranking result as the embedded video clip corresponding to the video clip.
14. The apparatus of claim 8, wherein the apparatus further comprises: the device comprises a storage module and a sending module;
the storage module is used for storing the embedded video corresponding to the original video;
the sending module is used for sending the embedded video corresponding to the original video to the terminal equipment when receiving a request aiming at the original video sent by the terminal equipment, so that the terminal equipment plays the embedded video.
15. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.
16. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-7.
17. A computer program product comprising a computer program which, when being executed by a processor, carries out the steps of the method according to any one of claims 1-7.
CN202211264240.3A 2022-10-14 2022-10-14 Method and device for embedding push content in video and electronic equipment Pending CN115665452A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211264240.3A CN115665452A (en) 2022-10-14 2022-10-14 Method and device for embedding push content in video and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211264240.3A CN115665452A (en) 2022-10-14 2022-10-14 Method and device for embedding push content in video and electronic equipment

Publications (1)

Publication Number Publication Date
CN115665452A true CN115665452A (en) 2023-01-31

Family

ID=84986985

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211264240.3A Pending CN115665452A (en) 2022-10-14 2022-10-14 Method and device for embedding push content in video and electronic equipment

Country Status (1)

Country Link
CN (1) CN115665452A (en)

Similar Documents

Publication Publication Date Title
CN112559800B (en) Method, apparatus, electronic device, medium and product for processing video
CN115063875B (en) Model training method, image processing method and device and electronic equipment
CN114154013A (en) Video recommendation method, device, equipment and storage medium
CN113923529A (en) Live broadcast wheat connecting method, device, equipment and storage medium
CN113205041A (en) Structured information extraction method, device, equipment and storage medium
CN114792355B (en) Virtual image generation method and device, electronic equipment and storage medium
CN113378855A (en) Method for processing multitask, related device and computer program product
CN113254712A (en) Video matching method, video processing device, electronic equipment and medium
CN114627556B (en) Motion detection method, motion detection device, electronic apparatus, and storage medium
CN116204624A (en) Response method, response device, electronic equipment and storage medium
CN112182520A (en) Illegal account identification method and device, readable medium and electronic equipment
CN115665452A (en) Method and device for embedding push content in video and electronic equipment
CN115080770A (en) Multimedia data processing method and device, electronic equipment and readable storage medium
CN113987260A (en) Video pushing method and device, electronic equipment and storage medium
CN113204665A (en) Image retrieval method, image retrieval device, electronic equipment and computer-readable storage medium
CN113780297A (en) Image processing method, device, equipment and storage medium
CN113873323A (en) Video playing method and device, electronic equipment and medium
CN113127683A (en) Content recommendation method and device, electronic equipment and medium
CN113642495B (en) Training method, apparatus, and program product for evaluating model for time series nomination
CN116866669A (en) Video recommendation method, apparatus and computer program product
CN115965817A (en) Training method and device of image classification model and electronic equipment
CN113934932A (en) Recommendation list generation method and device
CN117633360A (en) Multi-scene-based content recommendation method and device, electronic equipment and storage medium
CN113934918A (en) Searching method and device for live broadcast, electronic equipment and storage medium
CN114972469A (en) Method and device for generating depth map, electronic equipment and readable storage 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