Video processing method, apparatus, and electronic device

The method automates the process of matching editing templates to initial multimedia materials in video drafts, improving editing efficiency by generating target videos with desired effects, thus addressing the inefficiencies of sequential draft editing.

JP2025523317APending Publication Date: 2025-07-23BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2023578106
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2022-08-17
Filing Date
2023-08-17
Publication Date
2025-07-23

AI Technical Summary

Technical Problem

Existing video editing systems require sequential editing of saved drafts, leading to decreased efficiency when multiple drafts are managed, as users cannot seamlessly continue editing without manually loading and matching editing templates.

Method used

A method and apparatus that automatically extracts initial multimedia materials from editing drafts, determines a matching editing template based on content analysis, and processes the materials to generate a target video with the desired editing effect, reducing complexity and improving efficiency.

Benefits of technology

Enhances video editing efficiency by automatically matching editing templates to initial multimedia materials, allowing for seamless continuation of editing processes and reducing the complexity of operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2025523317000001_ABST
    Figure 2025523317000001_ABST
Patent Text Reader

Abstract

The present disclosure provides a video processing method, apparatus, electronic device, computer-readable storage medium, computer program product, and computer program. The method includes obtaining a video editing draft used for recording initial multimedia materials including video materials and / or pixel materials and instruction information of a first video editing operation on the initial multimedia materials; extracting the initial multimedia materials from the video editing draft; determining a target editing template used for storing instruction information of a second video editing operation that matches the initial multimedia materials based on the initial multimedia materials; and processing the initial multimedia materials according to the second video editing operation based on the target editing template to obtain a first target video having an editing effect of the second video editing operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure claims the priority of a Chinese patent application filed on August 17, 2022, with application number 202210987415.7 and invention title "Video Processing Method, Apparatus and Electronic Device", and all its contents are incorporated herein by reference.

[0002] Embodiments of the present disclosure relate to the technical field of video processing, and in particular, to a video processing method, apparatus, electronic device, computer-readable storage medium, computer program product and computer program.

Background Art

[0003] A video editing draft may record a plurality of multimedia materials during the video editing process and editing operation data added by the user to the plurality of multimedia materials.

[0004] Currently, when the editing of the user's multimedia materials on an electronic device is temporarily stopped, the electronic device saves the video editing draft of 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, and the user can continue the editing process of the multimedia materials through the electronic device. However, when the electronic device saves more video editing drafts, the user can only sequentially edit the video editing drafts through the electronic device, resulting in a decrease in the editing efficiency of the files.

Summary of the Invention

Problems to be Solved by the Invention

[0005] The present disclosure provides a video processing method, apparatus, electronic device, computer-readable storage medium, computer program product and computer program.

Means for Solving the Problems

[0006] According to a first aspect, the present disclosure provides a video processing method, the method comprising: obtaining a video editing draft used for recording an initial multimedia material including video materials and / or pixel materials and instruction information of a first video editing operation on the initial multimedia material; extracting the initial multimedia material from the video editing draft; determining, based on the initial multimedia material, a target editing template used for storing instruction information of a second video editing operation that matches the initial multimedia material; processing the initial multimedia material according to the second video editing operation based on the target editing template to obtain a first target video having an editing effect of the second video editing operation.

[0007] According to a second aspect, the present disclosure provides a video processing apparatus, the video processing apparatus comprising a first acquisition module, an extraction module, a determination module, and a processing module, wherein the first acquisition module is used for obtaining a video editing draft used for recording an initial multimedia material including video materials and / or pixel materials and instruction information of a first video editing operation on the initial multimedia material; the extraction module is used for extracting the initial multimedia material from the video editing draft; the determination module is used for determining, based on the initial multimedia material, a target editing template used for storing instruction information of a second video editing operation that matches the initial multimedia material; the processing module is used for processing the initial multimedia material according to the second video editing operation based on the target editing template to obtain a first target video having an editing effect of the second video editing operation.

[0008] According to a third aspect, an embodiment of the present disclosure provides an electronic device, comprising a processor and a memory, wherein the memory stores computer-executable instructions, and the processor executes the computer-executable instructions stored in the memory, causing the at least one processor to execute the various possible video processing methods of the first aspect and the first aspect.

[0009] According to a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, and when a processor executes the computer-executable instructions, the various possible video processing methods of the first aspect and the first aspect are realized.

[0010] According to a fifth aspect, an embodiment of the present disclosure provides a computer program product including a computer program, and when the computer program is executed by a processor, the various possible video processing methods of the first aspect and the first aspect are realized.

[0011] According to a sixth aspect, an embodiment of the present disclosure provides a computer program, and when the computer program is executed by a processor, the various possible video processing methods of the first aspect and the first aspect are realized.

Advantages of the Invention

[0012] The present disclosure provides a video processing method, apparatus, electronic device, computer-readable storage medium, computer program product, and computer program. The electronic device acquires a video editing draft, where the video editing draft is used to record initial multimedia materials and instruction information of a first video editing operation on the initial multimedia materials. The initial multimedia materials include video materials and / or pixel materials. The electronic device extracts the initial multimedia materials from the video editing draft, determines a target editing template that matches the initial multimedia materials based on the initial multimedia materials, where the target editing template is used to store instruction information of a second video editing operation, and processes the initial multimedia materials according to the second video editing operation based on the target editing template to obtain a first target video having the editing effect of the second video editing operation.

Brief Description of the Drawings

[0013] To more clearly illustrate the embodiments of the present disclosure or the technical solutions in the related art, the following briefly describes the drawings that need to be used in the embodiments or the related art description. Obviously, the drawings described below are only some embodiments of the present disclosure, and those skilled in the art can obtain other drawings based on these drawings without creative labor.

[0014]

Figure 1

Figure 2

Figure 3

Figure 4

Figure 5

Figure 6

Figure 7

Figure 8

Figure 9

Figure 10A

Figure 10B

Figure 11

Figure 12

Figure 13

Figure 14

Figure 15

DETAILED DESCRIPTION OF THE INVENTION

[0015] Here, exemplary embodiments will be described, and the examples are illustrated in the drawings. When the following description relates to the accompanying drawings, unless otherwise specified, the same numbers in different drawings indicate the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments that are consistent with the present disclosure. Rather, they are merely examples of devices and methods that are consistent with some aspects of the present disclosure, as detailed in the appended claims.

[0016] Hereinafter, for ease of understanding, concepts related to embodiments of the present disclosure will be described.

[0017] Electronic device: A device having a wireless transceiver function. The electronic device may be of a handheld type, wearable type or in-vehicle type, and may be disposed on land including indoors or outdoors, or may be disposed on the water surface (such as a ship). The electronic device may be a mobile phone, a tablet computer (Pad), a computer having a wireless transceiver function, a virtual reality (VR) electronic device, an augmented reality (AR) electronic device, a wireless terminal in industrial control, an in-vehicle electronic device, a wireless terminal during self-driving, a wireless electronic device in remote medical, a wireless electronic device in a smart grid, a wireless electronic device in transportation safety, a wireless electronic device in a smart city, a wireless electronic device in a smart home, a wearable electronic device, etc. The electronic device according to an embodiment of the present disclosure may also be referred to as a terminal, a user equipment (UE), an access electronic device, an in-vehicle 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 proxy or a UE device, etc. The electronic device may be fixed or mobile. Initial multimedia material: The initial multimedia material includes video material and / or pixel material. For example, the initial multimedia material during a video editing process may include a plurality of video materials, a plurality of pixel materials, or a plurality of video materials and a plurality of pixel materials, and is not particularly limited in the embodiments of the present disclosure.

[0018] Video Editing Draft: The video editing draft is used to record the initial multimedia material and the instruction information of the first video editing operation on the initial multimedia material. For example, the video editing draft includes a plurality of video materials corresponding to the initial multimedia material and the number of user editing operations on the initial multimedia material. For example, when an electronic device synthesizes Video A and Video B, adds a transition special effect between Video A and Video B, adds an opening special effect to the first frame of Video A, and the electronic device stops editing Video A and Video B, the electronic device generates a video editing draft corresponding to Video A and Video B, and the video editing draft may include Video A, Video B, and the operation of adding a transition special effect between Video A and Video B, and the operation of adding an opening special effect to the first frame of Video A. Optionally, the video editing draft may record the user's manual editing operation on the initial multimedia material, and the video editing draft may record the operation of automatically editing the initial multimedia material by the video editing program according to a preset editing template, which is not particularly limited in the embodiments of the present disclosure.

[0019] Target Editing Template: The target editing template is used to store the instruction information of the second video editing operation. For example, the target editing template can add a second video editing operation to the initial multimedia material to obtain a first target video corresponding to the initial multimedia material, where the first target video has the editing effect of the second video editing operation. For example, if the video editing operation recorded by the target editing template includes adding a transition special effect A between the first video and the second video and adding a transition special effect B between the second video and the third video, when the electronic device performs video editing processing on Video A, Video B, and Video C according to the target editing template, a transition special effect A can be added between Video A and Video B, and a transition special effect B can be added between Video B and Video C.

[0020] In related technologies, when a user pauses the editing of multimedia materials in an electronic device, the electronic device can save the video editing draft during the editing process. For example, after the electronic device adds a transition special effect between Video A and Video B and then stops the video editing process for Video A and Video B, the electronic device can save the video editing draft during the video editing process, and the video editing draft may include Video A, Video B, and the operation of adding a transition special effect between Video A and Video B. After the user loads the video editing draft through the electronic device, the editing process for the multimedia materials can be continued. However, in the case of many video editing drafts, the user can only sequentially edit the video editing drafts through the electronic device, resulting in a decrease in the editing efficiency of the draft files.

[0021] To solve the technical problems in the related art, embodiments of the present disclosure provide a video processing method. An electronic device obtains an initial multimedia material and a video editing draft for recording a first video editing operation on the initial multimedia material, extracts the initial multimedia material from the video editing draft, analyzes the content of the initial multimedia material to obtain a content label corresponding to the initial multimedia material, and based on the content label, determines a target editing template that matches the initial multimedia material from a plurality of preset editing templates, and can add a second video editing operation corresponding to the target editing template to the initial multimedia material to obtain a first target video. Here, the first target video has the editing effect of the second video editing operation, and the multimedia material in the first target video is the initial multimedia material. 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 initial multimedia material in the video editing draft, and edit the initial multimedia material by the editing operation corresponding to the target editing template to obtain a clip video corresponding to the video editing draft. Therefore, the electronic device can reduce the complexity of the editing operation and improve the editing efficiency of the file.

[0022] Hereinafter, with reference to FIG. 1, an application scenario of the embodiments of the present disclosure will be described.

[0023] FIG. 1 is a schematic diagram of an application scenario provided by an embodiment of the present disclosure. Referring to FIG. 1, an electronic device is illustrated. Here, the electronic device includes page 101 and page 102. Here, page 101 is a draft page, and page 101 includes draft control, clip control, draft A, and draft B. When the user clicks the clip control, the electronic device displays page 102, and page 102 includes draft control, clip control, video A, and video B. Here, video A is a video after processing the initial multimedia material in draft A by an editing template, and video B is a video after processing the initial multimedia material in draft B by another editing template. In this way, each time the electronic device edits a video editing draft, it can generate a video corresponding to the video editing draft, further reducing the complexity of video editing and improving the video editing efficiency.

[0024] It should be noted that FIG. 1 merely exemplarily shows the application scenario of the embodiment of the present disclosure and does not limit the application scenario of the embodiment of the present disclosure.

[0025] Hereinafter, the technical solution of the present disclosure and how the technical solution of the present disclosure solves the above technical problems will be described in detail in the following specific embodiments. The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be repeated in certain embodiments. Hereinafter, embodiments of the present disclosure will be described in conjunction with the accompanying drawings.

[0026] FIG. 2 is a schematic flowchart of a video processing method provided by an embodiment of the present disclosure. Referring to FIG. 2, the method includes S201, obtaining a video editing draft.

[0027] The execution entity of the embodiments of the present disclosure may be an electronic device or a video processing device provided in the electronic device. Here, the video processing device may be implemented by software, or the video processing device may be implemented by a combination of software and hardware.

[0028] Optionally, the video editing draft is used to record the initial multimedia material and the instruction information of the first video editing operation for the initial multimedia material. Optionally, the initial multimedia material may be the multimedia material during the video editing process. For example, when the user edits video material A and video material B, the initial multimedia material in the video editing draft includes video material A and video material B. When the user edits pixel material A and pixel material B, the initial multimedia material in the video editing draft includes pixel material A and pixel material B.

[0029] Optionally, when the user stops editing the initial multimedia material, the electronic device can obtain the video editing draft corresponding to the initial multimedia material, and by reloading the video editing draft, the editing process for the initial multimedia material can be continued.

[0030] Hereinafter, with reference to FIG. 3, the video editing draft will be described.

[0031] FIG. 3 is a schematic diagram of a video editing draft provided by an embodiment of the present disclosure. Referring to FIG. 3, an electronic device is illustrated. Here, the electronic device includes page 301, page 302, page 303, page 304, and page 305. Here, 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.

[0032] Referring to page 302, it includes Video A, Video B, Video C, Video D, Video E and Video F. When the user clicks on Video A to make a decision, the electronic device jumps from page 302 to page 303. Here, page 303 is the editing page of Video A. Video A contains 3-frame images, and the position of the editing track is the first-frame image of Video A. When the user clicks on the sun sticker, the electronic device adds the sun sticker to a 1-frame image. When the user clicks on the close control, the electronic device jumps from page 303 to page 304.

[0033] Referring to page 304, it includes a start creation control and a draft control. Here, the area under the draft control includes Draft A, and Draft A is the editing draft corresponding to Video A. When the user clicks on Draft A, the electronic device jumps from page 304 to page 305. Here, page 305 is the editing page of Video A. Page 305 contains 1-frame images, 2-frame images and 3-frame images. Here, the 1-frame image includes the sun sticker from the previous edit. The user can continue the editing process of Video A through touch operations on page 305.

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

[0035] Situation 1: The video editing program has not activated the draft auto-clip function. Optionally, the video editing program is used to perform editing processing on multimedia materials. For example, the video editing program may be an application program in the electronic device, and the video editing program can perform editing processing on materials such as videos and images.

[0036] When the draft automatic clip function of the video editing program is not activated, the first page is displayed. Optionally, the first page may be a function setting page. For example, the first page may be a setting page corresponding to the video editing program, and multiple functions of the video editing program may be controlled by multiple controls on the first page. In response to a trigger operation on the first control on the first page, the draft automatic clip function is activated, and a video editing draft is obtained. Optionally, the first control is an on / off control for the draft automatic clip function. For example, when the on / off control for the draft automatic clip function is closed, the video editing program does not activate the draft automatic clip function. When the user clicks the on / off control for the draft automatic clip function in the function setting page, the on / off control for the draft automatic clip function is opened, and the draft automatic clip function of the video editing program can be activated.

[0037] Optionally, after activating the draft automatic clip function of the video editing program, the video editing program can scan multiple video editing drafts to obtain multiple video editing drafts. Note that after activating the draft automatic clip function of the video editing program, the video editing program can scan a preset number of video editing drafts to obtain a preset number of video editing drafts. For example, the electronic device includes 100 video editing drafts. When the draft automatic clip function in the video editing program is turned on, the video editing program obtains 10 video editing drafts from 100 video editing drafts (for example, the first 10 video editing drafts in the generation time series order). In this way, the video editing program can generate a clipped video corresponding to the latest video editing draft, avoid the increase in elapsed time by obtaining all video editing drafts, improve the user experience, and improve the editing efficiency of the file.

[0038] Optionally, the electronic device may display the first page according to the following realizable embodiments: in response to a touch operation on the second control on the second page, display the first page. Optionally, the second page is used to display the first target video, and the first control is used to jump to the first page, where the first target video is a clip video corresponding to a video editing draft. For example, the second page may be a summary page of clip videos automatically obtained by the video editing program through clip processing of the video editing draft. If the draft automatic clip function in the video editing program is not enabled, there is no clip video that can be displayed on the second page. Therefore, the video editing program may display the second control on the second page. When the user clicks the second control, the video editing program will go to the function setting page.

[0039] Hereinafter, with reference to FIG. 4, the activation process of the draft automatic clip function of the video editing program will be described.

[0040] FIG. 4 is a schematic diagram of the process of activating the draft automatic clip function provided by the embodiment of the present disclosure. Referring to FIG. 4, an electronic device is illustrated. Here, the display page of the electronic device is the page where the electronic device runs the 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 clip control. The area under the clip control on page 401 is the second page, and the second page includes a "View and Open" control (the second control). When the user clicks the "View and Open" control, the electronic device jumps from page 401 to page 402.

[0041] Referring to page 402, page 402 is a function setting page (the first page). The function setting page includes a selection control for the draft automatic clip function (the first control), a selection control for the automatic added epilogue, an inquiry control for cache clearing, and an inquiry control for the version number. Here, the selection control for the draft automatic clip function is in a closed state. When the user clicks on the selection control for the draft automatic clip function, the selection control for the draft automatic clip function will open, and the video editing program will open the first function to obtain the video editing draft.

[0042] In such a situation, if the draft automatic clip function of the video editing program is not activated, through the user's click operation, the draft automatic clip function can be activated. After the draft automatic clip function is opened, the video editing program can scan a preset number of video editing drafts to obtain a preset number of video editing drafts, avoiding the long elapsed time by obtaining all video editing drafts, improving the user experience, and improving the editing efficiency.

[0043] Situation 2: The video editing program has activated the draft automatic clip function.

[0044] When the video editing program has activated the draft automatic clip function, when the editing of the initial multimedia material is completed, the video editing draft is obtained. For example, when the video editing program has activated the draft automatic clip function, the video editing program can generate a clip video corresponding to the video editing draft. When the editing of the initial multimedia material is completed, the video editing program can generate a video editing draft corresponding to the initial multimedia material and obtain the video editing draft.

[0045] In such a situation, when the video editing program draft activates the automatic clip function, every time the video editing program finishes editing, the video editing draft corresponding to the initial multimedia material can be obtained, which can improve the user experience and the editing efficiency.

[0046] S202. Extract the initial multimedia material from the video editing draft.

[0047] Optionally, the electronic device may obtain the initial multimedia material from the video editing draft. For example, when the electronic device edits Video A and Video B using a video editing program, after the editing is completed, the electronic device may obtain the video editing draft and obtain Video A and Video B in the video editing draft.

[0048] S203. Based on the initial multimedia material, determine a target editing template that matches the initial multimedia material.

[0049] Optionally, the initial multimedia material includes video material and / or pixel material. Optionally, the target editing template is used to store the instruction information of the second video editing operation. Optionally, the electronic device determines a target editing template that matches the initial multimedia material according to the following possible implementation manners: analyze the content of the initial multimedia material, obtain a content label corresponding to the initial multimedia material, and based on the content label, determine a target editing template that matches the initial multimedia material.

[0050] Optionally, the content label is used to indicate the characteristics of the initial multimedia material. For example, the electronic device can determine information such as the material type, material quantity, and clip time of the initial multimedia material based on the content label corresponding to the initial multimedia material.

[0051] Optionally, according to the following possible embodiments, the electronic device obtains a content label corresponding to the initial multimedia material: The first model processes the initial multimedia material to obtain a content label. Optionally, the first model is obtained by learning multiple sets of samples, where the multiple sets of samples include sample multimedia materials and sample content labels corresponding to the sample multimedia materials. For example, for sample multimedia material A, obtain a sample content label A corresponding to sample multimedia material A to obtain a set of samples, and the set of samples includes sample multimedia material A and sample content label A, and thus obtain multiple sets of samples.

[0052] Optionally, obtaining a target editing template that matches the initial multimedia material based on the content label specifically means that when the content label indicates that the number of images of the initial multimedia material is greater than or equal to the first threshold, or the content label indicates that the number of videos of the initial multimedia material is greater than or equal to the second threshold, or the content label indicates that the video time of the initial multimedia material is greater than or equal to the third threshold, based on the content label, determine the target editing template from multiple preset editing templates. For example, when the initial multimedia material includes pixel materials and the number of pixel materials is greater than 2, the electronic device determines the target editing template from multiple preset editing templates based on the content label; when the initial multimedia material includes video materials and the number of video materials is greater than 2, the electronic device determines the target editing template from multiple preset editing templates based on the content label; when the number of video materials is 1 and the time of the video material is greater than 2 seconds, the electronic device may also determine the target editing template corresponding to the video material from multiple preset editing templates based on the content label.

[0053] Optionally, the electronic device may obtain a plurality of preset editing templates from the memory, or the electronic device may obtain a plurality of preset editing templates from the server, which is not particularly limited in the embodiments of the present disclosure.

[0054] Optionally, determining a target editing template from a plurality of preset editing templates based on content labels specifically involves obtaining template features corresponding to the plurality of preset editing templates, obtaining the plurality of template features, and determining, based on the content labels and the plurality of template features, a target editing template that matches the initial multimedia material from the plurality of preset editing templates. For example, based on the content labels, the electronic device determines a first degree of match between the content labels (which may preprocess the content labels by an encoder) and each template feature (for example, obtaining the cosine similarity, Euclidean distance, etc. between the content labels and the template features), and determines a preset editing template corresponding to the maximum degree of match among the first degrees of match as the target editing template. For example, if the preset editing template corresponding to the first degree of match A is editing template A and the preset editing template corresponding to the first degree of match B is editing template B, when the first degree of match A is smaller than the first degree of match B, the electronic device determines editing template B as the target editing template.

[0055] Note that the electronic device may obtain the template features corresponding to the preset editing templates by a feature extraction algorithm, or the electronic device may obtain the template features corresponding to the preset editing templates by a model training method, which is not particularly limited in the embodiments of the present disclosure.

[0056] S204. Process the initial multimedia material according to the second video editing operation based on the target editing template to obtain a first target video.

[0057] Optionally, the first target video has the editing effect of the second video editing operation. The electronic device processes the initial multimedia material according to 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 special effect between the first video and the second video. When the initial multimedia material includes video material A and video material B, after the video editing program edits and processes video A and video B according to the target editing template, there is a transition special effect between video material A and video material B in the obtained first target video.

[0058] Hereinafter, with reference to FIG. 5, the process of obtaining the first target video will be described.

[0059] FIG. 5 is a schematic diagram of the process of obtaining the first target video provided by the embodiment of the present disclosure. Referring to FIG. 5, the target editing template and the initial multimedia material are shown. Here, the target editing template performs automatic editing processing on three images. The target editing template can add a left swipe special effect between the first image and the second image, and the target editing template can add an up swipe special effect between the second image and the third image. The initial multimedia material includes image A, image B, and image C. The target editing template automatically edits and processes the initial multimedia material to obtain the first target video. Here, the image of the first frame in the first target video is image A, the image of the second frame is image B, and the image of the third frame is image C. The playback special effect between image A and image B is the left swipe special effect, and the playback special effect between image B and image C is the up swipe special effect.

[0060] In addition, each time the electronic device obtains a video editing draft corresponding to the initial multimedia material, a first target video corresponding to the video editing draft can be generated. Therefore, after the electronic device generates the first target video corresponding to the video editing draft, if the user performs an editing process on the video editing draft again and the user does not view the first target video corresponding to the video editing draft (the electronic device does not play the first target video), the electronic device updates the first target video based on the editing process of the video editing draft by the user (for example, when new multimedia material is added to the video editing draft, the first target video is also updated with new content). If the user views the first target video corresponding to the video editing draft (the electronic device plays the first target video), the electronic device does not update the first target video.

[0061] Embodiments of the present disclosure provide a video processing method. When the editing of the initial multimedia material is completed, the electronic device obtains a video editing draft corresponding to the initial multimedia material, extracts the initial multimedia material from the video editing draft, analyzes the content of the initial multimedia material to obtain a content label corresponding to the initial multimedia material, determines a target editing template that matches the initial multimedia material from a plurality of preset editing templates based on the content label, and processes the initial multimedia material with the target editing template to obtain a first target video having the effect of a second video editing operation. In this way, based on the content label corresponding to the initial multimedia material, the electronic device can accurately obtain the target editing template corresponding to the initial multimedia material, improve the accuracy of video editing, and each time the electronic device generates a video editing draft, the electronic device adds the corresponding editing template to the initial multimedia material in the video editing draft. Furthermore, since a clip video corresponding to the video editing draft can be generated, the complexity of the editing operation can be reduced and the editing efficiency of the file can be improved.

[0062] Based on the embodiment shown in FIG. 2, after obtaining the first target video corresponding to the initial multimedia material in the above video processing method, the video processing method further includes displaying the first target video. Hereinafter, with reference to FIG. 6, a method for displaying the first target video will be described.

[0063] FIG. 6 is a schematic flowchart of a method for displaying a first target video provided by an embodiment of the present disclosure. Referring to FIG. 6, the flow of the method includes the following steps.

[0064] S601. Obtain a target image of the first target video.

[0065] 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 an image of the first frame of the first target video and determine the image of the first frame as the target image of the first target video. For example, the electronic device may obtain a key frame 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 by other means, which is not particularly limited in the embodiments of the present disclosure.

[0066] Hereinafter, with reference to FIG. 7, the process of obtaining the target image will be described.

[0067] FIG. 7 is a schematic diagram of a process for obtaining a target image provided by an embodiment of the present disclosure. Referring to FIG. 7, the first target video is shown. Here, the first target video includes image A, image B, and image C. The playback special effect between image A and image B is a left swipe special effect, and the playback special effect between image B and image C is an up swipe special effect. The electronic device determines that the image of the first frame in the first target video is image A and determines image A as the target image of the first target video.

[0068] S602. Generate a first cover for the first target video based on the target image.

[0069] Optionally, the electronic device may generate a first cover for the first target video based on the target image. For example, the electronic device determines the target image as the first cover, and when the electronic device displays the first target video, it may display the target image of the first target video.

[0070] Optionally, the electronic device may generate a first cover for the first target video according to the following possible embodiments: Obtain the video content of the first target video. Optionally, the electronic device may obtain the content of a plurality of key frames in the first target video and determine the video content of the first target video. For example, if a plurality of 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, and if a plurality of key frames in the first target video include the sea, the electronic device determines that the video content of the first target video is the sea. Optionally, the electronic device may obtain the video content of the first target video by a preset model. For example, the electronic device may recognize the video frames in the first target video by an image recognition model and obtain the video content of the first target video. For example, if it is determined by the image recognition model 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, and if it is determined by the image recognition model 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.

[0071] Based on the video content, determine the target text. For example, the electronic device may obtain a preset correspondence relationship between the video content and the target text, and determine the target text corresponding to the video content according to the video content of the first target video and the preset correspondence relationship. For example, when the video content is an animal such as a cat or a dog, the target text may be "pet", and when the video content is a scenery such as a mountain or a sea, the target text may be "travel".

[0072] Generate a first cover for the first target video based on the target image and the target text. For example, the electronic device may add the target text to a position such as the bottom or the top of the target image to obtain a first cover corresponding to the first target video.

[0073] Hereinafter, with reference to FIG. 8, the process of obtaining the first cover will be described.

[0074] FIG. 8 is a schematic diagram of the process of obtaining the first cover provided by the embodiment of the present disclosure. Referring to FIG. 8, the first target video is shown. Here, the first target video includes cat image 1, cat image 2, and cat image 3. There is a left swipe special effect between cat image 1 and cat image 2, and there is an up swipe special 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 based on the video content of the first target video, determines that the first target video is playing a pet. Therefore, the electronic device determines the target text as "pet". Through the target image and the target text, the first cover of the first target video is obtained. Here, the image of the first cover is cat image 1, and the bottom of the first cover includes the text "pet".

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

[0076] Optionally, the electronic device may display the first target video on the second page according to the following possible embodiments: Obtain the generation time of the first target video, and according to the generation time, display a first cover corresponding to the first target video on the second page. For example, the electronic device obtains a timestamp corresponding to the generation time of the first target video, sorts a plurality of first target videos through the timestamp, obtains the arrangement order, and further, according to the arrangement order, may display a first cover corresponding to the first target video on the second page.

[0077] Hereinafter, with reference to FIG. 9, the process of displaying the first cover on the second page will be described.

[0078] FIG. 9 is a schematic diagram of the process of displaying the first cover provided by the embodiment of the present disclosure. Referring to FIG. 9, an electronic device is illustrated. 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 clip control. The area under the draft control of page 901 is a draft summary page, and the draft summary page includes draft A. When the user clicks the start creation control, the electronic device jumps from page 901 to page 902.

[0079] Referring to page 902, it includes video A, video B, video C, video D, video E, and video F. When the user clicks and determines video A, the electronic device jumps from page 902 to page 903. Here, page 903 is an editing page of video A, video A includes 3-frame images, and the position of the editing track is the image of the first frame of video A. When the user clicks the sun sticker, the electronic device adds a sun sticker to a 1-frame image. When the user clicks the close control, the electronic device jumps from page 903 to page 901. Here, draft B is added to the draft area of page 901. When the user clicks the clip control, the user jumps from the draft summary page in page 901 to the second page to obtain page 904.

[0080] Referring to page 904, the second page includes a video with the text "PET", Video 1 and Video 2. Here, the clip corresponding to Draft A is Video 1, and the clip corresponding to Draft B is the video with the text "PET". In this way, each time the electronic device generates a video editing draft, the video corresponding to the video editing draft is automatically generated, so that the video editing efficiency and the accuracy of video editing can be improved.

[0081] It should be noted that the video editing operation of the video editing draft may be the same as or different from the video editing operation of the first target video corresponding to the video editing draft. It should be noted that the cover of the newly generated first video may include the text "New", which presents to the user that the first video is the latest video. After the electronic device generates a new video, or after a preset time has elapsed, the display of the text "New" in the cover of the first video is cancelled. In this way, the user experience can be improved.

[0082] Optionally, the electronic device may delete the first cover corresponding to the first target video in response to a touch operation on the first cover by the user from the second page.

[0083] Hereinafter, with reference to FIGS. 10A and 10B, the process of deleting the first cover corresponding to the first target video will be described.

[0084] FIG. 10A is a schematic diagram of the process of deleting the first target video provided by an embodiment of the present disclosure. Referring to FIG. 10A, an electronic device is illustrated. Here, the display page of the electronic device includes clip controls, management controls, Video A, Video B, Video C, Video D, Video E and Video F. When the user clicks on the management control, selection controls are displayed in the upper right corner of each video, and a delete control is displayed at the bottom of the display page.

[0085] Referring to FIG. 10A, the management control is updated to a cancel control. When the user clicks on Video A and Video F, the selection controls for Video A and Video F are highlighted, the delete control is highlighted. When the user clicks on 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.

[0086] FIG. 10B is a schematic diagram of the process of deleting another first target video provided by an embodiment of the present disclosure. Referring to FIG. 10B, an electronic device is illustrated. Here, the display page of the electronic device includes a clip control, a management control, Video A, Video B, Video C, Video D, Video E, and Video F. When the user long-presses on Video A (the user may also long-press on any area of the display page), selection controls are displayed in the upper right corner of each video, and a delete control is displayed at the bottom of the display page.

[0087] Referring to FIG. 10B, when the user clicks on Video D and Video F, the selection controls for Video D and Video F are highlighted, 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 and improve the control flexibility.

[0088] Optionally, when the electronic device deletes the first target video, the electronic device may display a two - confirmation control for the deletion operation, which is not repeated in the embodiments of the present disclosure.

[0089] Embodiments of the present disclosure provide a method for displaying a first target video, which includes obtaining a target image of the first target video, obtaining video content of the first target video, determining target text based on the video content, generating a first cover for the first target video based on 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 based on the generation time. In the above method, the electronic device may display the latest first target video at the front end of the second page, and the display effect of the first target video can be further improved.

[0090] Based on any one of the above embodiments, in the above video processing method, after displaying the first target video on the second page, the video processing method further includes changing a target editing template of the first target video. Hereinafter, with reference to FIG. 11, a method for changing the target editing template will be described.

[0091] FIG. 11 is a schematic diagram of a method for changing a target editing template provided by an embodiment of the present disclosure. Referring to FIG. 11, the method flow includes the following steps.

[0092] S1101. In response to a touch operation on the first cover, play the first target video corresponding to the first cover, where the first target video includes a template change control.

[0093] 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. When the user clicks the first cover on the second page, the electronic device can play the first target video corresponding to the first cover.

[0094] S1102. In response to a touch operation on the template change control, display template controls corresponding to a plurality of preset editing templates.

[0095] Optionally, in accordance with the following possible embodiments, template controls corresponding to a plurality of preset editing templates may be displayed: In response to a touch operation on a template change control, template controls corresponding to a plurality of preset editing templates are displayed. For example, when the user clicks on the template change control of the first target video, the video editing program may display template controls corresponding to a plurality of preset editing templates at the bottom of the first target video.

[0096] S1103. In response to a touch operation on a template control, change the target editing template of the first target video.

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

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

[0099] Optionally, the first editing template is used to record instruction information for the third video editing operation. The second video editing operation in the first target video is replaced with the third video editing operation to obtain a second target video. Here, the second target video has the editing effect of the third video editing operation. For example, after processing video material A and video material B with a target editing template, a first target video is obtained. There is a transition special effect A between video material A and video material B in the first target video. When the third video editing operation of the first editing template includes adding a transition special effect B between the first video material and the second video material, after processing the first target video with the first editing template, a second target video is obtained. Here, there is a transition special effect B between video material A and video material B in the second target video.

[0100] Hereinafter, with reference to FIG. 12, the process of changing the target editing template will be described. FIG. 12 is a schematic diagram of the process of changing the target editing template provided by the embodiment of the present disclosure. Referring to FIG. 12, an electronic device is illustrated. Here, 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 clip control. The area below the clip control is the second page, and the second page includes video 1 and video 2. When the user clicks on video 1, the electronic device jumps from page 1201 to page 1202.

[0101] Referring to page 1202, page 1202 is the playback page of video 1, and page 1202 further includes a change template control. When the user clicks the change template control, an export control is displayed on page 1202, and template controls corresponding to a plurality of preset editing templates such as template 1, template 2, and template 3 are displayed at the bottom. When the user clicks the template control corresponding to template 2, the electronic device processes the materials 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 the export control, the electronic device saves video 3, jumps to page 1201, where video 1 in page 1201 is updated to video 3. In this way, after the electronic device generates a clip video based on the video editing draft, the user can replace the template of the clip video, improving the flexibility of video editing.

[0102] In addition, when the electronic device plays the first target video, the video editing program may display a sharing control. When the user clicks the sharing control, the video editing program may share the first target video with other application programs.

[0103] Embodiments of the present disclosure provide a method for changing a target editing template. In response to a touch operation on a first cover, play a first target video corresponding to the first cover. In response to a touch operation on a template change control, display a template control including a plurality of preset editing templates. In response to a touch operation on the template control, obtain a first editing template, and replace a second video editing operation in the first target video with a third video editing operation corresponding to the first editing template to obtain a second target video having the effect of the third video editing operation. In this way, the electronic device can change the editing template of the generated video, improving the flexibility and accuracy of video editing.

[0104] FIG. 13 is a schematic structural diagram of a video processing apparatus provided by an embodiment of the present disclosure. Referring to FIG. 13, the video processing apparatus 10 includes a first acquisition module 11, an extraction module 12, a determination module 13, and a processing module 14, The first acquisition module 11 acquires a video editing draft for recording initial multimedia materials including video materials and / or pixel materials and instruction information of a first video editing operation on the initial multimedia materials, The extraction module 12 is used to extract the initial multimedia materials from the video editing draft, The determination module 13 is used to determine a target editing template for storing instruction information of a second video editing operation that matches the initial multimedia materials based on the initial multimedia materials, The processing module 14 is used to process the initial multimedia materials according to the second video editing operation based on the target editing template to obtain a first target video having the editing effect of the second video editing operation.

[0105] In a possible embodiment, the determination module 13 specifically analyzes the content of the initial multimedia materials to obtain a content label corresponding to the initial multimedia materials, and is used to determine a target editing template that matches the initial multimedia materials according to the content label.

[0106] In a possible embodiment, the determination module 13 specifically is used to process the initial multimedia materials by a first model to obtain the content label, Here, the first model is obtained by learning a plurality of sets of samples, and the plurality of sets of samples include sample multimedia materials and sample content labels corresponding to the sample multimedia materials.

[0107] In a possible embodiment, the determination module 13 specifically When the content label indicates that the number of images of the initial multimedia material is greater than or equal to a first threshold, or when the content label indicates that the number of videos of the initial multimedia material is greater than or equal to a second threshold, or when the content label indicates that the video time of the initial multimedia material is greater than or equal to a third threshold, it is used to determine the target editing template from a plurality of preset editing templates based on the content label.

[0108] In a possible embodiment, the first acquisition module 11 specifically When the draft automatic clip function of the video editing program is not activated, display a first page which is a function setting page, and in response to a trigger operation on a first control in the first page, activate the draft automatic clip function, acquire the video editing draft, and the first control is an on / off control of the draft automatic clip function. When the draft automatic clip function of the video editing program is activated, it is used to acquire the video editing draft when the editing of the initial multimedia material is completed.

[0109] In a possible embodiment, the first acquisition module 11 specifically In response to a touch operation on a second control in a second page, display the first page, the second page is used to display the first target video, and the second control is used to jump to the first page.

[0110] The video processing apparatus provided in this embodiment is applicable to execute the technical solution of the above method embodiment, and has the same realization principle and technical effect, so it will not be repeated in this embodiment.

[0111] FIG. 14 is a schematic structural diagram of another video processing apparatus provided in an embodiment of the present disclosure. Based on the embodiment shown in FIG. 13, referring to FIG. 14, the video processing apparatus 10 further includes a second acquisition module 15, and the second acquisition module 15 acquires a target image of the first target video, generates a first cover of the first target video based on the target image, and is used to display the first target video on a second page according to the first cover.

[0112] In a possible implementation form, the second acquisition module 15 specifically acquires the video content of the first target video, determines target text based on the video content, and is used to generate a first cover of the first target video based on the target image and the target text.

[0113] In a possible implementation form, the second acquisition module 15 specifically acquires the generation time of the first target video, and is used to display a first cover corresponding to the first target video on the second page based on the generation time.

[0114] In a possible implementation form, the video processing apparatus further includes a change module 16, and the change module 16 responds to a touch operation on the first cover, plays the first target video corresponding to the first cover, and the first target video includes a template change control, In response to a touch operation on the template change control, a template control corresponding to a plurality of preset editing templates is displayed. In response to a touch operation on the template control, it is used to change the target editing template of the first target video.

[0115] In a possible embodiment, the change module 16 specifically obtains a first editing template used to record instruction information of a third video editing operation, and is used to switch the second video editing operation in the first target video to the third video editing operation to obtain a second target video having the editing effect of the third video editing operation.

[0116] The video processing apparatus provided in this embodiment is applicable to execute the technical solutions of the above method embodiments, and has the same realization principle and technical effects, so it will not be repeated in this embodiment.

[0117] FIG. 15 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. Referring to FIG. 15, a schematic structural diagram of an electronic device 1500 suitable for implementing the embodiment of the present disclosure is shown. The electronic device 1500 may be a terminal device or a server. Here, the terminal device may be a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a personal digital assistant (PDA), a tablet computer (Portable Android Device, PAD), a portable multimedia player (Portable Media Player, PMP), an in-vehicle terminal (such as an in-vehicle navigation terminal), etc., and a fixed terminal such as a digital TV and a desktop computer, but is not limited thereto. The electronic device shown in FIG. 15 is merely an example and does not limit the functions and usage ranges of the embodiments of the present disclosure in any way.

[0118] As shown in FIG. 15, the electronic device 1500 includes a processing device (e.g., a central processing unit, a graphics processor, etc.) 1501 that executes various appropriate operations and processes according to a program stored in a read-only memory (ROM) 1502 or a program loaded from a storage device 1508 into a random access memory (RAM) 1503. Various programs and data necessary for the operation of the electronic device 1500 are further 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. Normally, the I / O interface 1505 is connected to an input device 1506 such as a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, an output device 1507 such as a liquid crystal display (LCD), a speaker, a vibrator, a storage device 1508 such as a magnetic tape, a hard disk, and a communication device 1509. The communication device 1509 enables the electronic device 1500 to exchange data with other devices by wireless or wired communication. Although FIG. 15 shows an electronic device 1500 equipped with various devices, it should be understood that it is not necessary to implement or include all of the illustrated devices. Alternatively, more or fewer devices may be implemented or included.

[0119] In particular, according to the embodiments of the present disclosure, the process described above with reference to the flowchart may be implemented as a computer software program. For example, the embodiments of the present disclosure include a computer program product, including a computer program carried on a computer-readable medium, the computer program including program code for executing the method shown in the flowchart. In such an embodiment, the computer program may be downloaded from a network through the communication device 1509 and installed, or installed from the storage device 1508, or installed from the ROM 1502. When this computer program is executed by the processing device 1501, the above functions defined in the method of the embodiments of the present disclosure are realized. The embodiments of the present disclosure include a computer program, and when the computer program is executed by a processor, the above functions defined in the method of the embodiments of the present disclosure are realized.

[0120] Note that the computer-readable medium described in this disclosure may be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of the computer-readable storage medium may include, but are not limited to, electrical connections having one or more conductors, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (Electrical Programmable ROM, EPROM or flash memory), optical fibers, portable compact disc read-only memory (Compact Disc ROM, CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this disclosure, the computer-readable storage medium may be any tangible medium that contains or stores a program, which may be used by or in combination with an instruction execution system, apparatus, or device. In this disclosure, the computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier, carrying the computer-readable program code. Such a propagated data signal may include, but is not limited to, an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer-readable signal medium may be any computer-readable storage medium other than a computer-readable storage medium that is used by or in combination with an instruction execution system, apparatus, or device to send, propagate, or transfer a program. The program code contained in the computer-readable storage medium may be transferred by any suitable medium, such as a wire, an optical fiber cable, a radio frequency (RF), or any suitable combination of the above, but is not limited thereto.

[0121] The computer-readable storage medium may be included in the electronic device or may be separate and not incorporated into the electronic device.

[0122] One or more programs are stored in the computer-readable medium, and when the one or more programs are executed by the electronic device, the electronic device can be caused to execute the method shown in the above embodiments.

[0123] Computer program code for performing the operations of the present disclosure can be described in one or more programming languages or combinations thereof, and the programming languages include, but are not limited to, object-oriented programming languages (such as Java, Smalltalk, C++) and conventional procedural programming languages (such as the "C" language or similar programming languages). The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, such as a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, connected via the Internet using an Internet service provider).

[0124] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram may represent a module, program segment, or part of code that includes one or more executable instructions for implementing the specified logical function. Also, it should be noted that in some alternative implementations, the functions shown in the boxes may occur in an order different from that shown in the accompanying drawings. For example, two boxes shown consecutively may actually be executed substantially in parallel, or depending on the related functions, may be executed in the reverse order. Also, each box in the block diagram and / or flowchart, and combinations of boxes in the block diagram and / or flowchart, may be implemented in a dedicated hardware-based system for performing the specified function or operation, or may be implemented in a combination of dedicated hardware and computer instructions.

[0125] The units described in the embodiments of the present disclosure may be implemented by software or by hardware. Here, the name of the unit does not constitute a limitation of the unit itself in a given situation. For example, the first acquisition unit may also be described as "a unit for acquiring at least two Internet protocol addresses".

[0126] The functions described above in this specification may be executed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary hardware logic components that may be used include Field Programmable Gate Array (FPGA), Application Specific Integrated Circuit (ASIC), Application Specific Standard Product (ASSP), System on Chip (SOC), Complex Programmable Logic Device (CPLD), and the like.

[0127] In the context of the present disclosure, a computer-readable storage medium may be a tangible medium that includes or stores a program for use by or in connection with an instruction execution system, apparatus, or device. A computer-readable storage medium may be either a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium includes, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. More specific examples of a computer-readable storage medium include one or more wire-based electrical connections, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof.

[0128] In a first aspect, according to one or more embodiments of the present disclosure, a video processing method is provided, and the method includes Obtaining a video editing draft for recording initial multimedia materials including video materials and / or pixel materials and instruction information of a first video editing operation for the initial multimedia materials Extracting the initial multimedia materials from the video editing draft Determining a target editing template used for storing instruction information of a second video editing operation that matches the initial multimedia materials based on the initial multimedia materials Processing the initial multimedia materials according to the second video editing operation based on the target editing template to obtain a first target video having the editing effect of the second video editing operation, including

[0129] According to one or more embodiments of the present disclosure, determining a target editing template that matches the initial multimedia materials based on the initial multimedia materials includes Analyzing the content of the initial multimedia materials to obtain a content label corresponding to the initial multimedia materials Determining a target editing template that matches the initial multimedia materials according to the content label

[0130] According to one or more embodiments of the present disclosure, analyzing the content of the initial multimedia materials to obtain a content label corresponding to the initial multimedia materials includes Processing the initial multimedia materials by a first model to obtain the content label, where the first model is obtained by learning multiple sets of samples, and the multiple sets of samples include sample multimedia materials and sample content labels corresponding to the sample multimedia materials

[0131] According to one or more embodiments of the present disclosure, determining a target editing template that matches the initial multimedia material according to the content label is When the content label indicates that the number of images of the initial multimedia material is equal to or greater than a first threshold, or when the content label indicates that the number of videos of the initial multimedia material is equal to or greater than a second threshold, or when the content label indicates that the video time of the initial multimedia material is equal to or greater than a third threshold, determining the target editing template from a plurality of preset editing templates based on the content label.

[0132] According to one or more embodiments of the present disclosure, obtaining a video editing draft is When the automatic clip function of the draft of the video editing program is not activated, display a first page, which is a function setting page, and in response to a trigger operation on a first control in the first page, activate the automatic clip function of the draft, obtain the video editing draft, and the first control is an on / off control of the automatic clip function of the draft.

[0133] When the automatic clip function of the draft of the video editing program is activated, obtaining the video editing draft when the editing of the initial multimedia material is completed.

[0134] According to one or more embodiments of the present disclosure, displaying the first page is In response to a touch operation on a second control in a second page, display the first page, where the second page is used to display the first target video, and the second control is used to jump to the first page.

[0135] According to one or more embodiments of the present disclosure, after obtaining the first target video, the method is Obtaining a target image of the first target video. Generating a first cover for the first target video based on the target image; Further comprising: displaying the first target video on a second page according to the first cover.

[0136] According to one or more embodiments of the present disclosure, generating a first cover for the first target video based on the target image includes: Obtaining video content of the first target video; Determining target text based on the video content; Generating a first cover for the first target video based on the target image and the target text.

[0137] According to one or more embodiments of the present disclosure, displaying the first cover on a second page includes: Obtaining a generation time of the first target video; Displaying a first cover corresponding to the first target video on the second page based on the generation time.

[0138] According to one or more embodiments of the present disclosure, after displaying the first cover on a second page, the method further includes: Playing a first target video corresponding to the first cover in response to a touch operation on the first cover, the first target video including a template change control; Displaying template controls corresponding to a plurality of preset editing templates in response to a touch operation on the template change control; Further comprising: changing a target editing template of the first target video in response to a touch operation on the template control.

[0139] According to one or more embodiments of the present disclosure, changing the target editing template of the first target video in response to a touch operation on the template control is obtaining a first editing template used to record instruction information for a third video editing operation, switching the second video editing operation in the first target video to the third video editing operation to obtain a second target video having the editing effect of the third video editing operation.

[0140] In the above method, the electronic device can automatically add a second video editing operation that matches the initial multimedia material to the initial multimedia material in the video editing draft, and generate a clip video corresponding to the video editing draft, eliminating the need for manual editing one by one. This can reduce the complexity of the editing operation and improve the editing efficiency of the file.

[0141] In a second aspect, an embodiment of the present disclosure provides a video processing apparatus, which includes a first acquisition module, an extraction module, a determination module, and a processing module. The first acquisition module is used to obtain an initial multimedia material including video material and / or pixel material, and a video editing draft for recording instruction information of a first video editing operation for the initial multimedia material. The extraction module is used to extract the initial multimedia material from the video editing draft. The determination module is used to determine a target editing template used to store instruction information of a second video editing operation that matches the initial multimedia material based on the initial multimedia material. The processing module is used to process the initial multimedia material according to the second video editing operation based on the target editing template to obtain a first target video having the editing effect of the second video editing operation.

[0142] According to one or more embodiments of the present disclosure, specifically, the determination module analyzes the content of the initial multimedia material to obtain a content label corresponding to the initial multimedia material, and is used to determine a target editing template that matches the initial multimedia material according to the content label.

[0143] According to one or more embodiments of the present disclosure, specifically, the determination module is used to process the initial multimedia material by a first model to obtain the content label, wherein the first model is obtained by learning a plurality of sets of samples, and the plurality of sets of samples include sample multimedia materials and sample content labels corresponding to the sample multimedia materials.

[0144] According to one or more embodiments of the present disclosure, specifically, the determination module When the content label indicates that the number of images of the initial multimedia material is greater than or equal to a first threshold, or when the content label indicates that the number of videos of the initial multimedia material is greater than or equal to a second threshold, or when the content label indicates that the video time of the initial multimedia material is greater than or equal to a third threshold, it is used to determine the target editing template from a plurality of preset editing templates based on the content label.

[0145] According to one or more embodiments of the present disclosure, specifically, the first acquisition module When the draft automatic clip function of the video editing program is not activated, the first page, which is the function setting page, is displayed, and in response to a trigger operation on the first control in the first page, the draft automatic clip function is activated, the video editing draft is acquired, and the first control is the on / off control of the draft automatic clip function. When the draft automatic clip function of the video editing program is activated, it is used to acquire the video editing draft when the editing of the initial multimedia material is completed.

[0146] According to one or more embodiments of the present disclosure, the first acquisition module specifically is used to display the first page in response to a touch operation on the second control in the second page. The second page is used to display the first target video, and the second control is used to jump to the first page.

[0147] According to one or more embodiments of the present disclosure, the video processing apparatus further includes a second acquisition module, and the second acquisition module acquires the target image of the first target video, generates the first cover of the first target video based on the target image, and is used to display the first target video on the second page according to the first cover.

[0148] According to one or more embodiments of the present disclosure, the second acquisition module specifically acquires the video content of the first target video, determines target text based on the video content, and is used to generate the first cover of the first target video based on the target image and the target text.

[0149] According to one or more embodiments of the present disclosure, specifically, the second acquisition module acquires the generation time of the first target video, and is used to display a first cover corresponding to the first target video on the second page based on the generation time.

[0150] According to one or more embodiments of the present disclosure, the video processing apparatus further includes a change module, and the change module responds to a touch operation on the first cover, plays the first target video corresponding to the first cover, and the first target video includes a template change control, responds to a touch operation on the template change control, and displays template controls corresponding to a plurality of preset editing templates, and is used to change the target editing template of the first target video in response to a touch operation on the template control.

[0151] According to one or more embodiments of the present disclosure, specifically, the change module acquires a first editing template used to record instruction information of a third video editing operation, and is used to switch the second video editing operation in the first target video to the third video editing operation to obtain a second target video having the editing effect of the third video editing operation.

[0152] In a third aspect, an embodiment of the present disclosure provides an electronic device including a processor and a memory, wherein the memory stores computer-executable instructions, and the processor executes the computer-executable instructions stored in the memory to cause the at least one processor to execute the various possible video processing methods of the first aspect and the first aspect.

[0153] In a fourth aspect, embodiments of the present disclosure provide a computer-readable storage medium storing computer-executable instructions, and when a processor executes the computer-executable instructions, the video processing method according to the first aspect and various possible ones of the first aspect are realized.

[0154] In a fifth aspect, embodiments of the present disclosure provide a computer program product including a computer program, and when the computer program is executed by a processor, the video processing method according to the first aspect and various possible ones of the first aspect are realized. In a sixth aspect, embodiments of the present disclosure provide a computer program, and when the computer program is executed by a processor, the video processing method according to the first aspect and various possible ones of the first aspect are realized.

[0155] It should be noted that the modifications of "one" and "a plurality" mentioned in the present disclosure are illustrative and not restrictive. Those skilled in the art should understand that, unless otherwise explicitly stated in the context, it means "one or a plurality".

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

[0157] Before using the technical solutions disclosed in each embodiment of the present disclosure, it should be understood that, in accordance with relevant laws and regulations, it is necessary to notify the user of the types, scope of use, usage scenarios, etc. of personal information related to the present disclosure by appropriate means and obtain the user's permission.

[0158] For example, in response to receiving an uncommitted request from a user, a prompt message is sent to the user explicitly prompting that the requested operation requires access to the user's personal information and the use of the user's personal information. Thereby, based on the prompt information, the user can independently select whether to provide personal information to software or hardware such as an electronic device, an application, a server, or a storage medium that executes the operations of the technical solution of the present disclosure.

[0159] As an optional but non-limiting embodiment, in response to receiving an uncommitted request from a user, the prompt information is sent to the user, for example, in the form of a pop-up window, and in this pop-up window, the prompt information is presented in the form of text. Further, the pop-up window can include option controls for the user to select "agree" or "disagree" to provide personal information to the electronic device.

[0160] It should be understood that the above process of notification and obtaining user authorization is merely an example and does not limit the embodiments of the present disclosure, and in the embodiments of the present disclosure, other methods that meet the relevant laws and regulations can also be applied.

[0161] It should be understood that the data related to the present technical solution (including but not limited to the data itself, the acquisition or use of the data) should comply with the requirements of the corresponding laws and regulations and related regulations. The data includes information such as cut-flow instruction information, parameters, and messages.

[0162] The above description is an illustrative explanation of the preferred embodiments of the present disclosure and the technical principles employed. It should be understood by those skilled in the art that the scope of disclosure related to the present disclosure is not limited to the technical solutions formed by the specific combination of the above technical features, and other technical solutions formed by any combination of the above technical features or their equivalent features should also be covered without departing from the above scope of disclosure. For example, technical solutions (not limited thereto) formed by replacing the above-described features with technical features having similar functions disclosed in the present disclosure are also covered.

[0163] Furthermore, although each operation is depicted using a specific order, this should not be construed as requiring that the operations be performed in the specific order shown or sequentially. In certain environments, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Specific features described in the context of a single embodiment can also be implemented in combination in a single embodiment. Conversely, 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.

[0164] The subject matter has been described using language specific to structural features and / or methodological acts, but it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely exemplary forms of implementing the claims.

Claims

1. Obtaining a video editing draft used for recording initial multimedia materials including video materials and / or pixel materials and instruction information of a first video editing operation for the initial multimedia materials, extracting the initial multimedia materials from the video editing draft, determining, based on the initial multimedia materials, a target editing template used for storing instruction information of a second video editing operation that matches the initial multimedia materials, processing the initial multimedia materials according to the second video editing operation based on the target editing template to obtain a first target video having the editing effect of the second video editing operation. A video processing method comprising the steps of.

2. Determining a target editing template that matches the initial multimedia materials based on the initial multimedia materials includes: analyzing the content of the initial multimedia materials to obtain a content label corresponding to the initial multimedia materials, determining a target editing template that matches the initial multimedia materials according to the content label. The method according to claim 1.

3. Analyzing the content of the initial multimedia materials to obtain a content label corresponding to the initial multimedia materials includes: processing the initial multimedia materials by a first model to obtain the content label, wherein the first model is obtained by learning multiple sets of samples, and the multiple sets of samples include sample multimedia materials and sample content labels corresponding to the sample multimedia materials. The method according to claim 2.

4. Determining a target editing template that matches the initial multimedia materials according to the content label includes: The method according to claim 2, wherein when the content label indicates that the number of images of the initial multimedia material is equal to or greater than a first threshold value, or when the content label indicates that the number of videos of the initial multimedia material is equal to or greater than a second threshold value, or when the content label indicates that the video time of the initial multimedia material is equal to or greater than a third threshold value, the target editing template is determined from a plurality of preset editing templates based on the content label.

5. Obtaining a video editing draft When the draft automatic clip function of the video editing program is not activated, display a first page which is a function setting page, and in response to a trigger operation on a first control in the first page, activate the draft automatic clip function and obtain the video editing draft, wherein the first control is an on / off control of the draft automatic clip function. When the draft automatic clip function of the video editing program is activated, obtaining the video editing draft when the editing of the initial multimedia material is completed, the method according to claim 1.

6. Displaying the first page In response to a touch operation on a second control in a second page, display the first page, wherein the second page is used to display the first target video, and the second control is used to jump to the first page, the method according to claim 5.

7. After obtaining the first target video, the method Obtaining a target image of the first target video Generating a first cover of the first target video based on the target image Further including, according to the first cover, displaying the first target video on a second page, the method according to claim 1.

8. Generating a first cover of the first target video based on the target image Obtaining the video content of the first target video Determining target text based on the video content Generating a first cover of the first target video based on the target image and the target text, the method according to claim 7.

9. Displaying the first cover on the second page Obtaining the generation time of the first target video Based on the generation time, displaying a first cover corresponding to the first target video on the second page, the method according to claim 7

10. After displaying the first cover on the second page, the method further includes In response to a touch operation on the first cover, playing the first target video corresponding to the first cover, the first target video including a template change control In response to a touch operation on the template change control, displaying template controls corresponding to a plurality of preset editing templates In response to a touch operation on the template control, further including changing the target editing template of the first target video, the method according to claim 7

11. In response to a touch operation on the template control, changing the target editing template of the first target video includes Obtaining a first editing template used to record instruction information of a third video editing operation Switching the second video editing operation in the first target video to the third video editing operation to obtain a second target video having the editing effect of the third video editing operation, the method according to claim 10

12. Comprising a first acquisition module, an extraction module, a determination module and a processing module The first acquisition module is used to obtain an initial multimedia material including video material and / or pixel material and a video editing draft used to record instruction information of a first video editing operation on the initial multimedia material The extraction module is used to extract the initial multimedia material from the video editing draft The determination module is used to determine a target editing template used to store instruction information of a second video editing operation that matches the initial multimedia material based on the initial multimedia material The video processing device is used to process the initial multimedia material according to the second video editing operation based on the target editing template to obtain a first target video having the editing effect of the second video editing operation, and is used by the processing module.

13. An electronic device comprising a processor and a memory, the memory stores computer-executable instructions, the processor executes the computer-executable instructions stored in the memory to cause the processor to execute the video processing method according to Claim 1.

14. A computer-readable storage medium storing computer-executable instructions, and when the processor executes the computer-executable instructions, the video processing method according to Claim 1 is realized.

15. A computer program, when the computer program is executed by a processor, realizes the video processing method according to Claim 1.

Citation Information

Patent Citations

  • Video display method and device, and video editing method and device

    CN113542818A

  • Resource playing method and device, electronic equipment and storage medium

    CN113589982A

  • Video editing method and device, equipment and medium

    CN113852767A

  • Video editing method and device

    CN114268748A