Short video generation method, device, computing device and computer-readable storage medium

By dividing the initial video segment according to the target video's popularity peak data and character and audio data, the character script video is generated, which solves the problems of low efficiency of existing short video generation and poor user experience, and achieves more efficient short video generation and better quality. user experience.

CN114339423BActive Publication Date: 2024-08-27MIGU CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111597387.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-24
Publication Date
2024-08-27
Estimated Expiration
2041-12-24

AI Technical Summary

Technical Problem

Existing short video generation technology requires support from operators, actors and other aspects, has low synthesis efficiency, few gameplay methods, and poor user experience.

Method used

Determine key video frames based on the popularity peak data of the target video, divide the initial video segments through character and audio data, generate character script videos, and generate the target short video based on the script videos.

Benefits of technology

It improves the efficiency of short video generation and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114339423B
    Figure CN114339423B
Patent Text Reader

Abstract

The embodiment of the present invention relates to the field of video processing technology, and discloses a short video generation method, which includes: determining multiple key video frames according to the peak data of the heat of the target video; determining multiple initial video segments according to the character data and audio data in each key video frame; generating a role script video of each character from the initial short video; and generating a target short video based on the role script video. In the above manner, the embodiment of the present invention enhances the user experience in the short video synthesis process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of video processing technology, and specifically to a short video generation method, device, computing device and computer-readable storage medium. Background Art

[0002] For the generation of short videos, the current technical solution is generally through operation and production, and the actors record the short videos and upload them for user experience.

[0003] The inventors of this application discovered during the process of implementing the embodiments of the present invention that the existing short video generation requires operations, actors, and multi-faceted support, has low synthesis efficiency, few gameplay methods, and poor user experience. Summary of the invention

[0004] In view of the above problems, embodiments of the present invention provide a short video generation method, apparatus, computing device and computer-readable storage medium, which are used to solve the problem of poor user experience in short video generation existing in the prior art.

[0005] According to one aspect of an embodiment of the present invention, a short video generation method is provided, the method comprising:

[0006] Determine multiple key video frames according to peak data of the heat of the target video;

[0007] Determine a plurality of initial video segments according to the character data and the audio data in each key video frame;

[0008] Generate a role script video for each character from the initial short video;

[0009] Generate a target short video based on the role-playing script video.

[0010] In an optional manner, the heat is a heat curve; the determining of multiple key video frames based on the peak data of the heat of the target video includes: determining the key video frames before and after each peak in the heat curve; determining whether there are characters in the key video frames before and after the peak based on the character data; if there are no characters, marking the key video frames before and after the peak as the starting frames or the ending frames respectively; if there are characters, determining whether there are human voices in the audio data corresponding to the key video frames; if there are no human voices, marking the key video frames before and after the peak as the starting frames or the ending frames respectively; and determining multiple initial video segments based on the starting frames and the ending frames.

[0011] In an optional manner, determining the key video frames before and after each peak in the heat curve includes: if there are characters and human voices in the key video frames before and after the peak, continuing to search forward or backward for video frames near the key video frames as the key video frames.

[0012] In an optional manner, generating a role script video for each character from the initial short video includes: based on the user's historical movie viewing information, selecting at least one initial video segment from the multiple initial video segments to form an initial short video; identifying the voiceprint of each character in the initial short video, and generating a role script video for each character from the initial short video based on the voiceprint.

[0013] In an optional manner, selecting at least one initial video segment from the multiple initial video segments as the initial short video based on the user's historical movie viewing information includes: determining the user's emotion level corresponding to each of the initial video segments based on the historical movie viewing information; and selecting at least one initial video segment from the multiple initial video segments as the initial short video based on the emotion level.

[0014] In an optional manner, the identification is based on the voiceprint of each character in the initial short video, and a role script video for each character is generated from the initial short video based on the voiceprint, including: decoding the initial short video to obtain a decoded initial short video; performing voiceprint recognition on the decoded initial short video to obtain an audio track of each character in the initial short video; and generating a role script video corresponding to each character in the initial short video based on the audio track.

[0015] In an optional manner, generating a target short video based on the role script video includes: receiving a user's processing request for the role script video, the processing request including a sound processing request and / or a screen character processing request input by the user; performing audio processing on the role script video according to the sound processing request; and / or performing screen processing on the role script video according to the screen character processing request.

[0016] According to another aspect of an embodiment of the present invention, a short video generation device is provided, the device comprising:

[0017] A first determination module determines a plurality of key video frames according to the peak value data of the heat of the target video;

[0018] A second determination module is used to determine a plurality of initial video segments according to the character data and audio data in each key video frame;

[0019] A generation module, used to generate a role script video of each role from the initial short video;

[0020] A synthesis module is used to generate a target short video based on the role script video.

[0021] According to another aspect of an embodiment of the present invention, there is provided a computing device, including:

[0022] A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus;

[0023] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute the operation of the short video generation method.

[0024] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, wherein at least one executable instruction is stored in the storage medium, and when the executable instruction is executed on a computing device, the computing device executes the operation of the short video generation method.

[0025] The embodiment of the present invention determines multiple key video frames according to the peak data of the popularity of the target video; determines multiple initial video segments according to the character data and audio data in each key video frame, generates role script videos of each character from the initial short videos, and generates the target short video based on the role script videos, which can effectively improve the efficiency of short video generation and effectively improve the user experience.

[0026] The above description is only an overview of the technical solution of the embodiment of the present invention. In order to more clearly understand the technical means of the embodiment of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] The accompanying drawings are only used to illustrate the embodiments and are not to be considered as limiting the present invention. In addition, the same reference symbols are used to represent the same components throughout the accompanying drawings. In the accompanying drawings:

[0028] Figure 1 A schematic diagram showing a process of a short video generation method provided by an embodiment of the present invention is shown;

[0029] Figure 2 A schematic diagram showing a heat curve in a short video generation method provided by an embodiment of the present invention;

[0030] Figure 3 A schematic diagram showing the identification of various characters in the short video generation method provided by an embodiment of the present invention is shown;

[0031] Figure 4 A schematic diagram showing the structure of a short video generation device provided by an embodiment of the present invention is shown;

[0032] Figure 5 A schematic diagram of the structure of a computing device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0033] Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention can be implemented in various forms and should not be limited to the embodiments set forth herein.

[0034] Figure 1 The flowchart of the short video generation method provided by the embodiment of the present invention is shown, and the method is executed by a computing device. The computing device can be a computer device, a terminal device, an intelligent device, a video playback device, etc., and the embodiment of the present invention does not make specific restrictions. Figure 1 As shown, the method comprises the following steps:

[0035] Step 110: Determine a plurality of key video frames according to the peak data of the heat of the target video.

[0036] Among them, the embodiment of the present invention determines multiple initial video segments from the target video according to the heat, character data and audio data of the target video. In the embodiment of the present invention, before determining multiple initial video segments from the target video according to the heat, character data and audio data of the target video, the method includes: slicing the target video to obtain multiple video slices; determining the heat corresponding to each video slice. Among them, the heat is a heat curve. Specifically, according to gop (Group of Pictures, image group, refers to the distance between two I frames, Reference (reference period) refers to the distance between two P frames), the video is sliced ​​to obtain multiple video slices. The video segment with average audio greater than a preset decibel threshold is taken as the midpoint video segment; wherein, during the user's viewing process, the audio is collected and the audio is denoised. If the average audio of the current video segment is greater than the preset decibel threshold, the I frame (I frame (Intra coded frames): I frame images are encoded using intra-frame coding, that is, only the spatial correlation within a single frame image is utilized, but not the temporal correlation. I frames use intra-frame compression and do not use motion compensation. Since I frames do not depend on other frames, they are random access entry points and are also reference frames for decoding. I frames are mainly used for receiver initialization and channel acquisition, as well as program switching and insertion. The compression multiple of I frame images is relatively low. I frame images appear periodically in an image sequence, and the frequency of occurrence can be selected by the encoder) of the current video segment is marked as the midpoint α, wherein the preset decibel threshold can be set accordingly according to the specific scenario. In one embodiment of the present invention, the preset decibel threshold can be 60. For the segment where the current α is located, detect the previous (next) segment forward (backward). If db<40, mark the previously detected video segment as the pre-start (end) point. The number of video segments with db≥40 currently found is marked as n. If n is less than the first quantity threshold, it does not meet the requirement. Otherwise, it is added to the video recommendation candidate queue. Based on the video recommendation candidate queue, generate a heat curve. The heat level in the heat curve shows the user's appreciation of the current segment, which indirectly reflects the degree of excellence of the current segment. Among them, the first quantity threshold can be 3. In this embodiment of the present invention, if Figure 2 As shown, the heat curve may be a bullet screen curve graph, wherein the number of bullet screens in each video segment is counted in advance, and the bullet screen curve graph is drawn with the timestamp of the video segment as the horizontal axis and the number of bullet screens as the vertical axis.

[0037] Step 120: Determine a plurality of initial video segments according to the character data and audio data in each key video frame.

[0038] In an embodiment of the present invention, after obtaining the heat curve, the video frames before and after each peak in the heat curve are determined to determine the start frame and the end frame, and multiple initial video segments are determined based on the start frame and the end frame. Specifically, each peak in the heat curve is determined, and the video frame corresponding to the peak is determined as the midpoint. Based on the midpoint, the start frame β is searched forward and the end frame θ is searched backward. The start frame β and the end frame θ use the point where the tangent slope on the heat curve drops sharply (the trigger value can be set) as the frame signal. After determining the tangent slope, the video frame corresponding to the tangent slope is marked as the pre-start point β and the pre-end point θ. Among them, the key video frames before and after each peak in the heat curve are determined; it is determined whether there are characters in the key video frames before and after the peak; if there are characters, it is determined whether there are human voices in the audio data corresponding to the key video frames; if there are human voices, the key video frames before and after the peak are marked as the start frame or the end frame. Specifically, take the key frame β1 closest to the pre-starting point β (if the current β is the key frame, then β1 refers to β), and then separate the video frame and the audio frame by decoding, first detect the key video frame, if there is no person, then mark it as the starting frame, that is, the key video frame β1. If there is a person, then continue to detect the audio frame corresponding to the key video frame, if the audio frame has no voice, then mark the key video frame β1 as the starting frame, otherwise continue to search for the starting point key video frame β2 until the starting frame βn is found. In the same way, search backward to find the end frame θn, and generate the initial video segment according to the starting frame βn and the end frame θn. Then, continue to generate a short video according to the above process with the second highest point (if the second highest point is covered in the short video generated above, continue to find the next high point) until the preset second number of initial video segments are generated. Among them, the embodiment of the present invention does not specifically limit the specific value of the preset second number. In one embodiment of the present invention, the preset second number can be 5. Thus, according to the starting frame and the end frame before and after the peak, multiple initial video segments are obtained.

[0039] Step 130: Generate role script videos for each character from the initial short video.

[0040] In the embodiment of the present invention, after obtaining a plurality of initial video segments, firstly, according to the historical movie viewing information of the user, at least one initial video segment is screened out from the plurality of initial video segments as an initial short video.

[0041] Among them, the user's historical movie-watching information can be the user's historical behavior s, viewing record t, favorite preference p, star ranking o, and facial expression changes during viewing f (when the user has emotional fluctuations at a certain moment, such as laughing or crying, indicating that he is fully immersed in the plot).

[0042] In the embodiment of the present invention, the emotional level of the user corresponding to each of the initial video segments is determined according to the historical viewing information; and according to the emotional level, at least one initial video segment is selected from the multiple initial video segments as the initial short video. Specifically, the user's historical behavior s, viewing record t, favorite preference p, star ranking o, and facial expression changes f during viewing are collected and weighted.

[0043] Among them, the emotional weight refers to analyzing the user's emotions in the current video clip, predicting expressions through image classification, and inferring whether the user is happy, calm, depressed, etc. The current user audio is analyzed, and the corresponding decibel db is obtained by sampling p audio frames to reflect the intensity of the current emotion. The emotional state k is obtained through db1*db2*db3... / (p*10). When k is close to 6, the maximum weight ratio is reached, and the formula y=-5 / 24k^2+25 / 12k is derived, and the actual weight ratio y corresponding to the emotional state k is obtained.

[0044] Compare the emotion levels corresponding to multiple initial video segments of each clip. The comparison method is to extract key frames for each initial video segment, extract the number n, calculate the weighted value as (s*0.1+t*0.1+p*0.2+o*0.2+f*0.4*y) / n, and determine the initial video segments with the top N weights according to the weighted value as the initial short video, so as to feed back the initial short video to the user for gameplay production. Where N can be 2.

[0045] Then, the voiceprint of each character in the initial short video is identified, and a role script video of each character is generated from the initial short video based on the voiceprint.

[0046] Among them, the embodiment of the present invention decodes the initial short video to obtain the decoded initial short video, performs voiceprint recognition on the decoded initial short video to obtain the audio track of each character in the initial short video, and generates a role script video corresponding to each character in the initial short video based on the audio track. Specifically, the edited initial short video is decoded, the roles are divided according to voiceprint recognition, the audio tracks of the corresponding roles are removed in turn, and a plurality of role script videos are generated. The produced multiple role script videos are uploaded to the C-end management platform and published to the test environment by default. The operator can publish to the online environment according to the effect. The user can dub according to the subtitles and synthesize the recording into the video audio track to generate an interesting script video. Figure 3 As shown, there are three characters abc from left to right, but the current highlight voiceprint analysis is mainly the dialogue between a and c, or the proportion of b is not high (the voiceprint accounts for no more than 20% of the current dialogue), so the generated short play has two scripts ac, which are the scripts without character a and without character c respectively.

[0047] Step 140: Generate a target short video based on the role-playing video.

[0048] In the embodiment of the present invention, a user's request for processing the role-playing script video is received, and the role-playing script video is processed according to the processing request to obtain a target short video.

[0049] In an embodiment of the present invention, in the C-end management platform, the user can select one of the role script videos and enter the short video processing, where they can click to record / pause, delete the previous segment, collect facial features, etc.

[0050] The processing request includes a sound processing request and / or a screen character processing request input by the user. Therefore, processing the role script video according to the processing request specifically includes: performing audio processing on the role script video according to the sound processing request; and / or performing screen processing on the role script video according to the screen character processing request.

[0051] Among them, for audio processing requests, the user's voice can be recorded and synthesized into the video. If you are not satisfied with it, you can delete it in sections and re-record it. For the processing of characters in the picture, if facial capture is turned on, there will be a picture captured by the camera for picture-in-picture display. For facial capture, you can choose user expression capture or overall facial capture. Expression capture means that the facial expression displayed by the current user will be automatically synthesized onto the character of the C corner itself through AI. After capture, the face of the character in the original video will be replaced, and the original face of the character will be replaced with the user's face. Overall facial capture is to replace the face detected by the user's entire camera. If a face is not detected in the middle, the previously collected user face and the character expression in the video will be AI fused to complete it. In an embodiment of the present invention, it is also possible to provide friends with microphones to shoot scripts and play opposite roles, which has a better sense of substitution. After shooting, the video can be synthesized and released. (AI scoring of dubbing can also be provided, and scoring is performed based on comparison with the tone and paragraphs of the original video).

[0052] In an embodiment of the present invention, the sound processing request may include exchanging character voices, funny dubbing, ghost videos, etc. Specifically, exchanging character voices, for example, there are four characters abcd corresponding to four voiceprints a1 b1 c1 d1, after permutation and combination, remove the combination with a a1 or b b1 or c c1 or d d1, and from the remaining combination c41*c31, preferentially exchange according to the gender of the character, that is, pairing according to the principle of preferential exchange of the same gender. Funny dubbing, according to the user's viewing history, favorite preferences, ranking status, etc., perform character retrieval, extract the corresponding character voiceprint to replace the character dubbing (in the case of insufficient matching, use big data to randomly select the current popular voices such as anime characters), and generate funny videos. Ghost videos, relying on the above-mentioned edited video, the midpoint α key frame is known, and the n frames before and after the key frame are inserted before and after, so that the most colorful part is ghosted, and a ghost video is generated. In live sports events, such as football matches, when a goal is scored, a pop-up window will pop up to quickly create a goal video, capturing 30 seconds before and 10 seconds after the goal. Users can upload a portrait photo, cut out the portrait, and replace it with the face of the player who shot the goal. The rest of the people in the video can be automatically replaced with funny avatars, and a commentary can be configured to synthesize the video for fun sharing.

[0053] The embodiment of the present invention determines multiple key video frames according to the peak data of the popularity of the target video; determines multiple initial video segments according to the character data and audio data in each key video frame, generates role script videos of each character from the initial short videos, and generates the target short video based on the role script videos, which can effectively improve the efficiency of short video generation and effectively improve the user experience.

[0054] Figure 4 FIG. 1 is a schematic diagram showing the structure of a short video generation device provided by an embodiment of the present invention. Figure 4 As shown, the device 300 includes:

[0055] A first determination module 310 determines a plurality of key video frames according to the peak value data of the heat of the target video;

[0056] A second determination module 320, configured to determine a plurality of initial video segments according to character data and audio data in each key video frame;

[0057] A generating module 330, for generating a role script video of each role from the initial short video;

[0058] The synthesis module 340 is used to generate a target short video based on the role script video.

[0059] In an optional manner, before determining a plurality of key video frames based on the peak data of the heat of the target video, the method includes: segmenting the target video to obtain a plurality of video segments; and determining heat data corresponding to each video segment.

[0060] In an optional manner, the heat is a heat curve; the method of determining multiple key video frames based on the peak data of the heat of the target video includes: determining a start frame and an end frame of the video frames before and after each peak in the heat curve; and determining multiple initial video segments based on the start frame and the end frame.

[0061] In an optional manner, the start frame and the end frame are determined based on the video frames before and after each peak in the heat curve, including: determining the key video frames before and after each peak in the heat curve; determining whether there are characters in the key video frames before and after the peak; if there are characters, determining whether there are human voices in the audio data corresponding to the key video frames; if there are human voices, marking the key video frames before and after the peak as the start frame or the end frame, respectively.

[0062] In an optional manner, selecting at least one initial video segment from the multiple initial video segments as the initial short video based on the user's historical movie viewing information includes: determining the user's emotion level corresponding to each of the initial video segments based on the historical movie viewing information; and selecting at least one initial video segment from the multiple initial video segments as the initial short video based on the emotion level.

[0063] In an optional manner, determining the key video frames before and after each peak in the heat curve includes: if there are characters and human voices in the key video frames before and after the peak, using the key video frames as the start frame or the end frame.

[0064] In an optional manner, the identification is based on the voiceprint of each character in the initial short video, and a role script video for each character is generated from the initial short video based on the voiceprint, including: decoding the initial short video to obtain a decoded initial short video; performing voiceprint recognition on the decoded initial short video to obtain an audio track of each character in the initial short video; and generating a role script video corresponding to each character in the initial short video based on the audio track.

[0065] In an optional manner, the processing request includes a sound processing request and / or a screen character processing request input by a user; the receiving user's processing request for the role script video, processing the role script video according to the processing request, and obtaining a target short video, includes: performing audio processing on the role script video according to the sound processing request; and / or performing screen processing on the role script video according to the screen character processing request.

[0066] The specific working steps of the short video generation device of the embodiment of the present invention are generally consistent with the specific steps of the above-mentioned method embodiment, and will not be repeated here.

[0067] The embodiment of the present invention determines multiple key video frames according to the peak data of the popularity of the target video; determines multiple initial video segments according to the character data and audio data in each key video frame, generates role script videos of each character from the initial short videos, and generates the target short video based on the role script videos, which can effectively improve the efficiency of short video generation and effectively improve the user experience.

[0068] Figure 5 A schematic diagram of the structure of a computing device provided by an embodiment of the present invention is shown, and the specific embodiment of the present invention does not limit the specific implementation of the computing device.

[0069] like Figure 5 As shown, the computing device may include: a processor (processor) 402 , a communications interface (Communications Interface) 404 , a memory (memory) 406 , and a communication bus 408 .

[0070] The processor 402, the communication interface 404, and the memory 406 communicate with each other via the communication bus 408. The communication interface 404 is used to communicate with other devices such as a client or other server network elements. The processor 402 is used to execute the program 410, which can specifically execute the relevant steps in the above-mentioned embodiment of the method for generating a short video.

[0071] Specifically, the program 410 may include program code including computer executable instructions.

[0072] The processor 402 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention. The one or more processors included in the computing device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.

[0073] The memory 406 is used to store the program 410. The memory 406 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0074] The program 410 may be specifically invoked by the processor 402 to cause the computing device to perform the following operations:

[0075] Determine multiple key video frames according to peak data of the heat of the target video;

[0076] Determine a plurality of initial video segments according to the character data and the audio data in each key video frame;

[0077] Generate a role script video for each character from the initial short video;

[0078] Generate a target short video based on the role-playing script video.

[0079] In an optional manner, before determining multiple initial video segments from the target video based on the heat data, character data and audio data of the target video, the method includes: segmenting the target video to obtain multiple video segments; and determining the heat data corresponding to each video segment.

[0080] In an optional manner, the heat is a heat curve; the determining of multiple key video frames based on the peak data of the heat of the target video includes: determining the key video frames before and after each peak in the heat curve; including determining multiple initial video segments based on the character data and / or audio data in the key video frames, including: determining whether there are characters in the key video frames before and after the peak based on the character data; if there are no characters, marking the key video frames before and after the peak as the starting frames or the ending frames respectively; if there are characters, determining whether there are human voices in the audio data corresponding to the key video frames; if there are no human voices, marking the key video frames before and after the peak as the starting frames or the ending frames respectively; and determining multiple initial video segments based on the starting frames and the ending frames.

[0081] In an optional manner, determining the key video frames before and after each peak in the heat curve includes: if there are characters and human voices in the key video frames before and after the peak, continuing to search forward or backward for video frames near the key video frames as the key video frames.

[0082] In an optional manner, generating a role script video for each character from the initial short video includes: based on the user's historical movie viewing information, selecting at least one initial video segment from the multiple initial video segments to form an initial short video; identifying the voiceprint of each character in the initial short video, and generating a role script video for each character from the initial short video based on the voiceprint.

[0083] In an optional manner, selecting at least one initial video segment from the multiple initial video segments as the initial short video based on the user's historical movie viewing information includes: determining the user's emotion level corresponding to each of the initial video segments based on the historical movie viewing information; and selecting at least one initial video segment from the multiple initial video segments as the initial short video based on the emotion level.

[0084] In an optional manner, the identification is based on the voiceprint of each character in the initial short video, and a role script video for each character is generated from the initial short video based on the voiceprint, including: decoding the initial short video to obtain a decoded initial short video; performing voiceprint recognition on the decoded initial short video to obtain an audio track of each character in the initial short video; and generating a role script video corresponding to each character in the initial short video based on the audio track.

[0085] In an optional manner, the processing request includes a sound processing request and / or a screen character processing request input by a user; the receiving user's processing request for the role script video, processing the role script video according to the processing request, and obtaining a target short video, includes: performing audio processing on the role script video according to the sound processing request; and / or performing screen processing on the role script video according to the screen character processing request.

[0086] The specific working steps of the computing device in the embodiment of the present invention are generally consistent with the specific steps of the above-mentioned method embodiment, and will not be repeated here.

[0087] The embodiment of the present invention determines multiple key video frames according to the peak data of the popularity of the target video; determines multiple initial video segments according to the character data and audio data in each key video frame, generates role script videos of each character from the initial short videos, and generates the target short video based on the role script videos, which can effectively improve the efficiency of short video generation and effectively improve the user experience.

[0088] An embodiment of the present invention provides a computer-readable storage medium, which stores at least one executable instruction. When the executable instruction is executed on a computing device, the computing device executes the short video generation method in any of the above method embodiments.

[0089] The executable instructions may be used to cause the computing device to perform the following operations:

[0090] Determine multiple key video frames according to peak data of the heat of the target video;

[0091] Determine a plurality of initial video segments according to the character data and the audio data in each key video frame;

[0092] Generate a role script video for each character from the initial short video;

[0093] Generate a target short video based on the role-playing script video.

[0094] In an optional manner, before determining a plurality of key video frames based on the peak data of the heat of the target video, the method includes: segmenting the target video to obtain a plurality of video segments; and determining heat data corresponding to each video segment.

[0095] In an optional manner, the heat is a heat curve; the determination of multiple key video frames based on the peak data of the heat of the target video includes: determining the key video frames before and after each peak in the heat curve; determining whether there are characters in the key video frames before and after the peak based on the character data; if there are no characters, marking the key video frames before and after the peak as the starting frames or the ending frames respectively; if there are characters, determining whether there are human voices in the audio data corresponding to the key video frames; if there are no human voices, marking the key video frames before and after the peak as the starting frames or the ending frames respectively; and determining multiple initial video segments based on the starting frames and the ending frames.

[0096] In an optional manner, determining the key video frames before and after each peak in the heat curve includes: if there are characters and human voices in the key video frames before and after the peak, continuing to search forward or backward for video frames near the key video frames as the key video frames.

[0097] In an optional manner, said generating a role script video for each character from the initial short video includes: based on the user's historical viewing information, selecting at least one initial video segment from the multiple initial video segments to form an initial short video; identifying the voiceprint of each character in the initial short video, and generating a role script video for each character from the initial short video based on the voiceprint. In an optional manner, said selecting at least one initial video segment from the multiple initial video segments as the initial short video based on the user's historical viewing information includes: determining the user's emotional level corresponding to each of the initial video segments based on the historical viewing information; and selecting at least one initial video segment from the multiple initial video segments as the initial short video based on the emotional level.

[0098] In an optional manner, the identification is based on the voiceprint of each character in the initial short video, and a role script video for each character is generated from the initial short video based on the voiceprint, including: decoding the initial short video to obtain a decoded initial short video; performing voiceprint recognition on the decoded initial short video to obtain an audio track of each character in the initial short video; and generating a role script video corresponding to each character in the initial short video based on the audio track.

[0099] In an optional manner, the processing request includes a sound processing request and / or a screen character processing request input by a user; the receiving user's processing request for the role script video, processing the role script video according to the processing request, and obtaining a target short video, includes: performing audio processing on the role script video according to the sound processing request; and / or performing screen processing on the role script video according to the screen character processing request.

[0100] The specific working steps of the computing device in the embodiment of the present invention are generally consistent with the specific steps of the above-mentioned method embodiment, and will not be repeated here.

[0101] The embodiment of the present invention determines multiple key video frames according to the peak data of the popularity of the target video; determines multiple initial video segments according to the character data and audio data in each key video frame, generates role script videos of each character from the initial short videos, and generates the target short video based on the role script videos, which can effectively improve the efficiency of short video generation and effectively improve the user experience.

[0102] An embodiment of the present invention provides a short video generation device, which is used to execute the above-mentioned short video generation method.

[0103] An embodiment of the present invention provides a computer program, which can be called by a processor to enable a computing device to execute the short video generation method in any of the above method embodiments.

[0104] An embodiment of the present invention provides a computer program product, which includes a computer program stored on a computer-readable storage medium, and the computer program includes program instructions. When the program instructions are run on a computer, the computer executes the short video generation method in any of the above method embodiments.

[0105] The algorithm or display provided herein is not inherently related to any particular computer, virtual system or other equipment. Various general purpose systems can also be used together with the teachings based on this. According to the above description, it is obvious to construct the structure required for this type of system. In addition, the embodiment of the present invention is not directed to any specific programming language yet. It should be understood that various programming languages ​​can be utilized to realize the content of the present invention described herein, and the description made to specific languages ​​above is for disclosing the best mode of the present invention.

[0106] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.

[0107] Similarly, it should be understood that in order to streamline the present invention and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, various features of the embodiments of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this method of disclosure should not be interpreted as reflecting an intention that the claimed invention requires more features than those expressly recited in each claim.

[0108] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.

[0109] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limitations on the order of execution.

Claims

1. A short video generation method, characterized in that: The method comprises: Determining multiple key video frames according to the peak data of the heat curve of the target video includes: determining the key video frames before and after each peak in the heat curve; determining the key video frames before and after each peak in the heat curve includes: if there are characters and human voices in the key video frames before and after the peak, continue to search forward or backward for video frames near the key video frames as the key video frames; Determine multiple initial video segments according to the character data and audio data in each key video frame, including: determine whether there is a character in the key video frames before and after the peak according to the character data; if there is no character, mark the key video frames before and after the peak as the start frame or the end frame respectively; if there is a character, determine whether there is a human voice in the audio data corresponding to the key video frame; if there is no human voice, mark the key video frames before and after the peak as the start frame or the end frame respectively; determine multiple initial video segments according to the start frame and the end frame; Generating a role script video for each character from the initial video segment; Generate a target short video based on the role-playing script video.

2. The method according to claim 1, characterized in that: Generating the role script video of each role from the initial video segment includes: According to the historical movie-watching information of the user, at least one initial video segment is selected from the multiple initial video segments to form an initial video segment; The voiceprint of each character in the initial video segment is identified, and a role script video of each character is generated from the initial video segment according to the voiceprint.

3. The method according to claim 2, characterized in that The step of selecting at least one initial video segment from the plurality of initial video segments according to the historical movie viewing information of the user as the initial video segment includes: Determining the emotion level of the user corresponding to each of the initial video segments according to the historical movie viewing information; At least one initial video segment is selected from the multiple initial video segments according to the emotion level as the initial video segment.

4. The method according to claim 2, characterized in that: The identifying is based on the voiceprint of each character in the initial video segment, and generating a role script video of each character from the initial video segment based on the voiceprint, including: Decoding the initial video segment to obtain a decoded initial video segment; Performing voiceprint recognition on the decoded initial video segment to obtain the audio track of each character in the initial video segment; Generate role script videos corresponding to each role in the initial video segment according to the audio track.

5. The method according to claim 1, characterized in that The generating of a target short video based on the role script video includes: Receiving a user's request for processing the role-playing video, the request comprising a sound processing request and / or a screen character processing request input by the user; performing audio processing on the role-playing video according to the sound processing request; and / or According to the screen character processing request, the screen processing is performed on the role script video.

6. A short video generation device, characterized in that: The device comprises: The first determination module determines a plurality of key video frames according to the peak data of the heat curve of the target video. The plurality of key video frames are determined according to the peak data of the heat of the target video, including: determining the key video frames before and after each peak in the heat curve; the determining the key video frames before and after each peak in the heat curve includes: if there are characters and human voices in the key video frames before and after the peak, then continue to search forward or backward for video frames near the key video frames as the key video frames; The second determination module is used to determine multiple initial video segments according to the character data and audio data in each key video frame, including: determining whether there is a character in the key video frames before and after the peak according to the character data; if there is no character, marking the key video frames before and after the peak as the start frame or the end frame respectively; if there is a character, determining whether there is a human voice in the audio data corresponding to the key video frame; if there is no human voice, marking the key video frames before and after the peak as the start frame or the end frame respectively; determining multiple initial video segments according to the start frame and the end frame; A generating module, used for generating a role script video of each role from the initial video segment; A synthesis module is used to generate a target short video based on the role script video.

7. A computing device, characterized in that include: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform the operation of the short video generation method as described in any one of claims 1-5.

8. A computer-readable storage medium, characterized in that: The storage medium stores at least one executable instruction, and when the executable instruction is executed on a computing device, the computing device executes the operation of the short video generation method as described in any one of claims 1 to 5.