Video editing method and device, electronic equipment and computer readable storage medium
By identifying keywords in video copy and applying text effect templates to generate text materials, the problem of cumbersome selection of materials during video editing is solved, and an efficient video editing process is achieved.
Patent Information
- Application Number
- CN202311865095.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-29
- Publication Date
- 2025-07-01
AI Technical Summary
During the video editing process, users need to select and match materials from a huge library of materials, which makes the editing process time-consuming and labor-intensive and cumbersome.
By identifying keywords in video copy, determining their category labels and matching text effect templates, generating corresponding text materials, and applying them to video copy to update the initial video editing data, and achieving automated text effect editing.
It simplifies user operation process, reduces the time-consuming of video editing, improves editing efficiency, and realizes fast video editing processing.
Smart Images

Figure CN120238697A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of video processing, and in particular, to a video editing method, apparatus, electronic device, and computer-readable storage medium. Background Art
[0002] In the video creation link of users, video editing is a very crucial link. By combining and matching materials such as text, music, sound effects, stickers, and special effects, the visual and auditory effects of the video are enriched, making the transmission of information and emotions more prominent. However, video editing is often time-consuming and laborious. Users need to select and match suitable materials from a huge material library, and perform style design, addition, adjustment, etc. of video editing, and the process is relatively cumbersome. Summary of the Invention
[0003] To solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides a video editing method, apparatus, electronic device, storage medium, and program product.
[0004] In a first aspect of an embodiment of the present disclosure, a video editing method is provided. The method includes: obtaining video copywriting according to initial video editing data; determining a target text effect template according to the video copywriting, where the target text effect template is used to indicate an editing operation of at least one text effect; generating text material corresponding to the video copywriting by applying the target text effect template to a target keyword in the video copywriting, where the text material is used to present the target keyword as the at least one text effect; updating the initial video editing data with the text material to obtain target video editing data, where the target video editing data is used to present the text material.
[0005] In some embodiments of the present disclosure, the determining a target text effect template according to the video copywriting includes: identifying the target keyword in the video copywriting; determining a category label of the category to which the target keyword belongs; determining a text effect editing type that matches the category label; and determining the target text effect template from multiple text effect templates included in the text effect editing type.
[0006] In some embodiments of the present disclosure, the determining the target text effect template from multiple text effect templates included in the text effect editing type includes: when the text effect editing type is a first type, determining the target text effect template from multiple text effect templates included in the first type; when the text effect editing type is a second type, determining a category identifier of the category to which the video copywriting belongs; and determining the target text effect template that matches the category identifier from multiple text effect templates included in the second type.
[0007] In some embodiments of the present disclosure, when the text effect editing type is the second type and after determining the category identifier of the category of the video copywriting, the method further includes: when there is no text effect template matching the category identifier among the multiple text effect templates included in the second type, determining the first text effect template among the multiple text effect templates included in the second type as the target text effect template.
[0008] In some embodiments of the present disclosure, after determining the category label of the category to which the target keyword belongs, the method further includes: determining that there is a sound effect template matching the category label; and determining the sound effect template as the target text effect template.
[0009] In some embodiments of the present disclosure, obtaining the video copywriting according to the initial video editing data includes: displaying a plurality of copywriting effect modes, the plurality of copywriting effect modes including a first copywriting effect mode for indicating generating subtitles for the keywords of the video copywriting; and in response to a selection operation on the first copywriting effect mode, obtaining the video copywriting according to the initial video editing data.
[0010] In some embodiments of the present disclosure, the plurality of copywriting effect modes further include a second copywriting effect mode for indicating generating full subtitles, and the display form of the keywords in the full subtitles is different from the display form of the text other than the keywords; after displaying the plurality of copywriting effect modes, the method further includes: in response to a selection operation on the second copywriting effect mode, obtaining the video copywriting according to the initial video editing data; generating video subtitles for the video copywriting; the keywords in the video subtitles are displayed in a first display form, the text other than the keywords in the video subtitles is displayed in a second display form, and the first display form is different from the second display form; and synthesizing the video subtitles and the initial video editing data into first video editing data.
[0011] In a second aspect of the embodiments of the present disclosure, there is provided a video editing device, including: an obtaining module for obtaining a video copywriting according to initial video editing data; a determining module for determining a target text effect template according to the video copywriting, the target text effect template being used to indicate an editing operation of at least one text effect; a generating module for generating text material corresponding to the video copywriting by applying the target text effect template to target keywords in the video copywriting, where the text material is used to present the target keywords as the at least one text effect; and an updating module for updating the initial video editing data through the text material to obtain target video editing data, where the target video editing data is used to present the text material.
[0012] In some embodiments of the present disclosure, the determining module is specifically configured to identify the target keyword in the video copywriting; determine the category label of the category to which the target keyword belongs; determine the text effect editing type that matches the category label; and determine the target text effect template from multiple text effect templates included in the text effect editing type.
[0013] In some embodiments of the present disclosure, the determining module is specifically configured to, when the text effect editing type is the first type, determine the target text effect template from multiple text effect templates included in the first type; when the text effect editing type is the second type, determine the category identifier of the category to which the video copywriting belongs; and determine the target text effect template that matches the category identifier from multiple text effect templates included in the second type.
[0014] In some embodiments of the present disclosure, the determining module is further configured to, when the text effect editing type is the second type, after determining the category identifier of the category of the video copywriting, when there is no text effect template that matches the category identifier among multiple text effect templates included in the second type, determine the first text effect template among multiple text effect templates included in the second type as the target text effect template.
[0015] In some embodiments of the present disclosure, the determining module is further configured to, after determining the category label of the category to which the target keyword belongs, determine that there is a sound effect template that matches the category label; and determine the sound effect template as the target text effect template.
[0016] In some embodiments of the present disclosure, the obtaining module is specifically configured to display multiple copywriting effect modes, and the multiple copywriting effect modes include a first copywriting effect mode, and the first copywriting effect mode is used to indicate generating subtitles for the keywords of the video copywriting; in response to a selection operation on the first copywriting effect mode, obtain the video copywriting according to the initial video editing data.
[0017] In some embodiments of the present disclosure, the multiple copywriting effect modes further include a second copywriting effect mode, and the second copywriting effect mode is used to indicate generating full subtitles, and the display form of the keywords in the full subtitles is different from the display form of the text other than the keywords; the obtaining module is further configured to, after displaying the multiple copywriting effect modes, in response to a selection operation on the second copywriting effect mode, obtain the video copywriting according to the initial video editing data; generate video subtitles for the video copywriting; the keywords in the video subtitles are displayed in a first display form, the text other than the keywords in the video subtitles is displayed in a second display form, and the first display form is different from the second display form; and synthesize the video subtitles and the initial video editing data into first video editing data.
[0018] In a third aspect of the embodiments of the present disclosure, an electronic device is provided. The electronic device includes a processor, a memory, and a computer program stored on the memory and executable on the processor. When the computer program is executed by the processor, the video editing method described in the first aspect is implemented.
[0019] In a fourth aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided. A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, the video editing method described in the first aspect is implemented.
[0020] In a fifth aspect of the embodiments of the present disclosure, a computer program product is provided. The computer program product includes a computer program. When the computer program product runs on a processor, the processor is caused to execute the computer program to implement the video editing method described in the first aspect.
[0021] In a sixth aspect of the embodiments of the present disclosure, a chip is provided. The chip includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is configured to run program instructions to implement the video editing method described in the first aspect.
[0022] The technical solution provided by the embodiments of the present disclosure has the following advantages compared with the prior art: In the embodiments of the present disclosure, a video copy is obtained according to initial video editing data; a target text effect template is determined according to the video copy, and the target text effect template is used to indicate editing operations of at least one text effect; by applying the target text effect template to target keywords in the video copy, text materials corresponding to the video copy are generated; wherein the text materials are used to present the target keywords as the at least one text effect; the initial video editing data is updated by the text materials to obtain target video editing data; wherein the target video editing data is used to present the text materials. In this way, in the present disclosure, by determining a target text effect template according to the video copy, and by applying the target text effect template to target keywords in the video copy, text materials corresponding to the video copy are generated, realizing text effect editing of keywords in the video copy of the initial video editing data based on the target text effect template, and generating target video editing data including text materials corresponding to the keywords, which can quickly realize video editing without the user manually operating to obtain the video copy of the initial video editing data and performing editing operations on the keywords in the video copy to generate target video editing data, simplifying the operation process of the user for video editing processing of the initial video editing data, reducing the time consumption of video editing processing, and improving the processing efficiency of video editing. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The accompanying drawings herein are incorporated into and constitute a part of this specification, showing embodiments consistent with the present disclosure and, together with the specification, are used to explain the principles of the present disclosure.
[0024] To more clearly illustrate the technical solutions in the embodiments of the present disclosure or the prior art, the following will briefly introduce the accompanying drawings required for use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0025] Figure 1 It is a schematic flowchart of a video editing method provided by an embodiment of the present disclosure;
[0026] Figure 2 It is one of the schematic interface diagrams of the video editing method provided by an embodiment of the present disclosure;
[0027] Figure 3 It is another schematic interface diagram of the video editing method provided by an embodiment of the present disclosure;
[0028] Figure 4 It is the third schematic interface diagram of the video editing method provided by an embodiment of the present disclosure;
[0029] Figure 5 It is the fourth schematic interface diagram of the video editing method provided by an embodiment of the present disclosure;
[0030] Figure 6 It is a structural block diagram of a video editing device provided by an embodiment of the present disclosure;
[0031] Figure 7 It is a structural block diagram of an electronic device provided by an embodiment of the present disclosure. Detailed implementation manners
[0032] In order to be able to more clearly understand the above objects, features, and advantages of the present disclosure, the following will further describe the solutions of the present disclosure. It should be noted that, without conflict, the embodiments of the present disclosure and the features in the embodiments can be combined with each other.
[0033] Many specific details are set forth in the following description in order to fully understand the present disclosure, but the present disclosure can also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only a part of the embodiments of the present disclosure, rather than all of the embodiments.
[0034] The terms "first", "second", etc. in the description and claims of the present disclosure are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present disclosure can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of the same type, and do not limit the number of objects. For example, the first object can be one or multiple. In addition, "and / or" in the description and claims means at least one of the connected objects, and the character " / " generally indicates an "or" relationship between the associated objects before and after.
[0035] The electronic device in the embodiments of the present disclosure can be a mobile electronic device or a non-mobile electronic device. The mobile electronic device can be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc.; the non-mobile electronic device can be a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc.; the embodiments of the present disclosure do not make specific limitations.
[0036] The execution subject of the video editing method provided by the embodiments of the present disclosure can be the above-mentioned electronic device (including mobile electronic devices and non-mobile electronic devices), or a functional module and / or functional entity in the electronic device that can implement the video editing method, which can be specifically determined according to actual usage requirements, and the embodiments of the present disclosure do not make limitations.
[0037] The video editing method provided by the embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.
[0038] As Figure 1 shown, the embodiments of the present disclosure provide a video editing method, which may include the following steps 101 to 104.
[0039] 101. Obtain a video copy according to the initial video editing data.
[0040] Among them, the initial video editing data can be a video, in which case subtitles are recognized from the video to obtain the video copywriting; the initial video editing data can also be a video draft, which contains text segments. These text segments are a text material (which can be understood as a video of a text image) generated based on the video copywriting (text information) and text effects. In this case, the video copywriting can be recognized from the text segments of the video draft. Specifically, it can be determined according to the actual situation and is not limited here.
[0041] 102. Determine the target text effect template according to the video copywriting.
[0042] Among them, the target text effect template is used to indicate the editing operations of at least one text effect.
[0043] Among them, different video copywritings can correspond to different text effect templates. Each text effect template is used to indicate the editing operations of at least one text effect. The editing operations of the text effect can include the editing operations of the text display form or the editing operations of the sound effects corresponding to the text. Specifically, it can be determined according to the actual situation and is not limited here.
[0044] In some embodiments of the present disclosure, the above step 102 can be specifically implemented through the following steps 102a to 102d.
[0045] 102a. Identify the target keyword in the video copywriting.
[0046] In the embodiments of the present disclosure, different categories of keywords are set, and it can be traversed whether one or more keywords of a certain category exist in the video copywriting.
[0047] In the embodiments of the present disclosure, the keywords in the video copywriting can also be identified through a keyword recognition model.
[0048] 102b. Determine the category label of the category to which the target keyword belongs.
[0049] Among them, the categories to which the keywords belong can be classified into numbers, key nouns, and adjectives according to the first-level classification. According to the second-level classification, the categories to which the keywords belong, numbers can include time, money, quantity, fraction, ratio, etc.; key nouns can include product names, material names, quantifiers, brand names, store names, abbreviations, personal names, identities, proper nouns, place names, etc.; adjectives can include positive evaluations, negative evaluations, positive emotions, negative emotions, etc. The categories to which the keywords belong can also be divided in other ways, or other categories can be included. Specifically, it can be determined according to the actual situation and is not limited here.
[0050] 102c. Determine the text effect editing type that matches the category label.
[0051] In the embodiments of the present disclosure, there are multiple types of text effect editing. Different category labels can match the same type of text effect editing or different types of text effect editing, which can be determined according to the actual situation and are not limited herein.
[0052] 102d. Determine the target text effect template from the multiple text effect templates included in the type of text effect editing.
[0053] In the embodiments of the present disclosure, different types of text effect editing include different text effect templates.
[0054] In the embodiments of the present disclosure, different keywords can belong to different category labels. Different category labels can match different types of text effect editing, and different types of text effect editing can include different text effect templates. Therefore, different text effect templates can be matched for different keywords, thereby increasing the diversity of the matched text effect templates, increasing the diversity of text effect editing, and improving the text editing effect.
[0055] In some embodiments of the present disclosure, the type of text effect editing can include a first type and a second type, and can also include other types, or can be divided according to other rules, which can be determined according to the actual situation and are not limited herein.
[0056] Among them, the category labels matching the first type can include time, location, subscription / follow, like, comment, view description, coupon, sponsor, positive evaluation, negative evaluation, positive emotion, negative emotion, etc.
[0057] In some embodiments of the present disclosure, the multiple text effect templates included in the first type may not be further divided by type, or the multiple text effect templates included in the first type may also be divided into text effect templates of types such as time, location, subscription / follow, like, comment, view description, coupon, sponsor, positive evaluation, negative evaluation, positive emotion, negative emotion, etc.; it can be determined according to the actual situation and is not limited herein.
[0058] Among them, the category labels matching the second type can include video blog, technology, fashion, film and television, animation, news, etc.
[0059] In some embodiments of the present disclosure, the multiple text effect templates included in the second type may not be further divided by type, or the multiple text effect templates included in the second type may also be divided into text effect templates of types such as video blog, technology, fashion, film and television, animation, news, etc.; it can be determined according to the actual situation and is not limited herein.
[0060] In some embodiments of the present disclosure, the above step 102d can be specifically implemented by the following steps 102d1 to 102d3.
[0061] 102d1. When the text effect editing type is the first type, determine the target text effect template from multiple text effect templates included in the first type.
[0062] Among them, any one of the multiple text effect templates included in the first type can be determined as the target text effect template. Alternatively, multiple first text effect editing identifiers can be presented to the user, and the first text effect template indicated by the first text effect editing identifier selected by the user can be determined as the target text effect template.
[0063] Exemplarily, the category label of the target keyword is subscription, and subscription matches the first type, then select a text effect template from multiple text effect templates included in the first type as the text effect template corresponding to subscription.
[0064] 102d2. When the text effect editing type is the second type, determine the category identifier of the category to which the video copy belongs.
[0065] 102d3. From multiple text effect templates included in the second type, determine the target text effect template that matches the category identifier.
[0066] Among them, the multiple text effect templates included in the second type are multiple second text effect templates, and at least one second text effect template that matches the category identifier is included in the multiple second text effect templates. Any one of the at least one second text effect template can be determined as the target text effect template. Alternatively, at least one second text editing identifier can be presented to the user, and the second text effect template indicated by the second text effect editing identifier selected by the user can be determined as the target text effect template.
[0067] Exemplarily, if the category label of the category to which the target keyword belongs is a key noun or a number (except time), etc., and the matched text effect editing type is the second type, according to the category identifier of the category to which the initial video editing data belongs, randomly select a text effect template suitable for the category identifier as the target text effect template, and the entire initial video editing data is uniformly edited using the same text effect template.
[0068] In some embodiments of the present disclosure, after the above 102d2, the video editing method provided by the embodiments of the present disclosure may further include the following 102d4.
[0069] 102d4. When there is no text effect template in the multiple text effect templates included in the second type that matches the category identifier, the first text effect template in the multiple text effect templates included in the second type is determined as the target text effect template.
[0070] Among them, the first text effect template is a general text effect template among the text effect templates included in the second type, that is, a text effect template applicable to any category of video copywriting. Therefore, when the text effect template corresponding to the category identifier cannot be matched, a random one is selected from the general text effect templates as the target text effect template.
[0071] In the embodiments of the present disclosure, text effect editing processing corresponding to the target text effect template can be performed on the target keyword, and then text effect editing processing can be performed on the initial video editing data to obtain the target video editing data.
[0072] In some embodiments of the present disclosure, after 102b above, the video editing method provided by the embodiments of the present disclosure may further include the following 102e and step 102f.
[0073] 102e. Determine that there is a sound effect template that matches the category label.
[0074] 102f. Determine the sound effect template as the target text effect template.
[0075] Among them, when the category label of the target keyword is time, money, score, etc., there is a sound effect template that matches the category label. Exemplarily, if the category label is time, the sound effect of the corresponding sound effect template can be a countdown sound effect or an alarm clock sound effect, etc.; if the category label is money, the sound effect of the corresponding sound effect template can be a cash register sound effect; if the category label is score, the sound effect of the corresponding sound effect template can be a scoring sound effect or an applause sound effect, etc.
[0076] In the embodiments of the present disclosure, it is not limited to which category labels have matching sound effect templates, nor is it limited to the sound effects of the sound effect templates, which can be specifically determined according to the actual situation.
[0077] It can be understood that for some keywords that can have sound effect characteristics, text effect editing processing and sound effect editing processing can be performed simultaneously. For example, for keywords in the time category, text effect editing processing can be performed based on the first type of text effect template corresponding to the time category, and sound effect editing processing can also be performed on the keywords in the time category based on the sound effect template of the countdown sound effect or the alarm clock sound effect corresponding to the time category.
[0078] In the embodiments of the present disclosure, performing text effect editing processing and sound effect editing processing on keywords in certain categories simultaneously can effectively increase the diversity of video editing.
[0079] In some embodiments of the present disclosure, the same video editing process may be performed on each keyword identified from the initial video editing data, or different video editing processes may be performed separately for the categories to which the identified keywords belong. Specifically, it may be determined according to the actual situation and is not limited herein.
[0080] 103. By applying the target text effect template to the target keyword in the video copywriting, the text material corresponding to the video copywriting is generated.
[0081] Wherein, the text material is used to present the target keyword as the at least one text effect.
[0082] It can be understood that an editing operation of at least one text effect indicated by the target text effect template is performed on the target keyword in the video copywriting to generate text material.
[0083] 104. The initial video editing data is updated through the text material to obtain target video editing data.
[0084] Wherein, the target video editing data is used to present the text material.
[0085] The present disclosure determines a target text effect template according to the video copywriting, and generates the text material corresponding to the video copywriting by applying the target text effect template to the target keyword in the video copywriting, so as to realize text effect editing on the keyword in the video copywriting of the initial video editing data based on the target text effect template, and generate target video editing data including the text material corresponding to the keyword. It can quickly realize the editing of the video, without the user manually operating to obtain the video copywriting of the initial video editing data and performing an editing operation on the keyword in the video copywriting to generate target video editing data, simplifies the operation process of the user for video editing processing of the initial video editing data, reduces the time consumption of video editing processing, and improves the processing efficiency of video editing.
[0086] In some embodiments of the present disclosure, step 101 above may be specifically implemented by the following steps 101a and 101b.
[0087] 101a. Display multiple copywriting effect modes.
[0088] Wherein, the multiple copywriting effect modes include a first copywriting effect mode, and the first copywriting effect mode is used to indicate generating subtitles for the keyword in the video copywriting.
[0089] The first copywriting effect mode is specifically to generate the target video editing data including text material in the above steps 102 to 104.
[0090] 101b. In response to a selection operation for the first copywriting effect mode, obtain a video copywriting based on the initial video editing data.
[0091] In the embodiments of the present disclosure, multiple copywriting effect modes are provided, so that the user can select the required copywriting effect mode according to the needs, perform corresponding video editing on the initial video editing data, and obtain the target video editing data that meets the requirements.
[0092] In some embodiments of the present disclosure, the multiple copywriting effect modes further include a second copywriting effect mode, and the second copywriting effect mode is used to indicate the generation of full subtitles, and the display form of the keywords in the full subtitles is different from the display form of the text other than the keywords; after the above step 101a, the video editing method provided by the embodiments of the present disclosure may further include the following steps 105 to 107.
[0093] 105. In response to a selection operation for the second copywriting effect mode, obtain a video copywriting based on the initial video editing data.
[0094] 106. Generate video subtitles from the video copywriting.
[0095] Among them, the keywords in the video subtitles are displayed in a first display form, and the text other than the keywords in the video subtitles is displayed in a second display form, and the first display form is different from the second display form.
[0096] In the embodiments of the present disclosure, the specific display forms of the first display form and the second display form are not limited, and can be determined according to the actual situation.
[0097] In some embodiments of the present disclosure, the first display form and the second display form may be different in at least one of the following display parameters: font type, font style, font color, border, shadow, background, glow, bubble, stroke, animation, font size, font rotation angle.
[0098] In some embodiments of the present disclosure, the first display form and the second display form may be preset or determined respectively according to different initial video editing data, and can be determined according to the actual situation, which is not limited here.
[0099] 107. Synthesize the video subtitles and the initial video editing data into first video editing data.
[0100] In the embodiments of the present disclosure, through the selection operation for the second copywriting effect mode, triggering video editing processing on the initial video editing data to obtain the first video editing data including video subtitles in which keywords and non-keywords are displayed in different display forms can simplify the operation steps of video editing and improve the video editing efficiency.
[0101] In some embodiments of the present disclosure, for the second copywriting effect mode, if the keyword is a keyword with sound effect characteristics, corresponding sound effect editing can also be performed on the keyword.
[0102] In some embodiments of the present disclosure, the above step 101a can be specifically implemented through the following step 101a1.
[0103] 101a1. In response to a trigger operation on the video processing control displayed on the video editing interface, display a video editing panel.
[0104] Among them, at least one copywriting effect mode is displayed in the video editing panel, and each copywriting effect mode is used to indicate an editing mode of video copywriting.
[0105] In some embodiments of the present disclosure, at least one copywriting effect mode may include the above first copywriting effect mode and second copywriting effect mode. Among them, the first copywriting effect mode corresponds to no full subtitles, and only subtitles are generated for the keywords in the video copywriting; the second copywriting effect mode corresponds to full subtitles, and the keywords and non-keywords (text other than keywords) in the full subtitles are displayed in different display forms.
[0106] In some embodiments of the present disclosure, when first entering the video editing panel, determine the default selected copywriting effect mode according to the display ratio (landscape or portrait display form) of the initial video editing data. For example, when displayed in landscape, the first copywriting effect mode is default selected; when displayed in portrait, the second copywriting effect mode is default selected; when entering the video editing panel again later, determine the copywriting effect mode selected by the user last time as the default selected copywriting effect mode.
[0107] The present disclosure displays a video processing control on the video editing interface, then triggers the display of the video editing panel through the video processing control, and through a trigger operation on the target copywriting effect mode among at least one copywriting effect mode displayed in the video editing panel, can trigger corresponding text effect editing processing on the initial video editing data, without the user having to select and match appropriate materials from a huge material library and perform style adjustments, etc. to achieve text effect editing processing on the initial video editing data, simplifies the operation process of the user for text effect editing processing on the initial video editing data, reduces the time-consuming for video editing of the initial video editing data, and improves the processing efficiency of video editing of the initial video editing data.
[0108] In some embodiments of the present disclosure, when one or more keywords with sound effect characteristics are included in the keywords of the video copywriting of the initial video editing data, sound effect editing can be performed while performing text effect editing on the keywords. Thus, during the playback of the target video editing data (or the first video editing data), when playing to the keyword, output the sound effect corresponding to the keyword.
[0109] In the embodiments of the present disclosure, the sound effect editing mode (corresponding to the sound effect editing function) can be set separately in the video editing panel, or the sound effect editing function can be attached to the copywriting effect mode. Specifically, it can be determined according to the actual situation and is not limited herein.
[0110] In some embodiments of the present disclosure, the sound effect editing mode is also displayed in the video editing panel, or the sound effect editing option (default selected, that is, the sound effect editing function is default enabled), and the option to delete existing subtitles (default selected, that is, the function to delete existing subtitles is default enabled) are also displayed in the video editing panel. Among them, the sound effect editing option in the selected state is used to indicate that sound effect editing is performed while text effect editing is carried out, and the sound effect editing option not in the selected state is used to indicate that sound effect editing is not performed when text effect editing is carried out. The option to delete existing subtitles in the selected state is used to indicate that the existing subtitles of the initial video editing data are deleted before text effect editing of the initial video editing data, and the option to delete existing subtitles not in the selected state is used to indicate that when text effect editing of the initial video editing data is carried out, the existing subtitles of the initial video editing data are used for text effect editing processing.
[0111] In the embodiments of the present disclosure, it is possible to determine whether to perform sound effect editing on the initial video editing data according to the sound effect editing mode or the sound effect editing option, and it is also possible to determine whether to use the existing subtitles of the initial video editing data for text effect editing according to the option to delete existing subtitles, providing users with a variety of optional functions. Users can set according to actual usage needs, which can improve the user experience.
[0112] If the user has added subtitles by themselves before using video editing, when the second copywriting effect mode is selected, the option to clear existing subtitles is displayed. After checking the option to clear existing subtitles, the existing subtitles will be cleared first when starting video editing processing. If the user has not added subtitles by themselves before using video editing, or when the user selects the first copywriting effect mode, the option to clear existing subtitles is not displayed, or the option to clear existing subtitles is grayed out and cannot be selected. Specifically, it can be determined according to the actual situation and is not limited herein.
[0113] In some embodiments of the present disclosure, the option to screen commercial materials is also displayed in the video editing panel, and it is not selected by default (that is, the function of screening commercial materials is default closed). After the function of screening commercial materials is enabled, the video editing only returns commercially available materials.
[0114] In some embodiments of the present disclosure, when the video editing panel is first displayed, the commercial material screening option is not selected by default. When the video editing panel is displayed later, it is displayed according to the status of the commercial material screening option recorded last time, that is, if the status of the commercial material screening option recorded last time is not selected, it is not selected by default this time; if the status of the commercial material screening option recorded last time is selected, it is selected by default this time.
[0115] In some embodiments of the present disclosure, a function introduction icon corresponding to each copywriting effect mode is also displayed in the video editing panel. The function introduction icon is used to trigger the display of the function introduction of the text effect editing function indicated by the corresponding copywriting effect mode. The function introduction includes a text-form introduction and / or a GIF-form introduction. In this way, when the user does not understand the text effect editing function corresponding to each copywriting effect mode, the user can trigger the display of the function introduction of the text effect editing function indicated by the copywriting effect mode by triggering the operation on the function introduction icon corresponding to the copywriting effect mode, so as to facilitate the user's understanding and use and improve the user experience.
[0116] In some embodiments of the present disclosure, the function introduction interface corresponding to the function introduction icon is floatingly displayed in the video editing panel. The function introduction interface can be in the form of a pop-up window display or the following function introduction floating layer, which is not limited here.
[0117] In some embodiments of the present disclosure, the above step 101a1 can be specifically implemented through the following steps 101a1a and 101a1b.
[0118] 101a1a. In response to the triggering operation on the video processing control displayed on the video editing interface, display a function introduction floating layer.
[0119] Among them, the function introduction floating layer is used to display the entry control of the video editing panel and the function introduction of the text effect editing function indicated by each copywriting effect mode. The function introduction includes a text-form introduction and / or a GIF-form introduction.
[0120] In some embodiments of the present disclosure, the function introductions corresponding to each copywriting effect mode in the function introduction floating layer can be displayed separately (by switching operations to switch the display of the function introductions corresponding to different copywriting effect modes), and the function introductions corresponding to each copywriting effect mode in the function introduction floating layer can also be displayed simultaneously, which can be specifically determined according to the actual situation and is not limited here.
[0121] Among them, the specific function introduction can be set according to the corresponding copywriting effect mode, which is not limited here.
[0122] Exemplarily, the function introduction floating layer is a semi-screen function introduction floating layer. Above the function introduction floating layer, a dynamic graphic form introduction corresponding to a copywriting effect mode is displayed, and below it, a text form introduction corresponding to the copywriting effect mode is displayed. The user can switch the dynamic graphic form introductions corresponding to different copywriting effect modes through left and right sliding operations, and the text form introduction below is updated synchronously after the dynamic graphic form introduction is switched.
[0123] 101a1b. In response to a trigger operation on the entry control, display the video editing panel.
[0124] Exemplarily, the entry control can be a "Give it a try" control.
[0125] In some embodiments of the present disclosure, it can be set that when a new user (after downloading and installing) first uses the video editing function, the above step 101a1 includes the above steps 101a1a and 101a1b. When an old user uses the video editing function, the video editing panel is directly displayed through a trigger operation on the video processing control, and the above function introduction floating layer is not displayed.
[0126] In the embodiments of the present disclosure, before displaying the video editing panel, displaying the function introduction floating layer is beneficial for the user to understand and compare the text effect editing functions corresponding to each copywriting effect mode, and then it is convenient to select which copywriting effect mode to use for text effect editing processing of the initial video editing data later, which can improve the user experience.
[0127] In some embodiments of the present disclosure, the above step 101b can specifically be through the following steps 101b1 to 101b5.
[0128] 101b1. In response to a trigger operation on the first copywriting effect mode, determine whether the video editing function has been authorized.
[0129] In the case where it is determined that the video editing function has not been authorized, execute the following steps 101b2 to 101b5; in the case where it is determined that the video editing function has been authorized, execute the following step 101b4.
[0130] 101b2. In the case where the video editing function is not authorized, display an authorization pop-up window, which displays authorization options and non-authorization options.
[0131] Among them, the authorization option is used to indicate authorizing the video editing function, and the non-authorization option is used to indicate not authorizing the video editing function.
[0132] Exemplarily, the authorization pop-up window can include text form introduction information of the video editing function, and also include an "Allow" option and a "Deny" option. Among them, the "Allow" option corresponds to the authorization option, and the "Deny" option corresponds to the non-authorization option.
[0133] 101b3. In response to a triggering operation on the authorization option, determine to authorize the video editing function.
[0134] In response to a triggering operation on the authorization option, authorize the video editing function for the electronic device and perform the following step 101b4.
[0135] 101b4. In the case where the video editing function has been authorized, based on the first copywriting effect mode, obtain the video copywriting according to the initial video editing data.
[0136] 101b5. In response to a triggering operation on the non-authorization option, prohibit text effect editing processing on the initial video editing data.
[0137] It can be understood that in response to a triggering operation on the non-authorization option, the electronic device may not perform text effect editing processing on the initial video editing data, and may also display a prompt message for prompting that the video editing function cannot be used without authorization.
[0138] It can be understood that when clicking on the first copywriting effect mode, if it is detected that the electronic device is not authorized for the video editing function, an authorization pop-up window will be displayed. Select the authorization option, and then start text effect editing processing on the initial video editing data. Select the non-authorization option to close the authorization pop-up window and do not start (prohibit) text effect editing processing on the initial video editing data.
[0139] In some embodiments of the present disclosure, if the authorization option is selected this time, when using the video editing function next time, there is no need to pop up the authorization pop-up window again; if the non-authorization option is selected this time, when using the video editing function next time, the authorization pop-up window will still be popped up, and the video editing function can be used only after the user selects the authorization option.
[0140] It should be noted that when the user selects the second copywriting effect mode, the relevant authorization judgment process in the above steps 101b1 to 101b5 will also be executed, which will not be elaborated here.
[0141] In the embodiments of the present disclosure, by setting to allow the use of the video editing function when authorized to use the video editing function, and prohibiting the use of the video editing function when not authorized to use the video editing function, the user's use safety can be guaranteed, and user misoperations can be avoided, improving the user experience.
[0142] In some embodiments of the present disclosure, it is also possible to determine whether the video editing function has been authorized in response to a triggering operation of a video processing control. In the case where the video editing function is not authorized, an authorization pop-up window is displayed, and the authorization pop-up window displays an authorization option and a non-authorization option. In the case where the video editing function has been authorized, a video editing panel is displayed, which can be determined according to the actual situation and is not limited here.
[0143] In some embodiments of the present disclosure, the video editing method provided by the embodiments of the present disclosure may further include at least one of the following steps 108 to 110.
[0144] 108. During the process of performing text effect editing on the initial video editing data, in response to a triggering operation on the cancel control, stop the process of performing text effect editing on the initial video editing data, and clear the results of the text effect editing that have been performed.
[0145] The process of text effect editing includes the relevant processes in the above steps 101 to 107.
[0146] Wherein, the cancel control is a control used to end the text effect editing process.
[0147] It can be understood that the video editing method provided by the embodiments of the present disclosure supports ending the text effect editing process during the text effect editing process. In this way, when the user suddenly does not want to perform text effect editing anymore, the process of text effect editing can be ended by triggering the cancel control, which can improve the user experience.
[0148] 109. During the process of performing text effect editing on the initial video editing data, in response to a triggering operation on the target control, switch the process of performing text effect editing on the initial video editing data to run in the background, and display the progress of the process of performing text effect editing on the initial video editing data at a preset position.
[0149] Wherein, the process progress can be a percentage of progress, or can be the process description information of the current processing stage in the text effect editing process.
[0150] Wherein, the target control is a control used to switch the process of text effect editing to run in the background. Exemplarily, the target control can be a control for switching to the tool home page of an application with video editing functions, the target control can also be a control for switching to the home page of the electronic device, and can also be other types of controls, which can be specifically determined according to the actual situation and are not limited herein.
[0151] It can be understood that the video editing method provided by the embodiments of the present disclosure supports switching the text effect editing process to run in the background during the text effect editing process. For example, during the text effect editing process, by triggering the operation of exiting to the tool home page, the tool home page is displayed, and the text effect editing process is kept running in the background.
[0152] Among them, the preset position can be the draft cover on the home page of the tool, or a floating window control that remains displayed in an application with video editing functions, or a floating window control that remains displayed on the electronic device, or other positions or areas, which can be specifically determined according to the actual situation and are not limited herein.
[0153] Exemplarily, in response to a trigger operation to exit to the home page of the tool, when keeping the text effect editing process running in the background, the progress is displayed on the draft cover of the home page of the tool.
[0154] Embodiments of the present disclosure support switching the process of text effect editing to the background execution. Thus, during the process of text effect editing of the initial video editing data, the user can also perform other operations, which can improve the user experience.
[0155] 110. During the process of text effect editing of the initial video editing data, a loading animation is displayed, and the loading animation includes process description information for text effect editing of the initial video editing data.
[0156] In some embodiments of the present disclosure, the loading animation can scroll the process description information (i.e., switch to display the process description information) every preset duration (such as 5 seconds).
[0157] In some embodiments of the present disclosure, the loading animation can also display the process description information in real time according to the actual text effect editing process, that is, display the process description information of the stage where it is currently in the text effect editing process.
[0158] Exemplarily, the process description information can be "identifying keywords...", "analyzing the picture scene...", "searching for nice text styles...", "matching suitable sound effects...", etc., which can be specifically determined according to the actual situation and are not limited herein.
[0159] In embodiments of the present disclosure, during the process of text effect editing, displaying the loading animation can help the user understand the general process of text effect editing and can improve the user experience.
[0160] In some embodiments of the present disclosure, in some embodiments of the present disclosure, the video editing method provided by the embodiments of the present disclosure may further include at least one of the following steps 111 and step 112.
[0161] 111. Display target prompt information.
[0162] Wherein, when the text effect editing process for the initial video editing data is successful, the target prompt message is used to prompt that the text effect editing process for the initial video editing data is successful; when the text effect editing process for the initial video editing data fails, the target prompt message is used to prompt that the text effect editing process for the initial video editing data fails, and / or the reason for the failure of the text effect editing process for the initial video editing data.
[0163] In the embodiments of the present disclosure, after the text effect editing process for the initial video editing data is successful (the material addition is successful), a prompt message such as "Video editing successful" or "Text effect editing process successful" can be pop-up prompted.
[0164] In the embodiments of the present disclosure, after the text effect editing process for the initial video editing data fails (the material addition fails), a prompt message such as "Video editing failed" or "Text effect editing process failed" can be pop-up prompted.
[0165] In some embodiments of the present disclosure, when the video editing fails, the reason for the failure can also be prompted. For example, if no audio content results in no material (subtitle / text template) being returned for the text part, a pop-up prompt message "No speaking content recognized, unable to add text effect editing temporarily" can be shown; if the recognition fails due to a network problem, a pop-up prompt message "Network error, please retry" can be shown.
[0166] In the embodiments of the present disclosure, by presenting the target prompt message, the result of the video editing process can be promptly prompted to the user, facilitating the user's subsequent operations and improving the user experience.
[0167] 112. Display the target status information.
[0168] Wherein, when the text effect editing process for the initial video editing data is successful, the target status information is used to indicate that the text effect editing process for the initial video editing data is successful; when the text effect editing process for the initial video editing data fails, the target status information is used to indicate that the text effect editing process for the initial video editing data fails.
[0169] The embodiments of the present disclosure support displaying the target status information corresponding to the success or failure of the text effect editing process at a preset position (refer to the above description of the preset position, which will not be elaborated here). In this way, the user can be prompted about the status of whether the text effect editing process for the initial video editing data is successful or failed. Furthermore, when the user cannot pay attention to the text effect editing process of the initial video editing data in real time, the result of the text effect editing process for the initial video editing data can be understood based on the target status information, improving the user experience.
[0170] In the embodiments of the present disclosure, the target status information can be displayed at a preset position for a certain period of time. Exemplarily, the target status information can be displayed at the preset position during the life cycle of the corresponding application. After restarting the application, the target status information is no longer displayed. The target status information can also be cancelled from display after entering the timeline editing panel.
[0171] In the embodiments of the present disclosure, for the target status information indicating the failure of text effect editing processing, it can also be cancelled from display after the user triggers a process of re - performing text effect editing processing on the initial video editing data by a trigger operation (such as clicking a retry control, a redo control, or any text effect editing processing control).
[0172] In some embodiments of the present disclosure, after step 112 above, the video editing method provided by the embodiments of the present disclosure may further include any one of the following steps 113 to step 116.
[0173] 113. When it is detected that the application corresponding to the video editing is closed, clear the target status information.
[0174] 114. When it is detected that the timeline editing panel of the video editing interface is displayed, clear the target status information and position the timeline preview axis to the first position on the timeline where text effect editing processing has been performed.
[0175] Among them, positioning the timeline preview axis to the first position on the timeline where text effect editing processing has been performed can facilitate the user to determine at which position text effect editing processing has been started, and can improve the user experience.
[0176] 115. When it is detected that text effect editing processing is performed again on the initial video editing data, clear the target status information and the target video editing data.
[0177] Among them, performing text effect editing processing again on the initial video editing data can be, for example, re - using video editing after successfully adding materials to the video editing, or clicking the redo control. There is no limitation here.
[0178] Clearing the target status information and the target video editing data means automatically clearing the result of the previous video editing, which is equivalent to overwriting the old result with the new result of the text effect editing processing performed again. In this way, it is possible to avoid the mixing of the results of two video editing processes, which may lead to the final video editing result including different video editing styles and reduce the user experience.
[0179] 116. When it is detected that the text effect editing process for the initial video editing data is revoked, clear the target video editing data.
[0180] Embodiments of the present disclosure support the operation of revoking the previously performed text effect editing process.
[0181] It can be understood that using video editing to add materials is an entire operation step. When the user clicks the revocation control, all video editing materials generated in the previous video editing process need to be completely removed.
[0182] In some embodiments of the present disclosure, according to actual needs, a free-of-charge icon can also be displayed at the video processing control. After clicking, the function can be used normally.
[0183] Exemplarily, as Figure 2 shown, the area indicated by the label "21" is the area for displaying the initial video editing data, the area indicated by the label "22" is the timeline editing panel, and the area indicated by the label "23" is the toolbar area for editing processing, where the "video processing" control is included in the toolbar area. Click Figure 2 the "video processing" control shown, and a function introduction floating layer as indicated by the label "31" in Figure 3 is displayed. Among them, the function introduction floating layer includes an introduction area in the form of a moving picture for the copywriting effect mode 1 as indicated by the label "311", an introduction area in the form of text for the copywriting effect mode 1 as indicated by the label "312", and a "give it a try" control as indicated by the label "313". Click Figure 3 the "give it a try" control shown, and a video editing panel as indicated by the label "41" in Figure 4 is displayed. The video editing panel includes the copywriting effect mode 1 (currently in the selected state), the function introduction icon 1 corresponding to the copywriting effect mode 1, the copywriting effect mode 2 (currently in the unselected state), the function introduction icon 2 corresponding to the copywriting effect mode 2, the option to delete existing subtitles (currently the option to delete existing subtitles is in the selected state), and a "start" control. Click Figure 4 the "start" control shown, and a video editing loading animation area as indicated by the label "51" in Figure 5 is displayed. At the same time, a prompt message for prompting "The video editing still needs to run for some time. Do you want to return to the tool home page and run it in the background?" is pop-up displayed. The user can choose "run in the background" or "wait" according to the prompt message.
[0184] Figure 6 is a structural block diagram of a video editing device shown in an embodiment of the present disclosure, as Figure 6As shown in the figure, it includes: an acquisition module 601 for acquiring a video copywriting according to initial video editing data; a determination module 602 for determining a target text effect template according to the video copywriting, where the target text effect template is used to indicate editing operations of at least one text effect; a generation module 603 for generating text materials corresponding to the video copywriting by applying the target text effect template to target keywords in the video copywriting; where the text materials are used to present the target keywords as the at least one text effect; an update module 604 for updating the initial video editing data through the text materials to obtain target video editing data; where the target video editing data is used to present the text materials.
[0185] In some embodiments of the present disclosure, the determination module 602 is specifically configured to identify the target keywords in the video copywriting; determine a category label of the category to which the target keywords belong; determine a text effect editing type matching the category label; and determine the target text effect template from multiple text effect templates included in the text effect editing type.
[0186] In some embodiments of the present disclosure, the determination module 602 is specifically configured to, when the text effect editing type is the first type, determine the target text effect template from multiple text effect templates included in the first type; when the text effect editing type is the second type, determine a category identifier of the category to which the video copywriting belongs; and determine the target text effect template matching the category identifier from multiple text effect templates included in the second type.
[0187] In some embodiments of the present disclosure, the determination module 602 is further configured to, when the text effect editing type is the second type, after determining the category identifier of the category of the video copywriting, when there is no text effect template matching the category identifier in multiple text effect templates included in the second type, determine the first text effect template in the multiple text effect templates included in the second type as the target text effect template.
[0188] In some embodiments of the present disclosure, the determination module 602 is further configured to, after determining the category label of the category to which the target keywords belong, determine that there is a sound effect template matching the category label; and determine the sound effect template as the target text effect template.
[0189] In some embodiments of the present disclosure, the acquisition module 601 is specifically configured to display multiple copywriting effect modes, where the multiple copywriting effect modes include a first copywriting effect mode, and the first copywriting effect mode is used to indicate generating subtitles for keywords of the video copywriting; and in response to a selection operation on the first copywriting effect mode, acquire the video copywriting according to the initial video editing data.
[0190] In some embodiments of the present disclosure, the plurality of copywriting effect modes further include a second copywriting effect mode, which is used to indicate the generation of full subtitles, and the display form of the keywords in the full subtitles is different from the display form of the text other than the keywords; the obtaining module 601 is further configured to, after displaying the plurality of copywriting effect modes, in response to a selection operation on the second copywriting effect mode, obtain video copywriting according to the initial video editing data; generate video subtitles from the video copywriting; the keywords in the video subtitles are displayed in a first display form, and the text other than the keywords in the video subtitles is displayed in a second display form, and the first display form is different from the second display form; synthesize the video subtitles and the initial video editing data into first video editing data.
[0191] In the embodiments of the present disclosure, each module can implement the video editing method provided in the above method embodiments and achieve the same technical effects. To avoid repetition, it will not be elaborated here.
[0192] Figure 7 FIG. is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure, which is used to exemplarily illustrate an electronic device that implements any video editing method in the embodiments of the present disclosure, and should not be construed as a specific limitation to the embodiments of the present disclosure.
[0193] As Figure 7 shown, the electronic device 700 may include a processor (such as a central processing unit, a graphics processing unit, etc.) 701, which can perform various appropriate actions and processes according to a program stored in the read-only memory (ROM) 702 or a program loaded from the storage device 708 into the random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the electronic device 700 are also stored. The processor 701, the ROM 702, and the RAM 703 are connected to each other through a bus 704. The input / output (I / O) interface 705 is also connected to the bus 704.
[0194] Generally, the following devices may be connected to the I / O interface 705: an input device 706 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 707 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 708 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 709. The communication device 709 can allow the electronic device 700 to communicate with other devices wirelessly or wiredly to exchange data. Although the electronic device 700 with various devices is shown, it should be understood that it is not required to implement or have all the shown devices. More or fewer devices may be alternatively implemented or had.
[0195] In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product that includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes program code for performing the methods shown in the flowcharts. In such an embodiment, the computer program can be downloaded and installed from a network via a communication device 709, or installed from a storage device 708, or installed from a ROM 702. When the computer program is executed by a processor 701, it can perform the functions defined in any of the video editing methods provided by embodiments of the present disclosure.
[0196] It should be noted that the computer-readable medium described above in the present disclosure can be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of the computer-readable storage medium can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, the computer-readable storage medium can be any tangible medium that contains or stores a program, and the program can be used by or in combination with an instruction execution system, apparatus, or device. In the present disclosure, a computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium can also be any computer-readable medium other than the computer-readable storage medium, and the computer-readable signal medium can send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted by any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0197] In some embodiments, the client and the server can communicate using any currently known or future-developed network protocol such as HTTP (HyperText Transfer Protocol), and can be interconnected with digital data communication in any form or medium (e.g., a communication network). Examples of communication networks include local area networks ("LANs"), wide area networks ("WANs"), the Internet (e.g., the Internet), and end-to-end networks (e.g., ad hoc end-to-end networks), as well as any currently known or future-developed networks.
[0198] The above computer-readable medium can be included in the above electronic device; it can also exist separately and not be assembled into the electronic device.
[0199] The above computer-readable medium carries one or more programs. When the above one or more programs are executed by the electronic device, the electronic device is caused to: obtain a video copywriting according to initial video editing data; determine a target text effect template according to the video copywriting, where the target text effect template is used to indicate an editing operation of at least one text effect; generate text materials corresponding to the video copywriting by applying the target text effect template to target keywords in the video copywriting; where the text materials are used to present the target keywords as the at least one text effect; update the initial video editing data with the text materials to obtain target video editing data; where the target video editing data is used to present the text materials.
[0200] In the embodiments of the present disclosure, computer program code for performing the operations of the present disclosure can be written in one or more programming languages or combinations thereof. The above programming languages include, but are not limited to, object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the computer, partially on the computer, executed as an independent software package, partially on the computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., by using an Internet service provider to connect through the Internet).
[0201] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, a segment of a program, or a portion of code that contains one or more executable instructions for implementing a specified logical function. It should also be noted that, in some alternative implementations, the functions noted in the blocks may occur in a different order than noted in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, or they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented by a dedicated hardware-based system that performs the specified functions or operations, or by a combination of dedicated hardware and computer instructions.
[0202] The units involved in the embodiments described in the present disclosure can be implemented in software or in hardware. In some cases, the name of the unit does not constitute a limitation on the unit itself.
[0203] The functions described above herein can be performed, at least in part, by one or more hardware logic components. By way of example and not limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on a chip (SOCs), complex programmable logic devices (CPLDs), and the like.
[0204] In the context of the present disclosure, a computer-readable medium may be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. A computer-readable medium may be either a computer-readable signal medium or a computer-readable storage medium. A computer-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of a computer-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0205] The above description is only a preferred embodiment of the present disclosure and an explanation of the applied technical principles. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above technical features, and should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosure concept. For example, the technical solutions formed by mutually replacing the above features with the technical features (but not limited to) having similar functions disclosed in the present disclosure.
[0206] In addition, although the operations are depicted in a particular order, this should not be construed as requiring that the operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although a number of specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features described in the context of separate embodiments may also be implemented in combination in a single embodiment. Conversely, the various features described in the context of a single embodiment may also be implemented separately or in any suitable sub-combination in multiple embodiments.
[0207] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.
Claims
1. A video editing method, characterized in that, The method includes: Obtaining a video copywriting according to initial video editing data; Determining a target text effect template according to the video copywriting, where the target text effect template is used to indicate editing operations for at least one text effect; Generating text materials corresponding to the video copywriting by applying the target text effect template to target keywords in the video copywriting; wherein, the text materials are used to present the target keywords as the at least one text effect; Updating the initial video editing data with the text materials to obtain target video editing data; wherein, the target video editing data is used to present the text materials.
2. The method according to claim 1, wherein The determining the target text effect template according to the video copywriting includes: Identifying the target keywords in the video copywriting; Determining a category label of the category to which the target keywords belong; Determining a text effect editing type that matches the category label; Determining the target text effect template from multiple text effect templates included in the text effect editing type.
3. The method according to claim 2, wherein The determining the target text effect template from multiple text effect templates included in the text effect editing type includes: In the case where the text effect editing type is the first type, determining the target text effect template from multiple text effect templates included in the first type; In the case where the text effect editing type is the second type, determining a category identifier of the category to which the video copywriting belongs; Determining the target text effect template that matches the category identifier from multiple text effect templates included in the second type.
4. The method according to claim 3, wherein After determining the category identifier of the category to which the video copywriting belongs in the case where the text effect editing type is the second type, the method further includes: In the case where there is no text effect template that matches the category identifier among multiple text effect templates included in the second type, determining a first text effect template among multiple text effect templates included in the second type as the target text effect template.
5. The method according to claim 2, wherein After determining the category label of the category to which the target keywords belong, the method further includes: Determining that there is a sound effect template that matches the category label; Determining the sound effect template as the target text effect template.
6. The method according to any one of claims 1 to 5, characterized in that The obtaining a video copywriting according to initial video editing data includes: Displaying multiple copywriting effect modes, where the multiple copywriting effect modes include a first copywriting effect mode, and the first copywriting effect mode is used to indicate generating subtitles for keywords of the video copywriting; In response to a selection operation on the first copywriting effect mode, obtaining a video copywriting according to the initial video editing data.
7. The method according to claim 6, wherein The multiple copywriting effect modes further include a second copywriting effect mode, and the second copywriting effect mode is used to indicate generating full subtitles, and the display form of keywords in the full subtitles is different from the display form of text other than the keywords; After displaying the multiple copywriting effect modes, the method further includes: In response to a selection operation on the second copywriting effect mode, obtaining a video copywriting according to the initial video editing data; Generate video subtitles for the video copy; keywords in the video subtitles are displayed in a first display form, and the text other than the keywords in the video subtitles is displayed in a second display form, and the first display form is different from the second display form; Synthesize the first video editing data from the video subtitles and the initial video editing data.
8. A video editing device, characterized in that, Comprising: An acquisition module, configured to acquire a video copy according to initial video editing data; A determination module, configured to determine a target text effect template according to the video copy, and the target text effect template is used to indicate editing operations of at least one text effect; A generation module, configured to generate text materials corresponding to the video copy by applying the target text effect template to target keywords in the video copy; wherein, the text materials are used to present the target keywords as the at least one text effect; An update module, configured to update the initial video editing data through the text materials to obtain target video editing data; wherein, the target video editing data is used to present the text materials.
9. An electronic device, characterized in that, Comprising: A memory and a processor, the memory is used to store a computer program; The processor is configured to execute the video editing method according to any one of claims 1 to 7 when calling the computer program.
10. A computer-readable storage medium, characterized in that, A computer program is stored thereon, and when the computer program is executed by the processor, the video editing method according to any one of claims 1 to 7 is implemented.