Video editing method, apparatus, device, and medium
By displaying status indicator controls for the editing track area and material track segments on the template publishing interface, users can quickly identify and replace materials, solving the problem of low template generation efficiency in existing technologies and achieving more efficient template publishing.
Patent Information
- Application Number
- CN202310928336.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-26
- Publication Date
- 2026-01-13
- Estimated Expiration
- 2043-07-26
AI Technical Summary
When template creators generate video templates, the existing technology makes the selection of replaceable materials cumbersome, resulting in low template generation efficiency.
This paper provides a video editing method that allows users to directly set status indicator controls for media track segments by displaying an editing track area on the template publishing interface, quickly identify and replace media, and generate the target video template.
It simplifies the process for template creators to select replaceable materials, improves the efficiency of template generation and publishing, and provides a more convenient template publishing interface.
Smart Images

Figure CN119383388B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of multimedia technology, and in particular to a video editing method, apparatus, device and medium. Background Technology
[0002] To enable users to easily and quickly edit videos, some video editing software or websites provide video templates. In many cases, these templates are created and published by template creators. However, the inventors have found through research that, in related technologies, template creators face considerable inconvenience in generating templates, resulting in low template generation efficiency. Summary of the Invention
[0003] To solve the above-mentioned technical problems, or at least partially solve them, this disclosure provides a video editing method, apparatus, device, and medium.
[0004] This disclosure provides a video editing method, the method comprising: displaying a template publishing interface based on a target video draft; wherein the template publishing interface includes an editing track area, the editing track area includes multiple editing tracks, and material track segments formed based on at least a portion of the material from the target video draft are presented on the multiple editing tracks; the target video draft includes material and editing information, the editing information being used to indicate editing operations for the material; in response to a setting operation for a first target track segment in the material track segments, determining replaceable material in the target video draft; and generating a target video template based on the target video draft and the replaceable material; wherein the target video template is used to achieve a video editing effect based on the target video draft by replacing replaceable material with fill material.
[0005] Optionally, a status indicator control is provided on the material track segment; the step of determining the replaceable material in the target video draft in response to a setting operation for a first target track segment in the material track segment includes: in response to a triggering operation for a status indicator control on the first target track segment in the material track segment, determining the current state of the status indicator control on each material track segment, the current state including a replaceable state or a non-replaceable state; and determining the replaceable material in the target video draft based on the second target track segment corresponding to the status indicator control currently in the replaceable state.
[0006] Optionally, the method further includes: when a third target track segment in the material track segment is detected to slide along the time axis, adjusting the position of the status indicator control corresponding to the third target track segment so that the status indicator control corresponding to the third target track segment is located within the viewport corresponding to the third target track segment.
[0007] Optionally, determining the current state of the status indicator control on each of the media track segments in response to a trigger operation on a status indicator control on a first target track segment in the media track segments includes: determining the current state of the status indicator control on each of the media track segments based on the state of the status indicator control on the first target track segment before the trigger operation, in response to a trigger operation on a status indicator control on a first target track segment in the media track segments; wherein the current state of the status indicator control on the first target track segment is different from the state of the status indicator control on the first target track segment before the trigger operation, and the current state of the status indicator control on the non-first target track segments in the media track segments is the same as the state of the status indicator control on the non-first target track segments before the trigger operation.
[0008] Optionally, determining the current state of the status indicator control on each of the media track segments in response to a trigger operation on a status indicator control on a first target track segment in the media track segments includes: determining multiple selected track segments corresponding to the multi-select operation from the media track segments in response to a multi-select operation on the media track segments; determining the current state of the status indicator control on each of the media track segments in response to a trigger operation on a status indicator control on a first target track segment among the multiple selected track segments; wherein the current state of the status indicator control corresponding to each of the multiple selected track segments is consistent and different from the state of the status indicator control on the first target track segment before the trigger operation; the current state of the status indicator control on the non-selected track segments in the media track segments is the same as the state of the status indicator control on the non-selected target track segments before the trigger operation.
[0009] Optionally, the step of displaying the template publishing interface based on the target video draft includes: in response to a trigger operation on the publishing control on the draft editing interface, determining whether the target video draft meets the preset publishing conditions; if so, displaying the template publishing interface based on the target video draft.
[0010] Optionally, the publishing conditions include one or more of the following conditions: all materials in the target video draft have been downloaded; all algorithms involved in the target video draft have been calculated; none of the materials in the target video draft are lost or damaged; the main track corresponding to the target video draft is not empty; and the target video draft does not contain the specified content.
[0011] Optionally, generating a target video template based on the target video draft and the replaceable materials includes: performing a target operation on the replaceable materials in the target video draft to obtain a target video template based on the target video draft after the target operation is performed; wherein the target operation includes: a deletion operation or an addition operation of a replaceable identifier.
[0012] Optionally, the method further includes: in response to receiving a confirmation release instruction from a user for the target video template, releasing the target video template.
[0013] This disclosure also provides a video editing device, including: a publishing interface display module, used to display a template publishing interface based on a target video draft; wherein the template publishing interface includes an editing track area, the editing track area includes multiple editing tracks, and material track segments formed based on at least a portion of the material of the target video draft are presented on the multiple editing tracks; the target video draft includes material and editing operation information corresponding to the material; a replaceable material determination module, used to determine replaceable material in the target video draft in response to a setting operation for a first target track segment in the material track segments; and a template generation module, used to generate a target video template based on the target video draft and the replaceable material; wherein the target video template is used to achieve a video editing effect based on the target video draft by replacing replaceable material with fill material.
[0014] This disclosure also provides an electronic device, comprising: a storage device storing a computer program thereon; and a processing device for executing the computer program in the storage device to implement the steps of the video editing method.
[0015] This disclosure also provides a computer-readable storage medium storing a computer program for performing the video editing method provided in this disclosure.
[0016] The technical solution provided in this disclosure can display a template publishing interface based on a target video draft. This interface includes an editing track area containing multiple editing tracks. Material track segments based on at least a portion of the target video draft are presented on these multiple editing tracks. Furthermore, in response to a setting operation on a first target track segment within these material track segments, replaceable materials in the target video draft can be determined, thereby generating a target video template based on the target video draft and the replaceable materials. This method provides users with a more user-friendly template publishing interface. Users can directly set replaceable materials based on material track segments on multiple editing tracks, which is very convenient and fast, and can significantly improve template generation efficiency.
[0017] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description
[0018] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0019] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0020] Figure 1 A flowchart illustrating a video editing method provided in an embodiment of this disclosure;
[0021] Figure 2 This is a schematic diagram of a draft editing interface provided in an embodiment of the present disclosure;
[0022] Figure 3 This is a schematic diagram of a template publishing interface provided in an embodiment of the present disclosure;
[0023] Figure 4a A schematic diagram illustrating the relative positional relationship between a status indicator control and a video track segment, provided in an embodiment of this disclosure;
[0024] Figure 4b A schematic diagram illustrating the relative positional relationship between a status indicator control and a video track segment, provided in an embodiment of this disclosure;
[0025] Figure 5 This is a schematic diagram of the structure of a video editing device provided in an embodiment of the present disclosure;
[0026] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation
[0027] To better understand the above-mentioned objectives, features, and advantages of this disclosure, the solutions disclosed herein will be further described below. It should be noted that, unless otherwise specified, the embodiments and features described herein can be combined with each other.
[0028] Numerous specific details are set forth in the following description in order to provide a full understanding of this disclosure, but this disclosure may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only some, and not all, of the embodiments of this disclosure.
[0029] In related technologies, template creation is often inconvenient for template creators. For example, most existing video editing software makes it cumbersome and complex for creators to select replaceable materials. Creators find it difficult to easily obtain the materials involved in the template and quickly select replaceable materials. Therefore, the process of selecting replaceable materials usually wastes a lot of time and energy, resulting in low template generation efficiency and consequently, low template publishing efficiency. To improve the above problems, this disclosure provides a video editing method, apparatus, device, and medium, which are described in detail below.
[0030] Figure 1 This is a flowchart illustrating a video editing method provided in an embodiment of the present disclosure. The method can be executed by a video editing device, which can be implemented using software and / or hardware, and is generally integrated into an electronic device. Figure 1 As shown, the method mainly includes the following steps S102 to S106:
[0031] Step S102: Based on the target video draft, display the template publishing interface.
[0032] In practical applications, a template publishing interface can be displayed under certain conditions, allowing users to directly generate the required templates and then publish them. For example, the template publishing interface is displayed when a user (such as a template creator) triggers the control used to display it. In some specific implementation examples, in response to a triggering operation on the publishing control in the draft editing interface, it is determined whether the target video draft meets the preset publishing conditions; if so, the template publishing interface is displayed based on the target video draft. The draft editing interface allows users to edit the target video draft, which includes materials and editing information. The editing information indicates editing operations on the materials, which can be images, videos, audio, text, stickers, effects, etc., without limitation. For ease of understanding, you can first refer to... Figure 2 The diagram illustrates a draft editing interface. The interface includes a preview area, an editing track area, an editing tool area, and a material selection area. The preview area displays the video effects corresponding to the target video draft. The editing track area includes multiple editing tracks; each material in the target video draft can have a corresponding editing track, such as a text track, sticker track, or video track, forming material track segments on those tracks. A single track can have one or more material track segments, such as… Figure 2 The text track is shown as having text track fragment 1 and text track fragment 2. The sticker track simply shows sticker track fragment 1. The video track fragment shows video track fragment 1. The editing tool area has operation controls for various editing tools, such as text editing controls, sticker editing controls, and animation effect controls. The editing tool area can also be divided into one or more sub-areas and distributed in different locations in the draft editing interface; this is not restricted here. The material selection area allows users to directly select the materials they need to add to the target video draft from their local machine or the cloud. Figure 2 For illustrative purposes only, this embodiment does not limit the arrangement of the above-mentioned areas of the draft editing interface, and may even include more areas, such as the attribute area. Figure 2 The above illustration shows a draft editing interface with publishing controls. Other functional controls, such as export controls, can also be set, and are not limited here. To ensure the smooth progress of the template generation and publishing process, and to ensure that the templates published by users meet their needs, in this embodiment, the template publishing interface is only displayed when the target video draft is determined to meet the preset publishing conditions, thus entering the subsequent template publishing process. In this process, a template must first be generated and then published to the designated platform. This embodiment allows users to directly operate on the target video draft on the template publishing interface, such as setting replaceable materials in the target video draft, and generating and publishing templates based on user operations.
[0033] For example, the publishing conditions include one or more of the following: all materials in the target video draft have been downloaded; all algorithms involved in the target video draft have been calculated; none of the materials in the target video draft are lost or damaged; the main track corresponding to the target video draft is not empty; and the target video draft does not contain specified content. This specified content may include materials with a specific purpose, the existence of other templates, or the presence of specified keywords, etc., and is not limited here. Only when the above publishing conditions are met will the template publishing interface be displayed, allowing users to generate and publish the target video template based on it, thereby ensuring the usability of subsequently published templates.
[0034] In some implementations, see Figure 3 The diagram illustrates a template publishing interface. The interface includes a preview playback area and an editing track area. The editing track area contains multiple editing tracks. At least some of the target video draft's materials have corresponding editing tracks within these tracks, and these materials form material track fragments on their corresponding editing tracks. The number of editing tracks in the template publishing interface's editing track area is less than or equal to the number of editing tracks in the draft editing interface's editing track area. Specifically, some materials, such as effects and transitions, are not replaceable by default due to their special nature; therefore, their editing tracks can be directly hidden. In other words, the editing track area of the template publishing interface will not display the editing tracks for such materials. By directly presenting material track fragments on the template publishing interface, users can clearly understand the relationships between different materials, the location of the materials, or the duration of their presentation. Furthermore, users can directly set which materials from the existing materials can be replaced by other users (i.e., replaceable materials) based on the material track fragments.
[0035] Step S104: In response to the setting operation for the first target track segment in the media track segment, determine the replaceable media in the target video draft.
[0036] In this embodiment of the disclosure, users can directly set replaceable materials based on the material track segments presented on the template publishing interface. For example, to facilitate user operation, status indicator controls are provided on the material track segments, allowing users to set replaceable materials. Specifically, each material track segment has a corresponding status indicator control, which has replaceable and non-replaceable states. For example, refer to... Figure 3As shown, the lock icon on each media track segment represents a status indicator control. A locked lock indicates a non-replaceable state, while an unlocked lock indicates a replaceable state. Users can trigger operations on the status indicator controls by clicking the lock icon, thereby changing the state of the control. The media track segment where the user triggers the status indicator control is located is the first target media track segment. There can be one or more first target media track segments; there is no limit. For a given media track segment, if its status indicator control is in a replaceable state, the corresponding media is replaceable; otherwise, it is non-replaceable. By observing the status of the status indicator controls on each media track segment, replaceable media in the target video draft set by the user based on the media track segments can be quickly and reliably determined.
[0037] Step S106: Generate a target video template based on the target video draft and replaceable materials.
[0038] In some implementation examples, target operations can be performed on replaceable materials in the target video draft to obtain a target video template based on the target video draft after the target operations are performed. These target operations include deletion or adding replaceable tags. In other words, the target video template is generated based on a target video draft with replaceable materials deleted, or by adding replaceable tags to replaceable materials in the target video draft. The target video template can be directly used by other users; for example, other users can directly add their own materials to the target video template with removed replaceable materials, or replace the materials with replaceable tags added to the target video template with their own materials.
[0039] For ease of understanding, the target video template is explained in detail below: The target video template is used to achieve a video editing effect where filler material replaces replaceable material based on a target video draft. For example, there are two ways to achieve this effect. The first method involves deleting the replaceable material from the target video draft and using this draft as the target video template. Subsequent users (i.e., template users) upload filler material when using the target video template, resulting in a video draft containing the filler material, thus achieving the video editing effect of replacing replaceable material with filler material. The second method involves adding a replaceable identifier to the replaceable material in the target video draft and using this draft as the target video template. Subsequent users upload filler material when using the target video template, the replaceable material is identified based on the replaceable identifier, and the filler material is directly used to replace the replaceable material, resulting in a video draft containing the filler material, thus achieving the video editing effect of replacing replaceable material with filler material. This resulting video draft can be used to generate the target video after export, and can also be used for further editing by users. The main difference between the resulting video draft obtained by the template user and the target video draft used by the template creator lies in at least some of the materials. The resulting video draft contains filler materials, while the target video draft contains replaceable materials. For example, the target video draft includes material A, material B, and material C, where material A is replaceable material. Deleting or adding a replaceable marker to material A in the target video draft yields the target video template. The template user uploads material a (i.e., filler material) to the target video template, resulting in a resulting video draft including material a, material B, and material C. It should be noted that the editing information of the target video draft and the resulting video draft is the same, that is, the editing method of the materials is consistent. Therefore, the video effect formed by material A, material B, and material C is identical to the video effect formed by material a, material B, and material C, except for the difference between material A and material a, presenting the user with the video editing effect of material a replacing material A.
[0040] Additionally, it should be noted that the template publishing interface also provides users (template creators) with template cover and title settings. Based on the user-defined template cover, title, target video draft, and replaceable materials, it generates the target video template. Furthermore, it offers advanced settings such as whether to retain the original audio, whether to display the user's video in its entirety, and whether to allow intelligent modification of the number of template segments. These are not restricted here and can be flexibly configured according to actual needs.
[0041] In practical applications, after generating the target video template, it can also respond to the user's confirmation and release instruction for the target video template, and release the target video template.
[0042] For example, a confirmation control can be provided to the user. When the user triggers the confirmation control, it can be confirmed that the user's confirmation to publish the target video template has been received. At this time, the target video template can be published, such as to a specified platform.
[0043] In summary, the above methods provide users with a more user-friendly template publishing interface. Users can directly set replaceable materials based on material track segments on multiple editing tracks, which is very convenient and quick, and can significantly improve template generation efficiency, thereby significantly improving template publishing efficiency.
[0044] Based on the provision of status indicator controls on the media track segments, this embodiment of the disclosure provides an implementation method for determining replaceable media in the target video draft in response to a setting operation on a first target track segment in the media track segments. This can be performed with reference to the following steps A and B:
[0045] Step A involves responding to a trigger operation on the status indicator control on the first target track segment within the media track segments, determining the current state of the status indicator controls on each media track segment. The current state includes replaceable and non-replaceable states. In other words, the user can change the state of the status indicator controls through triggering.
[0046] For ease of understanding, this disclosure provides a specific implementation of step A above. Specifically, in response to a trigger operation on a status indicator control on a first target track segment within a media track segment, the current state of the status indicator controls on each media track segment is determined based on the state of the status indicator controls on the first target track segment before the trigger operation. The media track segment where the status indicator control to which the trigger operation is performed is referred to here as the first track segment. The current state of the status indicator controls on the first target track segment differs from the state of the status indicator controls on the first target track segment before the trigger operation, while the current state of the status indicator controls on non-first target track segments within the media track segment is the same as the state of the status indicator controls on non-first target track segments before the trigger operation. Non-first target track segments are those other track segments within the media track segment besides the first target track segment. In the above implementation, the user's trigger operation changes the state of the first track segment, while the states of non-first target track segments remain unchanged. In practical applications, users can directly click on a status indicator control on a specific media track segment to trigger it, thereby changing the control's state. For example, if the status indicator control was in a non-replaceable state before triggering the operation, it will become replaceable after triggering; conversely, if the status indicator control was in a replaceable state before triggering the operation, it will become non-replaceable after triggering. Users can trigger the status indicator control once or multiple times as needed, changing the control's state each time it is triggered. The initial state of the status indicator control can be a preset default state, such as initially being replaceable and then changing to non-replaceable after user triggering.
[0047] To further simplify user operations, in some implementations, users can perform multi-selection operations on media track segments. That is, users can select multiple media track segments simultaneously to set whether the corresponding media can be replaced for multiple media track segments at the same time. Based on this, when performing step A above, the embodiments of this disclosure can determine multiple selected track segments corresponding to the multi-selection operation from the media track segments in response to the multi-selection operation on the media track segments; and determine the current state of the status indicator control on each media track segment in response to the triggering operation on the status indicator control on the first target track segment among the multiple selected track segments. The current state of the status indicator control corresponding to each of the multiple selected track segments is consistent and different from the state of the status indicator control on the first target track segment before the triggering operation. The current state of the status indicator control on the non-selected track segments in the media track segments is the same as the state of the status indicator control on the non-selected target track segments before the triggering operation. The non-selected track segments are those media track segments other than the multiple selected track segments mentioned above, i.e., track segments not selected in the multi-selection operation. It should be noted that the above-mentioned triggering operations all refer to the user's triggering operation on the status indicator control of the first target track segment among multiple selected track segments. The user can first perform a multi-selection operation, simultaneously selecting multiple selected track segments among multiple media track segments, and then only perform a triggering operation on the status indicator control of one of the multiple selected track segments (the first target track segment). In this embodiment, although only the status indicator control of the first target track segment is triggered, the state of the status indicator controls of other selected track segments that are selected at the same time as the first target track segment can be changed simultaneously. Specifically, the state of the status indicator controls of the other selected track segments is consistent with the state of the status indicator control of the first target track segment after the change. In other words, the current state of the status indicator control corresponding to each of the multiple selected track segments is the opposite of the state of the status indicator control of the first target track segment before the triggering operation. In this way, the state of the status indicator controls of multiple media track segments can be set efficiently.
[0048] For example, if a user selects material track segments A, B, and C simultaneously, assuming the status indicator controls for material track segments A and C are in a non-replaceable state, and the status indicator control for material track segment B is in a replaceable state, if the user triggers the status indicator control for material track segment A (i.e., changes the state of the status indicator control for material track segment A), then the status indicator controls for material track segments A, B, and C will all be set to the replaceable state; if the user triggers the status indicator control for material track segment B (i.e., changes the state of the status indicator control for material track segment B), then the status indicator controls for material track segments A, B, and C will all be set to the non-replaceable state.
[0049] Step B involves determining the replaceable material in the target video draft based on the second target track segment corresponding to the status indicator control currently in a replaceable state. In other words, the material corresponding to the track segment of the material currently in a replaceable state (i.e., the second target track segment) is the replaceable material. This method allows for convenient and quick identification of the user-defined replaceable material.
[0050] To facilitate user control of the status indicator control, the method provided in this disclosure further includes: when a third target track segment in a media track segment is detected to be sliding along the time axis, adjusting the position of the status indicator control corresponding to the third target track segment so that the status indicator control corresponding to the third target track segment is located within the viewport corresponding to the third target track segment. In this disclosure, the media track segment sliding along the time axis is called the third target track segment. It should be noted that the track segments mentioned above, such as the first target track segment, the second target track segment, and the third target track segment, can be the same track segment or different track segments, and the number of each can be one or more, without limitation. Understandably, users may slide a certain media track segment (i.e., the third target track segment) along the timeline as needed to quickly view or locate the presentation of a certain media (such as video) at different times. However, this may result in the media track segment not being fully displayed in the window. If the relative position of the status indicator control to the media track segment is fixed, the status indicator control may not appear in the window even as the media track segment slides, making user operation inconvenient. Therefore, in this embodiment, when the sliding of the third target track segment along the timeline is detected, the position of the status indicator control corresponding to the third target track segment can be flexibly adjusted to ensure that the status indicator control is always located in the window corresponding to the third target track segment. This allows the user to always see the status indicator control on the third target track segment and trigger it when needed to conveniently change the status of the status indicator control.
[0051] For easier understanding, please refer to Figure 4a and Figure 4b The diagrams shown illustrate the relative positions of a status indicator control and a video track segment. It can be understood that the video track segment can present multiple thumbnails of the video to the user in chronological order, and these thumbnails can specifically be thumbnails of video keyframes. Figure 4a The status indicator control (lock) is located in the thumbnail. Figure 1 The position of the video track segment will change as it slides along the timeline; for example, the thumbnail within the video track segment's window will also change. Figure 4a As shown, users can simultaneously view thumbnails within the video track clip's window. Figure 1 ~Thumbnail 9, and when the video track clip slides along the timeline, as shown Figure 4b As shown, as time changes, users can simultaneously view thumbnails 7 through 15 in the video track clip window, and the thumbnails... Figure 1 ~abbreviation Figure 6 It will no longer be displayed in the viewport. If the relative position of the video track segment and its corresponding status indicator control remains unchanged, the status indicator control will also be scaled down. Figure 1 The status indicator control is removed from the viewport and becomes invisible. If the user wants to trigger the status indicator control, they need to slide the video track segment backwards, which is cumbersome. Therefore, this embodiment dynamically adjusts the position of the status indicator control corresponding to the media track segment as the media track segment slides along the timeline, ensuring that the status indicator control is always visible when a media track segment exists. Even when sliding the media track segment, the user can easily and quickly trigger the status indicator control as needed, without having to return to find it, thus better ensuring a better user experience.
[0052] In summary, the video editing method provided by this disclosure displays multiple editing tracks directly on the template publishing interface and allows users to directly set replaceable materials based on the material track segments, providing users with great convenience. Users can quickly learn about the current material status and select replaceable materials, which is very convenient and fast, and can significantly improve the efficiency of template generation and publishing.
[0053] Corresponding to the aforementioned method of publishing video templates, Figure 5 This is a schematic diagram of a video editing device provided in an embodiment of the present disclosure. The device can be implemented by software and / or hardware, and is generally integrated into an electronic device, such as... Figure 5 As shown, the video editing device 500 includes:
[0054] The publishing interface display module 502 is used to display a template publishing interface based on a target video draft; wherein, the template publishing interface includes an editing track area, the editing track area contains multiple editing tracks, and material track segments formed based on at least a portion of the material of the target video draft are presented on the multiple editing tracks; the target video draft includes materials and the corresponding editing operation information of the materials;
[0055] Replaceable material determination module 504 is used to determine replaceable material in the target video draft in response to a setting operation for a first target track segment in the material track segment;
[0056] The template generation module 506 is used to generate a target video template based on the target video draft and the replaceable material; wherein, the target video template is used to achieve a video editing effect based on the target video draft by replacing the replaceable material with fill material.
[0057] The aforementioned device provides users with a more user-friendly template publishing interface. Users can directly set replaceable materials based on material track segments on multiple editing tracks, which is very convenient and quick, and can significantly improve template generation efficiency, further contributing to improved template publishing efficiency.
[0058] In some implementations, a status indicator control is provided on the material track segment; the replaceable material determination module 504 is specifically used to: in response to a trigger operation on the status indicator control on the first target track segment in the material track segment, determine the current state of the status indicator control on each material track segment, the current state including a replaceable state or a non-replaceable state; and determine the replaceable material in the target video draft based on the second target track segment corresponding to the status indicator control that is currently in the replaceable state.
[0059] In some embodiments, the device further includes a control position adjustment module, used to adjust the position of the status indicator control corresponding to the third target track segment when the third target track segment is detected to slide along the time axis, so that the status indicator control corresponding to the third target track segment is located within the window corresponding to the third target track segment.
[0060] In some embodiments, the replaceable material determination module 504 is specifically configured to: in response to a trigger operation on a status indicator control on a first target track segment in the material track segments, determine the current state of the status indicator control on each of the material track segments based on the state of the status indicator control on the first target track segment before the trigger operation; wherein the current state of the status indicator control on the first target track segment is different from the state of the status indicator control on the first target track segment before the trigger operation, and the current state of the status indicator control on the non-first target track segments in the material track segments is the same as the state of the status indicator control on the non-first target track segments before the trigger operation.
[0061] In some embodiments, the replaceable material determination module 504 is specifically configured to: in response to a multi-selection operation on the material track segments, determine multiple selected track segments corresponding to the multi-selection operation from the material track segments; in response to a trigger operation on a status indicator control on a first target track segment among the multiple selected track segments, determine the current state of the status indicator control on each of the material track segments; wherein the current state of the status indicator control corresponding to each of the multiple selected track segments is consistent and different from the state of the status indicator control on the first target track segment before the trigger operation; the current state of the status indicator control on the non-selected track segments in the material track segments is the same as the state of the status indicator control on the non-selected target track segment before the trigger operation.
[0062] In some implementations, the publishing interface display module 502 is specifically used to: in response to a trigger operation on the publishing control on the draft editing interface, determine whether the target video draft meets the preset publishing conditions; if so, display the template publishing interface based on the target video draft.
[0063] In some implementations, the publishing conditions include one or more of the following: all materials in the target video draft have been downloaded; all algorithms involved in the target video draft have been calculated; none of the materials in the target video draft have been lost or damaged; the main track corresponding to the target video draft is not empty; and the target video draft does not contain specified content.
[0064] In some implementations, the template generation module 506 is specifically used to: perform a target operation on replaceable materials in the target video draft to obtain a target video template based on the target video draft after the target operation is performed; wherein, the target operation includes: a deletion operation or an addition operation of replaceable identifiers.
[0065] In some embodiments, the apparatus further includes a template publishing module for publishing the target video template in response to receiving a user's confirmation publishing instruction for the target video template.
[0066] The video editing apparatus provided in this disclosure can execute the video editing method provided in any embodiment of this disclosure, and has the corresponding functional modules and beneficial effects of executing the method.
[0067] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the above-described device embodiments can be referred to the corresponding process in the method embodiments, and will not be repeated here.
[0068] This disclosure provides an electronic device, which includes: a storage device storing a computer program thereon; and a processing device for executing the computer program in the storage device to implement the steps of any method of this disclosure.
[0069] The following is for reference. Figure 6 This diagram illustrates a structural schematic of an electronic device 600 suitable for implementing embodiments of the present disclosure. The terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 6 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.
[0070] like Figure 6 As shown, electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processor, etc.) 601, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 602 or a program loaded from storage device 608 into random access memory (RAM) 603. RAM 603 also stores various programs and data required for the operation of electronic device 600. Processing device 601, ROM 602, and RAM 603 are interconnected via bus 604. Input / output (I / O) interface 605 is also connected to bus 604.
[0071] Typically, the following devices can be connected to I / O interface 605: input devices 606 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 607 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 608 including, for example, magnetic tapes, hard disks, etc.; and communication devices 609. Communication device 609 allows electronic device 600 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 6 An electronic device 600 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.
[0072] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 609, or installed from a storage device 608, or installed from a ROM 602. When the computer program is executed by the processing device 601, it performs the functions defined in the methods of embodiments of this disclosure.
[0073] In addition to the methods and devices described above, embodiments of this disclosure can also be computer program products, comprising computer program instructions that, when executed by a processor, cause the processor to perform the video editing methods provided in the embodiments of this disclosure. The computer program product can be written in any combination of one or more programming languages to perform the operations of the embodiments of this disclosure. These programming languages include object-oriented programming languages such as Java and C++, as well as conventional procedural programming languages such as C or similar languages. The program code can be executed entirely on a user's computing device, partially on a user's device, as a standalone software package, partially on a user's computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0074] Furthermore, embodiments of this disclosure may also be computer-readable storage media storing computer program instructions that, when executed by a processor, cause the processor to perform the video editing method provided in embodiments of this disclosure.
[0075] The computer-readable storage medium may be any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may, for example, include, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatuses, or devices, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: electrical connections having one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0076] This disclosure also provides a computer program product, including a computer program / instructions that, when executed by a processor, implement the video editing method of this disclosure.
[0077] It is understood that before using the technical solutions disclosed in the various embodiments of this disclosure, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this disclosure in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.
[0078] For example, upon receiving a user's active request, a prompt message is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the software or hardware, such as the electronic device, application, server, or storage medium performing the operations of this disclosed technical solution, based on the prompt message.
[0079] As an optional but non-limiting implementation, in response to a user's active request, sending a prompt message to the user can be done via a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0080] It is understood that the above notification and user authorization process are merely illustrative and do not constitute a limitation on the implementation of this disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of this disclosure.
[0081] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0082] The above description is merely a specific embodiment of this disclosure, enabling those skilled in the art to understand or implement it. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this disclosure. Therefore, this disclosure is not to be limited to the embodiments described herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A video editing method characterized by, include: Based on the target video draft, a template publishing interface is displayed. This interface includes an editing track area containing multiple editing tracks. On these tracks are material track fragments formed from at least a portion of the material from the target video draft. Each material track fragment has a status indicator control, which can be either replaceable or non-replaceable. The target video draft includes material and editing information, with the editing information indicating editing operations performed on the material. In response to a trigger operation on a status indicator control on a first target track segment in the material track segments, the state of the status indicator control on the first target track segment is changed, and the current state of the status indicator control on each of the material track segments is determined; The material corresponding to the second target track segment is determined as the replaceable material in the target video draft, and the second target track segment is the material track segment corresponding to the status indicator control that is currently in the replaceable state; Based on the target video draft and the replaceable material, a target video template is generated; wherein, the replaceable material is deleted from the target video template, or, the replaceable material in the target video template is marked as replaceable; the target video template is used to achieve the video editing effect of replacing the replaceable material with fill material based on the target video draft.
2. The method of claim 1, wherein, The method further includes: If the third target track segment in the material track segment is detected to be sliding along the time axis, the position of the status indicator control corresponding to the third target track segment is adjusted so that the status indicator control corresponding to the third target track segment is located within the window corresponding to the third target track segment.
3. The method of claim 2, wherein, Determining the current state of the status indicator control on each of the aforementioned material track segments includes: Based on the state of the status indicator control on the first target track segment before the triggering operation, determine the current state of the status indicator control on each of the material track segments; The current state of the status indicator control on the first target track segment is different from the state of the status indicator control on the first target track segment before the triggering operation, while the current state of the status indicator control on the non-first target track segment in the material track segment is the same as the state of the status indicator control on the non-first target track segment before the triggering operation.
4. The method of claim 1, wherein, The step of responding to a trigger operation on a status indicator control on a first target track segment in the material track segments, changing the state of the status indicator control on the first target track segment, and determining the current state of the status indicator controls on each of the material track segments includes: In response to a multi-selection operation on the media track segment, multiple selected track segments corresponding to the multi-selection operation are determined from the media track segments; In response to a trigger operation on a status indicator control on a first target track segment among the plurality of selected track segments, the state of the status indicator control on the plurality of selected track segments is changed, and the current state of the status indicator control on each of the material track segments is determined; The current states of the status indicator controls corresponding to each of the multiple selected track segments are consistent and different from the states of the status indicator controls on the first target track segment before the triggering operation; the current states of the status indicator controls on the non-selected track segments in the material track segments are the same as the states of the status indicator controls on the non-selected track segments before the triggering operation.
5. The method of claim 1, wherein, The steps for displaying the template publishing interface based on the target video draft include: In response to a trigger operation on the publish control in the draft editing interface, determine whether the target video draft meets the preset publish conditions; If so, display the template publishing interface based on the target video draft.
6. The method of claim 5, wherein, The release conditions include one or more of the following: all materials in the target video draft have been downloaded; all algorithms involved in the target video draft have been calculated; none of the materials in the target video draft have been lost or damaged; the main track corresponding to the target video draft is not empty; and the target video draft does not contain the specified content.
7. The method of claim 1, wherein, The process of generating a target video template based on the target video draft and the replaceable materials includes: Perform a target operation on the replaceable material in the target video draft to obtain a target video template based on the target video draft after the target operation is performed; wherein, the target operation includes: a deletion operation or an addition operation of a replaceable identifier.
8. The method according to any one of claims 1 to 7, characterized in that, The method further includes: In response to receiving a confirmation and release instruction from the user for the target video template, the target video template is released.
9. A video editing apparatus characterized by comprising: include: The publishing interface display module is used to display a template publishing interface based on a target video draft. The template publishing interface includes an editing track area containing multiple editing tracks. On these multiple editing tracks are material track segments formed from at least a portion of the material from the target video draft. Each material track segment is equipped with a status indicator control, whose status includes a replaceable state or a non-replaceable state. The target video draft includes materials and corresponding editing operation information. The replaceable material determination module is used to respond to a trigger operation on the status indicator control on the first target track segment in the material track segment, change the state of the status indicator control on the first target track segment, determine the current state of the status indicator control on each of the material track segments; and determine the material corresponding to the second target track segment as replaceable material in the target video draft, wherein the second target track segment is the material track segment corresponding to the status indicator control currently in the replaceable state; The template generation module is used to generate a target video template based on the target video draft and the replaceable material; wherein, the replaceable material is deleted from the target video template, or, the replaceable material in the target video template is marked as replaceable; the target video template is used to achieve a video editing effect based on the target video draft by replacing the replaceable material with fill material.
10. An electronic device, comprising: The electronic device includes: A storage device on which computer programs are stored; A processing device for executing the computer program in the storage device to implement the steps of the video editing method according to any one of claims 1-8.
11. A computer readable storage medium, characterized in that, The storage medium stores a computer program for performing the video editing method according to any one of claims 1-8.
12. A computer program product, characterized in that, It includes a computer program that, when executed by a processor, implements the video editing method according to any one of claims 1-8.
Citation Information
Patent Citations
Video editing method and video editing device
CN113038034A
Video editing method and video editing device
CN113825017A
Cited By
Video editing method and apparatus, and device and medium
WO2025020416A1