A method, device and electronic device for generating short video of plot explanation

By analyzing the shots and features of long videos, matching narration sentences and video clips, and automatically generating short plot explanation videos, it solves the problems of low efficiency and high cost of manual editing in the existing technology, and realizes efficient and automated short videos. Production.

CN114222196BActive Publication Date: 2024-09-10YOUKU CULTURE TECH (BEIJING) CO LTD
View PDF 15 Cites 0 Cited by

Patent Information

Application Number
CN202210004240.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-04
Publication Date
2024-09-10
Estimated Expiration
2042-01-04

AI Technical Summary

Technical Problem

In the existing technology, the production of short plot commentary videos relies on manual editing, which is inefficient and costly, resulting in a scarcity of high-quality content.

Method used

By obtaining the long video and its plot commentary text, we perform shot split processing, feature analysis, match the commentary sentences and video clips, and automatically generate short plot commentary videos to achieve automation and mass production.

Benefits of technology

It improves the production efficiency of short plot commentary videos, realizes automation and mass production, reduces production costs, and improves the productivity of the entertainment industry.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114222196B
    Figure CN114222196B
Patent Text Reader

Abstract

The present disclosure discloses a method, device and electronic device for generating a short video of plot explanation. The method comprises: obtaining a target long video and a plot explanation text of the target long video; wherein the plot explanation text comprises at least one explanation sentence; performing shot storyboard processing on the target long video to obtain a plurality of video clips; performing feature analysis processing on the explanation sentence to obtain the text feature of the explanation sentence; performing feature analysis processing on the video clip to obtain the video feature of the video clip; determining a video clip matching the explanation sentence of the plot explanation text as a target video clip according to the text feature and the video feature; and generating a short video of plot explanation according to the plot explanation text and the target video clip.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of video technology, and more specifically, to a method for generating a short video of plot explanation, a device for generating a short video of plot explanation, an electronic device, and a computer-readable storage medium. Background Art

[0002] With the rapid development of science and technology, the demand for short video consumption is growing, and the trend of long videos “changing from long to short” has become a trend.

[0003] As a type of short video that is quite popular among users, the manual editing process of plot commentary short videos generally includes script writing, material search, material synthesis, dubbing, music, special effects, filters, title copywriting and other steps, and the production cycle is about one week.

[0004] In the existing technology, the creation of short videos of story explanations by editing long videos is completely dependent on manual labor, and has the problems of low efficiency and high cost, resulting in an extreme scarcity of high-quality content. Summary of the invention

[0005] One purpose of the present disclosure is to provide a new technical solution for automatically generating short videos of plot explanations.

[0006] According to a first aspect of the present disclosure, a method for generating a short video of a plot explanation is provided, comprising:

[0007] Acquire a target long video and a plot explanation text of the target long video; wherein the plot explanation text includes at least one explanation sentence;

[0008] Performing shot splitting processing on the target long video to obtain multiple video clips;

[0009] Performing feature analysis on the explanation sentence to obtain text features of the explanation sentence; performing feature analysis on the video clip to obtain video features of the video clip;

[0010] Determine, according to the text features and the video features, a video segment that matches the commentary sentence of the plot commentary text as a target video segment;

[0011] A plot explanation short video is generated according to the plot explanation text and the target video clip.

[0012] Optionally, determining, according to the text feature and the video feature, a video segment matching the commentary sentence of the plot commentary text as a target video segment includes:

[0013] Traversing the video clip, and determining a final similarity score representing the similarity between the currently traversed video clip and the narration sentence according to the text features of the parsed sentence and the video features of the currently traversed video clip;

[0014] When the traversal is completed, the target video segment matching the commentary sentence is determined according to the final similarity score.

[0015] Optionally, the text feature includes a first text tag representing key information of the parsed sentence; the video feature includes a second text tag representing key information of the video clip;

[0016] The determining, according to the text features of the parsed sentence and the video features of the currently traversed video segment, a final similarity score indicating the similarity between the currently traversed video segment and the narration sentence comprises:

[0017] Determining a first similarity score between the currently traversed video segment and the narration sentence according to the first text label of the narration sentence and the second text label of the currently traversed video segment;

[0018] The final similarity score between the currently traversed video segment and the commentary sentence is determined according to the first similarity score.

[0019] Optionally, the key information includes role information, and the performing feature analysis on the video clip to obtain the video features of the video clip includes:

[0020] Obtaining the cast and role relationships of the target video;

[0021] Extracting character information from the video clip;

[0022] The character information is matched with the cast list and the character relationships to obtain the character information in the video clip.

[0023] Optionally, the text feature further includes a first feature vector representing the content of the commentary sentence; the video feature further includes a second feature vector representing the content of the video clip;

[0024] The step of determining a target score representing the similarity between the currently traversed video segment and the narration sentence according to the text features of the parsed sentence and the video features of the currently traversed video segment further includes:

[0025] Determining a second similarity score between the currently traversed video segment and the narration sentence according to the first feature vector of the narration sentence and the second feature vector of the currently traversed video segment;

[0026] The final similarity score between the currently traversed video segment and the commentary sentence is determined according to the second similarity score.

[0027] Optionally, generating a short plot explanation video according to the plot explanation text and the target video clip includes:

[0028] Converting the explanation sentences of the plot explanation text into corresponding explanation voices;

[0029] The commentary voice and the target video clip are synthesized to obtain the plot commentary short video.

[0030] Optionally, generating a short plot explanation video according to the plot explanation text and the target video clip further includes:

[0031] According to the duration of the commentary voice, the corresponding target video segment is speed-changed so that the duration of the commentary voice is the same as the playing duration of the corresponding target video segment.

[0032] Optionally, generating a short plot explanation video according to the plot explanation text and the target video clip further includes:

[0033] Erasing subtitles in the target video segment;

[0034] The commentary sentences are added as subtitles to the corresponding target video clips.

[0035] According to a second aspect of the present disclosure, a device for generating a short video of a plot explanation is provided, comprising:

[0036] An acquisition module, used to acquire a target long video and a plot explanation text of the target long video; wherein the plot explanation text includes at least one explanation sentence;

[0037] A storyboard module, used for performing storyboard processing on the target long video to obtain multiple video clips;

[0038] A feature analysis module is used to perform feature analysis on the explanation sentence to obtain text features of the explanation sentence; perform feature analysis on the video clip to obtain video features of the video clip;

[0039] A matching module, used for determining, according to the text features and the video features, a video segment that matches the commentary sentence of the plot commentary text as a target video segment;

[0040] A generation module is used to generate a plot explanation short video according to the plot explanation text and the target video clip.

[0041] According to a third aspect of the present disclosure, there is provided an electronic device, including:

[0042] The device according to the second aspect of the present disclosure; or,

[0043] A processor and a memory, wherein the memory is used to store instructions, and the instructions are used to control the processor to execute the method according to the first aspect of the present disclosure.

[0044] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method described in the first aspect of the present disclosure is implemented.

[0045] Through the method of this embodiment, the target long video is subjected to shot storyboarding to obtain multiple video clips, the commentary sentences are subjected to feature analysis to obtain text features of the commentary sentences; the video clips are subjected to feature analysis to obtain video features of the video clips; and based on the text features and the video features, a video clip that matches the commentary sentences of the plot commentary text is determined as the target video clip; and based on the plot commentary text and the target video clip, a plot commentary short video is automatically generated, without the need for the user to manually edit the target long video, thereby improving the production efficiency of the plot commentary short video, realizing the automation and batch production of the plot commentary short video, and improving the productivity of the entertainment industry.

[0046] Other features and advantages of the present disclosure will become apparent from the following detailed description of exemplary embodiments of the present disclosure with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0048] Figure 1 is a block diagram showing an example of a hardware configuration of an electronic device that can be used to implement an embodiment of the present disclosure.

[0049] Figure 2 A schematic diagram showing an application scenario of a method for generating a short video of plot explanation according to an embodiment of the present disclosure.

[0050] Figure 3 A schematic diagram showing a flow chart of a method for generating a short video of plot explanation according to an embodiment of the present disclosure.

[0051] Figure 4 A block diagram of a device for generating a short video of plot explanation according to an embodiment of the present disclosure is shown.

[0052] Figure 5A block diagram showing an example of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0053] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values ​​set forth in these embodiments do not limit the scope of the present disclosure unless otherwise specifically stated.

[0054] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present disclosure, its application, or uses.

[0055] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.

[0056] In all examples shown and discussed herein, any specific values ​​should be interpreted as merely exemplary and not limiting. Therefore, other examples of the exemplary embodiments may have different values.

[0057] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.

[0058] <Hardware Configuration>

[0059] Figure 1 1 is a block diagram showing a hardware configuration of an electronic device 1000 that can implement an embodiment of the present disclosure.

[0060] The electronic device 1000 may be a portable computer, a desktop computer, a mobile phone, a tablet computer, a speaker, a headset, etc. Figure 1 As shown, the electronic device 1000 may include a processor 1100, a memory 1200, an interface device 1300, a communication device 1400, a display device 1500, an input device 1600, a speaker 1700, a microphone 1800, and the like. Among them, the processor 1100 may be a central processing unit CPU, a microprocessor MCU, and the like. The memory 1200 includes, for example, a ROM (read-only memory), a RAM (random access memory), a non-volatile memory such as a hard disk, and the like. The interface device 1300 includes, for example, a USB interface, a headphone interface, and the like. The communication device 1400 is, for example, capable of wired or wireless communication, and may specifically include Wifi communication, Bluetooth communication, 2G / 3G / 4G / 5G communication, and the like. The display device 1500 is, for example, a liquid crystal display screen, a touch display screen, and the like. The input device 1600 may include, for example, a touch screen, a keyboard, a somatosensory input, and the like. The user may input / output voice information through the speaker 1700 and the microphone 1800.

[0061] Figure 1 The electronic device shown is merely illustrative and does not in any way limit the present disclosure, its application or use. In the embodiments of the present disclosure, the memory 1200 of the electronic device 1000 is used to store instructions, and the instructions are used to control the processor 1100 to operate to perform any of the methods for generating a short video of a plot explanation provided in the embodiments of the present disclosure. It should be understood by those skilled in the art that although Figure 1 In the electronic device 1000, multiple devices are shown, but the present disclosure may only involve some of the devices, for example, the electronic device 1000 only involves the processor 1100 and the memory 1200. A technician can design instructions according to the scheme disclosed in the present disclosure. How instructions control the processor to operate is well known in the art, so it will not be described in detail here.

[0062] <Application scenarios>

[0063] Figure 2 A schematic diagram of an application scenario of the method for generating a short video of plot explanation according to an embodiment of the present disclosure.

[0064] The method for generating a plot explanation short video in this embodiment can be specifically applied to a short video generation scenario.

[0065] like Figure 2 As shown, the electronic device may provide multiple long videos for the user to select a target long video from. The electronic device may also provide an editing window for the user to edit the plot commentary text of the target long video through the editing window. The electronic device performs shot storyboard processing on the target long video to obtain n (where n is a positive integer) video clips, and splits the plot commentary text into k (where k is a positive integer) commentary sentences; then determines the target video clip that matches each commentary sentence of the plot commentary text, that is, obtains k target video clips. The electronic device then synthesizes the commentary voice corresponding to the same commentary sentence and the target video clip to obtain a synthesized video clip; and splices the synthesized video clips according to the order of the commentary sentences in the plot commentary text to obtain a plot commentary short video.

[0066] In this way, a short video with plot explanation can be automatically generated based on the target long video and the plot explanation text, without the need for users to manually edit the target long video. This can improve the production efficiency of the short video with plot explanation, realize the automation and batch production of the short video with plot explanation, and improve the productivity of the cultural and entertainment industry.

[0067] <Method Example>

[0068] In this embodiment, a method for generating a short video of a plot explanation is provided. The method for generating a short video of a plot explanation can be implemented by an electronic device. The electronic device can be Figure 1 An electronic device 1000 is shown.

[0069] according to Figure 3 As shown, the method for generating a short video of plot explanation in this embodiment may include the following steps S1000 to S5000:

[0070] Step S1000, obtaining a target long video and a plot explanation text of the target long video.

[0071] The plot commentary text includes at least one commentary sentence.

[0072] In one embodiment of the present disclosure, the electronic device executing the method of this embodiment may have multiple long videos pre-stored, and the user selects one or more short videos that need to be made into plot commentary from the multiple long videos according to his or her actual needs as the target long video.

[0073] In another embodiment of the present disclosure, the electronic device executing the method of this embodiment may display the names of multiple long videos and a download button. The user selects one or more short videos that need to be made into plot commentary from the names of the multiple long videos according to his or her actual needs, and clicks the download button to trigger the electronic device to download the long video corresponding to the name selected by the user from the network as the target long video.

[0074] In another embodiment of the present disclosure, the user can directly transmit the target long video selected in other electronic devices to the electronic device executing the method of this embodiment through a network or a data cable according to his or her actual needs, so that the electronic device can obtain the target long video.

[0075] In one embodiment of the present disclosure, an electronic device executing the method of this embodiment may provide an editing window, through which a user may edit the plot commentary text of the target long video according to the application scenario or specific needs.

[0076] In another embodiment of the present disclosure, the electronic device executing this embodiment may obtain a plot introduction of the target long video, and generate a plot explanation text of the target long video according to the plot introduction.

[0077] Step S2000, performing shot storyboard processing on the target long video to obtain multiple video clips.

[0078] In this embodiment, two adjacent frames of video images in the target long video may be compared, and the target long video may be decomposed into a plurality of video segments according to the comparison result.

[0079] In one example, when the number of different pixels in two adjacent video frames exceeds a preset number threshold, the two adjacent video frames are divided into different video segments, and when the number of different pixels in two adjacent video frames is less than or equal to the number threshold, the two adjacent video frames are divided into the same video segment. The number threshold may be set in advance according to an application scenario or specific needs, for example, the number threshold may be 500.

[0080] In another example, when the ratio of different pixels in two adjacent video frames to the total pixels exceeds a preset ratio threshold, the different pixels are divided into different video segments, and when the ratio of different pixels in two adjacent video frames to the total pixels is less than or equal to the ratio threshold, the different pixels are divided into the same video segment. The ratio threshold may be set in advance according to the application scenario or specific requirements, for example, the ratio threshold may be 10%.

[0081] Step S3000, performing feature analysis on the commentary sentence to obtain text features of the commentary sentence; performing feature analysis on the video clip to obtain video features of the video clip.

[0082] In the first embodiment of the present disclosure, the text feature may include a first text tag representing key information of the parsed sentence, and the video feature may include a second text tag representing key information of the video clip.

[0083] Based on this embodiment, the key information of the parsed sentence may include named entities, text classification, reference resolution and relationship triples. Among them, named entities may include names of people (role names), places, events, objects, etc. Text classification indicates the category to which the commentary sentence belongs, for example, it may include categories such as event description, line description, or psychological description. Relation triples may include person (i.e., role), event, and object triples.

[0084] For example, when the commentary sentence is "AA (name of the male protagonist) takes a walk in the park", the named entities may include AA, park, and walk, the text may be classified as an event description, and the relation triples may include AA, park, and walk.

[0085] In this embodiment, the key information of the video clip may include character information, dialogue text, scene, action, and object.

[0086] In the case where the key information includes role information, performing feature analysis on the video clip to obtain video features of the video clip may include the following steps S3100 to S3300:

[0087] Step S3100, obtaining the cast and role relationships of the target video.

[0088] In this embodiment, the cast list may reflect the relationship between characters and roles, and the role relationship may reflect the relationship between the roles. For example, the role relationship may include father and son, father and daughter, mother and son, mother and daughter, husband and wife, friends, etc.

[0089] The cast and character relationships of the target video can be set by the user or obtained from the Internet.

[0090] Step S3200, extracting character information from the currently traversed video segment.

[0091] The character information in the currently traversed video clip may be the information of the character who plays any role in the video clip. Specifically, the character information in the currently traversed video clip may be extracted by face recognition, human body detection and tracking, etc.

[0092] Step S3300, matching the character information with the cast and character relationships to obtain the character information in the currently traversed video clip.

[0093] In this embodiment, by matching the character information with the cast and the character relationships, the character information in the currently traversed video clip can be matched with the character name appearing in the commentary sentence.

[0094] In another embodiment of the present disclosure, the text feature may include a first feature vector representing the content of the parsed sentence, and the video feature may include a second feature vector representing the content of the video clip.

[0095] In one example, feature analysis is performed on the explanation sentence to obtain text features of the explanation sentence, which may be based on a BERT (Bidirectional Encoder) model. According to the explanation sentence, a first feature vector representing the content of the explanation sentence is obtained.

[0096] In another example, feature analysis is performed on the commentary sentence to obtain text features of the commentary sentence. Alternatively, based on the BERT model, a first feature vector representing the content of the commentary sentence is obtained according to a first text label of the commentary sentence.

[0097] In this embodiment, feature analysis is performed on the video clip to obtain the video features of the video clip. The three-dimensional convolution features in the currently traversed video clip and the second feature vector of the currently traversed video clip can be extracted based on a video understanding network model, such as TimeSformer.

[0098] Step S4000: Determine, based on the text features and the video features, a video segment that matches the commentary sentence of the plot commentary text as a target video segment.

[0099] In this embodiment, the target video segment corresponding to each commentary sentence of the plot commentary text may be determined. When the content of the commentary sentence matches the content of the target video segment, it may be determined that the target video segment matches the commentary sentence.

[0100] In one embodiment of the present disclosure, for any commentary sentence in the plot commentary text, a target video segment matching the commentary sentence may be determined. Specifically, determining the target video segment matching the commentary sentence may include steps S4100 to S4200 as shown below:

[0101] Step S4100, traverse the video clips, and determine a final similarity score representing the similarity between the currently traversed video clip and the commentary sentence based on the text features of the parsed sentence and the video features of the currently traversed video clip.

[0102] In this embodiment, the final similarity score between each video segment of the target long video and the commentary sentence may be determined.

[0103] Step S4110: determining a first similarity score between the currently traversed video segment and the narration sentence according to the first text tag of the narration sentence and the second text tag of the currently traversed video segment.

[0104] In one embodiment of the present disclosure, a relationship table indicating whether the tags match each other may be pre-established. The first text tag and the second text tag may each include multiple tags. By searching the relationship table, the matching tags in the first text tag and the second text tag may be determined, and based on the weight of each tag, the matching tags in the first text tag and the second text tag are weighted and summed, and the sum is used as the first similarity score between the currently traversed video segment and the commentary sentence.

[0105] Step S4120: determining a final similarity score between the currently traversed video segment and the commentary sentence according to the first similarity score.

[0106] In this embodiment, the first similarity score between the currently traversed video segment and the commentary sentence may be directly used as the final similarity score between the currently traversed video segment and the commentary sentence.

[0107] In the second embodiment of the present disclosure, determining the final similarity score between the currently traversed video segment and the commentary sentence may include steps S4130 to S4140 as shown below:

[0108] Step S4130: Determine a second similarity score between the currently traversed video segment and the narration sentence according to the first feature vector of the narration sentence and the currently traversed second feature vector.

[0109] In one embodiment of the present disclosure, the cosine similarity between the first feature vector of the commentary sentence and the currently traversed second feature vector may be calculated as the second similarity score between the currently traversed video segment and the commentary sentence.

[0110] In another embodiment of the present disclosure, a second similarity score between the currently traversed video segment and the commentary sentence may be determined based on a preset neural network model according to the first feature vector of the commentary sentence and the currently traversed second feature vector.

[0111] Step S4140: determining a final similarity score between the currently traversed video segment and the commentary sentence according to the second similarity score.

[0112] In this embodiment, the second similarity score between the currently traversed video segment and the commentary sentence may be directly used as the final similarity score between the currently traversed video segment and the commentary sentence.

[0113] In a third embodiment of the present disclosure, determining the final similarity score between the currently traversed video segment and the commentary sentence may include step S4110 of the aforementioned first embodiment and step S4130 of the aforementioned second embodiment, and obtaining the final similarity score between the currently traversed video segment and the commentary sentence based on the first similarity score and the second similarity score between the currently traversed video segment and the commentary sentence.

[0114] In this embodiment, the final similarity score between the currently traversed video segment and the commentary sentence is obtained based on the first similarity score and the second similarity score. The first similarity score and the second similarity score can be weightedly summed based on a preset weight to obtain the final similarity score between the currently traversed video segment and the commentary sentence.

[0115] Step S4200: Determine the target video segment that matches the commentary sentence according to the final similarity score.

[0116] In this embodiment, the video segment with the highest final similarity score with the commentary sentence may be selected from the video segments of the target long video as the target video segment matching the commentary sentence.

[0117] Furthermore, for each explanation sentence, a video segment with the highest final similarity score with each explanation sentence may be determined to obtain a target video segment matching each explanation sentence.

[0118] Step S5000, generating a short video of plot explanation according to the plot explanation text and the target video clip.

[0119] In one embodiment of the present disclosure, generating a short video of plot explanation according to the plot explanation text and the target video clip may include the following steps S5100 to S5200:

[0120] Step S5100, converting the commentary sentences of the plot commentary text into corresponding commentary voices.

[0121] Step S5200, synthesizing the commentary voice and the target video clip to obtain a short video of the plot commentary.

[0122] In this embodiment, the commentary voice and the target video clip corresponding to the same commentary sentence may be synthesized to obtain a synthesized video clip; and the synthesized video clips may be spliced ​​together according to the order of the commentary sentences in the plot commentary text to obtain a plot commentary short video.

[0123] In one embodiment of the present disclosure, generating a plot commentary short video based on the plot commentary text and the target video clip may also include: according to the duration of the commentary voice, speed-changing processing of the corresponding target video clip so that the duration of the commentary voice is the same as the duration of the corresponding target video clip.

[0124] In this embodiment, the target video segment corresponding to any commentary voice may be a target video segment matching the commentary sentence corresponding to the commentary voice.

[0125] Specifically, when the duration of the commentary voice is greater than the duration of the corresponding target video clip, the target video clip can be compressed. When the duration of the commentary voice is less than the duration of the corresponding target video clip, the target video clip can be extended so that the duration of the commentary voice is the same as the duration of the corresponding target video clip.

[0126] In one embodiment of the present disclosure, generating a plot explanation short video based on the plot explanation text and the target video clip may also include: erasing the subtitles in the target video clip; and adding the explanation sentences as subtitles to the corresponding target video clip.

[0127] Furthermore, the method may also include: matching the plot explanation short video with corresponding background music. Specifically, the plot explanation short video and the pre-selected background music may be further synthesized.

[0128] Furthermore, the method may also include: adding special effects and / or filters to the plot explanation short video.

[0129] Through the method of this embodiment, the target long video is subjected to shot storyboarding to obtain multiple video clips, the commentary sentences are subjected to feature analysis to obtain text features of the commentary sentences; the video clips are subjected to feature analysis to obtain video features of the video clips; and based on the text features and the video features, a video clip that matches the commentary sentences of the plot commentary text is determined as the target video clip; and based on the plot commentary text and the target video clip, a plot commentary short video is automatically generated, without the need for the user to manually edit the target long video, thereby improving the production efficiency of the plot commentary short video, realizing the automation and batch production of the plot commentary short video, and improving the productivity of the entertainment industry.

[0130] <Device Example>

[0131] In this embodiment, a device 4000 for generating a short video of a plot explanation is provided. Figure 4 As shown, it includes an acquisition module 4100, a storyboard module 4200, a feature analysis module 4300, a matching module 4400 and a generation module 4500. The acquisition module 4100 is used to acquire a target long video and a plot explanation text of the target long video; wherein the plot explanation text includes at least one explanation sentence; the storyboard module 4200 is used to perform a shot storyboard process on the target long video to obtain a plurality of video clips; the feature analysis module 4300 is used to perform a feature analysis process on the explanation sentence to obtain the text feature of the explanation sentence; the feature analysis process is performed on the video clip to obtain the video feature of the video clip; the matching module 4400 is used to determine a video clip that matches the explanation sentence of the storyboard text according to the text feature and the video feature, as a target video clip; the generation module 4500 is used to generate a short storyboard explanation video according to the storyboard explanation text and the target video clip.

[0132] In one embodiment of the present disclosure, the matching module 4400 is further configured to:

[0133] Traversing the video clip, and determining a final similarity score representing the similarity between the currently traversed video clip and the narration sentence according to the text features of the parsed sentence and the video features of the currently traversed video clip;

[0134] When the traversal is completed, the target video segment matching the commentary sentence is determined according to the final similarity score.

[0135] In one embodiment of the present disclosure, the text feature includes a first text tag representing key information of the parsed sentence; the video feature includes a second text tag representing key information of the video clip;

[0136] The determining, according to the text features of the parsed sentence and the video features of the currently traversed video segment, a final similarity score indicating the similarity between the currently traversed video segment and the narration sentence comprises:

[0137] Determining a first similarity score between the currently traversed video segment and the narration sentence according to the first text label of the narration sentence and the second text label of the currently traversed video segment;

[0138] The final similarity score between the currently traversed video segment and the commentary sentence is determined according to the first similarity score.

[0139] In one embodiment of the present disclosure, the key information includes role information, and the performing feature analysis on the video clip to obtain the video features of the video clip includes:

[0140] Obtaining the cast and role relationships of the target video;

[0141] Extracting character information from the video clip;

[0142] The character information is matched with the cast list and the character relationships to obtain the character information in the video clip.

[0143] In one embodiment of the present disclosure, the text feature further includes a first feature vector representing the content of the commentary sentence; the video feature further includes a second feature vector representing the content of the video clip;

[0144] The step of determining a target score representing the similarity between the currently traversed video segment and the narration sentence according to the text features of the parsed sentence and the video features of the currently traversed video segment further includes:

[0145] Determining a second similarity score between the currently traversed video segment and the narration sentence according to the first feature vector of the narration sentence and the second feature vector of the currently traversed video segment;

[0146] The final similarity score between the currently traversed video segment and the commentary sentence is determined according to the second similarity score.

[0147] In one embodiment of the present disclosure, the generating module 4500 is further used to:

[0148] Converting the explanation sentences of the plot explanation text into corresponding explanation voices;

[0149] The commentary voice and the target video clip are synthesized to obtain the plot commentary short video.

[0150] In one embodiment of the present disclosure, the generating module 4500 is further used to:

[0151] According to the duration of the commentary voice, the corresponding target video segment is speed-changed so that the duration of the commentary voice is the same as the playing duration of the corresponding target video segment.

[0152] In one embodiment of the present disclosure, the generating module 4500 is further used to:

[0153] Erasing subtitles in the target video segment;

[0154] The commentary sentences are added as subtitles to the corresponding target video clips.

[0155] Those skilled in the art should understand that the device 4000 for generating a short video of plot explanation can be implemented in various ways. For example, the device 4000 for generating a short video of plot explanation can be implemented by configuring a processor with instructions. For example, instructions can be stored in a ROM, and when the device is started, the instructions are read from the ROM into a programmable device to implement the device 4000 for generating a short video of plot explanation. For example, the device 4000 for generating a short video of plot explanation can be solidified into a dedicated device (such as an ASIC). The device 4000 for generating a short video of plot explanation can be divided into independent units, or they can be combined together for implementation. The device 4000 for generating a short video of plot explanation can be implemented by one of the various implementations described above, or can be implemented by a combination of two or more of the various implementations described above.

[0156] In this embodiment, the device 4000 for generating a short video of plot commentary may have a variety of implementation forms. For example, the device 4000 for generating a short video of plot commentary may be a functional module running in any software product or application that provides a service for generating a short video of plot commentary, or may be an external embedded component, plug-in, patch, etc. of these software products or applications, or may be these software products or applications themselves.

[0157] <Electronic equipment>

[0158] In this embodiment, an electronic device 5000 is also provided. The electronic device 5000 may be Figure 1 An electronic device 1000 is shown.

[0159] On the one hand, the electronic device 5000 may include the aforementioned plot explanation short video generation device 4000, which is used to implement the plot explanation short video generation method of any embodiment of the present disclosure.

[0160] On the other hand, Figure 5 As shown, the electronic device 5000 may also include a processor 5100 and a memory 5200, wherein the memory 5200 is used to store executable instructions; the processor 5100 is used to control the operation of the electronic device 5000 to execute a method for generating a plot commentary short video according to any embodiment of the present disclosure according to the instructions.

[0161] In this embodiment, the electronic device 5000 may be a mobile phone, a tablet computer, a PDA, a desktop computer, a laptop computer, etc. For example, the electronic device 5000 may be an electronic product having a function of generating a short video of a plot explanation.

[0162] <Computer Readable Storage Medium>

[0163] In this embodiment, a computer-readable storage medium is also provided, on which a computer program is stored. When the computer program is executed by a processor, it implements the method for generating a plot explanation short video as in any embodiment of the present disclosure.

[0164] The present disclosure may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present disclosure.

[0165] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: 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), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.

[0166] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0167] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via 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., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.

[0168] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.

[0169] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0170] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0171] The flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to multiple embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of an instruction, and the module, a program segment or a part of an instruction contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes 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 box in the block diagram and / or the flowchart, and the combination of the boxes in the block diagram and / or the flowchart can be implemented by a dedicated hardware-based system that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that it is equivalent to implement it by hardware, implement it by software, and implement it by combining software and hardware.

[0172] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The choice of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the present disclosure is defined by the appended claims.

Claims

1. A method for generating a short video of a plot explanation, comprising: Acquire a target long video and a plot explanation text of the target long video; wherein the plot explanation text includes at least one explanation sentence; Performing shot splitting processing on the target long video to obtain multiple video clips; Performing feature analysis on the explanation sentence to obtain text features of the explanation sentence; performing feature analysis on the video clip to obtain video features of the video clip; According to the text features and the video features, a video segment matching the commentary sentence of the plot commentary text is determined as a target video segment; wherein the target video segment is determined according to a final similarity score between the video segment and the commentary sentence; A plot explanation short video is generated according to the plot explanation text and the target video clip; wherein the plot explanation short video is obtained by synthesizing the explanation voice and the target video clip, the explanation voice is converted according to the explanation sentences of the plot explanation text, and the playback duration of the target video clip is the same as the duration of the explanation voice, which is obtained by speed-changing the corresponding target video clip according to the duration of the explanation voice.

2. According to the method of claim 1, determining, based on the text features and the video features, a video segment that matches the commentary sentence of the plot commentary text as a target video segment, comprises: Traversing the video clips, and determining a final similarity score representing the similarity between the currently traversed video clip and the narration sentence according to the text features of the narration sentence and the video features of the currently traversed video clip; When the traversal is completed, the target video segment matching the commentary sentence is determined according to the final similarity score.

3. The method according to claim 2, wherein the text feature comprises a first text label representing key information of the commentary sentence; and the video feature comprises a second text label representing key information of the video clip; The determining, according to the text features of the explanation sentence and the video features of the currently traversed video segment, a final similarity score indicating the similarity between the currently traversed video segment and the explanation sentence comprises: Determining a first similarity score between the currently traversed video segment and the narration sentence according to the first text label of the narration sentence and the second text label of the currently traversed video segment; The final similarity score between the currently traversed video segment and the commentary sentence is determined according to the first similarity score.

4. The method according to claim 3, wherein the key information includes role information, and the performing feature analysis on the video clip to obtain the video features of the video clip comprises: Obtaining the cast and role relationships of the target video; Extracting character information from the video clip; The character information is matched with the cast list and the role relationships to obtain the role information in the video clip.

5. The method according to claim 2 or 3, wherein the text feature further comprises a first feature vector representing the content of the commentary sentence; and the video feature further comprises a second feature vector representing the content of the video clip; The step of determining a target score representing the similarity between the currently traversed video segment and the narration sentence according to the text features of the narration sentence and the video features of the currently traversed video segment further includes: Determining a second similarity score between the currently traversed video segment and the narration sentence according to the first feature vector of the narration sentence and the second feature vector of the currently traversed video segment; The final similarity score between the currently traversed video segment and the commentary sentence is determined according to the second similarity score.

6. The method according to claim 1, wherein generating a short plot explanation video according to the plot explanation text and the target video clip further comprises: Erasing subtitles in the target video segment; The commentary sentences are added as subtitles to the corresponding target video clips.

7. A device for generating a short video of a plot explanation, comprising: An acquisition module, used to acquire a target long video and a plot explanation text of the target long video; wherein the plot explanation text includes at least one explanation sentence; A storyboard module, used for performing storyboard processing on the target long video to obtain multiple video clips; A feature analysis module is used to perform feature analysis on the explanation sentence to obtain text features of the explanation sentence; perform feature analysis on the video clip to obtain video features of the video clip; A matching module, used to determine, according to the text features and the video features, a video segment that matches the commentary sentence of the plot commentary text as a target video segment; wherein the target video segment is determined according to a final similarity score between the video segment and the commentary sentence; A generating module, used for generating a short video of plot explanation according to the plot explanation text and the target video clip; Among them, the plot commentary short video is obtained by synthesizing the commentary voice and the target video segment, the commentary voice is converted according to the commentary sentences of the plot commentary text, and the playback duration of the target video segment is obtained by speed-changing the corresponding target video segment according to the duration of the commentary voice, so as to have the same duration as the commentary voice.

8. An electronic device, wherein: include: The device according to claim 7; or, A processor and a memory, wherein the memory is used to store instructions, and the instructions are used to control the processor to execute the method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the method according to any one of claims 1 to 6 when executed by a processor.

Citation Information

Patent Citations

  • Live stream editing method, apparatus and device

    CN108833969A

  • Essence video generation method, equipment, device and storage medium

    CN109218835A

  • Method and device for generating a video theme

    CN110113677A

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

    CN110381359A

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

    CN110929098A