Video processing method, device, readable medium and electronic device

By extracting the target audio rhythm information in the video, it solves the problem of difficulty in extracting key video clips in the existing technology, improves the content delivery effect, and achieves more efficient user attention attraction.

CN114760494BActive Publication Date: 2024-08-30DOUYIN VISION CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210398270.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-15
Publication Date
2024-08-30
Estimated Expiration
2042-04-15

AI Technical Summary

Technical Problem

Existing technology is difficult to effectively extract key video clips from programmatic content, affecting the content delivery effect.

Method used

By obtaining the target audio in the video to be processed, its audio rhythm information is determined, and the target video clip is extracted from the video based on the audio rhythm information.

Benefits of technology

The effect of content delivery is improved, and the user's attention appeal is enhanced by extracting video clips with characteristic points and climax parts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114760494B
    Figure CN114760494B
Patent Text Reader

Abstract

The present disclosure relates to a video processing method, device, readable medium and electronic device, the method comprising: obtaining a video to be processed containing a preset object; extracting a target audio from the video to be processed; determining audio rhythm information corresponding to the target audio; and extracting a target video segment including the preset object from the video to be processed according to the audio rhythm information. That is, the present disclosure can extract a target video segment from the video to be processed according to the audio rhythm information corresponding to the target audio in the video to be processed, so that content can be delivered through the target video segment, thereby improving the delivery effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of video processing technology, and in particular, to a video processing method, device, readable medium and electronic device. Background Art

[0002] Programmatic content delivery refers to the use of technical means to conduct content transactions and management. Programmatic content automatically generates a large amount of deliverable content through computers, artificial intelligence and other technical means, and automatically completes the delivery of content.

[0003] In the related art, in order to improve the delivery effect of programmatic content, it is necessary to extract key video clips that best reflect product characteristics from a large amount of deliverable content for delivery. Therefore, how to extract key video clips has become an urgent problem to be solved. Summary of the invention

[0004] This summary is provided to introduce concepts in a brief form that will be described in detail in the detailed description below. This summary is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.

[0005] In a first aspect, the present disclosure provides a video processing method, the method comprising:

[0006] Get the video to be processed containing the preset object;

[0007] Extracting target audio from the video to be processed;

[0008] Determine audio rhythm information corresponding to the target audio;

[0009] A target video segment including the preset object is extracted from the video to be processed according to the audio rhythm information.

[0010] In a second aspect, the present disclosure provides a video processing device, the device comprising:

[0011] A video acquisition module, used to acquire a video to be processed containing a preset object;

[0012] An audio extraction module, used to extract target audio from the video to be processed;

[0013] A rhythm information determination module, used to determine the audio rhythm information corresponding to the target audio;

[0014] The video segment extraction module is used to extract a target video segment including the preset object from the video to be processed according to the audio rhythm information.

[0015] In a third aspect, the present disclosure provides a computer-readable medium having a computer program stored thereon, which, when executed by a processing device, implements the steps of the method described in the first aspect of the present disclosure.

[0016] In a fourth aspect, the present disclosure provides an electronic device, including:

[0017] a storage device having a computer program stored thereon;

[0018] A processing device is used to execute the computer program in the storage device to implement the steps of the method described in the first aspect of the present disclosure.

[0019] Through the above technical solution, by obtaining a video to be processed containing a preset object; extracting a target audio from the video to be processed; determining the audio rhythm information corresponding to the target audio; and extracting a target video segment including the preset object from the video to be processed according to the audio rhythm information. That is, the present disclosure can extract a target video segment including the preset object from the video to be processed according to the audio rhythm information corresponding to the target audio in the video to be processed, so that content delivery can be performed through the target video segment, thereby improving the delivery effect.

[0020] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale. In the drawings:

[0022] Figure 1 is a flowchart of a video processing method according to an exemplary embodiment of the present disclosure;

[0023] Figure 2 is a flowchart of a second video processing method according to an exemplary embodiment of the present disclosure;

[0024] Figure 3 is a schematic diagram of audio rhythm information according to an exemplary embodiment of the present disclosure;

[0025] Figure 4 is a flowchart of a third video processing method according to an exemplary embodiment of the present disclosure;

[0026] Figure 5 is a schematic diagram showing an audio rhythm density according to an exemplary embodiment of the present disclosure;

[0027] Figure 6 is a schematic diagram of video decomposition according to an exemplary embodiment of the present disclosure;

[0028] Figure 7 is a schematic diagram of a transition frame according to an exemplary embodiment of the present disclosure;

[0029] Figure 8 is a flowchart of a fourth video processing method according to an exemplary embodiment of the present disclosure;

[0030] Fig. 9 is a block diagram of a video processing device according to an exemplary embodiment of the present disclosure;

[0031] Fig.10 is a block diagram of a second video processing device according to an exemplary embodiment of the present disclosure;

[0032] Fig.11 is a block diagram of a third video processing device according to an exemplary embodiment of the present disclosure;

[0033] Fig.12 It is a block diagram of an electronic device according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

[0034] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0035] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0036] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "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". The relevant definitions of other terms will be given in the following description.

[0037] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0038] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0039] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0040] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0041] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.

[0042] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0043] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0044] At the same time, it is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.

[0045] The present disclosure is described below in conjunction with specific embodiments.

[0046] Figure 1 is a flowchart of a video processing method according to an exemplary embodiment of the present disclosure. Figure 1 As shown, the method may include:

[0047] S101, obtaining a video to be processed containing a preset object.

[0048] The video to be processed may be a programmed content video obtained for the preset object, and the preset object may be a product.

[0049] S102: extracting target audio from the video to be processed.

[0050] In this step, after obtaining the video to be processed, the video to be processed can be subjected to audio and video separation processing by the method of the prior art to obtain the target audio.

[0051] S103: Determine audio rhythm information corresponding to the target audio.

[0052] The audio rhythm information may be used to characterize the audio rhythm of the target audio. For example, the audio rhythm information may include the audio rhythms corresponding to different moments of the target audio.

[0053] In this step, after obtaining the target audio in the video to be processed, the audio rhythm information corresponding to the target audio can be determined by the rhythm detection method of the prior art.

[0054] S104: extracting a target video segment including the preset object from the video to be processed according to the audio rhythm information.

[0055] The target video clip may be a video clip containing the feature points of the preset object, and the feature points may be used to characterize the climax of the video to be processed, or may be used to characterize a clip with more interactions in the video to be processed. It should be noted that the beginning of the programmatic content video is generally narrative, and the audio rhythm is relatively slow and calm. In the climax or the clip with more interactions, in order to attract the user's attention, the audio rhythm changes more obviously and is faster.

[0056] In this step, after the audio rhythm information corresponding to the target audio is determined, a video segment with a faster audio rhythm change in the video to be processed can be used as the target video segment.

[0057] By adopting the above method, the target video segment including the preset object can be extracted from the video to be processed according to the audio rhythm information corresponding to the target audio in the video to be processed, so that content can be delivered through the target video segment, thereby improving the delivery effect.

[0058] Figure 2 is a flowchart of a second video processing method according to an exemplary embodiment of the present disclosure. Figure 2 As shown, the method may include:

[0059] S201, obtaining a video to be processed containing a preset object.

[0060] The video to be processed may be a programmed content video obtained for the preset object, and the preset object may be a product.

[0061] S202: extracting target audio from the video to be processed.

[0062] S203: extracting background audio and human voice audio from the target audio.

[0063] S204: Process the background audio and / or the human voice audio to obtain intensity-adjusted audio corresponding to the target audio.

[0064] In this step, after extracting the background audio and human voice audio from the target audio, the sound intensity of the background audio in the target audio can be increased according to the first preset intensity, and the sound intensity of the human voice audio in the target audio can be reduced according to the second preset intensity, so as to obtain the intensity-adjusted audio corresponding to the target audio. The first preset intensity and the second preset intensity can be predetermined according to experiments, for example, the first preset intensity can be 15db, and the second preset intensity can be 5db.

[0065] S205. Determine, according to the preset intensity information, first audio rhythm information of the target audio, second audio rhythm information of the background audio, and / or third audio rhythm information of the intensity-adjusted audio.

[0066] The preset intensity information may be preset based on experience. For example, the preset intensity information may include five rhythm intensities: strong, weak, second strong, second weak and mixed intensity, where the mixed intensity is a mixture of strong, weak, second strong and second weak. The audio rhythm information may include audio rhythm density corresponding to different time points in the target audio, and the audio rhythm density may be used to characterize the speed of change of the audio rhythm of the target audio.

[0067] In this step, for each rhythm intensity in the preset intensity information, the first audio rhythm information of the target audio can be determined by the method of the prior art. For example, if the preset intensity information includes strong, weak, second strong, second weak and mixed intensity, the first audio rhythm information of the target audio when the rhythm intensity is strong, weak, second strong, second weak and mixed intensity can be determined respectively, and five first audio rhythm information corresponding to the target audio can be obtained.

[0068] For each rhythm intensity in the preset intensity information, the second audio rhythm information of the background audio at each rhythm intensity can be determined respectively. For example, if the preset intensity information includes strong, weak, second strong, second weak and mixed intensity, the second audio rhythm information of the background audio at the rhythm intensity of strong, weak, second strong, second weak and mixed intensity can be determined respectively, and five second audio rhythm information of the background audio can be obtained.

[0069] For each rhythm intensity in the preset intensity information, the third audio rhythm information of the intensity-adjusted audio at each rhythm intensity can be determined respectively. For example, if the preset intensity information includes strong, weak, second strong, second weak and mixed intensity, the third audio rhythm information of the intensity-adjusted audio at the rhythm intensity of strong, weak, second strong, second weak and mixed intensity can be determined respectively, and five third audio rhythm information of the intensity-adjusted audio are obtained.

[0070] Figure 3 is a schematic diagram of audio rhythm information according to an exemplary embodiment of the present disclosure, such as Figure 3 As shown, from bottom to top are the audio rhythm information corresponding to the second weakest, second strongest, weak, strong, and mixed strengths, and each audio rhythm information includes the audio rhythm density at different moments.

[0071] S206: Input the first audio rhythm information, the second audio rhythm information and / or the third audio rhythm information into a preset analysis model to determine the target video segment.

[0072] In this step, after obtaining the first audio rhythm information, the second audio rhythm information and the third audio rhythm information, the first audio rhythm information, the second audio rhythm information and the third audio rhythm information are used as inputs of a preset analysis model, such as a logistic regression processing model, to determine a time period with a faster audio rhythm in the target audio based on different components in the target audio, and a video clip corresponding to the time period is used as the target video clip.

[0073] By adopting the above method, the audio rhythm information of the target audio, the background audio and the intensity-adjusted audio at each rhythm intensity of the preset intensity information can be determined respectively to obtain the first audio rhythm information, the second audio rhythm information and the third audio rhythm information. Then, the target video segment including the preset object is extracted from the video to be processed according to the first audio rhythm information, the second audio rhythm information and the third audio rhythm information. In this way, since the audio rhythm information is determined at multiple rhythm intensities of the preset intensity information, the accuracy of the target video segment extracted according to the audio rhythm information is higher, thereby further improving the effect of the delivery.

[0074] Figure 4is a flowchart of a third video processing method according to an exemplary embodiment of the present disclosure. Figure 4 As shown, the method may include:

[0075] S401, obtaining a video to be processed containing a preset object.

[0076] The video to be processed may be a programmed content video obtained for the preset object, and the preset object may be a product.

[0077] S402: extracting target audio from the video to be processed.

[0078] S403: Determine audio rhythm information corresponding to the target audio.

[0079] The audio rhythm information may include audio rhythm density corresponding to different time points in the target audio, and the audio rhythm density may be used to characterize the changing speed of the audio rhythm of the target audio.

[0080] In this step, after extracting the target audio, the audio rhythm density corresponding to the target audio can be determined by the method of the prior art. Figure 5 is a schematic diagram showing an audio rhythm density according to an exemplary embodiment of the present disclosure, such as Figure 5 As shown, the audio rhythm of the target audio changes slowly from 0 to 22 seconds, and the audio rhythm starts to become faster from 22 seconds, and the audio rhythm density is relatively large.

[0081] S404: Determine characteristic time information according to the audio rhythm information.

[0082] In this step, after determining the audio rhythm density corresponding to the target audio, a target time point at which the audio rhythm density in the target audio is greater than or equal to a preset density threshold can be determined, and the target time point is used as the characteristic time information. The preset rhythm density threshold can be obtained by pre-testing the experiment. Figure 5 Taking the audio rhythm density as an example, the target time point when the audio rhythm density in the target audio begins to increase (greater than or equal to the preset density threshold) is 22s. Based on this, it can be determined that the characteristic time information is 22s.

[0083] S405: Extracting a target video segment including the preset object from the video to be processed based on the characteristic time information.

[0084] In this step, after determining the characteristic time information, the target image in the video to be processed can be extracted, and based on the target audio and the target image, at least one target object in the video to be processed and the target object time information corresponding to each target object can be determined. The target object can be the object speaking in the video to be processed; based on the characteristic time information and multiple target object time information, the target time information is determined; based on the target time information, a target video segment including the preset object is extracted from the video to be processed.

[0085] It should be noted that the present disclosure can also extract the target image in the video to be processed when extracting the target audio including the preset object from the video to be processed in step S402. For example, the video to be processed can be separated into audio and video by the method of the prior art to obtain the target audio and the target image.

[0086] In a possible implementation, after obtaining the target audio and target image corresponding to the video to be processed, at least one first object in the target audio can be determined, at least one second object in the target image can be determined, at least one target object can be determined based on the at least one first object and the at least one second object, and the target object time information corresponding to each target object can be determined based on the target image. The target object time information can be the start time of the speech content corresponding to the target object, or the end time of the speech content corresponding to the target object. The present disclosure takes the target object time information as the start time of the speech content corresponding to the target object as an example for explanation.

[0087] For example, the target audio can be identified by the voiceprint recognition algorithm and speech recognition algorithm of the prior art to obtain at least one first object in the target audio, and then the speech recognition results of the same first object in the target audio can be clustered by the ASR (Automatic Speech Recognition, automatic speech recognition technology) human voice clustering algorithm to obtain the start time of the speech content corresponding to each first object. The target image is subjected to face recognition by the face detection algorithm of the prior art to determine at least one second object in the target image, and the images of the same second object in the target image are clustered to obtain the start time of the speech content corresponding to each second object. In the process of performing face recognition on the target image by the face detection algorithm of the prior art, in order to improve the processing efficiency, the target image can be first subjected to frame extraction processing to obtain the target frame image corresponding to the target image, and the face in the target frame image can be analyzed, and the face image (for example, background face, mobile phone screen face, etc.) in the target image that is not suitable for face analysis can be filtered out according to the attributes of the face, such as posture, clarity, size, etc., so that the accuracy of determining at least one second object can be improved.

[0088] Further, after determining at least one first object in the target audio and at least one second object in the target image, the at least one first object and the at least one second object can be compared to determine at least one target object. For example, the union of the at least one first object and the at least one second object can be used as the at least one target object. Afterwards, for each target object, the second object corresponding to the target object can be determined, and the start time of the speech content corresponding to the second object can be used as the target object time information corresponding to the target object.

[0089] After determining the target object time information corresponding to each target object, the target object time information closest to the characteristic time information among the multiple target object time information can be used as the target time information. For example, if the target object time information includes 1s, 10s, 14s, and 20s, and the characteristic time information is 15s, then the target time information can be determined to be 14s. In this way, the determined target event information is a complete content corresponding to an object in the video to be processed, thereby improving the integrity of the target video segment finally extracted.

[0090] It should be noted that if there is only one object in the video to be processed, the target audio in the video to be processed can be segmented according to the sentence segmentation algorithm of the prior art, and the starting time information corresponding to each sentence can be determined, and the starting time information closest to the feature time information can be used as the target time information.

[0091] It should be noted that Figure 6 is a schematic diagram of video decomposition according to an exemplary embodiment of the present disclosure. Figure 6 As shown, the video can be decomposed into stories, scenes, shots, sub-shots and key frames according to the hierarchical relationship. A story is a continuous scene segment or shot segment that can describe a completed event. A scene refers to continuous shots that are semantically related or temporally adjacent. A scene generally includes continuous shots shot at the same location. A shot refers to a continuous segment shot by a single camera. Sub-shots are further divided into shots according to the camera's stretching, stillness, movement, etc. A key frame refers to a frame of image that can represent a shot or sub-shot. According to the above decomposition method, the present disclosure can decompose the video to be processed by scene as a unit, so that the target video segment finally extracted is one or more shots with complete content.

[0092] In a possible implementation, after determining the target time information, the target image can be input into a pre-trained transition frame determination model to obtain at least one transition frame output by the transition frame determination model, and a target transition frame closest to the target time information is determined from the at least one transition frame, and a target video segment including the preset object is extracted from the video to be processed according to the target transition frame. The transition frame determination model can be trained with reference to the model training method of the prior art, which will not be described in detail here.

[0093] For example, Figure 7 is a schematic diagram of a transition frame according to an exemplary embodiment of the present disclosure, such as Figure 7 As shown in the figure, the image pointed to by the thick black line is the transition frame. If the target time information is 14s, the time point corresponding to the third transition frame is 8s, the time point corresponding to the fourth transition frame is 12s, and the time point corresponding to the fifth transition frame is 18s, then the fourth transition frame can be used as the target transition frame, and the scene video corresponding to the fourth transition frame can be used as the target video clip.

[0094] By adopting the above method, the characteristic time information can be first determined according to the audio rhythm information corresponding to the target audio in the video to be processed, and the target time information can be determined according to the characteristic time information and multiple target object time information, and then the target transition frame can be determined according to the target time information and multiple transition frames corresponding to the video to be processed, and the target video segment including the preset object can be extracted from the video to be processed according to the target transition frame. In this way, the extracted target video segment is more complete and accurate, thereby further improving the effect of the delivery.

[0095] Figure 8 is a flowchart of a fourth video processing method according to an exemplary embodiment of the present disclosure. Figure 8 As shown, the method may include:

[0096] S801: Obtain a video to be processed that contains a preset object.

[0097] The video to be processed may be a programmed content video obtained for the preset object, and the preset object may be a product.

[0098] S802: Extract target audio from the video to be processed.

[0099] S803: Determine audio rhythm information corresponding to the target audio.

[0100] The audio rhythm information may include first audio rhythm information, second audio rhythm information and third audio rhythm information. The audio rhythm information may include audio rhythm density corresponding to different time points in the target audio, and the audio rhythm density may be used to characterize the change speed of the audio rhythm of the target audio.

[0101] S804: Determine characteristic time information according to the audio rhythm information.

[0102] S805: Obtain at least one preset keyword corresponding to the video to be processed.

[0103] The preset keyword may be a word that can reflect the characteristic points of the preset object. Different keywords may be preset for different types of videos to be processed.

[0104] S806: Determine keyword time information of each preset keyword in the video to be processed.

[0105] In this step, after obtaining at least one preset keyword, keyword time information corresponding to each preset keyword can be extracted from the target audio through ASR.

[0106] S807: Determine target feature time information according to the feature time information and the keyword time information.

[0107] In this step, after determining the keyword time information of each preset keyword in the video to be processed, the first preset weight and the second preset weight can be obtained, and for each feature time information, the target keyword time information corresponding to the feature time information is determined from at least one keyword time information, and the target feature time information is determined based on the feature time information, the target keyword time information, the first preset weight and the second preset weight. The first preset weight and the second preset weight can be preset according to the type of the video to be processed.

[0108] For example, after determining the keyword time information of each preset keyword in the video to be processed, the keyword time information closest to the feature time information among multiple keyword time information can be used as the target keyword time information corresponding to the feature time information. Thereafter, the first product of the feature time information and the first preset weight can be calculated, and the second product of the target keyword time information and the second preset weight can be calculated, and the sum of the first product and the second product can be used as the target feature time information.

[0109] S808: Extracting a target video segment including the preset object from the video to be processed according to the target feature time information.

[0110] By adopting the above method, the audio rhythm information of the target audio in the video to be processed at each preset rhythm intensity can be determined first, and the characteristic time information can be determined based on multiple audio rhythm information, and the keyword time information of each preset keyword in the video to be processed can be obtained. Then, the target characteristic time information can be determined based on the characteristic time information and the keyword time information, and the target video segment including the preset object can be extracted from the video to be processed based on the target characteristic time information. In this way, since the characteristic time information is determined based on multiple audio rhythm information, the accuracy of the characteristic time information is higher, and the target time characteristic information is determined based on the characteristic time information and multiple keyword time information, so that the extracted target video segment is more complete and accurate, thereby further improving the effect of delivery.

[0111] Fig. 9 is a block diagram of a video processing device according to an exemplary embodiment of the present disclosure. Fig. 9 As shown, the device may include:

[0112] The video acquisition module 901 is used to acquire a video to be processed containing a preset object;

[0113] An audio extraction module 902 is used to extract target audio from the video to be processed;

[0114] A rhythm information determination module 903, used to determine the audio rhythm information corresponding to the target audio;

[0115] The video segment extraction module 904 is used to extract a target video segment including the preset object from the video to be processed according to the audio rhythm information.

[0116] Optionally, the video segment extraction module 904 is further used for:

[0117] Determine characteristic time information according to the audio rhythm information;

[0118] Based on the characteristic time information, a target video segment including the preset object is extracted from the video to be processed.

[0119] Optionally, the audio rhythm information includes audio rhythm density corresponding to different time points in the target audio, and the audio rhythm density is used to characterize the change speed of the audio rhythm of the target audio; the video clip extraction module 904 is further used to:

[0120] A target time point at which the audio rhythm density in the target audio is greater than or equal to a preset density threshold is determined, and the target time point is used as the characteristic time information.

[0121] Optionally, the video segment extraction module 904 is further used for:

[0122] Extracting a target image from the video to be processed;

[0123] Determine at least one target object in the video to be processed and target object time information corresponding to each target object according to the target audio and the target image; the target object is an object speaking in the video to be processed;

[0124] Determining target time information according to the characteristic time information and a plurality of target object time information;

[0125] According to the target time information, a target video segment including the preset object is extracted from the video to be processed.

[0126] Optionally, the video segment extraction module 904 is further used for:

[0127] determining at least one first object in the target audio;

[0128] determining at least one second object in the target image;

[0129] Determining at least one of the target objects according to at least one of the first objects and at least one of the second objects;

[0130] According to the target image, target object time information corresponding to each target object is determined.

[0131] Optionally, the video segment extraction module 904 is further used for:

[0132] The target object time information closest to the characteristic time information among the multiple target object time information is used as the target time information.

[0133] Optionally, Fig.10 is a block diagram of a second video processing device according to an exemplary embodiment of the present disclosure. Fig.10 As shown, the device also includes:

[0134] A transition frame acquisition module 905 is used to input the target image into a pre-trained transition frame determination model to obtain at least one transition frame output by the transition frame determination model;

[0135] The video segment extraction module 904 is further used for:

[0136] Determine a target transition frame closest to the target time information from at least one of the transition frames;

[0137] According to the target transition frame, a target video segment including the preset object is extracted from the video to be processed.

[0138] Optionally, Fig.11is a block diagram of a third video processing device according to an exemplary embodiment of the present disclosure. Fig.11 As shown, the device also includes:

[0139] A keyword acquisition module 906 is used to acquire at least one preset keyword corresponding to the video to be processed;

[0140] A time information determination module 907, used to determine the keyword time information of each preset keyword in the video to be processed;

[0141] The video segment extraction module 904 is further used for:

[0142] Determine target feature time information according to the feature time information and the keyword time information;

[0143] According to the target feature time information, the target video segment including the preset object is extracted from the video to be processed.

[0144] Optionally, the video segment extraction module 904 is further used for:

[0145] Obtain a first preset weight and a second preset weight;

[0146] For each characteristic time information, the target keyword time information corresponding to the characteristic time information is determined from at least one of the keyword time information, and the target characteristic time information is determined based on the characteristic time information, the target keyword time information, the first preset weight and the second preset weight.

[0147] Optionally, the rhythm information determination module 903 is further used to:

[0148] Extracting background audio and vocal audio from the target audio;

[0149] Processing the background audio and / or the human voice audio to obtain intensity-adjusted audio corresponding to the target audio;

[0150] According to the preset intensity information, the first audio rhythm information of the target audio, the second audio rhythm information of the background audio and / or the third audio rhythm information of the intensity-adjusted audio are determined respectively.

[0151] The video segment extraction module 904 is further used for:

[0152] The first audio rhythm information, the second audio rhythm information and / or the third audio rhythm information are input into a preset analysis model to determine the target video segment.

[0153] Through the above device, the target video segment including the preset object can be extracted from the video to be processed according to the audio rhythm information corresponding to the target audio in the video to be processed, so that content can be delivered through the target video segment, thereby improving the delivery effect.

[0154] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0155] Reference below Fig.12 , which shows a schematic diagram of the structure of an electronic device (such as a terminal device or a server) 1200 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, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.12 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0156] like Fig.12 As shown, the electronic device 1200 may include a processing device (e.g., a central processing unit, a graphics processor, etc.) 1201, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1202 or a program loaded from a storage device 1208 to a random access memory (RAM) 1203. In the RAM 1203, various programs and data required for the operation of the electronic device 1200 are also stored. The processing device 1201, the ROM 1202, and the RAM 1203 are connected to each other via a bus 1204. An input / output (I / O) interface 1205 is also connected to the bus 1204.

[0157] Typically, the following devices may be connected to the I / O interface 1205: an input device 1206 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 1207 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1208 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1209. The communication device 1209 may allow the electronic device 1200 to communicate with other devices wirelessly or by wire to exchange data. Although Fig.12 The electronic device 1200 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0158] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 1209, or installed from the storage device 1208, or installed from the ROM 1202. When the computer program is executed by the processing device 1201, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0159] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0160] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0161] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0162] The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device: obtains a video to be processed containing a preset object; extracts target audio from the video to be processed; determines audio rhythm information corresponding to the target audio; and extracts a target video segment including the preset object from the video to be processed based on the audio rhythm information.

[0163] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving 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 may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0164] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0165] The modules involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a module does not limit the module itself in some cases. For example, a video acquisition module may also be described as a "module for acquiring a video to be processed containing a preset object".

[0166] The functions described above herein 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 chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0167] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A 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, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0168] According to one or more embodiments of the present disclosure, Example 1 provides a video processing method, which includes: obtaining a video to be processed that contains a preset object; extracting target audio from the video to be processed; determining audio rhythm information corresponding to the target audio; and extracting a target video segment including the preset object from the video to be processed based on the audio rhythm information.

[0169] According to one or more embodiments of the present disclosure, Example 2 provides the method of Example 1, wherein extracting a target video segment including the preset object from the video to be processed according to the audio rhythm information comprises: determining characteristic time information according to the audio rhythm information; and extracting the target video segment including the preset object from the video to be processed based on the characteristic time information.

[0170] According to one or more embodiments of the present disclosure, Example 3 provides the method of Example 2, wherein the audio rhythm information includes audio rhythm density corresponding to different time points in the target audio, and the audio rhythm density is used to characterize the changing speed of the audio rhythm of the target audio; determining the characteristic time information based on the audio rhythm information includes: determining a target time point in the target audio at which the audio rhythm density is greater than or equal to a preset density threshold, and using the target time point as the characteristic time information.

[0171] According to one or more embodiments of the present disclosure, Example 4 provides the method of Example 2, wherein extracting the target video segment including the preset object from the video to be processed based on the feature time information includes: extracting the target image in the video to be processed; determining at least one target object in the video to be processed and the target object time information corresponding to each target object based on the target audio and the target image; the target object is an object speaking in the video to be processed; determining the target time information based on the feature time information and multiple target object time information; and extracting the target video segment including the preset object from the video to be processed based on the target time information.

[0172] According to one or more embodiments of the present disclosure, Example 5 provides the method of Example 4, wherein determining at least one target object in the video to be processed and the target object time information corresponding to each target object based on the target audio and the target image includes: determining at least one first object in the target audio; determining at least one second object in the target image; determining at least one target object based on at least one first object and at least one second object; and determining the target object time information corresponding to each target object based on the target image.

[0173] According to one or more embodiments of the present disclosure, Example 6 provides the method of Example 4, wherein determining the target time information based on the feature time information and multiple target object time information includes: taking the target object time information closest to the feature time information among the multiple target object time information as the target time information.

[0174] According to one or more embodiments of the present disclosure, Example 7 provides the method of Example 4, before extracting the target video segment including the preset object from the video to be processed according to the target time information, the method also includes: inputting the target image into a pre-trained transition frame determination model to obtain at least one transition frame output by the transition frame determination model; extracting the target video segment including the preset object from the video to be processed according to the target time information includes: determining the target transition frame closest to the target time information from at least one of the transition frames; and extracting the target video segment including the preset object from the video to be processed according to the target transition frame.

[0175] According to one or more embodiments of the present disclosure, Example 8 provides the method of Example 2, before extracting the target video segment including the preset object from the video to be processed based on the feature time information, the method also includes: obtaining at least one preset keyword corresponding to the video to be processed; determining the keyword time information of each preset keyword in the video to be processed; extracting the target video segment including the preset object from the video to be processed based on the feature time information includes: determining the target feature time information according to the feature time information and the keyword time information; and extracting the target video segment including the preset object from the video to be processed according to the target feature time information.

[0176] According to one or more embodiments of the present disclosure, Example 9 provides the method of Example 8, wherein determining the target feature time information based on the feature time information and the keyword time information includes: obtaining a first preset weight and a second preset weight; for each feature time information, determining the target keyword time information corresponding to the feature time information from at least one of the keyword time information, and determining the target feature time information based on the feature time information, the target keyword time information, the first preset weight, and the second preset weight.

[0177] According to one or more embodiments of the present disclosure, Example 10 provides a method of any one of Examples 1-9, wherein determining the audio rhythm information corresponding to the target audio includes: extracting background audio and vocal audio from the target audio; processing the background audio and / or the vocal audio to obtain intensity-adjusted audio corresponding to the target audio; determining first audio rhythm information of the target audio, second audio rhythm information of the background audio and / or third audio rhythm information of the intensity-adjusted audio according to preset intensity information; extracting a target video segment including the preset object from the video to be processed according to the audio rhythm information includes: inputting the first audio rhythm information, the second audio rhythm information and / or the third audio rhythm information into a preset analysis model to determine the target video segment.

[0178] According to one or more embodiments of the present disclosure, Example 11 provides a video processing device, which includes: a video acquisition module, used to acquire a video to be processed containing a preset object; an audio extraction module, used to extract target audio from the video to be processed; a rhythm information determination module, used to determine audio rhythm information corresponding to the target audio; and a video segment extraction module, used to extract a target video segment including the preset object from the video to be processed based on the audio rhythm information.

[0179] According to one or more embodiments of the present disclosure, Example 12 provides a computer-readable medium having a computer program stored thereon, which implements the steps of the method described in any one of Examples 1-10 when executed by a processing device.

[0180] According to one or more embodiments of the present disclosure, Example 13 provides an electronic device, comprising: a storage device on which a computer program is stored; and a processing device for executing the computer program in the storage device to implement the steps of the method described in any one of Examples 1-10.

[0181] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

[0182] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0183] Although the subject matter has been described in language specific to structural features and / or method logic actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims. Regarding the device in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.

Claims

1. A video processing method, characterized in that: The method comprises: Get the video to be processed containing the preset object; Extracting target audio from the video to be processed; Determine audio rhythm information corresponding to the target audio; Extracting a target video segment including the preset object from the video to be processed according to the audio rhythm information; The step of determining the audio rhythm information corresponding to the target audio includes: Extracting background audio and human voice audio from the target audio; Processing the background audio and / or the human voice audio to obtain intensity-adjusted audio corresponding to the target audio; According to the preset intensity information, respectively determine the first audio rhythm information of the target audio, the second audio rhythm information of the background audio, and the third audio rhythm information of the intensity-adjusted audio; The step of extracting a target video segment including the preset object from the video to be processed according to the audio rhythm information comprises: The first audio rhythm information, the second audio rhythm information and the third audio rhythm information are input into a preset analysis model to determine the target video segment.

2. The method according to claim 1, characterized in that The extracting the target video segment including the preset object from the video to be processed according to the audio rhythm information comprises: Determining characteristic time information according to the audio rhythm information; Based on the characteristic time information, the target video segment including the preset object is extracted from the video to be processed.

3. The method according to claim 2, characterized in that The audio rhythm information includes audio rhythm density corresponding to different time points in the target audio, and the audio rhythm density is used to characterize the change speed of the audio rhythm of the target audio; and determining the characteristic time information according to the audio rhythm information includes: A target time point at which the audio rhythm density in the target audio is greater than or equal to a preset density threshold is determined, and the target time point is used as the characteristic time information.

4. The method according to claim 2, characterized in that: The extracting the target video segment including the preset object from the video to be processed based on the characteristic time information comprises: Extracting a target image from the video to be processed; Determine at least one target object in the video to be processed and target object time information corresponding to each target object according to the target audio and the target image; the target object is an object speaking in the video to be processed; Determining target time information according to the characteristic time information and the multiple target object time information; The target video segment including the preset object is extracted from the video to be processed according to the target time information.

5. The method according to claim 4, characterized in that The step of determining at least one target object in the to-be-processed video and target object time information corresponding to each target object according to the target audio and the target image comprises: determining at least one first object in the target audio; determining at least one second object in the target image; Determining at least one of the target objects according to at least one of the first objects and at least one of the second objects; Target object time information corresponding to each target object is determined according to the target image.

6. The method according to claim 4, characterized in that The determining the target time information according to the characteristic time information and the plurality of target object time information comprises: The target object time information closest to the characteristic time information among the plurality of target object time information is used as the target time information.

7. The method according to claim 4, characterized in that Before extracting the target video segment including the preset object from the video to be processed according to the target time information, the method further includes: Inputting the target image into a pre-trained transition frame determination model to obtain at least one transition frame output by the transition frame determination model; The extracting the target video segment including the preset object from the video to be processed according to the target time information comprises: Determine a target transition frame closest to the target time information from at least one of the transition frames; According to the target transition frame, the target video segment including the preset object is extracted from the video to be processed.

8. The method according to claim 2, characterized in that: Before extracting the target video segment including the preset object from the video to be processed based on the characteristic time information, the method further includes: Obtaining at least one preset keyword corresponding to the video to be processed; Determine keyword time information of each of the preset keywords in the video to be processed; The extracting the target video segment including the preset object from the video to be processed based on the characteristic time information comprises: Determining target characteristic time information according to the characteristic time information and the keyword time information; The target video segment including the preset object is extracted from the video to be processed according to the target feature time information.

9. The method according to claim 8, characterized in that The determining target characteristic time information according to the characteristic time information and the keyword time information comprises: Obtain a first preset weight and a second preset weight; For each of the characteristic time information, determine the target keyword time information corresponding to the characteristic time information from at least one of the keyword time information, and determine the target characteristic time information based on the characteristic time information, the target keyword time information, the first preset weight and the second preset weight.

10. A video processing device, characterized in that: The device comprises: A video acquisition module, used to acquire a video to be processed containing a preset object; An audio extraction module, used to extract target audio from the video to be processed; A rhythm information determination module, used to determine the audio rhythm information corresponding to the target audio; A video segment extraction module, used for extracting a target video segment including the preset object from the video to be processed according to the audio rhythm information; The rhythm information determination module is further used to extract background audio and vocal audio from the target audio; process the background audio and / or the vocal audio to obtain intensity-adjusted audio corresponding to the target audio; and determine first audio rhythm information of the target audio, second audio rhythm information of the background audio, and third audio rhythm information of the intensity-adjusted audio according to preset intensity information; The video segment extraction module is further used to input the first audio rhythm information, the second audio rhythm information and the third audio rhythm information into a preset analysis model to determine the target video segment.

11. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processing device, the steps of the method described in any one of claims 1 to 9 are implemented.

12. An electronic device, characterized in that: include: a storage device having a computer program stored thereon; A processing device, configured to execute the computer program in the storage device to implement the steps of the method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Video program processing method and device, computer equipment and storage medium

    CN110505504A

  • Video data processing method and device, electronic equipment and computer storage medium

    CN113992970A