Video processing method and device, storage medium, and program product
By setting the clipping entry tag and applying the video draft template in the video editing interface, the tedious problem of importing and exporting between editing and clipping tools is solved, achieving efficient and convenient video processing operations and improving the user experience.
Patent Information
- Application Number
- PCT/CN2023/137491
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-07-18
- Filing Date
- 2023-12-08
- Publication Date
- 2025-01-23
AI Technical Summary
In the prior art, users need to import and export between two independent tools, editing and cutting, which is cumbersome, low efficiency, and affects the user experience.
Set the inlet label of the same model in the video editing interface, determine the video draft template through the entrance label, and use the video material set in the original video track clip to use the video draft template to achieve the same models in the video editing interface to cut the same models in high efficiency and conveniently. operate.
It simplifies video processing operations, improves video processing efficiency, improves user experience, and avoids the cumbersome import and export process between the two tools.
Smart Images

Figure CN2023137491_23012025_PF_FP_ABST
Abstract
Description
Video processing method, device, storage medium and program product
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on July 18, 2023, with application number 202310883748.X and invention name “Video processing method, device, storage medium and program product”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] 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
[0003] Publishing videos to promote products or express one's own opinions is becoming increasingly popular. Users are also increasingly demanding how to quickly and easily process videos to create engaging and informative videos.
[0004] In the related art, video processing can be performed through two operating tools: clipping and cutting.
[0005] 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, import and export operations need to be performed between the two tools, which is cumbersome and inefficient, affecting the user experience.
[0006] Summary of the Invention
[0007] The embodiments of the present disclosure provide a video processing method, device, storage medium, and program product to simplify operations, improve efficiency, and enhance user experience.
[0008] In a first aspect, an embodiment of the present disclosure provides a video processing method, including:
[0009] 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 the video editing interface presents an editing track, the editing track presenting an original video track segment formed based on the original video material, the video draft template includes at least editing information, the editing information being used to indicate an editing operation for the video material to be filled;
[0010] 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 obtained by the editing process corresponding to the editing operation on the original video material;
[0011] The target video track segment is presented on the editing track.
[0012] In a second aspect, an embodiment of the present disclosure provides a video processing device, including:
[0013] an acquisition module, configured to, in response to a template editing operation triggered on a video editing interface, acquire a video draft template and original video material indicated by the template editing operation; wherein the video editing interface presents an editing track, wherein 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, wherein the editing information is used to indicate the editing operation for the video material to be filled;
[0014] a filling module, configured 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;
[0015] A display module is configured to present the target video track segment on the editing track.
[0016] In a third aspect, an embodiment of the present disclosure provides an electronic device, including: a processor and a memory;
[0017] The memory stores computer-executable instructions;
[0018] The processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the video processing method described in the first aspect and various possible designs of the first aspect.
[0019] 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.
[0020] 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 described in the first aspect and various possible designs of the first aspect.
[0021] 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, 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 a 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 embodiment is simple to operate and can improve the efficiency of video processing, thereby enhancing the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. 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 any creative labor.
[0023] FIG1 is a schematic diagram of an application scenario of a video processing method provided by an embodiment of the present disclosure;
[0024] FIG2 is a flow chart of a video processing method according to an embodiment of the present disclosure;
[0025] FIG3a is a first schematic diagram of a video editing interface provided by an embodiment of the present disclosure;
[0026] FIG3 b is a second schematic diagram of a video editing interface provided by an embodiment of the present disclosure;
[0027] FIG4 is a first logical diagram of inserting a target segment into a template slot according to an embodiment of the present disclosure;
[0028] FIG5 is a first logical diagram of inserting a target segment into a template slot according to an embodiment of the present disclosure;
[0029] FIG6 a is a third schematic diagram of a video editing interface provided by an embodiment of the present disclosure;
[0030] FIG6 b is a first schematic diagram of a template editing page provided by an embodiment of the present disclosure;
[0031] FIG6 c is a second schematic diagram of a template editing page provided by an embodiment of the present disclosure;
[0032] FIG7 is a schematic diagram of an edit page corresponding to a template track provided by an embodiment of the present disclosure;
[0033] FIG8 is a second flow chart of a video processing method according to an embodiment of the present disclosure;
[0034] FIG9 is a structural block diagram of a video processing device provided by an embodiment of the present disclosure;
[0035] FIG10 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0036] To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure more clear, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present disclosure without making any creative efforts shall fall within the scope of protection of the present disclosure.
[0037] Publishing videos to promote products or express one's own opinions is becoming increasingly popular. Users are also increasingly demanding how to quickly and easily process videos to create engaging and informative videos.
[0038] In related technologies, editing and editing are two important operating tools for video processing. Among them, 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 length 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.
[0039] However, these two operating tools are typically separate, parallel functions within video processing software. If a user needs to use both the editing and the same-style editing tools simultaneously, they must import and export between the two tools. For example, some users might first apply the same template to the same-style editing tool daily, export the video, and then import it into the editing tool. This cumbersome and inefficient video processing method negatively impacts user experience.
[0040] To solve the above technical problems, the inventors of the present disclosure have discovered that an entry tag for cutting the same style can be set in the video editing interface. The video draft template can be determined through the entry tag, and the video material in the original video track segment loaded into the video editing interface can be applied to the video draft template. This can efficiently and conveniently implement the cutting the same style operation in the video editing interface, without the need to import and export between the editing and cutting the same style tools. The operation is simple, can improve the efficiency of video processing, and thus enhance the user experience. Based on this, the embodiments of the present disclosure provide a video processing method.
[0041] Figure 1 is a schematic diagram of an application scenario for the video processing method provided by an embodiment of the present disclosure. As shown in Figure 1 , a terminal device 101 and a server 102 are connected in communication via a network 103. Terminal device 101 can be an electronic device with a display screen, such as a computer, tablet, or smartphone. Network 103 can be a wired communication network, a wireless communication network, or the like.
[0042] In a specific implementation process, a terminal device is installed with a client of video processing software. In response to a user's touch operation, the terminal device opens the client and displays a video editing interface. In response to a template editing operation triggered on the video editing interface, the terminal device obtains 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. 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 on 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. There is no need to import and export between the editing and same-style cutting tools. The operation is simple, and the efficiency of video processing can be improved, thereby improving the user experience.
[0043] It should be noted that the scenario diagram shown in Figure 1 is only an example. The video processing method and scenario 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 by 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 by the embodiment of the present application is also applicable to similar technical problems.
[0044] FIG2 is a flow chart of a video processing method according to an embodiment of the present disclosure. The method of this embodiment can be applied in a terminal device, and the video processing method includes:
[0045] 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 the editing operation for the video material to be filled.
[0046] 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 fragment. Optionally, after adding the editing track, the original video material in the original video track fragment can be added, deleted, modified, etc. to obtain the original video track fragment.
[0047] The original video material may be a video stored in the album of the terminal device, a material stored in the cloud, or a material library, etc. The original video material may be one or more video clips or pictures.
[0048] 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.
[0049] 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.
[0050] Exemplarily, as shown in FIG3a , 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 (function 1 to function 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 FIG3b , a template panel 306 may be displayed below the preview area 301. The template panel 306 may display a search box 307, an option area 308 (options 1-option 4, options may include confirmation, clear, template classification, etc.), and a template cover 309. A template theme (not shown) may be displayed below the template cover, etc.
[0051] In one embodiment of the present disclosure, the template panel can be configured 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 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 again until the panel is lowered to the default height.
[0052] In one embodiment of the present disclosure, after the template panel is displayed, the user's favorite templates can be displayed in response to the touch operation on the control corresponding to the favorite item in the template panel (specifically, it can be set to display the favorite templates only 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 press the template cover) to realize template collection.
[0053] 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. The corresponding control can be set for use in the playback interface, and 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.
[0054] 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.
[0055] 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.
[0056] 202. 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.
[0057] 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, and the target segment can be filled into a template slot of the video draft template to obtain a corresponding target video draft. A target video track segment is formed based on the target video draft, and the target video track segment is presented on the editing track. It should be noted that the current video material can be the original video track segment or the cropped original video material added to the original video track segment.
[0058] 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 performed on the original video material; and forming a target video track segment based on the target video draft.
[0059] 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.
[0060] 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.
[0061] Specifically, there are multiple ways to form the target video track segment. In one feasible way, after filling the original video material into the video draft template, a complete video draft can be obtained, and the video draft can be determined as the target video track segment; in another feasible way, after filling the original video material into the video draft template, a complete video draft can be obtained, 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.
[0062] In one embodiment of the present disclosure, to increase user flexibility and facilitate user-incorporated subjective aesthetics, users can select the location from which to apply a video draft template. Specifically, selecting at least one target segment from the video material may include: obtaining the location of a pointer in the editing track; and determining at least one target segment from the original video material based on the location of the pointer.
[0063] Specifically, after selecting a video draft template, you can display multiple clips of the video material. In response to touch operations on multiple clips, you can select at least one target clip. You can also select a target clip using the pointer in the editing track. The pointer refers to the preview axis corresponding to the timeline. As the preview area plays to a certain position on the timeline, the pointer slides to the corresponding position on the editing track.
[0064] In one embodiment of the present disclosure, to simplify operations, determining at least one target segment from the original video material based on the pointer location may include determining the segment in the original video material corresponding to the pointer location and the segments following it as the target segment. In other words, sliding the pointer to the target location selects the segment at that location and the segments following it as the target segment, requiring only a single slide, making the operation quick and convenient.
[0065] In the embodiment of the present disclosure, there can 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 can be used, and automatic insertion can also be used to improve operational efficiency. Secondly, with respect to the automatic insertion method, in one feasible method, the target segment can be randomly inserted into the template slot. In another feasible method, considering that the sequence of each segment in the video material is the result of the user's subjective operation, in order to adapt to the user's aesthetic taste to a greater extent, the target segment can be inserted in combination with the sequence of each segment in the video material.
[0066] In one embodiment of the present disclosure, filling the at least one target segment into the video draft template may include: inserting the 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 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; the template slot is used to indicate a fillable position of the video material to be filled in the video draft template.
[0067] For example, assuming that the target fragments include 3, a, b and c, in order, and the template slots include 3, A, B and C, in order, 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.
[0068] In one embodiment of the present disclosure, considering that the template slot may have certain specification requirements for the inserted fragment, a preset condition judgment can be added to meet the specification requirements of the template slot. Specifically, according to the order of the at least one target fragment in the original video track fragment and the order of the at least one template slot in the video draft template, at least one target fragment is inserted into at least one template slot of the video draft template in a one-to-one correspondence, which can specifically include: if the current target fragment to be processed and the current template slot to be inserted meet the preset conditions, then the current target fragment to be processed is inserted into the current template slot to be inserted. If the current target fragment to be processed and the current template slot to be inserted meet the preset conditions, 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.
[0069] In one embodiment of the present disclosure, taking into account the limitation of template slots in terms of duration, 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.
[0070] In one embodiment of the present disclosure, taking into account the possibility of a mismatch between the number of target segments and template slots, when there are just no target segments left or there are some left, after inserting the target segment currently to be processed into the template slot currently to be inserted, it may also include: if there is no next template slot to be inserted, then determining the target video draft based on at least one of the template slots that has completed insertion. 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, then the next template slot to be inserted can be determined as the new current template slot to be inserted.
[0071] In one embodiment of the present disclosure, when the number of target segments is insufficient, at least one target segment is inserted 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 the at least one template slot in the video draft template. The method may also include: 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 no next target segment to be processed, then the current template slot to be inserted and the remaining template slots to be inserted are filled with preset pictures. Exemplarily, if the first duration is less than the second duration and there is no 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.
[0072] The following describes an example of the insertion strategy based on the segment duration with reference to FIG4 and FIG5 .
[0073] As shown in Figure 4, if the number of target clips that meet the requirements (duration greater than or equal to the required duration of the corresponding template slot) at or after the pointer (preview axis) is less than the number of template slots X, the target clips that meet the requirements are filled into the template slots in order. Unfilled template slots can be filled with preset images (such as a screenshot of the first frame of the original template video). As shown in Figure 5, if the number of target clips that meet the requirements at or after the pointer (preview axis) is greater than or equal to the number of template slots X, the target clips are filled into X template slots in order, and the remaining target clips are not filled.
[0074] In one embodiment of the present disclosure, the template slots of the video draft template include category attributes (different colors can be used to represent different categories, and color point marks can be set on the template slots), and the same target fragment can be filled in for 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 fragment 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 fragment 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 fragment 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.
[0075] 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.
[0076] For example, as shown in FIG6a, based on FIG3b, after generating the preview effect, you can click the play button (not shown), and the preview area 301 starts playing the target video track segment. After the template cover 3 (to the right of the cover 2, indicated by the dotted box) is selected, the template cover 3 displays the "click to edit" entry in the template selected state. Clicking it will enter the template editing page (as shown in FIG6b). After entering the template editing page, the target segment inserted into the template slot can be automatically played in the preview area 301. The default positioning video tab can be set to select the first template slot. The slot can be positioned to the playing segment. When playing to a certain target segment, the corresponding slot of the target segment will display the "click to edit" entry.
[0077] Additionally, clips in template slots of the same category can be marked with the same color dot. When editing the target clip in each template slot, click the "Click to Edit" entry on the slot for your own clip (the slot filled with the target clip), as shown in Figure 6b. This will display editing options such as [Replace], [Crop], [Volume] (image clips have no volume), and [Edit More], as shown in Figure 6c. Clicking a slot that hasn't been replaced with your own clip (a slot not filled with the target clip) will only display the [Replace] and [Edit More] options. Clicking [Replace] will bring up the album import page, which supports importing video clips longer than the slot length or importing image clips, clicking on the clip and filling the template slot. When confirming the replacement, if other clips of the same color have different clips imported, a pop-up window will ask if you want to replace them all. Clicking [Replace] will replace all other clips of the same color with the newly selected clip. Clicking [Crop] will enter the editing page, where you can drag and select the video display area and the video clip position. Clicking Confirm will take effect. Click [Volume] to open the "Clip Original Audio Volume" panel. Drag to adjust the volume within a preset range (e.g., 0-100), and click √ to confirm. Click [Edit More] to trigger the draft unlocking process.
[0078] 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.
[0079] 203. Present the target video track segment on the editing track.
[0080] 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 target video draft's track drop operation.
[0081] 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.
[0082] 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.
[0083] 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.
[0084] Specifically, in order to quickly and easily 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 split 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 split point between segment 2 and segment 3, or the segment split 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 split points, the position of the pointer is split, and the target video track segment is inserted at the split point. For example, if the pointer is at the M position of segment 3, then the M position can be cropped to obtain the split point at the M position, and the split point is determined as the display position.
[0085] In one embodiment of the present disclosure, determining the display position of the target video track segment in the editing track based on 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. For example, if the pointer is located at position M on segment 3, then a first distance between the first segment division point between segments 2 and 3 and position M can be determined, and a second distance between the second segment division point between segments 3 and 4 and position M can be determined, and then the first distance and the second distance are compared, and the segment division point corresponding to the smaller distance is determined as the display position.
[0086] 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.
[0087] Specifically, 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 they are satisfied with the target video draft, or when the target video draft is added to the original video track segment, the duplicate segment can be deleted and retained in the storage space. If it is found that the current target video draft does not meet the user's needs, the duplicate segment retained in the storage space can be restored.
[0088] In one embodiment of the present disclosure, step 203 may further 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.
[0089] Specifically, after adding the target video track clip to the editing track, select the template track in the video editing interface to display multiple operation options. Based on these operation options, you can perform related operations on the target video draft after adding the original video track clip, such as replacing the template, editing, unlocking the draft, deleting, and adjusting the volume.
[0090] 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 multiple templates to be replaced; selecting a target replacement template in response to a touch operation on multiple templates to be replaced, and filling the original video material into the target replacement template to obtain the edited target video track segment.
[0091] For example, the following describes an example of how to drop the target video draft and the editing operations after dropping the draft in conjunction with FIG. 7 .
[0092] During the specific implementation process, click Return (not shown) in the upper left corner of the template editing page (as shown in Figure 6b) to return to the editing project (as shown in Figure 6a), click √ on the template panel to collapse the panel, and insert the generated target video draft to the split point closer to the preview axis. The target segment filled in the template is retained and automatically moved backward.
[0093] After selecting the template track in the interface shown in Figure 3a, as shown in Figure 7, the bottom toolbar displays [Replace Template], [Edit], [Unlock], [Delete], and [Volume]. Click [Replace Template] to pull up the template panel, without displaying the material package tab. 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 the other editing tracks below it (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.
[0094] In one embodiment of the present disclosure, different undo and redo logics are provided for different scenarios.
[0095] 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, clicking Undo will delete the template, and the prompt "Undo: Add new template" will appear; clicking Redo will restore the template, and the prompt "Restore: Add new template" will appear; for editing the template after it 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 edit state, the template is still there, and the prompt "Undo: Template Edit" will appear; click Redo to restore the template edit, 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, the volume will return to the state before adjustment, and the prompt will be "Volume: xx (volume before adjustment)"; click Redo, the volume will return to the state after adjustment, and the prompt will be "Volume: xx (volume after adjustment)"; for the independent template editing page: each time you enter Undo and Redo, it will be grayed out. You can only click Undo after an editing operation occurs. The logic of Undo and Redo is aligned with the text editing.
[0096] 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, clicking the search box automatically pulls up the keyboard, and the search box displays a cursor animation. Clicking the cancel button returns to the template panel. After entering content in the input box, an X is displayed on the right. Clicking X can clear the entered content and 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; clicking on the associative words automatically fills the associative words in the input box and starts searching; after entering content, [Search] is displayed in the lower right corner of the keyboard, and clicking it triggers the search. During the search process, a loading state can be set. The search results are set to support filtering: default sorting, material type, number of clips, template length, material ratio, type, etc.; click Reset to select only [Default sorting] and uncheck all 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 templates, change the search term~".
[0097] 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 clip, 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.
[0098] Referring to FIG8 , FIG8 is a second flow chart of a video processing method provided by an embodiment of the present disclosure. 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:
[0099] 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 the editing operation for the video material to be filled.
[0100] 802. 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.
[0101] 803. Present the target video track segment on the editing track.
[0102] 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.
[0103] 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.
[0104] 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.
[0105] Specifically, in order to enable 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, and tablets) to obtain the video draft and further process the video draft. 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 lower version application. For a cloud draft containing a target video track segment, when the cloud draft is opened in a lower 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.
[0106] Exemplarily, the following strategy can be adopted for cloud synchronization of lower versions: for drafts containing unlocked template clips, upload the cloud draft, and then download the draft in the lower version. The template clip is displayed as a composite clip, in which the clip that has not been replaced with your own material (target clip) can be set with a watermark; for clips in unlocked templates that have not been replaced with your own material, the draft cloud synchronization can also be opened in the lower version with a watermark; for drafts containing target video track clips, that is, drafts containing the same editing style (template & unlocked draft), it can be set to not allow downgrading to a version that does not support composite clips, and a guided upgrade can be performed when downloading. For example, the following pop-up text can be used: Title: Software version needs to be upgraded; Body: The draft version is newer, upgrade to the latest version to open the draft; Interaction: The bottom button is "Update Now"; Supports clicking to close the pop-up window.
[0107] From the above description, it can be seen that in order to achieve cloud synchronization, the target video track segment can be displayed as a composite segment when the cloud draft is opened in a low-version application, thereby making it easier for users to view or edit the cloud draft on different devices.
[0108] Corresponding to the video processing method described above, FIG9 is a block diagram of a video processing device provided by an embodiment of the present disclosure. For ease of illustration, only portions relevant to the embodiment of the present disclosure are shown. Referring to FIG9 , the device 90 includes an acquisition module 901, a filling module 902, and a display module 903.
[0109] 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.
[0110] 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.
[0111] The display module 903 is configured to present the target video track segment on the editing track.
[0112] 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 the first entry tag in the 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.
[0113] 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.
[0114] 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.
[0115] 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 based on the position of the pointer; fill the at least one target segment into the video draft template to obtain the target video draft.
[0116] 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.
[0117] 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.
[0118] 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.
[0119] 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.
[0120] In one embodiment of the present disclosure, the filling module 902 is specifically configured 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.
[0121] 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 conditions 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.
[0122] 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, and present the target video track segment at the display position.
[0123] 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.
[0124] In one embodiment of the present disclosure, the display module 903 is specifically configured to determine the segment segmentation point closest to the position of the pointer as the display position of the target video track segment in the original video track segment.
[0125] 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 identical to the target video track segment.
[0126] 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 applied to 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.
[0127] 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.
[0128] In one embodiment of the present disclosure, the device 90 further 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.
[0129] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effects are similar and will not be described in detail in this embodiment.
[0130] In order to implement the above embodiment, the embodiment of the present disclosure further provides an electronic device.
[0131] Referring to FIG10 , a schematic diagram of the structure 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. 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-mounted terminals (e.g., vehicle-mounted navigation terminals), and fixed terminals such as digital TVs and desktop computers. The electronic device shown in FIG10 is merely an example and should not limit the functionality and scope of use of the embodiments of the present disclosure.
[0132] As shown in FIG10 , 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 into 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.
[0133] Typically, the following devices may be connected to the I / O interface 1005: an input device 1006 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 1007 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1008 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 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 shows an electronic device 100 having various devices, it should be understood that it is not required to implement or have all of the devices shown. More or fewer devices may be implemented or have alternatively.
[0134] 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 includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network via the communication device 1009, or installed from the storage device 1008, or installed from the 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 performed.
[0135] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, 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 that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport 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 thereof.
[0136] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0137] 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.
[0138] 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 a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through 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).
[0139] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two 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 box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0140] The units involved in the embodiments described in this disclosure may be implemented in software or hardware. In some cases, the name of a unit does not limit the unit itself. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses."
[0141] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and 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 chip (SOCs), complex programmable logic devices (CPLDs), and the like.
[0142] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can 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 can 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.
[0143] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also includes other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.
[0144] 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 have been 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.
[0145] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.
Claims
1. A video processing method, comprising: 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, wherein in response to a template editing operation triggered on a video editing interface, obtaining a video draft template indicated by the template editing operation comprises: In response to a touch operation on a first entry label in the video editing interface, displaying a template panel; 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, wherein forming a target video track segment 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; 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, wherein the forming a target video track segment based on the target video draft comprises: 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, wherein the step of filling the original video material into the video draft template to obtain the target video draft comprises: 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, wherein determining at least one target segment from the original video material according to the location 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, wherein 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, wherein 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 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 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, wherein 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 target segment to be processed does not satisfy the template slot to be inserted If the preset condition corresponding to the bit is met and there is a next target segment to be processed, 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, 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, wherein after inserting the target segment to be processed into the template slot to be inserted, the method further comprises: 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, wherein 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 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, wherein 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, wherein determining the display position of the target video track segment in the editing track comprises: 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, wherein 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, wherein presenting the target video track segment at the display position comprises: The target video track segment is presented at the display position, and the original video track segment is The original video material in the target video track segment that is identical to the original video material in the target video track segment is deleted.
16. The method according to any one of claims 1 to 11, wherein after presenting the target video track segment on the editing track, the method further comprises: 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, wherein the operation option comprises a template replacement item; and the step of 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 comprises: In response to a touch operation on a function label corresponding to the replacement template item, displaying a template panel; 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, wherein after presenting the target video track segment on the editing track, the method further comprises: Storing 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; 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, comprising: 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, comprising: 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, wherein the computer-readable storage medium stores computer-executable instructions, and when a 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, wherein when the computer program is executed by a processor, the method for video processing according to any one of claims 1 to 18 is implemented.
Citation Information
Patent Citations
Video generation method and device, electronic equipment and storage medium
CN113347465A
Video editing method and device
CN114268748A
Video processing method and device, equipment and storage medium
CN115914496A
Video file generation method and device, terminal and storage medium
US20220238139A1
Video editing method, terminal device, and computer-readable storage medium
WO2022126664A1