Video processing method, device and electronic equipment

By extracting the original multimedia materials in the video editing draft and automatically matching the target editing template for processing, the problem of low efficiency caused by too many video editing drafts is solved, and efficient video editing into a film is achieved.

CN117641023BActive Publication Date: 2024-09-13BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210987415.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-17
Publication Date
2024-09-13
Estimated Expiration
2042-08-17

AI Technical Summary

Technical Problem

When users edit videos, too many drafts of video clips are saved in electronic devices, resulting in low efficiency of editing into films. Users need to process each draft one by one, resulting in high operational complexity and low efficiency.

Method used

By obtaining the video clip draft, extracting the original multimedia material, and determining the matching target editing template according to the content tag of the material, the material is automatically processed to generate a finished video, reducing manual editing operations.

Benefits of technology

It reduces the complexity of editing operations, improves the efficiency of editing into films, reduces the time and energy spent processing video editing drafts, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117641023B
    Figure CN117641023B
Patent Text Reader

Abstract

The present disclosure provides a video processing method, device and electronic device, the method comprising: obtaining a video editing draft; the video editing draft is used to record original multimedia materials and indication information of a first video editing operation for the original multimedia materials, the original multimedia materials including video materials and / or image materials; extracting the original multimedia materials from the video editing draft; determining a target editing template matching the original multimedia materials according to the original multimedia materials; the target editing template is used to record indication information of a second video editing operation; according to the target editing template, processing the original multimedia materials according to the second video editing operation to obtain a first target video; the first target video carries the editing effect of the second video editing operation. Improve video editing efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to the field of video processing technology, and more particularly to a video processing method, device, and electronic device. Background Art

[0002] The video editing draft can record multiple multimedia materials in the video editing process and the editing operation data added by the user to the multiple multimedia materials.

[0003] At present, when a user pauses editing multimedia materials in an electronic device, the electronic device can save the video editing draft in the editing process. When the user needs to continue editing the multimedia materials, the user can load the video editing draft through the electronic device so that the user can continue to edit the multimedia materials through the electronic device. However, when there are many video editing drafts saved in the electronic device, the user can only edit the video editing drafts one by one through the electronic device, which leads to low efficiency in editing into a film. Summary of the invention

[0004] The present disclosure provides a video processing method, device and electronic device, which are used to solve the technical problem of low efficiency of video editing in the prior art.

[0005] In a first aspect, the present disclosure provides a video processing method, the method comprising:

[0006] Obtaining a video editing draft; the video editing draft is used to record original multimedia materials and instruction information of a first video editing operation on the original multimedia materials, wherein the original multimedia materials include video materials and / or image materials;

[0007] Extracting the original multimedia material from the video editing draft;

[0008] Determining, according to the original multimedia material, a target editing template that matches the original multimedia material; the target editing template is used to record instruction information of the second video editing operation;

[0009] According to the target editing template, the original multimedia material is processed according to the second video editing operation to obtain a first target video; the first target video has the editing effect of the second video editing operation.

[0010] In a second aspect, the present disclosure provides a video processing device, the video processing device comprising a first acquisition module, an extraction module, a determination module and a processing module, wherein:

[0011] The first acquisition module is used to acquire a video editing draft; the video editing draft is used to record original multimedia materials and instruction information of a first video editing operation on the original multimedia materials, wherein the original multimedia materials include video materials and / or image materials;

[0012] The extraction module is used to extract the original multimedia material from the video editing draft;

[0013] The determination module is used to determine, based on the original multimedia material, a target editing template that matches the original multimedia material; the target editing template is used to record instruction information of the second video editing operation;

[0014] The processing module is used to process the original multimedia material according to the target editing template and the second video editing operation to obtain a first target video; the first target video has the editing effect of the second video editing operation.

[0015] In a third aspect, an embodiment of the present disclosure provides an electronic device, including: a processor and a memory;

[0016] The memory stores computer-executable instructions;

[0017] 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 aspects of the first aspect.

[0018] 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 as described in the first aspect and various possible aspects of the first aspect are implemented.

[0019] 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 aspects of the first aspect.

[0020] The present disclosure provides a video processing method, device and electronic device, the electronic device can obtain a video editing draft, wherein the video editing draft is used to record the original multimedia material and the indication information of the first video editing operation for the original multimedia material, the original multimedia material includes video material and / or image material, the original multimedia material is extracted from the video editing draft, and based on the original multimedia material, a target editing template matching the original multimedia material is determined, wherein the target editing template is used to record the indication information of the second video editing operation, and the original multimedia material is processed according to the target editing template according to the second video editing operation to obtain a first target video, and the first target video has the editing effect of the second video editing operation. In the above method, since the electronic device can automatically add the second video editing operation matching the original multimedia material to the original multimedia material in the video editing draft, thereby generating a finished video corresponding to the video editing draft, there is no need to manually edit one by one, therefore, the complexity of the editing operation can be reduced and the efficiency of editing into a film can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] 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.

[0022] Figure 1 A schematic diagram of an application scenario provided by an embodiment of the present disclosure;

[0023] Figure 2 A schematic diagram of a flow chart of a video processing method provided by an embodiment of the present disclosure;

[0024] Figure 3 A schematic diagram of a video editing draft provided by an embodiment of the present disclosure;

[0025] Figure 4 A schematic diagram of a process of enabling the automatic creation of a draft into a film function provided in an embodiment of the present disclosure;

[0026] Figure 5 A schematic diagram of a process for obtaining a first target video provided by an embodiment of the present disclosure;

[0027] Figure 6 A schematic flow chart of a method for displaying a first target video provided by an embodiment of the present disclosure;

[0028] Figure 7 A schematic diagram of a process for acquiring a target image provided by an embodiment of the present disclosure;

[0029] Figure 8 A schematic diagram of a process of obtaining a first cover provided by an embodiment of the present disclosure;

[0030] Fig. 9 A schematic diagram of a process of displaying a first cover provided by an embodiment of the present disclosure;

[0031] Fig. 10A A schematic diagram of a process of deleting a first target video provided by an embodiment of the present disclosure;

[0032] Fig. 10B A schematic diagram of another process of deleting a first target video provided by an embodiment of the present disclosure;

[0033] Fig.11 A schematic diagram of a method for replacing a target clipping template provided by an embodiment of the present disclosure;

[0034] Fig.12 A schematic diagram of a process of replacing a target clipping template provided by an embodiment of the present disclosure;

[0035] Fig.13 A schematic diagram of the structure of a video processing device provided by an embodiment of the present disclosure;

[0036] Fig.14 A schematic diagram of the structure of another video processing device provided by an embodiment of the present disclosure;

[0037] Fig.15 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0038] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0039] To facilitate understanding, the concepts involved in the embodiments of the present disclosure are explained below.

[0040] Electronic device: a device with wireless transceiver function. Electronic devices can be deployed on land, including indoors or outdoors, handheld, wearable or vehicle-mounted; they can also be deployed on the water (such as ships, etc.). The electronic device can be a mobile phone, a tablet computer, a computer with wireless transceiver function, a virtual reality (VR) electronic device, an augmented reality (AR) electronic device, a wireless terminal in industrial control, a vehicle-mounted electronic device, a wireless terminal in self-driving, a wireless electronic device in remote medical, a wireless electronic device in smart grid, a wireless electronic device in transportation safety, a wireless electronic device in smart city, a wireless electronic device in smart home, a wearable electronic device, etc. The electronic device involved in the embodiments of the present disclosure can also be called a terminal, a user equipment (UE), an access electronic device, a vehicle-mounted terminal, an industrial control terminal, a UE unit, a UE station, a mobile station, a mobile station, a remote station, a remote electronic device, a mobile device, a UE electronic device, a wireless communication device, a UE agent or a UE device, etc. Electronic devices may also be fixed or mobile.

[0041] Original multimedia materials: Original multimedia materials include video materials and / or image materials. For example, the original multimedia materials in the video editing process may include multiple video materials, multiple image materials, or multiple video materials and multiple image materials, which are not limited in the embodiments of the present disclosure.

[0042] Video editing draft: The video editing draft is used to record the original multimedia material and the indication information of the first video editing operation on the original multimedia material. For example, the video editing draft may include multiple video materials corresponding to the original multimedia material and the number of editing operations performed by the user on the original multimedia material. For example, the electronic device merges video A and video B, adds a transition effect between video A and video B, and adds an opening effect to the first frame of video A. When the electronic device stops editing video A and video B, the electronic device may generate a video editing draft corresponding to video A and video B. The video editing draft may include video A, video B, and the operation of adding a transition effect between video A and video B, and the operation of adding an opening effect to the first frame of video A. Optionally, the video editing draft may record the manual editing operation of the user on the original multimedia material, and the video editing draft may also record the automatic editing operation of the video editing program on the original multimedia material through a preset editing template, which is not limited in the embodiments of the present disclosure.

[0043] Target editing template: The target editing template is used to record the instruction information of the second video editing operation. For example, the target editing template can add the second video editing operation to the original multimedia material to obtain the first target video corresponding to the original multimedia material, wherein the first target video has the editing effect of the second video editing operation. For example, if the video editing operations recorded by the target editing template include: adding transition effect A between the first video and the second video, and adding transition effect B between the second video and the third video, then when the electronic device performs video editing processing on video A, video B and video C through the target editing template, transition effect A can be added between video A and video B, and transition effect B can be added between video B and video C.

[0044] In the related art, when a user pauses editing of multimedia materials in an electronic device, the electronic device can save a video editing draft in the editing process. For example, if the electronic device stops editing video A and video B after adding a transition effect between video A and video B, the electronic device can store the video editing draft in the video editing process, and the video editing draft can include video A, video B, and the operation of adding a transition effect between video A and video B. After the user loads the video editing draft through the electronic device, the user can continue to edit the multimedia materials. However, when the number of video editing drafts is large, the user can only edit the video editing drafts one by one through the electronic device, which leads to a low efficiency of editing the drafts into films.

[0045] In order to solve the technical problems in the related art, the embodiment of the present disclosure provides a video processing method, wherein an electronic device can obtain a video editing draft for recording original multimedia materials and a first video editing operation for the original multimedia materials, extract the original multimedia materials from the video editing draft, perform content analysis on the original multimedia materials, obtain content tags corresponding to the original multimedia materials, and determine a target editing template matching the original multimedia materials from a plurality of preset editing templates according to the content tags, add a second video editing operation corresponding to the target editing template to the original multimedia materials, obtain a first target video, wherein the first target video has the editing effect of the second video editing operation, and the multimedia materials in the first target video are the original multimedia materials. In this way, each time the electronic device generates a video editing draft, the electronic device can automatically match the corresponding target editing template to the original multimedia materials in the video editing draft, and edit the original multimedia materials through the editing operation corresponding to the target editing template to obtain the finished video corresponding to the video editing draft, so that the electronic device can reduce the complexity of the editing operation and improve the efficiency of editing into a film.

[0046] Next, combine Figure 1 , the application scenarios of the embodiments of the present disclosure are described.

[0047] Figure 1 A schematic diagram of an application scenario provided by an embodiment of the present disclosure. Figure 1 , including an electronic device. The electronic device includes page 101 and page 102. Page 101 is a draft page, and page 101 includes a draft control, a film control, a draft A, and a draft B. When the user clicks the film control, the electronic device displays page 102, and page 102 includes a draft control, a film control, a video A, and a video B. Video A is a video after the editing template processes the original multimedia material in draft A, and video B is a video after another editing template processes the original multimedia material in draft B. In this way, each time the electronic device edits a video editing draft, it can generate a video corresponding to the video editing draft, thereby reducing the complexity of video editing and improving the efficiency of video editing.

[0048] It should be noted that Figure 1 The application scenarios of the embodiments of the present disclosure are merely illustrative and are not intended to limit the application scenarios of the embodiments of the present disclosure.

[0049] The technical solution of the present invention and how the technical solution of the present invention solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present invention will be described below in conjunction with the accompanying drawings.

[0050] Figure 2 A flowchart of a video processing method provided by an embodiment of the present disclosure. Figure 2 , the method may include:

[0051] S201, obtaining a video editing draft.

[0052] The execution subject of the embodiment of the present disclosure may be an electronic device, or a video processing device arranged in the electronic device. The video processing device may be implemented by software, or the video processing device may be implemented by a combination of software and hardware.

[0053] Optionally, the video editing draft is used to record the original multimedia material and the instruction information of the first video editing operation on the original multimedia material. Optionally, the original multimedia material can be the multimedia material in the video editing process. For example, when the user edits video material A and video material B, the original multimedia material in the video editing draft includes video material A and video material B; when the user edits image material A and image material B, the original multimedia material in the video editing draft includes image material A and image material B.

[0054] Optionally, when the user stops editing the original multimedia material, the electronic device can obtain a video editing draft corresponding to the original multimedia material, and can continue editing the original multimedia material by loading the video editing draft again.

[0055] Next, combine Figure 3 , explain the draft video editing.

[0056] Figure 3 A schematic diagram of a video editing draft provided by an embodiment of the present disclosure. Figure 3 , including an electronic device. The electronic device includes page 301, page 302, page 303, page 304 and page 305. Page 301 includes a start creation control and a draft control, and the number of drafts in the draft area under the draft control is 0. When the user clicks the start creation control, the electronic device jumps from page 301 to page 302.

[0057] Please refer to page 302, which includes video A, video B, video C, video D, video E and video F. When the user clicks video A and confirms, the electronic device jumps from page 302 to page 303. Among them, page 303 is the clipping page of video A. Video A includes 3 frames of images, and the position of the clipping track is the first frame of video A. When the user clicks the sun sticker, the electronic device adds a sun sticker to 1 frame of image. When the user clicks to close the control, the electronic device jumps from page 303 to page 304.

[0058] Please refer to page 304, which includes a start creation control and a draft control, wherein the area under the draft control includes draft A, which is the editing draft corresponding to video A. When the user clicks draft A, the electronic device jumps from page 304 to page 305, wherein page 305 is the editing page of video A, and page 305 includes 1 frame image, 2 frame image and 3 frame image, wherein 1 frame image includes the sun sticker from the last editing, and the user can continue to edit video A by touching page 305.

[0059] Optionally, the electronic device obtains the draft data corresponding to the multimedia information in the following two cases:

[0060] Case 1: The video editing program does not have the automatic draft-to-film function enabled.

[0061] Optionally, the video editing program is used to edit multimedia materials. For example, the video editing program can be an application program in an electronic device, and materials such as videos and images can be edited through the video editing program.

[0062] If the video editing program does not enable the automatic filming function of the draft, the first page is displayed. Optionally, the first page is a function setting page. For example, the first page can be a setting page corresponding to the video editing program, and multiple functions of the video editing program can be controlled through multiple controls in the first page.

[0063] In response to the triggering operation of the first control in the first page, the automatic filming function of the draft is turned on, and the video editing draft is obtained. Optionally, the first control is a switch control of the automatic filming function of the draft. For example, when the switch control of the automatic filming function of the draft is turned off, the video editing program does not turn on the automatic filming function of the draft. If the user clicks the switch control of the automatic filming function of the draft in the function setting page, the switch control of the automatic filming function of the draft is turned on, and the video editing program turns on the automatic filming function of the draft.

[0064] Optionally, after the video editing program turns on the automatic film-making function of the draft, the video editing program can scan multiple video editing drafts to obtain multiple video editing drafts.

[0065] It should be noted that after the video editing program turns on the automatic filming function of the draft, the video editing program can scan a preset number of video editing drafts to obtain the preset number of video editing drafts. For example, the electronic device includes 100 video editing drafts. When the automatic filming function of the draft in the video editing program is turned on, the video editing program can obtain 10 video editing drafts from the 100 video editing drafts (for example, obtain the first 10 video editing drafts arranged in the order of generation time). In this way, the video editing program can generate the finished video corresponding to the latest video editing draft, avoiding the long time-consuming process of obtaining all video editing drafts, thereby improving the user experience and the efficiency of editing into films.

[0066] Optionally, the electronic device may display the first page according to the following feasible implementation method: in response to a touch operation on the second control in the second page, the first page is displayed. Optionally, the second page is used to present the first target video, and the first control is used to jump to the first page, wherein the first target video is the finished video corresponding to the video editing draft. For example, the second page may be an aggregate page of finished videos obtained by the video editing program automatically processing the video editing draft into a film. When the automatic filming function of the draft in the video editing program is not turned on, there is no finished video that can be displayed on the second page. The video editing program may display the second control in the second page, and when the user clicks the second control, the video editing program may jump to the function setting page.

[0067] Next, combine Figure 4 , explains the process of enabling the automatic film-making function of drafts in video editing programs.

[0068] Figure 4 This is a schematic diagram of a process for enabling the automatic creation of drafts into films provided by an embodiment of the present disclosure. Figure 4 , including an electronic device. Among them, the display page of the electronic device is a page where the electronic device runs a video editing program, and the display page of the electronic device includes page 401 and page 402. Page 401 includes a start creation control, a draft control, and a finished film control. The area under the finished film control of page 401 is the second page, and the second page includes a "turn on and see" control (second control). When the user clicks the "turn on and see" control, the electronic device jumps from page 401 to page 402.

[0069] Please refer to page 402, which is the function setting page (first page), which includes the selection control for the automatic filming of draft function (first control), the selection control for automatically adding credits, the query control for clearing cache, and the query control for version number, among which the selection control for the automatic filming of draft function is in the off state. When the user clicks the selection control for the automatic filming of draft function, the selection control for the automatic filming of draft function is in the on state, the video editing program starts the first function, and obtains the video editing draft.

[0070] In this case, if the video editing program has not turned on the automatic film-making function of drafts, the user can turn on the function through a click operation. After the automatic film-making function of drafts is turned on, the video editing program can scan a preset number of video editing drafts, and then obtain a preset number of video editing drafts, avoiding the time-consuming process of obtaining all video editing drafts, thereby improving the user experience and improving the efficiency of film-making.

[0071] Case 2: The video editing program has enabled the automatic film-making function from draft.

[0072] If the video editing program has enabled the function of automatically converting the draft into a film, the video editing draft is obtained when the original multimedia material editing is completed. For example, if the video editing program has enabled the function of automatically converting the draft into a film, the video editing program can generate a finished video corresponding to the video editing draft, and when the original multimedia material editing is completed, the video editing program can generate a video editing draft corresponding to the original multimedia material, thereby obtaining the video editing draft.

[0073] In this case, when the video editing program turns on the automatic film-making function of the draft, the video editing program can obtain the video editing draft corresponding to the original multimedia material at the end of each editing, thereby improving the user experience and improving the efficiency of film-making.

[0074] S202: extracting original multimedia materials from the video editing draft.

[0075] Optionally, the electronic device can obtain the original multimedia material in the video editing draft. For example, when the electronic device edits video A and video B through a video editing program, after the editing is completed, the electronic device can obtain the video editing draft and obtain video A and video B in the video editing draft.

[0076] S203: Determine, according to the original multimedia material, a target editing template that matches the original multimedia material.

[0077] Optionally, the original multimedia material includes video material and / or image material. Optionally, the target editing template is used to record the instruction information of the second video editing operation. Optionally, the electronic device can determine the target editing template that matches the original multimedia material according to the following feasible implementation method: performing content parsing on the original multimedia material to obtain a content tag corresponding to the original multimedia material, and determining the target editing template that matches the original multimedia material according to the content tag.

[0078] Optionally, the content tag is used to indicate the characteristics of the original multimedia material. For example, the electronic device can determine the material type, material quantity, material duration and other information of the original multimedia material through the content tag corresponding to the original multimedia material.

[0079] Optionally, the electronic device may obtain the content label corresponding to the original multimedia material according to the following feasible implementation method: the original multimedia material is processed by the first model to obtain the content label. Optionally, the first model is obtained by learning multiple groups of samples, wherein the multiple groups of samples include sample multimedia materials and sample content labels corresponding to the sample multimedia materials. For example, for sample multimedia material A, the sample content label A corresponding to the sample multimedia material A is obtained to obtain a group of samples, which includes the sample multimedia material A and the sample content label A. Multiple groups of samples can be obtained by using this method.

[0080] Optionally, a target editing template matching the original multimedia material is determined based on the content tag, specifically: if the content tag indicates that the number of images of the original multimedia material is greater than or equal to a first threshold, or the content tag indicates that the number of videos of the original multimedia material is greater than or equal to a second threshold, or the content tag indicates that the video duration of the original multimedia material is greater than or equal to a third threshold, then the target editing template is determined from a plurality of preset editing templates based on the content tag. For example, if the original multimedia material includes image material, then when the number of image materials is greater than 2, the electronic device can determine the target editing template from a plurality of preset editing templates based on the content tag; if the original multimedia material includes video material, then when the number of video materials is greater than 2, the electronic device can determine the target editing template from a plurality of preset editing templates based on the content tag; when the number of video materials is 1 and the duration of the video material is greater than 2 seconds, the electronic device can determine the target editing template corresponding to the video material from a plurality of preset editing templates based on the content tag.

[0081] Optionally, the electronic device may obtain multiple preset clipping templates in a memory, or the electronic device may obtain multiple preset clipping templates in a server, which is not limited in the embodiments of the present disclosure.

[0082] Optionally, according to the content tag, a target clipping template is determined from a plurality of preset clipping templates, specifically: template features corresponding to a plurality of preset clipping templates are obtained to obtain a plurality of template features, and according to the content tag and the plurality of template features, a target clipping template matching the original multimedia material is determined from a plurality of preset clipping templates. For example, the electronic device may determine a first matching degree between the content tag (the content tag may be preprocessed by an encoder) and each template feature according to the content tag (e.g., obtaining the cosine similarity, Euclidean distance, etc. between the content tag and the template feature), and determine the preset clipping template corresponding to the largest matching degree among the first matching degrees as the target clipping template. For example, if the preset clipping template corresponding to the first matching degree A is clipping template A, and the preset clipping template corresponding to the first matching degree B is clipping template B, if the first matching degree A is less than the first matching degree B, the electronic device determines clipping template B as the target clipping template.

[0083] It should be noted that the electronic device can obtain the template features corresponding to the preset editing template through a feature extraction algorithm, and the electronic device can also obtain the template features corresponding to the preset editing template through model training, which is not limited in the embodiments of the present disclosure.

[0084] S204: Process the original multimedia material according to the target editing template and the second video editing operation to obtain a first target video.

[0085] Optionally, the first target video has the editing effect of the second video editing operation. The electronic device can process the original multimedia material through the target editing template to obtain the first target video. For example, the second video editing operation in the target editing template is to add a transition effect between the first video and the second video, and the original multimedia material includes video material A and video material B. After the video editing program edits video A and video B through the target editing template, the video material A and video material B in the obtained first target video include a transition effect.

[0086] Next, combine Figure 5 , the process of obtaining the first target video is explained.

[0087] Figure 5 A schematic diagram of a process for obtaining a first target video provided by an embodiment of the present disclosure. Figure 5, including a target clipping template and an original multimedia material. Among them, the target clipping template can automatically edit the three images, the target clipping template can add a left slide effect between the first image and the second image, and the target clipping template can add an upward slide effect between the second image and the third image. The original multimedia material includes image A, image B and image C. The original multimedia material is automatically edited by the target clipping template to obtain a first target video. Among them, the first frame image in the first target video is image A, the second frame image is image B, and the third frame image is image C. The playback special effect between image A and image B is a left slide effect, and the playback special effect between image B and image C is an upward slide effect.

[0088] It should be noted that each time the electronic device obtains a video editing draft corresponding to the original multimedia material, it can generate a first target video corresponding to the video editing draft. Therefore, after the electronic device generates the first target video corresponding to the video editing draft, if the user edits the video editing draft again, then when the user has not viewed the first target video corresponding to the video editing draft (the electronic device has not played the first target video), the electronic device can update the first target video according to the user's editing of the video editing draft (for example, when new multimedia material is added to the video editing draft, the first target video will also be updated to the new content); when the user has viewed the first target video corresponding to the video editing draft (the electronic device has played the first target video), the electronic device will not update the first target video.

[0089] The disclosed embodiment provides a video processing method, when the original multimedia material is edited, the electronic device can obtain the video editing draft corresponding to the original multimedia material, and extract the original multimedia material from the video editing draft, the electronic device can perform content analysis on the original multimedia material, obtain the content tag corresponding to the original multimedia material, and determine the target editing template that matches the original multimedia material from multiple preset editing templates according to the content tag, and process the original multimedia material through the target editing template to obtain a first target video with the effect of the second video editing operation. In this way, through the content tag corresponding to the original multimedia material, the electronic device can accurately obtain the target editing template corresponding to the original multimedia material, improve the accuracy of video editing, and each time the electronic device generates a video editing draft, the electronic device can automatically add the corresponding editing template to the original multimedia material in the video editing draft, and then generate a finished video corresponding to the video editing draft, thereby reducing the complexity of the editing operation and improving the efficiency of editing into a film.

[0090] exist Figure 2Based on the embodiment shown in the figure, after obtaining the first target video corresponding to the original multimedia material in the above video processing method, the above video processing method also includes a process of displaying the first target video. Figure 6 , a method for displaying a first target video is described.

[0091] Figure 6 A flowchart of a method for displaying a first target video provided by an embodiment of the present disclosure. Figure 6 The method flow includes:

[0092] S601: Acquire a target image of a first target video.

[0093] Optionally, the target image may be a cover image of the first target video. Optionally, the electronic device may obtain the target image through a video frame in the first target video. For example, the electronic device may obtain the first frame image of the first target video, and determine the first frame image as the target image of the first target video. For example, the electronic device may obtain key frames in the first target video through optical flow information, and determine any key frame as the target image. The electronic device may also obtain the target image of the first target video through other methods, which is not limited in the embodiments of the present disclosure.

[0094] Next, combine Figure 7 , the process of acquiring the target image is explained.

[0095] Figure 7 A schematic diagram of a process for acquiring a target image provided by an embodiment of the present disclosure. Figure 7 , including a first target video. The first target video includes image A, image B and image C, the play special effect between image A and image B is a left slide special effect, and the play special effect between image B and image C is an up slide special effect. The electronic device determines that the first frame image in the first target video is image A, and determines image A as the target image of the first target video.

[0096] S602: Generate a first cover of a first target video according to the target image.

[0097] Optionally, the electronic device may generate a first cover of the first target video according to the target image. For example, the electronic device may determine the target image as the first cover, and when the electronic device displays the first target video, the target image of the first target video may be displayed.

[0098] Optionally, the electronic device may generate the first cover of the first target video according to the following feasible implementation method: obtaining the video content of the first target video. Optionally, the electronic device may determine the video content of the first target video by the content of multiple key frames in the first target video. For example, if the multiple key frames in the first target video include a cat, the electronic device determines that the video content of the first target video is a cat; if the multiple key frames in the first target video are the sea, the electronic device determines that the video content of the first target video is the sea.

[0099] Optionally, the electronic device may obtain the video content of the first target video through a preset model. For example, the electronic device may identify the video frames in the first target video through an image recognition model, and then obtain the video content of the first target video. For example, if the image recognition model determines that most of the video frames in the first target video include a dog, the electronic device determines that the video content of the first target video is a dog; if the image recognition model determines that most of the video frames in the first target video include a mountain, the electronic device determines that the video content of the first target video is a mountain.

[0100] Determine the target text according to the video content. For example, the electronic device can obtain a preset correspondence between the video content and the target text, and then determine the target text corresponding to the video content through the video content of the first target video and the preset correspondence. For example, if the video content is about animals such as cats and dogs, the target text can be pets; if the video content is about scenery such as mountains and seas, the target text can be travel.

[0101] A first cover of the first target video is generated according to the target image and the target text. For example, the electronic device can add the target text at the bottom, top, etc. of the target image to obtain the first cover corresponding to the first target video.

[0102] Next, combine Figure 8 , the process of obtaining the first cover is explained.

[0103] Figure 8 A schematic diagram of a process for obtaining a first cover provided by an embodiment of the present disclosure. Figure 8 , including: a first target video. Among them, the first target video includes cat image 1, cat image 2 and cat image 3, there is a left slide effect between cat image 1 and cat image 2, and there is an up slide effect between cat image 2 and cat image 3. The electronic device determines cat image 1 in the first target video as the target image, and determines that the first target video is playing a pet through the video content of the first target video. Therefore, the electronic device determines that the target text is a pet. Through the target image and the target text, the first cover of the first target video is obtained, wherein the image of the first cover is cat image 1, and the bottom of the first cover includes the text pet.

[0104] S603. Display the first target video on the second page according to the first cover.

[0105] Optionally, the electronic device may display the first target video on the second page according to the following feasible implementation method: obtaining the generation time of the first target video, and displaying the first cover corresponding to the first target video on the second page according to the generation time. For example, the electronic device may obtain the timestamp corresponding to the generation time of the first target video, and then sort the multiple first target videos according to the timestamp to obtain the arrangement order, and then display the first cover corresponding to the first target video on the second page according to the arrangement order.

[0106] Next, combine Fig. 9 , the process of displaying the first cover on the second page is explained.

[0107] Fig. 9 A schematic diagram of a process of displaying a first cover provided by an embodiment of the present disclosure. Fig. 9 , including: an electronic device. The display pages of the electronic device include page 901, page 902, page 903 and page 904. Page 901 includes a start creation control, a draft control and a film control. The area under the draft control of page 901 is a draft aggregation page, and the draft aggregation page includes draft A. When the user clicks the start creation control, the electronic device jumps from page 901 to page 902.

[0108] Please refer to page 902, which includes video A, video B, video C, video D, video E and video F. When the user clicks video A and confirms, the electronic device jumps from page 902 to page 903. Among them, page 903 is the editing page of video A. Video A includes 3 frames of images, and the position of the editing track is the first frame of video A. When the user clicks on the sun sticker, the electronic device adds a sun sticker to 1 frame of image. When the user clicks to close the control, the electronic device jumps from page 903 to page 901. Among them, draft B is added to the draft area of ​​page 901. When the user clicks on the film control, the draft aggregation page in page 901 jumps to the second page, and page 904 is obtained.

[0109] Please refer to page 904, the second page includes the video with the text "Pet", video 1 and video 2. The finished film corresponding to draft A is video 1, and the finished film corresponding to draft B is the video with the text "Pet". In this way, every time the electronic device generates a video editing draft, it will automatically generate the video corresponding to the video editing draft, thereby improving the efficiency and accuracy of video editing.

[0110] It should be noted that the video editing operation of the video editing draft and the video editing operation of the first target video corresponding to the video editing draft may be the same or may be different.

[0111] It should be noted that the cover of the newly generated first video may include the text "new" to remind the user that the first video is the latest generated video. After the electronic device generates a new video, or after a preset time, the text "new" in the cover of the first video is no longer displayed. In this way, the user experience can be improved.

[0112] Optionally, the electronic device may delete the first cover corresponding to the first target video in the second page in response to the user's touch operation on the first cover.

[0113] Next, combine Figure 10A-10B , the process of deleting the first cover corresponding to the first target video is explained.

[0114] Fig. 10A A schematic diagram of a process of deleting a first target video provided by an embodiment of the present disclosure. Fig. 10A , including: an electronic device. The display page of the electronic device includes a film control, a management control, video A, video B, video C, video D, video E, and video F. When the user clicks the management control, a selection control is displayed in the upper right corner of each video, and a delete control is displayed at the bottom of the display page.

[0115] See also Fig. 10A , the management control is updated to a cancel control. When the user clicks video A and video F, the selection controls of video A and video F are highlighted, and the delete control is highlighted. When the user clicks the delete control, the electronic device deletes video A and video F, and the display page of the electronic device includes video B, video C, video D, and video E.

[0116] Fig. 10B Another schematic diagram of a process for deleting a first target video provided by an embodiment of the present disclosure. Fig. 10B , including an electronic device. The display page of the electronic device includes a film control, a management control, video A, video B, video C, video D, video E, and video F. When the user long presses video A (or long presses any area of ​​the display page), a selection control is displayed in the upper right corner of each video, and a delete control is displayed at the bottom of the display page.

[0117] See also Fig. 10B When the user clicks on video D and video F, the selection controls of video D and video F are highlighted, and the delete control is highlighted. When the user clicks on the delete control, the electronic device deletes video D and video F, and the display page of the electronic device includes video A, video B, video C, and video E. In this way, the electronic device can flexibly delete the first target video, thereby improving the flexibility of control.

[0118] Optionally, when the electronic device deletes the first target video, the electronic device may further display a secondary confirmation control for the deletion operation, which will not be described in detail in the embodiments of the present disclosure.

[0119] The disclosed embodiment provides a method for displaying a first target video, which includes obtaining a target image of the first target video, obtaining the video content of the first target video, determining a target text according to the video content, generating a first cover of the first target video according to the target image and the target text, obtaining the generation time of the first video, and displaying the first cover corresponding to the first target video on a second page according to the generation time. In the above method, the electronic device can display the latest first target video at the front of the second page, thereby improving the display effect of the first target video.

[0120] Based on any one of the above embodiments, after the first target video is displayed on the second page in the above video processing method, the above video processing method also includes a method for replacing the target clip template of the first target video. Fig.11 , a method for replacing a target clipping template is described.

[0121] Fig.11 A schematic diagram of a method for replacing a target clipping template provided by an embodiment of the present disclosure. Fig.11 The method flow includes:

[0122] S1101. In response to a touch operation on a first cover, a first target video corresponding to the first cover is played, wherein the first target video includes a template changing control.

[0123] Optionally, the first target video includes a template change control. For example, the upper right corner of the first target video includes a template change control, and when the user clicks the first cover in the second page, the electronic device can play the first target video corresponding to the first cover.

[0124] S1102. In response to a touch operation on a template changing control, display template controls corresponding to a plurality of preset clipping templates.

[0125] Optionally, template controls corresponding to multiple preset editing templates may be displayed according to the following feasible implementation: in response to a touch operation on a template change control, template controls corresponding to multiple preset editing templates may be displayed. For example, when a user clicks on a template change control of a first target video, the video editing program may display template controls corresponding to multiple preset editing templates at the bottom of the first target video.

[0126] S1103: In response to a touch operation on the template control, the target editing template of the first target video is replaced.

[0127] Optionally, when the user clicks on the template control, the electronic device may replace the target editing template in the first target video with a preset editing template corresponding to the template control.

[0128] Optionally, in response to a touch operation on the template control, the target editing template of the first target video is changed, specifically: obtaining the first editing template. For example, when the user clicks the template control corresponding to the preset editing template A, the video editing program determines the preset editing template A as the first editing template, and when the user clicks the template control corresponding to the preset editing template B, the video editing program determines the preset editing template B as the first editing template.

[0129] Optionally, the first editing template is used to record the instruction information of the third video editing operation. The second video editing operation in the first target video is replaced by the third video editing operation to obtain the second target video. The second target video has the editing effect of the third video editing operation. For example, after processing the video material A and the video material B by the target editing template, the first target video is obtained, and the video material A and the video material B in the first target video include a transition effect A. If the third video editing operation of the first editing template includes adding a transition effect B between the first video material and the second video material, then after processing the first target video by the first editing template, the second target video can be obtained, and the video material A and the video material B in the second target video include a transition effect B.

[0130] Next, combine Fig.12 , the process of replacing the target clip template is explained.

[0131] Fig.12 A schematic diagram of a process of replacing a target clipping template provided by an embodiment of the present disclosure. Fig.12 , including an electronic device. The display page of the electronic device includes page 1201 and page 1202. Page 1201 includes a start creation control, a draft control, and a finished film control. The area below the finished film control is a second page, and the second page includes video 1 and video 2. When the user clicks video 1, the electronic device jumps from page 1201 to page 1202.

[0132] Please refer to page 1202, which is the playback page of video 1. Page 1202 also includes a template change control. After the user clicks on the template change control, page 1202 displays the export control, and displays template controls corresponding to multiple preset editing templates such as template 1, template 2, and template 3 at the bottom. When the user clicks on the template control corresponding to template 2, the electronic device processes the material in video 1 through the video editing operation in template 2 to obtain video 3, and plays video 3 on page 1202. When the user clicks on the export control, the electronic device can save video 3 and jump to page 1201, where video 1 in page 1201 is updated to video 3. In this way, after the electronic device generates a finished video based on the video editing draft, the user can replace the template of the finished video, thereby improving the flexibility of video editing.

[0133] It should be noted that when the electronic device plays the first target video, the video editing program can also display a sharing control. When the user clicks the sharing control, the video editing program can share the first target video with other applications.

[0134] The disclosed embodiment provides a method for replacing a target clipping template, in response to a touch operation on a first cover, playing a first target video corresponding to the first cover, in response to a touch operation on a template replacement control, displaying a template control corresponding to a plurality of preset clipping templates, in response to a touch operation on the template control, acquiring a first clipping template, and replacing a second video editing operation in the first target video with a third video editing operation corresponding to the first clipping template, thereby obtaining a second target video with the effect of the third video editing operation. In this way, the electronic device can replace the clipping template of the generated video, thereby improving the flexibility and accuracy of video clipping.

[0135] Fig.13 A schematic diagram of the structure of a video processing device provided by an embodiment of the present disclosure. Fig.13 The video processing device 10 includes a first acquisition module 11, an extraction module 12, a determination module 13 and a processing module 14, wherein:

[0136] The first acquisition module 11 is used to acquire a video editing draft; the video editing draft is used to record original multimedia materials and instruction information of a first video editing operation on the original multimedia materials, the original multimedia materials including video materials and / or image materials;

[0137] The extraction module 12 is used to extract the original multimedia material from the video editing draft;

[0138] The determination module 13 is used to determine, based on the original multimedia material, a target editing template that matches the original multimedia material; the target editing template is used to record instruction information of the second video editing operation;

[0139] The processing module 14 is used to process the original multimedia material according to the target editing template and the second video editing operation to obtain a first target video; the first target video has the editing effect of the second video editing operation.

[0140] In a possible implementation manner, the determining module 13 is specifically configured to:

[0141] Performing content analysis on the original multimedia material to obtain a content tag corresponding to the original multimedia material;

[0142] A target editing template matching the original multimedia material is determined according to the content tag.

[0143] In a possible implementation manner, the determining module 13 is specifically configured to:

[0144] Processing the original multimedia material by using a first model to obtain the content label;

[0145] The first model is obtained by learning multiple groups of samples, and the multiple groups of samples include sample multimedia materials and sample content labels corresponding to the sample multimedia materials.

[0146] In a possible implementation manner, the determining module 13 is specifically configured to:

[0147] If the content tag indicates that the number of images of the original multimedia material is greater than or equal to a first threshold, or the content tag indicates that the number of videos of the original multimedia material is greater than or equal to a second threshold, or the content tag indicates that the video length of the original multimedia material is greater than or equal to a third threshold, then according to the content tag, the target editing template is determined from multiple preset editing templates.

[0148] In a possible implementation manner, the first acquisition module 11 is specifically configured to:

[0149] If the video editing program does not enable the automatic film-making function of the draft, a first page is displayed, the first page being a function setting page; in response to a triggering operation on a first control in the first page, the automatic film-making function of the draft is enabled, and the video editing draft is obtained, the first control being a switch control of the automatic film-making function of the draft;

[0150] If the video editing program has enabled the automatic film-making function of the draft, then when the editing of the original multimedia material is finished, the video editing draft is obtained.

[0151] In a possible implementation manner, the first acquisition module 11 is specifically configured to:

[0152] In response to a touch operation on a second control in a second page, the first page is displayed, the second page is used to present the first target video, and the second control is used to jump to the first page.

[0153] The video processing 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.

[0154] Fig.14 A schematic diagram of the structure of another video processing device provided by an embodiment of the present disclosure. Fig.13 Based on the examples shown, see Fig.14 The video processing device 10 further includes a second acquisition module 15, wherein the second acquisition module 15 is used to:

[0155] Acquire a target image of the first target video;

[0156] Generating a first cover of the first target video according to the target image;

[0157] According to the first cover, the first target video is displayed in the second page.

[0158] In a possible implementation manner, the second acquisition module 15 is specifically configured to:

[0159] Acquire video content of the first target video;

[0160] Determining a target text according to the video content;

[0161] A first cover of the first target video is generated according to the target image and the target text.

[0162] In a possible implementation manner, the second acquisition module 15 is specifically configured to:

[0163] Obtaining a generation time of the first target video;

[0164] According to the generation time, the first cover corresponding to the first target video is displayed in the second page.

[0165] In a possible implementation manner, the video processing device further includes a replacement module 16, and the replacement module 16 is used to:

[0166] In response to a touch operation on the first cover, playing a first target video corresponding to the first cover, wherein the first target video includes a template changing control;

[0167] In response to a touch operation on the template changing control, displaying template controls corresponding to a plurality of preset clipping templates;

[0168] In response to a touch operation on the template control, the target clipping template of the first target video is replaced.

[0169] In a possible implementation manner, the replacement module 16 is specifically used for:

[0170] Acquire a first editing template, where the first editing template is used to record instruction information of a third video editing operation;

[0171] The second video editing operation in the first target video is replaced by the third video editing operation to obtain a second target video, wherein the second target video has the editing effect of the third video editing operation.

[0172] The video processing 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.

[0173] Fig.15 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Fig.15 , which shows a schematic diagram of the structure of an electronic device 1500 suitable for implementing the embodiment of the present disclosure, and the electronic device 1500 may be a terminal device or a server. The terminal device may include but is not limited to mobile terminals such as mobile phones, notebook 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.15 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.

[0174] like Fig.15As shown, the electronic device 1500 may include a processing device (e.g., a central processing unit, a graphics processor, etc.) 1501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1502 or a program loaded from a storage device 1508 to a random access memory (RAM) 1503. Various programs and data required for the operation of the electronic device 1500 are also stored in the RAM 1503. The processing device 1501, the ROM 1502, and the RAM 1503 are connected to each other via a bus 1504. An input / output (I / O) interface 1505 is also connected to the bus 1504.

[0175] Typically, the following devices may be connected to the I / O interface 1505: input devices 1506 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 1507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1508 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1509. The communication devices 1509 may allow the electronic device 1500 to communicate with other devices wirelessly or by wire to exchange data. Although Fig.15 The electronic device 1500 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.

[0176] 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 1509, or installed from a storage device 1508, or installed from a ROM 1502. When the computer program is executed by the processing device 1501, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0177] 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.

[0178] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0179] 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.

[0180] 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).

[0181] 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.

[0182] 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".

[0183] 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.

[0184] 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.

[0185] In a first aspect, according to one or more embodiments of the present disclosure, a video processing method is provided, the method comprising:

[0186] Obtaining a video editing draft; the video editing draft is used to record original multimedia materials and instruction information of a first video editing operation on the original multimedia materials, wherein the original multimedia materials include video materials and / or image materials;

[0187] Extracting the original multimedia material from the video editing draft;

[0188] Determining, according to the original multimedia material, a target editing template that matches the original multimedia material; the target editing template is used to record instruction information of the second video editing operation;

[0189] According to the target editing template, the original multimedia material is processed according to the second video editing operation to obtain a first target video; the first target video has the editing effect of the second video editing operation.

[0190] According to one or more embodiments of the present disclosure, determining a target editing template matching the original multimedia material according to the original multimedia material includes:

[0191] Performing content analysis on the original multimedia material to obtain a content tag corresponding to the original multimedia material;

[0192] A target editing template matching the original multimedia material is determined according to the content tag.

[0193] According to one or more embodiments of the present disclosure, performing content parsing on the original multimedia material to obtain a content tag corresponding to the original multimedia material includes:

[0194] Processing the original multimedia material by using a first model to obtain the content label;

[0195] The first model is obtained by learning multiple groups of samples, and the multiple groups of samples include sample multimedia materials and sample content labels corresponding to the sample multimedia materials.

[0196] According to one or more embodiments of the present disclosure, determining a target editing template matching the original multimedia material according to the content tag includes:

[0197] If the content tag indicates that the number of images of the original multimedia material is greater than or equal to a first threshold, or the content tag indicates that the number of videos of the original multimedia material is greater than or equal to a second threshold, or the content tag indicates that the video length of the original multimedia material is greater than or equal to a third threshold, then according to the content tag, the target editing template is determined from multiple preset editing templates.

[0198] According to one or more embodiments of the present disclosure, obtaining a video editing draft includes:

[0199] If the video editing program does not enable the automatic film-making function of the draft, a first page is displayed, the first page being a function setting page; in response to a triggering operation on a first control in the first page, the automatic film-making function of the draft is enabled, and the video editing draft is obtained, the first control being a switch control of the automatic film-making function of the draft;

[0200] If the video editing program has enabled the automatic film-making function of the draft, then when the editing of the original multimedia material is finished, the video editing draft is obtained.

[0201] According to one or more embodiments of the present disclosure, displaying a first page includes:

[0202] In response to a touch operation on a second control in a second page, the first page is displayed, the second page is used to present the first target video, and the second control is used to jump to the first page.

[0203] According to one or more embodiments of the present disclosure, after obtaining the first target video, the method further includes:

[0204] Acquire a target image of the first target video;

[0205] Generating a first cover of the first target video according to the target image;

[0206] According to the first cover, the first target video is displayed in the second page.

[0207] According to one or more embodiments of the present disclosure, generating a first cover of the first target video according to the target image includes:

[0208] Acquire video content of the first target video;

[0209] Determining a target text according to the video content;

[0210] A first cover of the first target video is generated according to the target image and the target text.

[0211] According to one or more embodiments of the present disclosure, displaying the first cover on the second page includes:

[0212] Obtaining a generation time of the first target video;

[0213] According to the generation time, the first cover corresponding to the first target video is displayed in the second page.

[0214] According to one or more embodiments of the present disclosure, after displaying the first cover on the second page, the method further includes:

[0215] In response to a touch operation on the first cover, playing a first target video corresponding to the first cover, wherein the first target video includes a template changing control;

[0216] In response to a touch operation on the template changing control, displaying template controls corresponding to a plurality of preset clipping templates;

[0217] In response to a touch operation on the template control, the target clipping template of the first target video is replaced.

[0218] According to one or more embodiments of the present disclosure, in response to a touch operation on the template control, changing the target clipping template of the first target video includes:

[0219] Acquire a first editing template, where the first editing template is used to record instruction information of a third video editing operation;

[0220] The second video editing operation in the first target video is replaced by the third video editing operation to obtain a second target video, wherein the second target video has the editing effect of the third video editing operation.

[0221] In a second aspect, an embodiment of the present disclosure provides a video processing device, the video processing device comprising a first acquisition module, an extraction module, a determination module and a processing module, wherein:

[0222] The first acquisition module is used to acquire a video editing draft; the video editing draft is used to record original multimedia materials and instruction information of a first video editing operation on the original multimedia materials, wherein the original multimedia materials include video materials and / or image materials;

[0223] The extraction module is used to extract the original multimedia material from the video editing draft;

[0224] The determination module is used to determine, based on the original multimedia material, a target editing template that matches the original multimedia material; the target editing template is used to record instruction information of the second video editing operation;

[0225] The processing module is used to process the original multimedia material according to the target editing template and the second video editing operation to obtain a first target video; the first target video has the editing effect of the second video editing operation.

[0226] According to one or more embodiments of the present disclosure, the determination module is specifically configured to:

[0227] Performing content analysis on the original multimedia material to obtain a content tag corresponding to the original multimedia material;

[0228] A target editing template matching the original multimedia material is determined according to the content tag.

[0229] According to one or more embodiments of the present disclosure, the determination module is specifically configured to:

[0230] Processing the original multimedia material by using a first model to obtain the content label;

[0231] The first model is obtained by learning multiple groups of samples, and the multiple groups of samples include sample multimedia materials and sample content labels corresponding to the sample multimedia materials.

[0232] According to one or more embodiments of the present disclosure, the determination module is specifically configured to:

[0233] If the content tag indicates that the number of images of the original multimedia material is greater than or equal to a first threshold, or the content tag indicates that the number of videos of the original multimedia material is greater than or equal to a second threshold, or the content tag indicates that the video length of the original multimedia material is greater than or equal to a third threshold, then according to the content tag, the target editing template is determined from multiple preset editing templates.

[0234] According to one or more embodiments of the present disclosure, the first acquisition module is specifically used to:

[0235] If the video editing program does not enable the automatic film-making function of the draft, a first page is displayed, the first page being a function setting page; in response to a triggering operation on a first control in the first page, the automatic film-making function of the draft is enabled, and the video editing draft is obtained, the first control being a switch control of the automatic film-making function of the draft;

[0236] If the video editing program has enabled the automatic film-making function of the draft, then when the editing of the original multimedia material is finished, the video editing draft is obtained.

[0237] According to one or more embodiments of the present disclosure, the first acquisition module is specifically used to:

[0238] In response to a touch operation on a second control in a second page, the first page is displayed, the second page is used to present the first target video, and the second control is used to jump to the first page.

[0239] According to one or more embodiments of the present disclosure, the video processing device further includes a second acquisition module, wherein the second acquisition module is configured to:

[0240] Acquire a target image of the first target video;

[0241] Generating a first cover of the first target video according to the target image;

[0242] According to the first cover, the first target video is displayed in the second page.

[0243] According to one or more embodiments of the present disclosure, the second acquisition module is specifically configured to:

[0244] Acquire video content of the first target video;

[0245] Determining a target text according to the video content;

[0246] A first cover of the first target video is generated according to the target image and the target text.

[0247] According to one or more embodiments of the present disclosure, the second acquisition module is specifically configured to:

[0248] Obtaining a generation time of the first target video;

[0249] According to the generation time, the first cover corresponding to the first target video is displayed in the second page.

[0250] According to one or more embodiments of the present disclosure, the video processing device further includes a replacement module, wherein the replacement module is used to:

[0251] In response to a touch operation on the first cover, playing a first target video corresponding to the first cover, wherein the first target video includes a template changing control;

[0252] In response to a touch operation on the template changing control, displaying template controls corresponding to a plurality of preset clipping templates;

[0253] In response to a touch operation on the template control, the target clipping template of the first target video is replaced.

[0254] According to one or more embodiments of the present disclosure, the replacement module is specifically used for:

[0255] Acquire a first editing template, where the first editing template is used to record instruction information of a third video editing operation;

[0256] The second video editing operation in the first target video is replaced by the third video editing operation to obtain a second target video, wherein the second target video has the editing effect of the third video editing operation.

[0257] In a third aspect, an embodiment of the present disclosure provides an electronic device, including: a processor and a memory;

[0258] The memory stores computer-executable instructions;

[0259] 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 aspects of the first aspect.

[0260] 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 as described in the first aspect and various possible aspects of the first aspect are implemented.

[0261] 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 aspects of the first aspect.

[0262] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0263] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0264] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0265] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.

[0266] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0267] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0268] It is understood that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of the relevant laws and regulations. The data may include information, parameters and messages, such as flow switching indication information.

[0269] 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.

[0270] 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.

[0271] 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: Get a draft of the video clip; The video editing draft is used to record original multimedia materials and instruction information of a first video editing operation on the original multimedia materials, wherein the original multimedia materials include video materials and / or image materials; Extracting the original multimedia material from the video editing draft; Determining, according to the original multimedia material, a target editing template that matches the original multimedia material; The target editing template is used to record instruction information of the second video editing operation; According to the target editing template, the original multimedia material is processed according to the second video editing operation to obtain a first target video; The first target video carries the editing effect of the editing operation of the second video.

2. The method according to claim 1, characterized in that: Determining a target editing template matching the original multimedia material according to the original multimedia material includes: Performing content analysis on the original multimedia material to obtain a content tag corresponding to the original multimedia material; A target editing template matching the original multimedia material is determined according to the content tag.

3. The method according to claim 2, characterized in that Performing content analysis on the original multimedia material to obtain a content tag corresponding to the original multimedia material includes: Processing the original multimedia material by using a first model to obtain the content label; The first model is obtained by learning multiple groups of samples, and the multiple groups of samples include sample multimedia materials and sample content labels corresponding to the sample multimedia materials.

4. The method according to claim 2 or 3, characterized in that: Determining a target editing template matching the original multimedia material according to the content tag includes: If the content tag indicates that the number of images of the original multimedia material is greater than or equal to a first threshold, or the content tag indicates that the number of videos of the original multimedia material is greater than or equal to a second threshold, or the content tag indicates that the video length of the original multimedia material is greater than or equal to a third threshold, then according to the content tag, the target editing template is determined from multiple preset editing templates.

5. The method according to any one of claims 1 to 4, characterized in that: Get a draft video clip, including: If the video editing program does not enable the automatic film-making function of the draft, a first page is displayed, the first page being a function setting page; in response to a triggering operation on a first control in the first page, the automatic film-making function of the draft is enabled, and the video editing draft is obtained, the first control being a switch control of the automatic film-making function of the draft; If the video editing program has enabled the automatic film-making function of the draft, then when the editing of the original multimedia material is finished, the video editing draft is obtained.

6. The method according to claim 5, characterized in that The first page is displayed, including: In response to a touch operation on a second control in a second page, the first page is displayed, the second page is used to present the first target video, and the second control is used to jump to the first page.

7. The method according to any one of claims 1 to 4, characterized in that: After obtaining the first target video, the method further includes: Acquire a target image of the first target video; Generating a first cover of the first target video according to the target image; According to the first cover, the first target video is displayed in the second page.

8. The method according to claim 7, characterized in that Generating a first cover of the first target video according to the target image includes: Acquire video content of the first target video; Determining a target text according to the video content; A first cover of the first target video is generated according to the target image and the target text.

9. The method according to claim 7, characterized in that: Displaying the first cover on the second page includes: Obtaining a generation time of the first target video; According to the generation time, the first cover corresponding to the first target video is displayed in the second page.

10. The method according to claim 7, characterized in that After displaying the first cover on the second page, the method further includes: In response to a touch operation on the first cover, playing a first target video corresponding to the first cover, wherein the first target video includes a template changing control; In response to a touch operation on the template changing control, displaying template controls corresponding to a plurality of preset clipping templates; In response to a touch operation on the template control, the target clipping template of the first target video is replaced.

11. The method according to claim 10, characterized in that In response to a touch operation on the template control, changing the target clipping template of the first target video includes: Acquire a first editing template, where the first editing template is used to record instruction information of a third video editing operation; The second video editing operation in the first target video is replaced by the third video editing operation to obtain a second target video, wherein the second target video has the editing effect of the third video editing operation.

12. A video processing device, characterized in that: It includes a first acquisition module, an extraction module, a determination module and a processing module, wherein: The first acquisition module is used to acquire a video editing draft; the video editing draft is used to record original multimedia materials and instruction information of a first video editing operation on the original multimedia materials, wherein the original multimedia materials include video materials and / or image materials; The extraction module is used to extract the original multimedia material from the video editing draft; The determination module is used to determine, based on the original multimedia material, a target editing template that matches the original multimedia material; the target editing template is used to record instruction information of the second video editing operation; The processing module is used to process the original multimedia material according to the target editing template and the second video editing operation to obtain a first target video; the first target video has the editing effect of the second video editing operation.

13. 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 11.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions. When a processor executes the computer-executable instructions, the video processing method according to any one of claims 1 to 11 is implemented.

15. 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 11 is implemented.