Video processing method, device, storage medium and program product
By allowing users to select a video draft template on the editing screen and reuse video material in the original track clip, the method simplifies operations and enhances user experience by eliminating the need for importing and exporting between editing and cutscene tools, thus improving video processing efficiency.
Patent Information
- Application Number
- JP2023578849
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-07-18
- Filing Date
- 2023-12-08
- Publication Date
- 2025-09-17
- Estimated Expiration
- 2043-12-08
AI Technical Summary
Existing video processing methods require users to import and export data between editing and cutscene tools, leading to cumbersome operations and inefficient user experiences.
A video processing method that allows users to select a video draft template on the editing screen and reuse video material in the original track clip, eliminating the need for importing and exporting between editing and cutscene tools, thereby simplifying operations and improving efficiency.
This approach enhances user experience by enabling convenient cutscene operations directly on the editing screen, reducing the complexity of video processing and improving efficiency.
Smart Images

Figure 2025530596000001_ABST
Abstract
Description
[Technical Field]
[0001] TECHNICAL FIELD Embodiments of the present disclosure relate to the field of computer technology, and in particular to a video processing method, device, storage medium and program product. [Background technology]
[0002] The distribution of videos for product promotion and self-expression is becoming a trend. Users are increasingly looking for ways to easily process videos and create interesting videos with rich content.
[0003] In the related art, video processing can be performed using two operation tools: edit and cutsame. Summary of the Invention [Problem to be solved by the invention]
[0004] However, the inventor discovered that the related technology has technical issues, such as the need to import and export data between two operating tools at the same time, which makes the operation cumbersome, inefficient, and affects the user experience. [Means for solving the problem]
[0005] Embodiments of the present disclosure provide a video processing method, device, storage medium, and program product that simplify operations, improve efficiency, and enhance user experience.
[0006] In a first aspect, an embodiment of the present disclosure provides a video processing method, the video processing method including: acquiring, in response to a template editing operation triggered on a video editing screen, a video draft template and source video material indicated by the template editing operation, wherein an editing track is displayed on the video editing screen, and source video track clips formed based on the source video material are displayed on the editing track, the video draft template including editing information indicating at least editing operations on target video material to be filled; filling the source video material into the video draft template to form a target video track clip, the target video track clip for displaying an editing effect of the source video material through an editing process corresponding to the editing operation; and displaying the target video track clip on the editing track.
[0007] In a second aspect, an embodiment of the present disclosure provides a video processing device, the video processing device including: an acquisition module for acquiring, in response to a template editing operation triggered on a video editing screen, a video draft template and source video material indicated by the template editing operation, wherein an editing track is displayed on the video editing screen, and source video track clips formed based on the source video material are displayed on the editing track, the video draft template including editing information indicating at least editing operations on the target video material to be filled; a filling module for filling the source video material into the video draft template to form a target video track clip, the target video track clip for displaying an editing effect obtained on the source video material through an editing process corresponding to the editing operation; and a display module for displaying the target video track clip on the editing track.
[0008] In a third aspect, an embodiment of the present disclosure provides an electronic device, the electronic device comprising: a processor and a memory, the memory storing computer-executable instructions, the processor executing the computer-executable instructions stored in the memory to cause the at least one processor to perform the video processing method according to the first aspect and various possible designs thereof.
[0009] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having stored thereon computer-executable instructions that, when executed by a processor, effect the video processing method according to the first aspect and various possible designs thereof.
[0010] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, the computer program product including a computer program that, when executed by a processor, implements the video processing method according to the first aspect and various possible designs thereof.
[0011] This embodiment provides a video processing method, device, storage medium, and program product. The method includes: acquiring a video draft template and source video material indicated by a template editing operation triggered on a video editing screen, where an editing track is displayed on the video editing screen, and the editing track displays source video track clips formed based on the source video material, the video draft template including editing information indicating at least the editing operation for the target video material; filling the source video material into the video draft template to form a target video track clip, where the target video track clip is used to display the editing effect of the source video material through the editing process corresponding to the editing operation; and displaying the target video track clip on the editing track. The method provided by the embodiment of the present disclosure is simple to operate and can improve video processing efficiency, thereby enhancing the user experience. [Brief explanation of the drawings]
[0012] In order to more clearly describe the technical solutions in the embodiments of the present disclosure or the prior art, the following briefly introduces the necessary drawings used in the description of the embodiments or the prior art. The drawings in the following description are some embodiments of the present disclosure, and it is obvious to those skilled in the art that they can obtain other drawings from these drawings without paying creative labor.
[0013] [Figure 1] 1 is a schematic diagram illustrating an application scenario of a moving image processing method according to an embodiment of the present disclosure.
[0014] [Figure 2] 1 is a flow diagram 1 of a moving image processing method according to an embodiment of the present disclosure.
[0015] [Figure 3a] 1 is a schematic diagram 1 of a video editing screen according to an embodiment of the present disclosure.
[0016] [Figure 3b] 2 is a schematic diagram 2 of a video editing screen according to an embodiment of the present disclosure.
[0017] [Figure 4] 1 is a logical schematic diagram of a target clip insertion module slot location according to an embodiment of the present disclosure.
[0018] [Figure 5] 1 is a logical schematic diagram of a target clip insertion module slot location according to an embodiment of the present disclosure.
[0019] [Figure 6a] 3 is a schematic diagram 3 of a video editing screen according to an embodiment of the present disclosure.
[0020] [Figure 6b] 1 is a schematic diagram 1 of a template editing page according to an embodiment of the present disclosure.
[0021] [Figure 6c] 10 is a schematic diagram 2 of a template editing page according to an embodiment of the present disclosure.
[0022] [Figure 7] FIG. 10 is a schematic diagram of a template track-enabled editing page according to an embodiment of the present disclosure.
[0023] [Figure 8] 2 is a flow diagram 2 of a moving image processing method according to an embodiment of the present disclosure.
[0024] [Figure 9] FIG. 1 is a block diagram illustrating a configuration of a video processing device according to an embodiment of the present disclosure.
[0025] [Figure 10] FIG. 1 is a schematic diagram illustrating a hardware configuration of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE INVENTION
[0026] In order to clarify the objectives, technical solutions and advantages of the embodiments of the present disclosure, the following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. It should be clear that the described embodiments are only some embodiments of the present disclosure, and are not all embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without paying creative labor belong to the protection scope of the present disclosure.
[0027] The distribution of videos for product promotion and self-expression is becoming a trend. Users are increasingly looking for ways to easily process videos and create interesting videos with rich content.
[0028] In related technology, editing and cutscenes are two important operational tools for video processing. Editing involves users adding different tracks, such as audio, text, stickers, and picture-in-picture, to the original video material to ultimately generate a richer and more interesting video draft, which can then be exported and distributed. Cutscenes involves automatically applying the style of a video template (e.g., a video work distributed by others or yourself) to the user's original video material. Typically, a video template contains multiple clips, each with a fixed length. Operations such as text editing, video replacement, and music volume are supported for each clip, and a cutscene draft is generated, exported, and distributed.
[0029] However, these two operating tools are generally two independent functions provided in parallel in video processing software, and if you need to use editing and cutscenes simultaneously, you need to export and import between the two tools. For example, some users first complete the same type of template reuse using the cutscenes tool each day, export the video, and then import the video into the editing tool. The above video processing method is cumbersome, video processing efficiency is low, and it affects the user experience.
[0030] To solve the above-mentioned technical problems, the inventors of the present disclosure have devised and discovered the following: a cut-sequence entry tag may be provided on a video editing screen. A video draft template may be determined using this entry tag, and video material loaded into the original video track clip on the video editing screen may be reused as the video draft template. This allows for efficient and convenient cut-sequence operations on the video editing screen, eliminating the need for importing and exporting between the two tools, Edit and Cut-Sequence, simplifying operations and improving video processing efficiency, thereby improving the user experience. Based on this, an embodiment of the present disclosure provides a video processing method.
[0031] 1 is a schematic diagram illustrating an application scenario of a video processing method according to an embodiment of the present disclosure. As shown in FIG. 1, a terminal device 101 and a server 102 are connected for communication via a network 103. The terminal device 101 may be an electronic device equipped with a display screen, such as a computer, a tablet device, or a smartphone. The network 103 may be a wired communication network, a wireless communication network, or the like.
[0032] In a specific embodiment, a video processing software client is installed on a terminal device. In response to a user's touch operation, the terminal device launches the client and displays a video editing screen. In response to a template editing operation triggered on the video editing screen, a video draft template and source video material indicated by the template editing operation are acquired. An editing track is displayed on the video editing screen, and a source video track clip formed based on the source video material is displayed on the editing track. The video draft template includes editing information indicating at least the editing operation on the target video material to be filled. A target video track clip is formed by filling the source video material into the video draft template. The target video track clip is used to display the editing effect obtained on the source video material through an editing process corresponding to the editing operation. The target video track clip is displayed on the editing track. The video processing method according to an embodiment of the present disclosure determines a video draft template on a video editing screen and reuses video material in an original video track clip as the video draft template, thereby enabling convenient cut-season operations on the video editing screen, eliminating the need for importing and exporting between the two tools of editing and cut-seasoning, simplifying operations and improving the efficiency of video processing, thereby improving the user experience.
[0033] The scenario diagram shown in Figure 1 is just an example. Furthermore, the video processing methods and scenarios described in the examples of the present application are intended to more clearly explain the technical solutions of the examples of the present application, and do not limit the technical solutions of the examples of the present application. Those skilled in the art will understand that with the evolution of systems and the emergence of new business scenarios, the technical solutions of the examples of the present application will be similarly applicable to similar technical issues.
[0034] 2 is a flow diagram 1 of a video processing method according to an embodiment of the present disclosure. The method of this embodiment can be applied to a terminal device. The video processing method includes the following steps:
[0035] In step 201, in response to a template editing operation triggered on a video editing screen, a video draft template and source video material indicated by the template editing operation are acquired. An editing track is presented on the video editing screen. Source video track clips formed based on the source video material are displayed on the editing track. The video draft template includes editing information indicating at least the editing operation for the video material to be filled.
[0036] Specifically, the source video material may be added to an edit track of a multi-track editor on a video editing screen to form a source video track clip. After adding to the edit track, the source video material in the source video track clip may be added, deleted, modified, or otherwise processed, resulting in the source video track clip.
[0037] The original video material may be a video stored in an album of a terminal device, a material collected in a cloud, a material in a material library, etc. The original video material may be one or more video clips or images.
[0038] Specifically, a template entry tag may be provided on the video editing screen, and a template selection screen may be accessed via the entry tag, thereby allowing the user to select a video draft template.
[0039] In one embodiment of the present disclosure, in response to a template editing operation triggered on a video editing screen, obtaining a video draft template indicated by the template editing operation may include: displaying a template panel including a plurality of selectable templates in response to a touch operation acting on a first entry tag on the video editing screen; and selecting a video draft template from the plurality of selectable templates in response to a touch operation acting on the plurality of selectable templates.
[0040] For example, as shown in FIG. 3A, the video editing screen may include, from top to bottom, a preview area 301, a time axis 302, a pointer 303, an original video track clip 304, and a function area 305. The function area 305 at the bottom of the video editing screen may be provided with a plurality of function controls (function 1 to function 4) including a "template" control for displaying a template panel. If function 1 is the "template" control, touching function 1 may display a template panel 306 below the preview area 301, as shown in FIG. 3B. The template panel 306 may include a search box 307, an option area 308 (option 1 to option 4, which may include confirm, clear, template classification, etc.), and a template cover 309. A template topic (not shown) may be displayed below the template cover.
[0041] In one embodiment of the present disclosure, the template panel may be configured to support pull-up and pull-down interactions. Specifically, upon entering the template panel, it may be displayed at a default height, and by pulling up, the template may be pulled up to the top of the preview area and the play bar and export bar may be hidden. If the content in a template category does not exceed one screen, it may be pulled up. When pulling down, the list of templates is pulled down until the first row is presented, and then the panel is pulled down to its default height.
[0042] In one embodiment of the present invention, after the template panel is displayed, a user's favorite templates can be displayed in response to a touch operation on a control corresponding to a favorite item in the template panel (specifically, a method may be provided in which favorite templates can be displayed after a user logs in). A method of adding a template to favorites may be provided in which a template cover displayed in the template panel is touched (for example, a long press on the template cover) to add the template to favorites.
[0043] In one embodiment of the present disclosure, a control corresponding to an entrance to details (hereinafter, "details entrance") may be provided on the template cover (for example, it may be set in the lower right corner of the template cover). In response to a touch operation on the control, a video template corresponding to the template cover may be played. A corresponding control may be provided on the playback screen. In response to a touch operation on the control, the corresponding template may be determined as a video draft template and applied to the video material.
[0044] In one embodiment of the present disclosure, a hot zone may be provided on the template cover, and in response to a touch operation on the hot zone, the corresponding template may be determined as a video draft template and applied to the video material.
[0045] In one embodiment of the present disclosure, after a video draft template is selected in the template panel, the selected video draft template may be cleared and a video draft template may be reselected in response to a touch operation on a control corresponding to a clear item in the template panel.
[0046] At 202, the source video material is filled into the video draft template to form a target video track clip, which is for displaying an editing effect obtained from the source video material through an editing process corresponding to the editing operation.
[0047] Specifically, after a video draft template is selected, the video draft template may be applied to the video footage. Specifically, at least one target clip may be selected from multiple clips in the video footage to fill a template slot position in the video draft template, thereby obtaining a corresponding target video draft. A target video track clip may then be formed based on the target video draft, and the target video track clip may be displayed on the editing track. The current video footage may be a source video track clip, or may be a trimmed version of the source video footage added to the source video track clip.
[0048] In one embodiment of the present disclosure, filling the original video material into the video draft template to form a target video track clip may include filling the original video material into the video draft template to obtain a target video draft, wherein the target video draft includes information of editing operations performed on the original video material, and forming a target video track clip based on the target video draft.
[0049] Specifically, filling a video draft template with source video material may involve first obtaining a video draft containing information about editing operations, and then generating a target video track clip based on the video draft.
[0050] In one embodiment of the present disclosure, forming a target video track clip based on the target video draft may include filling the target video draft to obtain a target video track clip, or performing a synthesis process on the target video draft to obtain corresponding target video material, filling the target video material, and obtaining a target video track clip.
[0051] Specifically, there are various ways to form the target video track clip. In one possible way, a complete video draft can be obtained after the original video material is filled into a video draft template, and the video draft can be determined as the target video track clip. In another possible way, a complete video draft can be obtained after the original video material is filled into a video draft template, and the video draft can be combined into a new video material, and the new video material can be determined as the target video track clip.
[0052] In one embodiment of the present disclosure, in order to improve user flexibility and facilitate the user's incorporation of his or her own subjective aesthetics, the user may be allowed to select from which position the video draft template is applied. Specifically, selecting at least one target clip from the video material may include obtaining a pointer position in the editing track and determining at least one target clip from the source video material according to the pointer position.
[0053] Specifically, after a video draft template is determined, multiple clips of video material may be displayed, and at least one target clip may be selected in response to touch operations on the multiple clips. Alternatively, the target clip may be selected using a pointer on the editing track. The pointer is a preview axis corresponding to the time axis, and the position of the pointer is played back together with the screen in the preview area up to a certain position on the time axis and slid to the corresponding position on the editing track.
[0054] In one embodiment of the present disclosure, for simplifying the operation, determining at least one target clip from the source video material according to the position of the pointer may include determining the clip corresponding to the position of the pointer and subsequent clips in the source video material as the target clips, i.e., by sliding the pointer to the target position, the clips at that position and subsequent clips can be selected as the target clips, which requires only one slide and is simple and fast to operate.
[0055] In the embodiments of the present disclosure, the determined at least one target clip may be inserted into at least one template slot position of the video draft template (the template slot position is used to indicate a fillable position of the video material to be filled in the video draft template) in various ways. First, manual insertion may be adopted to give the user an opportunity to select according to the user's aesthetics. Alternatively, automatic insertion may be used to improve work efficiency. Next, regarding the automatic insertion method, in one possible way, the target clip may be inserted randomly into the template slot position. In another possible way, considering that the priority of each clip in the video material is the result of the user's subjective operation, the insertion may be performed according to the priority of each target clip in the video material to better accommodate the user's aesthetics.
[0056] In one embodiment of the present disclosure, filling the video draft template with the at least one target clip may include inserting the at least one target clip into at least one template slot position of the video draft template in a one-to-one correspondence according to a front-to-back order of the at least one target clip in the source video track clip and a front-to-back order of the at least one template slot position in the video draft template, wherein the template slot position is used to indicate a fillable position of the video material to be filled in the video draft template.
[0057] For example, if the target clip is If a target clip contains three clips, a, b, and c in forward and backward order, and the template slot position contains three clips, A, B, and C in forward and backward order, then a may be inserted into A, b into B, and c into C, thereby achieving one-to-one corresponding insertion between the target clip and the template slot position.
[0058] In one embodiment of the present disclosure, considering that the template slot position may have certain specification requirements for the clip to be inserted, a step of determining a predetermined condition may be added to satisfy the specification requirements for the template slot position. Specifically, inserting at least one target clip into at least one template slot position of the video draft template in one-to-one correspondence according to the forward-backward order of the at least one target clip in the original video track clip and the forward-backward order of the at least one template slot position in the video draft template may specifically include inserting the current target clip to be processed into the current template slot position to be inserted if the current target clip to be processed and the current template slot position to be inserted satisfy the predetermined condition. If the current target clip to be processed and the current template slot position to be inserted satisfy the predetermined condition and a next target clip to be processed exists, the next target clip to be processed is determined as a new current target clip to be processed.
[0059] In one embodiment of the present disclosure, inserting the current target clip into the current template slot position when the current target clip and the current template slot position satisfy a predetermined condition, taking into account a limit on the length of the template slot position, may include obtaining a first length of the current target clip and a second length of the current template slot position, and inserting the current target clip into the current template slot position when the first length is equal to or greater than the second length. Accordingly, determining the next target clip as a new current target clip when the current target clip does not satisfy the predetermined condition corresponding to the current template slot position and a next target clip exists may include determining the next target clip as a new current target clip when the first length is smaller than the second length and a next target clip exists.
[0060] In one embodiment of the present disclosure, taking into consideration that the number of target clips and the number of template slot positions may not match, the method may further include inserting the currently processed target clip into the currently inserted template slot position when there are no remaining target clips or when there are remaining target clips, and if there is no next inserted template slot position, determining a target video draft based on at least one of the completed inserted template slot positions. Specifically, if there is no next inserted template slot position, this indicates that all template slot positions in the video draft template are filled, so each filled template slot position may be determined as a target video draft and added to the original video track clip to be merged with the original track material to obtain new track material. If there is a next inserted template slot position, the next inserted template slot position may be determined as a new currently inserted template slot position.
[0061] In one embodiment of the present disclosure, when the number of target clips is insufficient, inserting at least one target clip into at least one template slot position of the video draft template in one-to-one correspondence according to the anteroposterior order of the at least one target clip in the original video track clip and the anteroposterior order of the at least one template slot position in the video draft template may further include, when the currently-processed target clip does not satisfy a preset condition corresponding to the currently-processed template slot position to be inserted and there is no next target clip to be processed, filling a preset screen in the currently-processed template slot position to be inserted and the remaining template slot positions to be inserted. Illustratively, when the first length is shorter than the second length and there is no next target clip to be processed, determining the next target clip to be processed as a new currently-processed target clip.
[0062] An example of an insertion method based on clip length will be described below with reference to FIGS.
[0063] As shown in Fig. 4, since the number of target clips that satisfy the conditions at the pointer (preview axis) position and thereafter (their length is greater than the length required for the corresponding template slot position) < the number X of template slot positions, target clips that satisfy the conditions are filled into the template slot positions in order of anteroposterior, and unfilled template slot positions may be filled with a preset screen (for example, a screenshot of the first frame of the original template video).As shown in Fig. 5, since the number of target clips that satisfy the conditions at the pointer (preview axis) position and thereafter ≥ the number X of template slot positions, target clips are filled into X template slot positions in order of anteroposterior, and the remaining target clips are not filled.
[0064] In one embodiment of the present disclosure, the template slot positions of the video draft template include a category attribute (different categories may be indicated by different colors, and colored dot marks may be provided at the template slot positions). The same target clip may be filled into template slot positions having the same category. Specifically, in one possible scheme, if the category of the template slot position currently targeted for insertion is the same as that of a first template slot position into which insertion has already been completed, the first target clip inserted into the first template slot position is inserted into the current template slot position, and the next template slot position into which insertion is to be completed is determined as the current template slot position into which insertion is to be completed. In another possible scheme, when inserting a second target clip into the remaining template slot positions into which insertion is currently targeted, it is detected whether a second template slot position whose category is the same as that of the template slot position currently targeted for insertion exists. If a second target clip exists, the second target clip is automatically inserted into the second template slot position at the same time. For example, in template slot positions A, B, and C, if A and C are of the same category and the condition for inserting a into A is met, a may also be inserted into C.
[0065] In one embodiment of the present disclosure, after the target clip is inserted into the template slot position of the video draft template, the generated target video track clip may be edited and the edited target video track clip may be added to the edit track.
[0066] For example, as shown in FIG. 6a, after a preview effect is generated based on FIG. 3b, clicking a play button (not shown) may start playback of a target video track clip in the preview area 301. When template cover 3 (shown in a dotted-line box to the right of cover 2) is selected, template cover 3 displays a "Click to edit" entry in the template selection state, and clicking it enters the template editing page (shown in FIG. 6b). Upon entering the template editing page, playback of the target clip inserted in the template slot position in the preview area 301 may automatically start. The video tab may be set to be positioned by default so that the first template slot position is selected. The slot position may be positioned to follow the clip being played. When a target clip is played, a "Click to edit" entry appears at the slot position corresponding to the target clip.
[0067] Additionally, clips with the same template slot position may be marked with the same colored dot. In the specific editing process for the target clip in each template slot position, clicking the "Click to Edit" button on the original material slot position (the slot position filled with the target clip) shown in Figure 6b displays editing options such as "Replace," "Trim," "Volume" (the image material has no volume), and "More Edits," as shown in Figure 6c. Clicking a slot position not replaced with the original material (the slot position not filled with the target clip) may display only two options: "Replace" and "More Edits." Clicking "Replace" opens the album import page, which supports importing video material whose length is longer than the slot position. The image material may be imported, and clicking the material will fill the template slot position. When confirming the replacement, if there are other clips of the same color that have different imported material, a pop-up will ask whether to replace them. Clicking "Replace" will replace the other clips of the same color with the newly selected material. Click [Crop] to enter the editing page, where you can drag to select the video display area, or select the clip position for the video clip, and click Confirm to activate. Click [Volume] to pull up the "Original Volume of Clip" panel, where you can drag to adjust the volume within the preset range (e.g., 0-100), and click √ to confirm. Click [More Edits] to trigger the draft unlock process.
[0068] When editing template text, click the text on the editing page to display a screenshot of the first frame of the clip to which the text belongs and the text content in chronological order. Click the text to select it, and then click the text again or the edit icon in the text box to bring up the keyboard, displaying the text content and cursor animation. You can then edit or delete the text. Click √ to confirm and dismiss the keyboard. You can also click text in the preview area. Selecting text displays icons for delete, edit, rotate, and identify. Click the text again or the edit icon to bring up the keyboard, displaying the delete and rotate icons on the text. Press and hold the text to move it, or press and hold the rotate icon to zoom in and rotate the text. Click √ to confirm and dismiss the keyboard, and return to the Text tab. Clicking a hot zone outside of the text will deselect the text.
[0069] At 203, the target video track clip is presented on the edit track.
[0070] Specifically, After obtaining the target video track clip, it can be added to the editing track and merged with the video material in the current source video track clip to obtain a video draft, and a template track corresponding to the target video track clip can be generated to complete the operation of dropping the target video draft into the track.
[0071] In one embodiment of the present disclosure, displaying the target video track clip on the editing track may include determining a display position of the target video track clip on the editing track, and displaying the target video track clip at the display position.
[0072] Specifically, the target video track clip may be displayed at any position in the editing track. For example, it may be added to a different position in the source video track clip to achieve a different audio-visual effect. Therefore, the display position may first be determined as needed, and then the target video track clip may be inserted at that display position. That is, it may be incorporated into the video material in the current source video track clip. Also, considering that the target video draft was obtained by filling the target clip into the template slot position using an automatic insertion method, the results obtained by such an automatic pre-filling method may not completely meet the user's expectations, requiring further editing and revision by the user. Therefore, after inserting the target video track clip into the display position, the same clip as the target clip used in the target video track clip may be reserved in the source video track clip for manual deletion by the user after the user has completed editing and revision.
[0073] In one embodiment of the present disclosure, determining the display position of the target video track clip in the editing track may include determining the display position of the target video track clip in the editing track based on the position of a pointer in the editing track.
[0074] Specifically, to easily and quickly determine the display position, the display position may be determined based on the position of the pointer (preview axis) on the editing track. For example, a clip division point in the source video track clip before or after the pointer position may be determined as the display position (for example, if the pointer is on clip 3, the clip division point between clips 2 and 3 or the clip division point between clips 3 and 4 may be determined as the display position). Alternatively, the pointer position may be directly determined as the display position. That is, if the pointer is on a clip between two adjacent division points, the clip may be divided at the pointer position and the target video track clip may be inserted at the division point. For example, if the pointer is at position M on clip 3, trimming is performed at position M to obtain a division point at position M, and the division point is determined as the display position.
[0075] In one embodiment of the present disclosure, determining the display position of the target video track clip on the edit track according to the position of a pointer on the edit track may include determining a clip division point closest to the position of the pointer as the display position of the target video track clip on the source video track clip. For example, when the pointer is at position M on Clip 3, a first distance between a first clip division point between Clip 2 and Clip 3 and position M may be determined, a second distance between a second clip division point between Clip 3 and Clip 4 and position M may be determined, and the magnitudes of the first distance and the second distance may be compared, and the clip division point corresponding to the smaller one may be determined as the display position.
[0076] In one embodiment of the present disclosure, displaying the target video track clip at the display position may include displaying the target video track clip at the display position and deleting source video material in the source video track clip that is the same as the target video track clip.
[0077] Specifically, to improve processing efficiency, since the target clips added to the target video draft also exist in the current track material, the duplicate clips may be deleted when the target video track clip is added to the edit track. Of course, considering whether the target video draft satisfies the user, the target video draft may be deleted with a single touch after the user confirms that they are satisfied with the target video draft. Alternatively, when the target video draft is added to the original video track clip, the duplicate clips may be deleted and then stored in the storage space. If it is determined that the current target video draft does not meet the user's requirements, the duplicate clips stored in the storage space may be restored.
[0078] In one embodiment of the present disclosure, after step 203, the method may further include: displaying a template editing screen including at least one operation option corresponding to the target video track clip in response to a touch operation on a second entry tag on the video editing screen; editing the target video track clip using the at least one operation option; and obtaining an edited target track edited clip.
[0079] Specifically, after adding the target video track clip to the editing track, selecting the template track on the video editing interface may display multiple operation options, and based on the operation options, perform operations related to the target video draft after adding the source video track clip, such as replacing the template, editing, unlocking the draft, deleting, volume, etc.
[0080] In one embodiment of the present disclosure, the operation options include a replacement template item, and operating the target video track clip through the at least one operation option to edit the target video track clip and obtain an edited target track edited clip may include: displaying a template panel including a plurality of replacement templates in response to a touch operation on a function tag corresponding to the replacement template item; and selecting a target replacement template in response to a touch operation on the plurality of replacement templates, filling the source video material into the target replacement template, and obtaining an edited target video track clip.
[0081] For example, the method of dropping the target video draft onto the track and the editing operation after dropping onto the track will be described below with reference to FIG.
[0082] In a specific embodiment, click the upper left corner of the template editing page (as shown in Figure 6b) to return (not shown), return to the editing project (as shown in Figure 6a), click the √ on the template panel, the panel will disappear, and the generated target video draft will be inserted at the division point close to the preview axis, retaining the target clip filled in the template and automatically moving back.
[0083] After selecting a template track in the screen shown in Figure 3a, the bottom toolbar displays [Replace Template], [Edit], [Unlock], [Delete], and [Volume], as shown in Figure 7. Clicking [Replace Template] will open the template panel, hiding the material package tab. Clicking the template cover will automatically fill in the selected material in the original template, and a preview will be automatically generated. Clicking Edit again will enter the template editing page. Click the √ in the template panel to confirm. The new template will replace the old template and be added to the track. At this time, the other tracks (text, stickers, audio, effects, etc.) below the original template track will remain untouched. Clicking [Edit] will enter the template editing page. Clicking [Unlock] will enter the draft unlock process. Clicking [Delete] will delete the template track and all editing tracks (text, stickers, audio, effects, etc.) below it. Clicking [Volume] will open the volume adjustment panel, where you can adjust the volume of the entire template track using a slider bar with a preset range (e.g., 0-100).
[0084] In one embodiment of the present disclosure, there are different undo and redo logic for different scenes.
[0085] Specifically, to add or replace a template, select a template in the Template panel and click Edit. Then, enter the edit page, return to the Template panel, click √, and confirm that the template has been added to the track. The operation is complete. After adding a template to a track, clicking Undo will delete the template, displaying "Undo: New Template." Clicking Redo will restore the template, displaying "Undo: New Template." To edit a template after adding it to a track, select the template track and click "Edit" in the menu bar. Then, enter the edit page and return to the main project. Clicking Undo will restore the state before editing, with the template still present, displaying "Undo: Template Edit." Clicking Redo will undo the template edit, displaying "Undo: Template Edit." After unlocking a template, clicking Undo will restore the template to a composite clip, displaying "Undo: Template Unlock." Clicking Redo will disperse the template, displaying "Undo: Template Unlock." After deleting a template, clicking Undo will undo the template, displaying "Undo: Delete." If you click Redo, the template will be deleted and "Restore: Delete" will be displayed. Click √ to confirm template volume adjustments. Clicking Undo will return the volume to before adjustment and "Volume: xx (volume before adjustment)" will be displayed. Clicking Redo will return the volume to the adjusted version and "Volume: xx (volume after adjustment)" will be displayed. On the template independent editing page, Undo and Redo will be grayed out each time you enter, and Undo will become available after the editing operation has occurred. Additionally, the logic and wording for Undo and Redo will be aligned with cut-and-paste editing.
[0086] In one embodiment of the present disclosure, a template search may be performed by entering a keyword in a search box in the template panel. Specifically, clicking the search box automatically lifts the keyboard and displays a cursor animation in the search box. Clicking the cancel button returns to the template panel. After entering content in the input box, an X appears on the right side. Clicking the X allows the user to clear the entered content and / or search results. While entering content in the input box, associated words may be displayed, and words that match the entered content may be highlighted among the associated words. In this case, clicking the associated word automatically enters the associated word in the input box and initiates a search. After entering content, a [Search] button appears in the lower right corner of the keyboard. Clicking this button triggers a search, and the button may be set to a loading state during the search. The search results may be configured to support filtering, such as default sorting, material type, number of clips, template length, material ratio, and type. Clicking Reset selects only [Default sorting] and clears all other filtering items. The selection is cleared. When you click Confirm, the loading state begins and the refinement button is selected. If there are no search results, a message such as "There are no matching templates. Why not try changing your search terms?" may be displayed.
[0087] As can be seen from the above explanation, by selecting a video draft template on the video editing screen and using the video material in the original video track clip as the video draft template, it is possible to conveniently perform cutscene operations on the video editing screen without importing and exporting between the two tools, editing and cutscenes, which simplifies the operation and improves the efficiency of video processing, thereby improving the user experience.
[0088] Referring to Figure 8, Figure 8 is a flow diagram 2 of a video processing method according to an embodiment of the present disclosure. In this embodiment, a synchronization method when a video draft created in a higher version application is opened in a lower version application will be described in detail. The video processing method includes the following steps:
[0089] In step 801, in response to a template editing operation triggered on a video editing screen, a video draft template and source video material indicated by the template editing operation are acquired. An editing track is displayed on the video editing screen. Source video track clips formed based on the source video material are displayed on the editing track. The video draft template includes editing information indicating at least the editing operation for the video material to be filled.
[0090] In 802, the source video material is filled into the video draft template to form a target video track clip, which is for presenting an editing effect obtained by editing the source video material through an editing process corresponding to the editing operation.
[0091] At 803, the target video track clip is displayed on the edit track.
[0092] Steps 801 to 803 in the embodiment of the present disclosure are similar to steps 201 to 203 in the above embodiment, and will not be described here.
[0093] At 804, the target video track clip is stored in a cloud and a corresponding cloud draft is obtained, the cloud draft including editing information corresponding to the target video track clip.
[0094] At 805, when the cloud draft is opened in an application with a version lower than the preset version, the cloud draft is displayed as a video clip obtained after deleting editing information corresponding to the target video track clip in the cloud draft.
[0095] Specifically, video drafts may be stored in a cloud space to enable editing of the video drafts on different devices. This allows different devices (e.g., computers, mobile phones, tablets) to access the cloud space, retrieve the video drafts, and further process the video drafts. However, if the hardware configurations of different devices are different or the versions of client applications are different, some functions may not be supported when a cloud draft is opened in a lower version of the application. For cloud drafts containing target video track clips, the operation information corresponding to the target video track clip, i.e., the editing information of the template track, may not be supported when the cloud draft is opened in a lower version of the application. Therefore, the operation information related to the target video track clip in the cloud draft may be deleted, and a video clip corresponding to the cloud draft, i.e., a composite clip, may be obtained.
[0096] For example, the following method may be used for cloud synchronization of lower versions: If a draft contains an unlocked template clip, the cloud draft may be uploaded and then downloaded in the lower version, with the template clips presented as a single composite clip. Here, a watermark may be added to clips that have not been replaced with the user's material (target clip). For clips in an unlocked template that have not been replaced with the user's material, the draft cloud synchronization may be opened in the lower version and a watermark may also be added. For drafts that contain target video track clips, i.e., cutscenes (templates and / or unlocked drafts), downgrading to a version that does not support composite clips may be prevented, and an upgrade may be recommended during download. For example, the following pop-up message may be used: Title: Software upgrade required. Body: The draft version is new. Upgrade to the latest version to open the draft. Controls: An "Update Now" button at the bottom. Clicking this closes the pop-up.
[0097] As can be seen from the above description, to achieve cloud synchronization, when a cloud draft is opened in a lower version application, the target video track clips may be displayed as a composite clip, which can facilitate users to view and edit cloud drafts on different devices.
[0098] Corresponding to the video processing method of the above embodiment, FIG. 9 is a block diagram of a video processing device according to an embodiment of the present disclosure. For ease of explanation, only parts relevant to the embodiment of the present disclosure are shown. Referring to FIG. 9, the device 90 includes an acquisition module 901, a filling module 902, and a display module 903.
[0099] The acquisition module 901 is used to acquire a video draft template and source video material indicated by a template editing operation triggered on a video editing screen. An editing track is displayed on the video editing screen. Source video track clips formed based on the source video material are displayed on the editing track. The video draft template includes editing information indicating at least the editing operation for the video material to be filled.
[0100] The filling module 902 is used to fill the video material into the video draft template to form a target video track clip, which is for presenting the editing effect that the source video material has obtained through an editing process corresponding to the editing operation.
[0101] A display module 903 is used to present the target video track clip on the editing track.
[0102] In one embodiment of the present disclosure, the acquisition module 901 is specifically used for: displaying a template panel including a plurality of selectable templates in response to a touch operation on a first entry tag on a video editing screen; and selecting a video draft template from the plurality of selectable templates in response to a touch operation acting on the plurality of selectable templates.
[0103] In one embodiment of the present disclosure, the filling module 902 is specifically used for filling the original video material into the video draft template to obtain a target video draft, the target video draft including editing operation information performed on the original video material, and forming a target video track clip based on the target video draft.
[0104] In one embodiment of the present disclosure, the filling module 902 is specifically used for filling the target video draft and obtaining a target video track clip, or for compositing the target video draft, obtaining corresponding target video material, filling the target video material, and obtaining a target video track clip.
[0105] In one embodiment of the present disclosure, the filling module 902 is specifically used for obtaining a pointer position in the editing track, determining at least one target clip from the original video material according to the pointer position, and filling the at least one target clip into the video draft template to obtain a target video draft.
[0106] In one embodiment of the present disclosure, the fill module 902 is specifically used for determining the clip corresponding to the position of the pointer and any subsequent clips in the source video material as target clips.
[0107] In one embodiment of the present disclosure, the filling module 902 is specifically used for inserting at least one target clip into at least one template slot position of the video draft template in a one-to-one correspondence according to the front-to-back order of the at least one target clip in the original video track clip and the front-to-back order of the at least one template slot position in the video draft template.
[0108] In one embodiment of the present disclosure, the filling module 902 is specifically used for: inserting the target clip currently being processed into the template slot position of the current insertion target when the target clip currently being processed satisfies the preset condition corresponding to the template slot position of the current insertion target; and determining the next target clip to be processed as a new current target clip to be processed when the target clip currently being processed does not satisfy the preset condition corresponding to the template slot position of the current insertion target and a next target clip to be processed exists.
[0109] In one embodiment of the present disclosure, the filling module 902 is specifically used for obtaining a first length of a target clip currently to be processed and a second length of a template slot position currently to be inserted, and inserting the target clip currently to be processed into the template slot position currently to be inserted if the first length is equal to or greater than the second length. Accordingly, when the target clip currently to be processed does not satisfy a preset condition corresponding to the template slot position currently to be inserted and a next target clip to be processed exists, determining the next target clip to be processed as a new current target clip to be processed includes when the first length is smaller than the second length and a next target clip to be processed exists.
[0110] In one embodiment of the present disclosure, the filling module 902 is specifically used for determining a target video draft according to at least one template slot position that has been completed for insertion when there is no next template slot position to be inserted.
[0111] In one embodiment of the present disclosure, the filling module 902 is specifically used to fill a preset screen into the template slot position to be currently inserted and the remaining template slot positions to be inserted when the target clip currently to be processed does not satisfy the preset condition corresponding to the template slot position to be currently inserted and there is no target clip to be next processed.
[0112] In one embodiment of the present disclosure, the display module 903 is specifically used for determining a display position of the target video track clip in the editing track, and presenting the target video track clip at the display position.
[0113] In one embodiment of the present disclosure The display module 903 is specifically used for determining the display position of the target video track clip on the editing track according to the position of the pointer on the editing track.
[0114] In one embodiment of the present disclosure, the display module 903 is specifically used for determining the clip division point that is closest to the position of the pointer as the display position of the target video track clip in the source video track clip.
[0115] In one embodiment of the present disclosure, the display module 903 is specifically used for presenting the target video track clip at the display position, and deleting the same source video material as the target video track clip in the source video track clip.
[0116] In one embodiment of the present disclosure, the device 90 further includes an editing module (not shown), which is used to add the target video draft to the original video track clip to obtain a target material, and display a template editing screen including at least one operation option corresponding to the target video track clip in response to a touch operation acting on a second entry tag on a video editing screen, and edit and operate the target video track clip according to the at least one operation option to obtain an edited target track edited clip.
[0117] In one embodiment of the present disclosure, the editing module is specifically used for: displaying a template panel including multiple templates to be replaced in response to a touch operation on a function tag corresponding to the replacement template item; and selecting a target replacement template in response to a touch operation on the multiple templates to be replaced, filling the source video material into the target replacement template, and obtaining an edited target video track clip.
[0118] In one embodiment of the present disclosure, the device 90 further includes a cloud module (not shown), which is used for storing the target video track clip in a cloud, obtaining a corresponding cloud draft including editing information corresponding to the target video track clip, and displaying the cloud draft as a video clip obtained after deleting the editing information corresponding to the target video track clip in the cloud draft when the cloud draft is opened in an application with a version lower than a preset version.
[0119] The device according to this embodiment may be used to implement the technical solutions of the above method embodiments, and the implementation principles and technical effects are similar, so this embodiment will not be described here.
[0120] To realize the above embodiment, the embodiment of the present disclosure further provides an electronic device.
[0121] Referring to FIG. 10 , a schematic diagram of an electronic device 100 suitable for implementing an embodiment of the present disclosure is shown. The electronic device 100 may be a terminal device or a server. Terminal devices may include, but are not limited to, mobile devices such as mobile phones, laptops, digital broadcast receivers, personal digital assistants (abbreviated as PDAs), tablets (Portable Android Devices (abbreviated as PADs), portable media players (abbreviated as PMPs), and in-car devices (e.g., car navigation devices), as well as fixed devices such as digital TVs and desktop computers. The electronic device shown in FIG. 10 is merely an example and does not limit the functionality and scope of use of the embodiment of the present disclosure.
[0122] 10, the electronic device 100 may include a processing unit (e.g., a central processor, a graphics processor, etc.) 1001 that can perform various appropriate operations and processes in accordance with a program stored in a read only memory (ROM) 1002 or loaded from a storage device 1008 into a random access memory (RAM) 1003. The RAM 1003 also stores various programs and data necessary for the operation of the electronic device 100. The processing unit 1001, the ROM 1002, and the RAM 1003 are connected to one another via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.
[0123] Typically, input devices 1006, including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 1007, including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; storage devices 1008, including, for example, a magnetic tape, hard disk, etc.; and communication devices 1009 may be connected to the I / O interface 1005. The communication devices 1009 may allow the electronic device 100 to communicate wirelessly or via wires with other devices to exchange data. While FIG. 10 illustrates the electronic device 100 having various devices, it should be understood that it is not necessary to implement or include all of the devices shown. More or fewer devices may alternatively be implemented or included.
[0124] In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product including a computer program stored on a computer-readable medium. The computer program includes program code for executing the methods illustrated in the flowcharts. In such embodiments, the computer program may be downloaded and installed from a network via the communication device 1009, installed from the storage device 1008, or installed from the ROM 1002. When the computer program is executed by the processing device 1001, the functions defined by the methods according to the embodiments of the present disclosure are performed.
[0125] It should be noted that the computer-readable medium of the present disclosure may be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection having 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 memory device, a magnetic memory device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in combination with an instruction execution system, apparatus, or device. In the present disclosure, a computer-readable signal medium includes a data signal propagated in baseband or as part of a carrier wave, and may be carrying computer-readable program code. Such propagated data signals may take various forms. Examples include, but are not limited to, electromagnetic signals, optical signals, or any suitable combination of the above. Furthermore, a computer-readable signal medium may be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. Program code included in a computer-readable medium may be transmitted by any suitable medium. Examples include, but are not limited to, wire, optical cable, RF (radio frequency), etc., or any suitable combination of the above.
[0126] The computer-readable medium may be included in the electronic device, or may exist separately from the electronic device.
[0127] The computer-readable medium may carry one or more programs that, when executed by the electronic device, cause the electronic device to perform the methods illustrated in the above embodiments.
[0128] Computer program code for carrying out the operations of the present disclosure may be written in one or more programming languages, or a combination thereof. Such programming languages include object-oriented programming languages such as Java, Smalltalk, C++, etc., as well as traditional procedural programming languages such as "C" or similar programming languages. The program code may run entirely on the user computer, partially on the user computer, as a separate software package, partially on the user computer and partially on a remote computer, or entirely on a remote computer or server. In situations involving remote computers, the remote computer may be connected to the user computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0129] The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowcharts or block diagrams may represent a module, program segment, or portion of code, including one or more executable instructions for implementing a given 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 that shown in the figures. For example, two blocks shown in succession may actually be executed substantially in parallel or may be executed in the reverse order depending on the functionality 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, may be implemented in a dedicated hardware-based system that performs a given function or operation, or in a combination of dedicated hardware and computer instructions.
[0130] The units according to the described embodiments of the present disclosure may be implemented in software or hardware. The names of the units may not necessarily be limitations on the units themselves. For example, a first acquisition unit may be described as "a unit for acquiring at least two Internet Protocol addresses."
[0131] The functionality described hereinabove is realized, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), etc.
[0132] In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain or store a program used by or in combination with an instruction execution system, apparatus, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination thereof. More specific examples of machine-readable storage media include one or more wire-based electrical connections, 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 memory device, a magnetic memory device, or any suitable combination thereof.
[0133] The above description merely describes preferred embodiments and applied technical principles of the present disclosure. Those skilled in the art will understand that the scope of the present disclosure is not limited to a technical solution consisting of a specific combination of the above technical features. Furthermore, it should also encompass other technical solutions consisting of any combination of the above technical features or their equivalent features without departing from the concept of the above disclosure. Such other technical solutions include, for example, technical solutions formed by mutually replacing the above features with technical features having functions similar to those disclosed in the present disclosure (but not limited to these).
[0134] Additionally, although operations are depicted in a particular order, it should not be understood that these operations need to be performed in the particular order shown, or sequentially. In certain environments, multitasking or parallel processing may be advantageous. Similarly, although several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Some features that are described in the context of separate embodiments may also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment may also be implemented in multiple embodiments separately or in any suitable subcombination.
[0135] Although the present 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 processing method comprising: acquiring a video draft template and source video material indicated by a template editing operation triggered on a video editing screen, the video editing screen displaying an editing track, the editing track displaying source video track clips formed based on the source video material, the video draft template including editing information indicating at least an editing operation on the source video material to be filled; filling the source video material into the video draft template, the target video track clip being used to display an editing effect obtained by editing the source video material through an editing process corresponding to the editing operation; and displaying the target video track clip on the editing track.
2. 2. The method of claim 1, wherein obtaining a video draft template indicated by a template editing operation triggered on a video editing screen comprises: displaying a template panel including a plurality of selectable templates in response to a touch operation on a first entry tag on the video editing screen; and selecting a video draft template from the plurality of selectable templates in response to a touch operation on the plurality of selectable templates.
3. 2. The method of claim 1, wherein forming a target video track clip by filling the original video material into the video draft template comprises: filling the original video material into the video draft template to obtain a target video draft including information of editing operations to be performed on the original video material; and forming a target video track clip based on the target video draft.
4. 4. The method of claim 3, wherein forming a target video track clip based on the target video draft includes filling the target video draft to obtain a target video track clip, or compositing the target video draft to obtain corresponding target video material and filling the target video material to obtain a target video track clip.
5. 4. The method of claim 3, wherein filling the source video material into the video draft template to obtain a target video draft includes: obtaining a pointer position in the editing track; determining at least one target clip from the source video material according to the pointer position; and filling the at least one target clip into the video draft template to obtain a target video draft.
6. The method of claim 5, wherein determining at least one target clip from the original video material based on the position of the pointer includes determining a clip in the original video material that is subsequent to the clip corresponding to the position of the pointer as the target clip.
7. 6. The method of claim 5, wherein filling the video draft template with the at least one target clip comprises inserting the at least one target clip into at least one template slot position of the video draft template in one-to-one correspondence according to a front-to-back order of the at least one target clip in the source video track clip and a front-to-back order of the at least one template slot position in the video draft template, wherein the template slot position is used to indicate a fillable position in the video draft template for video material to be filled.
8. 8. The method of claim 7, wherein inserting at least one of the target clips into at least one template slot position of the video draft template in one-to-one correspondence according to the anteroposterior order of the at least one target clip in the source video track clip and the anteroposterior order of the at least one template slot position in the video draft template comprises: if the current target clip to be processed satisfies a preset condition corresponding to the template slot position to be currently inserted, inserting the current target clip to be processed into the template slot position to be currently inserted; and if the current target clip to be processed does not satisfy the preset condition corresponding to the template slot position to be currently inserted and a next target clip to be processed exists, determining the next target clip to be processed as a new current target clip to be processed.
9. 9. The method of claim 8, wherein, when a current target clip to be processed and a current template slot position to be inserted satisfy a predetermined condition, inserting the current target clip to be processed into the current template slot position to be inserted comprises: obtaining a first length of the current target clip to be processed and a second length of the current template slot position to be inserted; and, when the first length is equal to or greater than the second length, inserting the current target clip to be processed into the current template slot position to be inserted; and correspondingly, when the current target clip to be processed does not satisfy the predetermined condition corresponding to the current template slot position to be inserted and a next target clip to be processed exists, determining the next target clip to be processed as a new current target clip to be processed when the first length is smaller than the second length and a next target clip to be processed exists.
10. The method of claim 8, further comprising, when there is no next template slot position to be inserted after inserting the currently processed target clip into the currently inserted template slot position, determining a target video draft based on at least one of the template slot positions into which insertion has been completed.
11. 9. The method of claim 8, wherein inserting at least one target clip into at least one template slot position of the video draft template in one-to-one correspondence according to the anteroposterior order of the at least one target clip in the source video track clip and the anteroposterior order of the at least one template slot position in the video draft template comprises, when the currently processed target clip does not satisfy a preset condition corresponding to the currently inserted template slot position and there is no next target clip to be processed, filling a preset screen in the currently inserted template slot position and the remaining inserted template slot positions.
12. 12. The method of claim 1, wherein displaying the target video track clip on the editing track comprises determining a display position of the target video track clip on the editing track and displaying the target video track clip at the display position.
13. 13. The method of claim 12, wherein determining the display position of the target video track clip on the editing track comprises determining the display position of the target video track clip on the editing track according to a position of a pointer on the editing track.
14. 14. The method of claim 13, wherein determining the display position of the target video track clip in the editing track based on the position of a pointer in the editing track includes determining a clip division point that is closest to the position of the pointer as the display position of the target video track clip in the source video track clip.
15. 13. The method of claim 12, wherein displaying the target video track clip at the display position includes displaying the target video track clip at the display position and deleting source video material in the source video track clip that is the same as the target video track clip.
16. The method according to any one of claims 1 to 11, characterized in that after displaying the target video track clip on the editing track, a template editing screen including at least one operation option corresponding to the target video track clip is displayed in response to a touch operation on a second entry tag on a video editing screen, and editing the target video track clip using the at least one operation option to obtain an edited target track edited clip.
17. 17. The method of claim 16, wherein the operation options include a replacement template item, and operating the target video track clip through the at least one operation option to edit the target video track clip and obtain an edited target track edited clip includes: displaying a template panel including a plurality of replacement templates in response to a touch operation on a function tag corresponding to the replacement template item; selecting a target replacement template in response to a touch operation on the plurality of replacement templates, filling the source video material into the target replacement template, and obtaining an edited target video track clip.
18. The method of any one of claims 1 to 11, further comprising: after displaying the target video track clip on the editing track, storing the target video track clip in a cloud and obtaining a corresponding cloud draft including editing information corresponding to the target video track clip; and when opening the cloud draft in an application with a version lower than a preset version, displaying the cloud draft as a video clip obtained after deleting the editing information corresponding to the target video track clip in the cloud draft.
19. a filling module for filling the source video material into the video draft template, the filling module being used to display an editing effect obtained by editing the source video material through an editing process corresponding to the editing operation; and a display module for displaying the target video track clip on the editing track.
20. An electronic device comprising a processor and a memory, wherein the memory stores computer-executable instructions, and the processor executes the video processing method according to any one of claims 1 to 18 by executing the computer-executable instructions stored in the memory.
21. A computer-readable storage medium having stored thereon computer-executable instructions, the computer-executable instructions being executed by a processor to implement the video processing method of any one of claims 1 to 18.
22. A computer program product comprising a computer program, the computer program implementing the video processing method according to any one of claims 1 to 18 when the computer program is executed by a processor.
Citation Information
Patent Citations
Video editing method and device
CN114268748A
Image display method, image processing apparatus, program and recording medium
JP2005354664A
Video editing method, apparatus, and device, and storage medium
US20210264952A1