Video processing method and device, storage medium and program product
By setting the same entry label in the video editing interface and applying a video draft template, the tedious problem of users introduced between editing and cutting the same tools, and achieved more efficient video processing and improved user experience.
Patent Information
- Application Number
- CN202310883748.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-18
- Publication Date
- 2025-01-21
AI Technical Summary
In the prior art, users need to import and export between the two operating tools of editing and cutting, which are cumbersome, low efficiency, and affect user experience.
Set the entry tag for cutting the same style in the video editing interface, determine the video draft template through the entry tag, and apply the video draft template to the video material in the original video track clip, so that the same style cutting operation can be performed in the video editing interface without the need for Import and export.
Simplified video processing operations, improved the efficiency of video processing, and improved the user experience.
Smart Images

Figure CN119342276A_ABST
Abstract
Description
Technical Field
[0001] The 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 Art
[0002] It is becoming more and more popular to promote products or show self-advocacy through releasing videos. Users are also increasingly demanding how to process videos quickly and easily to produce videos with rich and interesting content.
[0003] In the related art, video processing can be performed through two operating tools: clipping and editing.
[0004] However, the inventors have discovered that there are at least the following technical problems in the related art: when two operating tools are used at the same time, it is necessary to import and export between the two tools, which is cumbersome and inefficient, affecting the user experience. Summary of the invention
[0005] The embodiments of the present disclosure provide a video processing method, device, storage medium and program product to simplify operation, improve efficiency and enhance user experience.
[0006] In a first aspect, an embodiment of the present disclosure provides a video processing method, including:
[0007] In response to a template editing operation triggered on a video editing interface, a video draft template and an original video material indicated by the template editing operation are obtained; wherein an editing track is presented on the video editing interface, and an original video track segment formed based on the original video material is presented on the editing track, and the video draft template includes at least editing information, and the editing information is used to indicate an editing operation for the video material to be filled;
[0008] By filling the original video material into the video draft template, a target video track segment is formed; wherein the target video track segment is used to present the editing effect obtained by the editing process corresponding to the editing operation on the original video material;
[0009] The target video track segment is presented on the editing track.
[0010] In a second aspect, an embodiment of the present disclosure provides a video processing device, including:
[0011] an acquisition module, configured to, in response to a template editing operation triggered on a video editing interface, acquire a video draft template and an original video material indicated by the template editing operation; wherein an editing track is presented on the video editing interface, and an original video track segment formed based on the original video material is presented on the editing track, and the video draft template at least includes editing information, and the editing information is used to indicate an editing operation for the video material to be filled;
[0012] A filling module, used to fill the original video material into the video draft template to form a target video track segment; wherein the target video track segment is used to present the editing effect obtained by the editing process corresponding to the editing operation on the original video material;
[0013] The display module is used to present the target video track segment on the editing track.
[0014] In a third aspect, an embodiment of the present disclosure provides an electronic device, including: a processor and a memory;
[0015] The memory stores computer-executable instructions;
[0016] The processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the video processing method as described in the first aspect and various possible designs of the first aspect.
[0017] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, in which computer execution instructions are stored. When a processor executes the computer execution instructions, the video processing method described in the first aspect and various possible designs of the first aspect is implemented.
[0018] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the video processing method as described in the first aspect and various possible designs of the first aspect.
[0019] The video processing method, device, storage medium and program product provided by the present embodiment include, in response to a template editing operation triggered on a video editing interface, obtaining a video draft template and original video material indicated by the template editing operation, wherein an editing track is presented on the video editing interface, and an original video track segment formed based on the original video material is presented on the editing track, and the video draft template includes at least editing information, and the editing information is used to indicate the editing operation for the video material to be filled, and the target video track segment is formed by filling the original video material into the video draft template, wherein the target video track segment is used to present the editing effect obtained by the editing processing corresponding to the editing operation on the original video material, and the target video track segment is presented on the editing track. The method provided by the present disclosure embodiment is simple to operate, and can improve the efficiency of video processing, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0021] Figure 1 A schematic diagram of an application scenario of the video processing method provided by an embodiment of the present disclosure;
[0022] Figure 2 The video processing method provided by the present invention is shown in the following figure. Figure 1 ;
[0023] Figure 3a Schematic diagram of a video editing interface provided by an embodiment of the present disclosure Figure 1 ;
[0024] Figure 3b Schematic diagram of a video editing interface provided by an embodiment of the present disclosure Figure 2 ;
[0025] Figure 4 A logical diagram of inserting a target segment into a template slot provided by an embodiment of the present disclosure Figure 1 ;
[0026] Figure 5 A logical diagram of inserting a target segment into a template slot provided by an embodiment of the present disclosure Figure 1 ;
[0027] Figure 6a Schematic diagram 3 of a video editing interface provided by an embodiment of the present disclosure;
[0028] Figure 6bSchematic diagram of a template editing page provided in an embodiment of the present disclosure Figure 1 ;
[0029] Figure 6c Schematic diagram of a template editing page provided in an embodiment of the present disclosure Figure 2 ;
[0030] Figure 7 A schematic diagram of an editing page corresponding to a template track provided in an embodiment of the present disclosure;
[0031] Figure 8 The video processing method provided by the present invention is shown in the following figure. Figure 2 ;
[0032] Fig. 9 A structural block diagram of a video processing device provided in an embodiment of the present disclosure;
[0033] Fig.10 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0034] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0035] It is becoming more and more popular to promote products or show self-advocacy through releasing videos. Users are also increasingly demanding how to process videos quickly and easily to produce videos with rich and interesting content.
[0036] In the related technology, editing and editing are two important operation tools for video processing. Editing refers to the user editing the original video material with different tracks such as audio, text, stickers, picture-in-picture, etc., and finally generating a video draft with richer and more interesting content for export and publication. Editing refers to automatically applying the style of a video template (for example, a video work published by others or yourself) to the user's original video material. The video template usually includes multiple clips, and the duration of each clip is fixed. It supports text editing, video replacement, music volume and other operations for each clip, and generates a draft of editing for export and publication.
[0037] However, the two operation tools are usually two independent function items set in parallel in the video processing software. If the user needs to use the editing and editing tools at the same time, it is necessary to export and import between the two tools. For example, some users will use the editing tool to complete the application of the same template every day, export the video, and then import the video into the editing tool. The above video processing method is cumbersome and the efficiency of video processing is low, which affects the user experience.
[0038] In order to solve the above technical problems, the inventors of the present disclosure have found that an entry tag for cutting the same style can be set in the video editing interface, and the video draft template can be determined through the entry tag, and then the video material in the original video track segment loaded into the video editing interface can be applied to the video draft template, which can efficiently and conveniently implement the same style cutting operation in the video editing interface, without the need to import and export between the editing and cutting the same style tools, and the operation is simple, which can improve the efficiency of video processing, thereby improving the user experience. Based on this, the embodiment of the present disclosure provides a video processing method.
[0039] Figure 1 Schematic diagram of application scenarios of the video processing method provided by the embodiment of the present disclosure. Figure 1 As shown, the terminal device 101 and the server 102 are connected to each other through a network 103. The terminal device 101 may be an electronic device with a display screen, such as a computer, a tablet device, a smart phone, etc., and the network 103 may be a wired communication network, a wireless communication network, etc.
[0040] In the specific implementation process, the terminal device is installed with a client of the video processing software. In response to the user's touch operation, the terminal device opens the client, displays the video editing interface, and in response to the template editing operation triggered on the video editing interface, obtains the video draft template and the original video material indicated by the template editing operation, wherein the video editing interface presents an editing track, and the editing track presents an original video track segment formed based on the original video material. The video draft template includes at least editing information, and the editing information is used to indicate the editing operation for the video material to be filled. By filling the original video material into the video draft template, a target video track segment is formed, wherein the target video track segment is used to present the editing effect obtained by the editing processing corresponding to the editing operation of the original video material, and the target video track segment is presented on the editing track. The video processing method provided by the embodiment of the present disclosure can conveniently implement the same-style cutting operation in the video editing interface by determining the video draft template in the video editing interface and applying the video draft template to the video material in the original video track segment, without the need to import and export between the editing and same-style cutting tools, and the operation is simple, which can improve the efficiency of video processing, thereby improving the user experience.
[0041] It should be noted that Figure 1 The scene diagram shown is only an example. The video processing method and scene described in the embodiment of the present application are intended to more clearly illustrate the technical solution of the embodiment of the present application, and do not constitute a limitation on the technical solution provided in the embodiment of the present application. Ordinary technicians in this field can know that with the evolution of the system and the emergence of new business scenarios, the technical solution provided in the embodiment of the present application is also applicable to similar technical problems.
[0042] Figure 2 The video processing method provided by the present invention is shown in the following figure. Figure 1 The method of this embodiment can be applied in a terminal device. The video processing method includes:
[0043] 201. In response to a template editing operation triggered on a video editing interface, a video draft template and original video material indicated by the template editing operation are obtained; wherein an editing track is presented on the video editing interface, and an original video track segment formed based on the original video material is presented on the editing track, and the video draft template includes at least editing information, and the editing information is used to indicate an editing operation for the video material to be filled.
[0044] Specifically, the original video material can be added to the editing track of the multi-track editor in the video editing interface to form an original video track segment. Optionally, after adding the editing track, the original video material in the original video track segment can be added, deleted, modified, etc. to obtain the original video track segment.
[0045] The original video material may be a video stored in an album of a terminal device, a material stored in a cloud, or a material library, etc. The original video material may be one or more video clips or pictures.
[0046] Specifically, an entry tag of the template can be set in the video editing interface, and the template selection interface can be entered through the entry tag to further determine the video draft template.
[0047] In one embodiment of the present disclosure, in response to a template editing operation triggered on a video editing interface, obtaining a video draft template indicated by the template editing operation may include: displaying a template panel in response to a touch operation applied to a first entry tag in the video editing interface; the template panel includes a plurality of templates to be selected; and selecting a video draft template from the plurality of templates to be selected in response to a touch operation applied to the plurality of templates to be selected.
[0048] For example, Figure 3aAs shown, the video editing interface may include a preview area 301, a timeline 302, a pointer 303, an original video track segment 304, a function area 305, etc. from top to bottom. The function area 305 at the bottom of the video editing interface may be provided with a plurality of function controls (functions 1 to 4), including a "template" control for displaying a template panel. Assuming that function 1 is a "template" control, by touching function 1, as shown in FIG. Figure 3b As shown, a template panel 306 can be displayed below the preview area 301. A search box 307, an option area 308 (options 1 to 4, options may include confirmation, clear, template classification, etc.) and a template cover 309 can be displayed within the template panel 306. A template theme (not shown) can be displayed below the template cover, etc.
[0049] In one embodiment of the present disclosure, the template panel can be set to support pull-up and pull-down interactions. Specifically, after entering the template panel, it is displayed at the default height. By pulling up, the template can be pulled up until it reaches the top of the preview area, hiding the play bar and the export bar. When the content under the template category does not exceed one screen, it can also be pulled up. When sliding down, first slide the template list down to the first row of display, and then slide down until the panel is pulled down to the default height.
[0050] In one embodiment of the present disclosure, after the template panel is displayed, in response to a touch operation on a control corresponding to a favorite item in the template panel, the user's favorite templates can be displayed (specifically, it can be set so that the favorite templates can only be displayed after the user logs in), wherein the template collection method can be set to touch the template cover displayed in the template panel (for example, long pressing the template cover) to realize template collection.
[0051] In one embodiment of the present disclosure, a control corresponding to the details entry can be set in the template cover (for example, it can be set in the lower right corner of the template cover), and in response to a touch operation on the control, a video template corresponding to the template cover can be played, and a corresponding control can be set for use in the playback interface. In response to a touch operation on the control, the corresponding template can be determined as a video draft template and applied to the video material.
[0052] In one embodiment of the present disclosure, a hot zone may be set on the template cover, and in response to a touch operation acting on the hot zone, the corresponding template may be determined as a video draft template and applied to the video material.
[0053] In one embodiment of the present disclosure, after a video draft template is selected in the template panel, in response to a touch operation on a control corresponding to a clear item in the template panel, the selected video draft template can be cleared to reselect a video draft template.
[0054] 202. Filling the original video material into the video draft template to form a target video track segment; wherein the target video track segment is used to present the editing effect of the original video material obtained by the editing process corresponding to the editing operation.
[0055] Specifically, after selecting a video draft template, the video draft template can be applied to the video material. Specifically, at least one target segment can be selected from multiple segments in the video material to fill the target segment into the template slot of the video draft template to obtain the corresponding target video draft, so as to form a target video track segment based on the target video draft, and present the target video track segment on the editing track. It should be noted that the current video material can be an original video track segment, or it can be a cropped material of the original video material added to the original video track segment.
[0056] In one embodiment of the present disclosure, filling the original video material into the video draft template to form a target video track segment may include: filling the original video material into the video draft template to obtain a target video draft; the target video draft includes editing operation information on the original video material; and forming a target video track segment based on the target video draft.
[0057] Specifically, by filling the original video material into the video draft template, a video draft containing editing operation information can be first obtained, and then a target video track segment can be generated based on the video draft.
[0058] In one embodiment of the present disclosure, forming a target video track segment based on the target video draft may include: filling the target video draft to obtain a target video track segment; or, synthesizing the target video draft to obtain a corresponding target video material, and filling the target video material to obtain a target video track segment.
[0059] Specifically, there are multiple ways to form a target video track segment. In one feasible way, a complete video draft can be obtained by filling the original video material into a video draft template, and the video draft can be determined as the target video track segment; in another feasible way, a complete video draft can be obtained by filling the original video material into a video draft template, and the video draft can be synthesized into a new video material, and the new video material is determined as the target video track segment.
[0060] In one embodiment of the present disclosure, in order to improve the flexibility of user use and facilitate the user to add his own subjective aesthetics, the user can choose the position from which to apply the video draft template. Specifically, selecting at least one target segment from the video material may include: obtaining the position of the pointer in the editing track; and determining at least one target segment from the original video material according to the position of the pointer.
[0061] Specifically, after the video draft template is determined, multiple clips of the video material can be displayed, and in response to the touch operation on the multiple clips, at least one target clip can be selected, and the target clip can also be selected through the pointer in the editing track. The pointer refers to the preview axis corresponding to the timeline, and the position of the pointer slides to the corresponding position on the editing track as the screen in the preview area is played to a certain position on the timeline.
[0062] In one embodiment of the present disclosure, in order to simplify the operation, determining at least one target segment from the original video material according to the position of the pointer may include: determining the segment corresponding to the position of the pointer and the subsequent segments in the original video material as the target segment. That is, after sliding the pointer to the target position, the segment at the position and the subsequent segments can be selected as the target segment, and only one sliding is required, which is convenient and quick to operate.
[0063] In the disclosed embodiments, there may be multiple ways to insert at least one determined target segment into at least one template slot of a video draft template (a template slot is used to indicate a fillable position of the video material to be filled in the video draft template). First, in order to combine the user's aesthetic taste and provide the user with a choice opportunity, manual insertion may be used, and automatic insertion may be used to improve operational efficiency. Secondly, with respect to the automatic insertion method, in one achievable method, the target segment may be randomly inserted into the template slot. In another achievable method, considering that the sequence of segments in the video material is the result of the user's subjective operation, in order to better adapt to the user's aesthetic taste, the target segments may be inserted in combination with the sequence of segments in the video material.
[0064] In one embodiment of the present disclosure, filling the at least one target segment into the video draft template may include: according to the sequence of the at least one target segment in the original video track segment and the sequence of at least one template slot in the video draft template, inserting the at least one target segment into at least one template slot of the video draft template in a one-to-one correspondence; the template slot is used to indicate a fillable position of the video material to be filled in the video draft template.
[0065] For example, assuming that the target fragments include three in order, a, b and c, and the template slots include three in order, A, B and C, then a can be inserted into A, b into B, and c into C, so as to achieve a one-to-one corresponding insertion between the target fragments and the template slots.
[0066] In one embodiment of the present disclosure, considering that the template slot may have certain specification requirements for the inserted segment, therefore, a preset condition judgment may be added to meet the specification requirements of the template slot. Specifically, according to the sequence of the at least one target segment in the original video track segment and the sequence of the at least one template slot in the video draft template, at least one of the target segments is inserted into at least one template slot of the video draft template one by one, which may specifically include: if the current target segment to be processed and the current template slot to be inserted meet the preset conditions, then the current target segment to be processed is inserted into the current template slot to be inserted. If the current target segment to be processed and the current template slot to be inserted meet the preset conditions, and there is a next target segment to be processed, then the next target segment to be processed is determined as the new current target segment to be processed.
[0067] In one embodiment of the present disclosure, taking into account the limitation of the template slot in terms of duration, therefore, if the current target segment to be processed and the current template slot to be inserted meet the preset conditions, the current target segment to be processed is inserted into the current template slot to be inserted, which may include: obtaining the first duration of the current target segment to be processed and the second duration of the current template slot to be inserted; if the first duration is greater than or equal to the second duration, inserting the current target segment to be processed into the current template slot to be inserted; correspondingly, if the current target segment to be processed does not meet the preset conditions corresponding to the current template slot to be inserted, and there is a next target segment to be processed, then determining the next target segment to be processed as the new current target segment to be processed, which may include: if the first duration is less than the second duration and there is a next target segment to be processed, then determining the next target segment to be processed as the new current target segment to be processed.
[0068] In one embodiment of the present disclosure, considering that the number of target segments and template slots may not match, therefore, when there is just no target segment left or there is a target segment left, after inserting the target segment to be processed into the template slot to be inserted, it may also include: if there is no next template slot to be inserted, determining the target video draft according to at least one template slot that has been inserted. Specifically, if there is no next template slot to be inserted, it indicates that all template slots of the video draft template have been filled, so the filled template slots can be determined as the target video draft to be added to the original video track segment and merged with the original track material to obtain a new track material. If there is a next template slot to be inserted, the next template slot to be inserted can be determined as the new current template slot to be inserted.
[0069] In one embodiment of the present disclosure, when the number of target segments is insufficient, at least one of the target segments is inserted into at least one template slot of the video draft template in a one-to-one correspondence according to the sequence of the at least one target segment in the original video track segment and the sequence of the at least one template slot in the video draft template. It may also include: if the current target segment to be processed does not meet the preset condition corresponding to the current template slot to be inserted, and there is no next target segment to be processed, then the preset picture is filled in the current template slot to be inserted and the remaining template slots to be inserted. Exemplarily, if the first duration is less than the second duration and there is no next target segment to be processed, the next target segment to be processed is determined as the new current target segment to be processed.
[0070] The following combination Figure 4 and Figure 5 An example is given to illustrate the insertion strategy based on the segment duration.
[0071] like Figure 4 As shown, the number of target segments that meet the requirements (duration is greater than or equal to the required duration of the corresponding template slot) at and after the pointer (preview axis) is less than the number of template slots X. The target segments that meet the requirements are filled in the template slots in order. Unfilled template slots can be filled with preset pictures (such as the first frame screenshot of the original template video). Figure 5 As shown, the number of target segments that meet the requirements at and after the position of the pointer (preview axis) is ≥ template slot X, and the target segments are filled into X template slots in order, and the remaining target segments are no longer filled.
[0072] In one embodiment of the present disclosure, the template slot of the video draft template includes a category attribute (different colors can be used to represent different categories, and color point marks can be set on the template slot), and the same target segment can be filled in for the template slots with the same category. Specifically, in one implementable manner, if the category of the template slot currently to be inserted is the same as the first template slot that has been inserted, the first target segment inserted into the first template slot is inserted into the template slot currently to be inserted, and the next template slot to be inserted is determined as the template slot currently to be inserted. In another implementable manner, when the second target segment is inserted into the template slot currently to be inserted, it is detected whether the category of the remaining template slots to be inserted has a second template slot with the same category as the template slot currently to be inserted. If so, the second target segment is automatically inserted into the second template slot at the same time. Exemplarily, assuming that among template slots A, B and C, the categories of A and C are the same, and a meets the requirements for inserting A, then a can also be inserted into C.
[0073] In one embodiment of the present disclosure, after the target segment is inserted into the template slot of the video draft template, the generated target video track segment may be edited to add the edited target video track segment to the editing track.
[0074] For example, Figure 6a As shown, in Figure 3b After the preview effect is generated, you can click the play button (not shown) to start playing the target video track segment in the preview area 301. After the template cover 3 (to the right of the cover 2, indicated by a dotted line frame) is selected, the template cover 3 displays a "click to edit" entry in the template selected state, and click to enter the template editing page (such as Figure 6b As shown), after entering the template editing page, you can automatically start playing the target segment inserted into the template slot in the preview area 301. You can set it as the default positioning video tab to select the first template slot. The slot can follow the positioning to the playing segment. When playing to a certain target segment, the corresponding slot of the target segment will display a "click to edit" entrance.
[0075] In addition, you can set the same color point mark for the clips with the same category of template slots. Figure 6b Click to edit the entry on the slot of your own material (the slot to be filled with the target clip), as shown Figure 6cAs shown, the editing options such as [Replace], [Crop], [Volume] (image material has no volume), and [Edit More] are displayed. Click the slot that has not been replaced with your own material (the slot that is not filled with the target clip) to display only the two options [Replace] and [Edit More]. After clicking [Replace], you can pull up the album import page, which can support the import of video materials with a duration longer than the slot duration, or import image materials, and fill the template slot after clicking the material. When confirming the replacement, if other clips of the same color are imported with different materials, a pop-up window will ask whether to replace them together. Click [Replace] to replace other clips of the same color with the newly selected material. Click [Crop] to enter the editing page, you can drag to select the video display area, and you can also select the clip position for the video clip. Click Confirm to take effect. Click [Volume] to pull up the "Clip Original Sound Volume" panel, you can drag to adjust the volume within the preset range (for example, 0-100), and click √ to confirm. Click [Edit More] to trigger the draft unlocking process.
[0076] When editing the template text, click on the text on the editing page to display the first frame screenshot of the clip to which the text belongs and the content of the text in chronological order. Click on the text to select it. Click on the text again / click on the edit icon on the text box to pull up the keyboard to display the content of the text and the cursor animation. You can modify / delete the text. Click √ to confirm and close the keyboard. In addition, you can click on the text in the preview area to select the text and display the delete, edit, and rotate icons. Click on the text again or click on the edit icon to pull up the keyboard. The text on the screen will display the delete and rotate icons. Long press on the text to move it. Press and hold the rotate icon to enlarge / rotate the text. Click √ to confirm and close the keyboard to locate the text tab. Click on the non-text hot area to deselect the text.
[0077] 203. Present the target video track segment on the editing track.
[0078] Specifically, after obtaining the target video track segment, it can be added to the editing track and merged with the video material in the current original video track segment to obtain a video draft, and a template track corresponding to the target video track segment is generated to complete the track drop operation of the target video draft.
[0079] In one embodiment of the present disclosure, presenting the target video track segment on the editing track may include: determining a display position of the target video track segment in the editing track, and presenting the target video track segment at the display position.
[0080] Specifically, the target video track segment can be displayed at any position in the editing track. For example, it can be added at different positions in the original video track segment to achieve different audio-visual effects. Therefore, the display position can be determined first according to the needs, and then the target video track segment can be inserted into the display position, that is, integrated into the video material in the current original video track segment. In addition, considering that if the target video draft is obtained by filling the target segment into the template slot using an automatic insertion strategy, because the result obtained by this automatic pre-filling method may not fully meet the user's expectations, the user still needs to make edits and modifications. Therefore, after the target video track segment is inserted at the display position, the segment in the original video track segment that is the same as the target segment used by the target video track segment can be retained so that it can be manually deleted by the user after the user completes the editing and modification.
[0081] In one embodiment of the present disclosure, determining the display position of the target video track segment in the editing track may include: determining the display position of the target video track segment in the editing track according to the position of the pointer in the editing track.
[0082] Specifically, in order to conveniently and quickly determine the display position, the display position can be determined based on the position of the pointer (preview axis) in the editing track. For example, the segment division point in the original video track segment before or after the pointer position can be determined as the display position (for example, if the pointer is on segment 3, then the segment division point between segment 2 and segment 3, or the segment division point between segment 3 and segment 4 can be determined as the display position). The pointer position can also be directly determined as the display position, that is, if the pointer is on the segment between two adjacent division points, the position of the pointer is divided, and the target video track segment is inserted at the division point. For example, if the pointer is at the M position of segment 3, then the M position can be cropped to obtain the division point at the M position, and the division point is determined as the display position.
[0083] In one embodiment of the present disclosure, determining the display position of the target video track segment in the editing track according to the position of the pointer in the editing track may include: determining the segment division point closest to the position of the pointer as the display position of the target video track segment in the original video track segment. Exemplarily, if the pointer is located at the M position on segment 3, then the first distance between the first segment division point between segments 2 and 3 and the M position can be determined, and the second distance between the second segment division point between segments 3 and 4 and the M position can be determined, and then the first distance and the second distance are compared, and the segment division point corresponding to the smaller one is determined as the display position.
[0084] In one embodiment of the present disclosure, presenting the target video track segment at the display position may include: presenting the target video track segment at the display position, and deleting original video material in the original video track segment that is identical to the target video track segment.
[0085] Specifically, in order to improve processing efficiency, since the target segment filled in the target video draft also exists in the current track material, the duplicate segment can be deleted when the target video track segment is added to the editing track. Of course, considering whether the target video draft meets the user's satisfaction, it can be deleted with one click after the user confirms that he is satisfied with the target video draft, or when the target video draft is added to the original video track segment, the duplicate segment is deleted and retained in the storage space. If it is found that the current target video draft cannot meet the user's needs, the duplicate segment retained in the storage space can be restored.
[0086] In one embodiment of the present disclosure, step 203 may also include: responding to a touch operation on a second entry tag in the video editing interface, displaying a template editing interface corresponding to the target video track segment; the template editing interface includes at least one operation option; and performing an editing operation on the target video track segment according to the at least one operation option to obtain an edited target track editing segment.
[0087] Specifically, after adding the target video track segment to the editing track, select the template track in the video editing interface to display multiple operation options, based on which you can perform related operations on the target video draft after adding the original video track segment, such as replacing the template, editing, unlocking the draft, deleting, volume, etc.
[0088] In one embodiment of the present disclosure, the operation options include a replacement template item; the editing operation on the target video track segment according to the at least one operation option to obtain the edited target track editing segment may include: displaying a template panel in response to a touch operation on a function label corresponding to the replacement template item; the template panel includes a plurality of templates to be replaced; selecting a target replacement template in response to a touch operation on the plurality of templates to be replaced, and filling the original video material into the target replacement template to obtain the edited target video track segment.
[0089] Exemplarily, the following combination Figure 7 The method of dropping the target video draft and the editing operations after dropping the draft are illustrated.
[0090] In the specific implementation process, click the template editing page (such as Figure 6b Return to the upper left corner (not shown) to return to the editing project (as shown Figure 6a As shown), click √ in the template panel to collapse the panel. At the same time, the generated target video draft is inserted to the split point closer to the preview axis. The target segment filled in the template is retained and automatically moved backward.
[0091] In such Figure 3a After selecting the template track in the interface shown, Figure 7 As shown, the bottom toolbar displays [Replace Template], [Edit], [Unlock], [Delete], and [Volume]. Click [Replace Template] to pull up the template panel, and the material package tab will not be displayed. Click the template cover to automatically fill in the material selected in the original template and automatically generate a preview. Click Edit again to enter the template editing page; click √ Confirm on the template panel to replace the old template track with the new template, and the other tracks under the original template track (text / stickers / audio / special effects, etc.) will remain unchanged. Click [Edit] to enter the template editing page. Click [Unlock] to enter the draft unlocking process. Click [Delete] to delete the template track and other editing tracks below (text / stickers / audio / special effects, etc.). Click [Volume] to pull up the volume adjustment panel, which supports a slider with a preset range (for example, 0-100) to adjust the volume of the entire template track.
[0092] In one embodiment of the present disclosure, different undo and redo logics are provided for different scenarios.
[0093] Specifically, for adding / replacing templates: select the template in the template panel, click Edit, enter the editing page and return to the template panel, click √ to confirm that the template has been added, and it is considered a complete operation. After the template has been added, click Undo to delete the template, and the prompt "Undo: Add template" will appear; click Redo to restore the template, and the prompt "Restore: Add template" will appear; for editing templates after the template has been added: select the template track, click Edit in the menu bar, enter the editing page and return to the main project. ——Click Undo to restore to the state before entering the editing, the template is still there, and the prompt "Undo: Template Edit" will appear; click Redo to restore the template editing, and the prompt "Restore: Template Edit" will appear; after unlocking the template, click Undo to restore the template to a compound fragment, and the prompt "Undo: Template Unlock" will appear; click Redo to break up the template, and the prompt "Restore: Template Unlock" will appear; after deleting the template, click Undo to restore the template, and the prompt "Undo: Delete" will appear; click Redo to delete the template, and the prompt "Restore: Delete" will appear. For adjusting the template volume, click √ to confirm. Click Undo and the volume will return to the state before adjustment, with a prompt of "Volume: xx (volume before adjustment)"; click Redo and the volume will return to the state after adjustment, with a prompt of "Volume: xx (volume after adjustment)"; for the independent template editing page: each time you enter the Undo and Redo buttons, they will be grayed out. You can only click Undo after an editing operation has occurred. The logic of Undo and Redo is the same as that of the text alignment editing.
[0094] In one embodiment of the present disclosure, a template search can be performed by entering keywords in the search box in the template panel. Specifically, click the search box to automatically pull up the keyboard, the search box displays a cursor animation, click the cancel button to return to the template panel, and after entering content in the input box, an X is displayed on the right. Click X to clear the entered content & search results. During the input process in the input box, associative words are displayed, and the words in the associative words that are consistent with the input content can be highlighted; click the associative word to automatically fill in the associative word in the input box and start searching; after entering the content, [Search] is displayed in the lower right corner of the keyboard, and the search is triggered after clicking. The loading state can be set during the search process. The search results are set to support filtering: default sorting, material type, number of clips, template duration, material ratio, type, etc.; click reset to select only [Default sorting] and uncheck other filter items; click OK to enter the loading state to start filtering, and the filter button becomes selected. When there are no search results, a prompt message can be displayed, such as "No matching template, change the search term~".
[0095] From the above description, it can be seen that by determining the video draft template in the video editing interface and applying the video draft template to the video material in the original video track segment, the same-style cutting operation can be conveniently implemented in the video editing interface without the need to import and export between the editing and same-style cutting tools. The operation is simple and can improve the efficiency of video processing, thereby enhancing the user experience.
[0096] refer to Figure 8 , Figure 8 The video processing method provided by the present invention is shown in the following figure. Figure 2 This embodiment describes in detail the synchronization method when a video draft generated by a high-version application is opened in a low-version application. The video processing method includes:
[0097] 801. In response to a template editing operation triggered on a video editing interface, a video draft template and original video material indicated by the template editing operation are obtained; wherein an editing track is presented on the video editing interface, and an original video track segment formed based on the original video material is presented on the editing track, and the video draft template includes at least editing information, and the editing information is used to indicate an editing operation for the video material to be filled.
[0098] 802. Form a target video track segment by filling the original video material into the video draft template; wherein the target video track segment is used to present the editing effect obtained by the editing processing corresponding to the editing operation on the original video material.
[0099] 803. Present the target video track segment on the editing track.
[0100] Steps 801 to 803 in the embodiment of the present disclosure are similar to steps 201 to 203 in the above embodiment and are not described again here.
[0101] 804. Store the target video track segment in the cloud to obtain a corresponding cloud draft; the cloud draft includes editing information corresponding to the target video track segment.
[0102] 805. When the cloud draft is opened in an application whose version is lower than the preset version, the cloud draft is displayed as a video clip; the video clip is obtained by deleting the editing information corresponding to the target video track clip in the cloud draft.
[0103] Specifically, in order to realize the editing of video drafts on different devices, the video draft can be stored in the cloud space, so that the cloud space can be accessed on different devices (such as computers, mobile phones, tablets), the video draft can be obtained, and the video draft can be further processed. However, when the hardware configurations of different devices are different, or the versions of the client applications are different, some functions are not supported when the cloud draft is opened with a low-version application. For a cloud draft containing a target video track segment, when the cloud draft is opened in a low-version application, the operation information corresponding to the target video track segment, that is, the editing information of the template track, cannot be supported. Therefore, the operation information about the target video track segment in the cloud draft can be deleted to obtain the video segment corresponding to the cloud draft, that is, the composite segment.
[0104] Exemplarily, the following strategy can be adopted for cloud synchronization of lower versions: for the draft containing unlocked template fragments, upload the cloud draft, and then download the draft in the lower version. The template fragment is displayed as a composite fragment, in which the fragment that has not been replaced by the original material (target fragment) can be set with a watermark; for the fragment that has not been replaced by the original material in the unlocked template, the draft cloud synchronization can be opened in the lower version and can also be set with a watermark; for the fragment containing the target video track, that is, the draft containing the same editing style (template & unlocked draft), it can be set to not allow downgrading to a version that does not support composite fragments, and the upgrade can be guided when downloading. For example, the following pop-up copy can be used: Title: Software version needs to be upgraded; Text: The draft version is newer, and the draft can be opened by upgrading to the latest version; Interaction: The bottom button "Update Now"; Support clicking to close the pop-up window.
[0105] From the above description, it can be seen that in order to achieve cloud synchronization, when the cloud draft is opened by a low-version application, the target video track segment can be displayed as a composite segment, thereby facilitating users to view or edit the cloud draft on different devices.
[0106] Corresponding to the video processing method of the above embodiment, Fig. 9The structure block diagram of the video processing device provided by the embodiment of the present disclosure. For the convenience of explanation, only the part related to the embodiment of the present disclosure is shown. Fig. 9 The device 90 includes: an acquisition module 901, a filling module 902, and a display module 903.
[0107] Among them, the acquisition module 901 is used to respond to the template editing operation triggered on the video editing interface, and obtain the video draft template and original video material indicated by the template editing operation; wherein, the video editing interface presents an editing track, and the editing track presents an original video track segment formed based on the original video material, and the video draft template includes at least editing information, and the editing information is used to indicate the editing operation for the video material to be filled.
[0108] The filling module 902 is used to form a target video track segment by filling the original video material into the video draft template; wherein the target video track segment is used to present the editing effect obtained by the editing processing corresponding to the editing operation on the original video material.
[0109] The display module 903 is used to present the target video track segment on the editing track.
[0110] In one embodiment of the present disclosure, the acquisition module 901 is specifically used to: display a template panel in response to a touch operation on a first entry tag in a video editing interface; the template panel includes multiple templates to be selected; and select a video draft template from the multiple templates to be selected in response to a touch operation on the multiple templates to be selected.
[0111] In one embodiment of the present disclosure, the filling module 902 is specifically used to: fill the original video material into the video draft template to obtain a target video draft; the target video draft includes editing operation information performed on the original video material; based on the target video draft, form a target video track segment.
[0112] In one embodiment of the present disclosure, the filling module 902 is specifically used to: fill the target video draft to obtain a target video track segment; or, synthesize the target video draft to obtain a corresponding target video material, and fill the target video material to obtain a target video track segment.
[0113] In one embodiment of the present disclosure, the filling module 902 is specifically used to: obtain the position of the pointer in the editing track; determine at least one target segment from the original video material according to the position of the pointer; fill the at least one target segment into the video draft template to obtain the target video draft.
[0114] In one embodiment of the present disclosure, the filling module 902 is specifically configured to: determine the segment corresponding to the position of the pointer and the subsequent segments in the original video material as the target segment.
[0115] In one embodiment of the present disclosure, the filling module 902 is specifically used to: insert at least one target segment into at least one template slot of the video draft template in a one-to-one correspondence according to the order of the at least one target segment in the original video track segment and the order of at least one template slot in the video draft template.
[0116] In one embodiment of the present disclosure, the filling module 902 is specifically used to: if the current target fragment to be processed meets the preset conditions corresponding to the template slot to be inserted, then the current target fragment to be processed is inserted into the template slot to be inserted; if the current target fragment to be processed does not meet the preset conditions corresponding to the template slot to be inserted, and there is a next target fragment to be processed, then the next target fragment to be processed is determined as the new current target fragment to be processed.
[0117] In one embodiment of the present disclosure, the filling module 902 is specifically used to: obtain the first duration of the current target segment to be processed and the second duration of the current template slot to be inserted; if the first duration is greater than or equal to the second duration, insert the current target segment to be processed into the current template slot to be inserted; accordingly, if the current target segment to be processed does not meet the preset conditions corresponding to the current template slot to be inserted, and there is a next target segment to be processed, then the next target segment to be processed is determined as the new current target segment to be processed, including: if the first duration is less than the second duration and there is a next target segment to be processed, then the next target segment to be processed is determined as the new current target segment to be processed.
[0118] In one embodiment of the present disclosure, the filling module 902 is specifically used to: if there is no next template slot to be inserted, determine the target video draft according to at least one template slot that has completed insertion.
[0119] In one embodiment of the present disclosure, the filling module 902 is specifically used to: if the current target segment to be processed does not meet the preset condition corresponding to the current template slot to be inserted, and there is no next target segment to be processed, then fill the preset picture in the current template slot to be inserted and the remaining template slots to be inserted.
[0120] In one embodiment of the present disclosure, the display module 903 is specifically used to: determine the display position of the target video track segment in the editing track, and present the target video track segment at the display position.
[0121] In one embodiment of the present disclosure, the display module 903 is specifically configured to determine a display position of the target video track segment in the editing track according to a position of a pointer in the editing track.
[0122] In one embodiment of the present disclosure, the display module 903 is specifically configured to: determine the segment segmentation point that is closest to the position of the pointer as the display position of the target video track segment in the original video track segment.
[0123] In one embodiment of the present disclosure, the display module 903 is specifically configured to: present the target video track segment at the display position, and delete the original video material in the original video track segment that is the same as that in the target video track segment.
[0124] In one embodiment of the present disclosure, the device 90 also includes an editing module (not shown). The editing module is used to: add the target video draft to the original video track segment to obtain the target material; in response to a touch operation on the second entry label in the video editing interface, display a template editing interface corresponding to the target video track segment; the template editing interface includes at least one operation option; and perform an editing operation on the target video track segment according to the at least one operation option to obtain an edited target track editing segment.
[0125] In one embodiment of the present disclosure, the editing module is specifically used to: display a template panel in response to a touch operation on a function label corresponding to the replacement template item; the template panel includes multiple templates to be replaced; select a target replacement template in response to a touch operation on multiple templates to be replaced, and fill the original video material into the target replacement template to obtain an edited target video track segment.
[0126] In one embodiment of the present disclosure, the device 90 also includes a cloud synchronization module (not shown), which is used to: store the target video track segment to the cloud to obtain a corresponding cloud draft; the cloud draft includes editing information corresponding to the target video track segment; when the cloud draft is opened in an application with a version lower than a preset version, the cloud draft is displayed as a video segment; the video segment is obtained after deleting the editing information corresponding to the target video track segment in the cloud draft.
[0127] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.
[0128] In order to implement the above embodiment, the embodiment of the present disclosure also provides an electronic device.
[0129] refer to Fig.10 , which shows a schematic diagram of the structure of an electronic device 100 suitable for implementing the embodiment of the present disclosure, and the electronic device 100 may be a terminal device or a server. The terminal device may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (PMPs), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.10 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0130] like Fig.10 As shown, the electronic device 100 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 1001, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1008 to a random access memory (RAM) 1003. Various programs and data required for the operation of the electronic device 100 are also stored in the RAM 1003. The processing device 1001, the ROM 1002, and the RAM 1003 are connected to each other via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.
[0131] Typically, the following devices may be connected to the I / O interface 1005: input devices 1006 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 1007 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1008 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1009. The communication device 1009 may allow the electronic device 100 to communicate with other devices wirelessly or by wire to exchange data. Although Fig.10 The electronic device 100 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0132] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 1009, or installed from a storage device 1008, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0133] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0134] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0135] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.
[0136] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0137] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0138] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".
[0139] The functions described above herein may be performed 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), and the like.
[0140] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. 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, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0141] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0142] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0143] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. A video processing method, characterized in that: include: In response to a template editing operation triggered on a video editing interface, a video draft template and an original video material indicated by the template editing operation are obtained; wherein an editing track is presented on the video editing interface, and an original video track segment formed based on the original video material is presented on the editing track, and the video draft template includes at least editing information, and the editing information is used to indicate an editing operation for the video material to be filled; By filling the original video material into the video draft template, a target video track segment is formed; wherein the target video track segment is used to present the editing effect obtained by the editing process corresponding to the editing operation on the original video material; The target video track segment is presented on the editing track.
2. The method according to claim 1, characterized in that The step of obtaining, in response to a template editing operation triggered on a video editing interface, a video draft template indicated by the template editing operation comprises: In response to a touch operation on a first entry tag in the video editing interface, a template panel is displayed; the template panel includes a plurality of templates to be selected; In response to a touch operation on the plurality of templates to be selected, a video draft template is selected from the plurality of templates to be selected.
3. The method according to claim 1, characterized in that: The forming of the target video track segment by filling the original video material into the video draft template includes: Filling the original video material into the video draft template to obtain a target video draft; the target video draft includes editing operation information performed on the original video material; Based on the target video draft, a target video track segment is formed.
4. The method according to claim 3, characterized in that The forming of a target video track segment based on the target video draft includes: Filling the target video draft to obtain a target video track segment; or, The target video draft is synthesized to obtain a corresponding target video material, and the target video material is filled to obtain a target video track segment.
5. The method according to claim 3, characterized in that: The step of filling the original video material into the video draft template to obtain a target video draft includes: Obtaining the position of the pointer in the editing track; Determining at least one target segment from the original video material according to the location of the pointer; Fill the at least one target segment into the video draft template to obtain a target video draft.
6. The method according to claim 5, characterized in that The determining at least one target segment from the original video material according to the position of the pointer comprises: The segment corresponding to the position of the pointer and the subsequent segments in the original video material are determined as target segments.
7. The method according to claim 5, characterized in that The step of filling the at least one target segment into the video draft template comprises: According to the order of at least one target segment in the original video track segment and the order of at least one template slot in the video draft template, at least one target segment is inserted into at least one template slot of the video draft template in a one-to-one correspondence; the template slot is used to indicate the fillable position of the video material to be filled in the video draft template.
8. The method according to claim 7, characterized in that The inserting at least one of the target segments into at least one template slot of the video draft template in a one-to-one correspondence according to the sequence of the at least one target segment in the original video track segment and the sequence of the at least one template slot in the video draft template comprises: If the target segment to be processed currently meets the preset condition corresponding to the template slot to be inserted currently, inserting the target segment to be processed currently into the template slot to be inserted currently; If the current target segment to be processed does not meet the preset condition corresponding to the template slot to be inserted currently, and there is a next target segment to be processed, the next target segment to be processed is determined as a new current target segment to be processed.
9. The method according to claim 8, characterized in that If the target segment to be processed currently and the template slot to be inserted currently meet a preset condition, inserting the target segment to be processed currently into the template slot to be inserted currently comprises: Obtain the first duration of the target segment to be processed and the second duration of the template slot to be inserted; If the first duration is greater than or equal to the second duration, inserting the target segment to be processed currently into the template slot to be inserted currently; Correspondingly, if the current target segment to be processed does not meet the preset condition corresponding to the template slot to be inserted, and there is a next target segment to be processed, determining the next target segment to be processed as the new current target segment to be processed includes: If the first duration is less than the second duration and there is a next target segment to be processed, the next target segment to be processed is determined as a new current target segment to be processed.
10. The method according to claim 8, characterized in that After inserting the target segment to be processed currently into the template slot to be inserted currently, the method further includes: If there is no next template slot to be inserted, the target video draft is determined according to at least one template slot that has completed insertion.
11. The method according to claim 8, characterized in that The method inserting at least one of the target segments into at least one template slot of the video draft template in a one-to-one correspondence with each other according to the sequence of the at least one target segment in the original video track segment and the sequence of the at least one template slot in the video draft template, further comprising: If the current target segment to be processed does not meet the preset condition corresponding to the current template slot to be inserted, and there is no next target segment to be processed, the current template slot to be inserted and the remaining template slots to be inserted are filled with a preset picture.
12. The method according to any one of claims 1 to 11, characterized in that: The presenting the target video track segment on the editing track comprises: A display position of the target video track segment in the editing track is determined, and the target video track segment is presented at the display position.
13. The method according to claim 12, characterized in that The determining the display position of the target video track segment in the editing track includes: The display position of the target video track segment in the editing track is determined according to the position of the pointer in the editing track.
14. The method according to claim 13, characterized in that The step of determining the display position of the target video track segment in the editing track according to the position of the pointer in the editing track comprises: The segment division point that is closest to the position of the pointer is determined as the display position of the target video track segment in the original video track segment.
15. The method according to claim 12, characterized in that Presenting the target video track segment at the display position includes: The target video track segment is presented at the display position, and the original video material in the original video track segment that is the same as that in the target video track segment is deleted.
16. The method according to any one of claims 1 to 11, characterized in that: After presenting the target video track segment on the editing track, the method further includes: In response to a touch operation on a second entry tag in the video editing interface, displaying a template editing interface corresponding to the target video track segment; the template editing interface includes at least one operation option; An editing operation is performed on the target video track segment according to the at least one operation option to obtain an edited target track editing segment.
17. The method according to claim 16, characterized in that The operation options include replacing template items; and performing an editing operation on the target video track segment according to the at least one operation option to obtain an edited target track editing segment includes: In response to a touch operation on a function label corresponding to the replacement template item, a template panel is displayed; the template panel includes a plurality of templates to be replaced; In response to the touch operation on the multiple templates to be replaced, a target replacement template is selected, and the original video material is filled into the target replacement template to obtain an edited target video track segment.
18. The method according to any one of claims 1 to 11, characterized in that: After presenting the target video track segment on the editing track, the method further includes: The target video track segment is stored in the cloud to obtain a corresponding cloud draft; the cloud draft includes editing information corresponding to the target video track segment; When the cloud draft is opened in an application whose version is lower than the preset version, the cloud draft is displayed as a video clip; the video clip is obtained after deleting the editing information corresponding to the target video track clip in the cloud draft.
19. A video processing device, characterized in that: include: an acquisition module, configured to, in response to a template editing operation triggered on a video editing interface, acquire a video draft template and an original video material indicated by the template editing operation; wherein an editing track is presented on the video editing interface, and an original video track segment formed based on the original video material is presented on the editing track, and the video draft template at least includes editing information, and the editing information is used to indicate an editing operation for the video material to be filled; A filling module, used to fill the original video material into the video draft template to form a target video track segment; wherein the target video track segment is used to present the editing effect obtained by the editing process corresponding to the editing operation on the original video material; The display module is used to present the target video track segment on the editing track.
20. An electronic device, characterized in that: include: Processor and memory; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the video processing method according to any one of claims 1 to 18.
21. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions. When the processor executes the computer-executable instructions, the video processing method according to any one of claims 1 to 18 is implemented.
22. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the video processing method according to any one of claims 1 to 18 is implemented.
Citation Information
Patent Citations
Editing template recommendation method and device, electronic equipment and storage medium
CN111105819A
Video editing processing method, device, electronic equipment and storage medium
CN111930994A
Video synthesis method and device, electronic equipment and storage medium
CN112291484A
Video editing method and device
CN114268748A
Interface for editing multiple video clips
US11153657B1
Cited By
Video processing method and device, equipment, storage medium and product
CN121665027A
Media content editing method and apparatus, and device and storage medium
WO2026208759A1