Video processing method and electronic device

By introducing a quick editing interface and controls into electronic devices, it is possible to add video effects to videos with one click and generate finished videos with different effects through multiple operations. This solves the problems of cumbersome operation and insufficient intelligence in existing technologies, and improves the intelligence and diversity of video processing.

CN119299843BActive Publication Date: 2026-04-07HONOR DEVICE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-13
Publication Date
2026-04-07

AI Technical Summary

Technical Problem

In existing technologies, electronic devices are cumbersome to operate during video processing, lack intelligence, and cannot efficiently generate finished videos with different effects.

Method used

This invention provides a video processing method that introduces a quick editing interface and controls into electronic devices, allowing users to add video effects to videos with a single click and supporting multiple operations to generate finished videos with different effects.

Benefits of technology

It enhances the intelligence and efficiency of video processing, enabling the generation of diverse finished products from the same video and simplifying the video processing workflow.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119299843B_ABST
    Figure CN119299843B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a video processing method and an electronic device, and relate to the technical field of terminals. For the same video, a piece with different effects can be formed, and the diversity of the piece is improved. The method comprises: the electronic device displays a first interface. The first interface includes a first option. The electronic device displays a second interface in response to a user's click operation on the first option in the first interface, and the second interface further includes a first control. The electronic device generates a first piece in response to a user's first operation on the first control in the second interface. The electronic device displays a third interface, and the third interface includes a second option and the first option. The electronic device displays a fourth interface in response to a user's click operation on the first option in the third interface, and the fourth interface further includes the first control. The electronic device generates a second piece in response to a user's first operation on the first control in the fourth interface. The first piece and the second piece have different video effects.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims priority to Chinese Patent Application No. 202110676709.3, filed with the State Intellectual Property Office of China on June 16, 2021, entitled "A User Video Creation Method and Electronic Device Based on Storyline Mode", and Chinese Patent Application No. 202111439314.8, filed with the State Intellectual Property Office of China on November 29, 2021, entitled "A Video Processing Method and Electronic Device", the entire contents of which are incorporated herein by reference.

[0002] This application is a divisional application. The original application has the application number 202210038856.2 and the original application date is January 13, 2022. The entire contents of the original application are incorporated herein by reference. Technical Field

[0003] This application relates to the field of terminal technology, and in particular to a video processing method and an electronic device. Background Technology

[0004] Mobile phones, tablets, and other electronic devices all offer video recording and processing functions. Taking mobile phones as an example, they offer gallery apps that allow users to edit videos. For instance, they can add filters and background music to videos.

[0005] However, in implementing the embodiments of this application, the inventors discovered that the video processing solutions provided in the prior art have at least the following drawbacks: electronic devices can only complete video processing based on the user's individual settings for various effects such as filters, background music, and watermarks. This cumbersome operation results in a lack of intelligence in video processing. Summary of the Invention

[0006] This application provides a video processing method and electronic device that can generate finished products with different effects from the same video, thereby increasing the diversity of finished products.

[0007] In a first aspect, embodiments of this application provide a video shooting method, applied to electronic devices such as mobile phones and tablets that support video shooting. The electronic device displays a first interface. The first interface includes a first option, which displays a thumbnail of a frame from a first video. In response to a user's click on the first option in the first interface, the electronic device displays a second interface. The second interface is an editing interface for the first video, and it also includes a first control. For example, the first control is a "one-click video creation" button. In response to a user's first operation on the first control in the second interface, the electronic device generates a first finished video; the first finished video is the video obtained after the electronic device adds a first video effect to the first video. Thus, the electronic device adds a first video effect to the video stored in the electronic device.

[0008] Then, the electronic device can display a third interface. The third interface includes a second option and a first option; the second option displays a thumbnail of a frame from the first finished video. In other words, after adding video effects to the first video, the electronic device can provide two options: the first video and the first finished video. Furthermore, in response to the user's click on the first option in the third interface, the electronic device displays a fourth interface. The fourth interface is the editing interface for the first video, and it also includes a first control. In response to the user's first operation on the first control in the fourth interface, the electronic device generates a second finished video; the second finished video is the video obtained after the electronic device adds a second video effect to the first video. The first video effect and the second video effect are different.

[0009] In summary, using the method of this application embodiment, for a first video without added video effects, the electronic device, in response to the user's operation on the first control, can add video effects to the first video to form a first finished video. Afterwards, the electronic device still provides the user with the option of the first video. Furthermore, for the first video, the electronic device can again, in response to the user's operation on the first control, add different video effects to the first video to form a second finished video. Thus, it is possible to create finished videos with different effects from the same video, increasing the diversity of the finished videos.

[0010] In one possible design approach of the first aspect, the first interface is the interface in the camera application of an electronic device before recording video or taking a photo, or the first interface is the application interface of a gallery application in the electronic device. And, the third interface is the application interface of a gallery application.

[0011] In one possible design of the first aspect, the electronic device displays a second interface in response to a user's click on a first option in the first interface, including: if the first video is a video without added video effects, the electronic device displays the second interface in response to the user's click on the first option in the first interface.

[0012] Using the method in this embodiment, the electronic device provides the function of adding video effects only to videos that have not yet had video effects added, i.e., a "one-click video creation" function. This allows for targeted addition of video effects, improving the overall video processing quality.

[0013] In one possible design of the first aspect, the above method further includes: in response to a user's click operation on a first option in a first interface, if the first video has already had video effects added, the electronic device displays a fifth interface; the fifth interface is an editing interface for the first video, and the fifth interface does not include the first control.

[0014] Using the method of this embodiment, the electronic device no longer provides the function to add video effects to videos that have already had video effects added; instead, it only displays a normal editing interface, i.e., the fifth interface. This avoids video effect clutter.

[0015] In one possible design of the first aspect, after the electronic device displays the third interface, it further includes: the electronic device responding to the user's click operation on the second option to display a sixth interface; the sixth interface is a first full-size editing interface, and the sixth interface does not include the first control.

[0016] In this embodiment, since the second option corresponds to the first completed video, which already has video effects added, the electronic device does not provide the function to add video effects to it. This avoids video effect confusion.

[0017] In one possible design of the first aspect, the electronic device displays a second interface in response to a user's click operation on a first option in the first interface, including: the electronic device displays the second interface if the video duration of the first video exceeds a first duration and the video duration of the first video does not exceed a second duration; the first duration is less than the second duration.

[0018] It should be understood that if a video is too long or too short, the final product will not be ideal after adding video effects. In this embodiment, the electronic device only provides the function of adding video effects to videos within a certain length range, which can improve the video processing effect.

[0019] In one possible design of the first aspect, the method further includes: when the electronic device first displays the first control, the electronic device simultaneously displays a first prompt message, the first prompt message being used to indicate the video duration to which the function of adding video effects applies.

[0020] In this embodiment, when the electronic device first displays the first interface, it prompts the user about the applicable video duration for the function to add video effects. This clearly indicates the scope of application of the function to add video effects, improving the efficiency of human-computer interaction.

[0021] In one possible design of the first aspect, the method further includes: in response to a user's click operation on a first option in a first interface, if the video duration of the first video does not exceed a first duration, or if the video duration of the first video exceeds a second duration, the electronic device displays a seventh interface; the seventh interface is an editing interface for the first video, and the seventh interface does not include the first control.

[0022] In this embodiment, if the video duration is too long or too short, the electronic device will not provide the function of adding video effects. This improves the video processing effect.

[0023] In one possible design of the first aspect, the duration of the aforementioned first video exceeds the second duration. Specifically, the electronic device generates a first finished video in response to a user's first operation on a first control in a second interface, including: the electronic device displays an eighth interface in response to the user's first operation on the first control in the second interface; the eighth interface is an interface for the electronic device to trim the first video. The electronic device generates the first finished video in response to a user's second operation on the eighth interface; the first finished video is a video obtained by the electronic device adding first video effects to a target segment, the target segment belonging to the first video, and the segment duration of the target segment not exceeding the second duration.

[0024] In this embodiment, for videos that are too long, if the electronic device detects the need to add video effects, it can first trim the video and then add the video effects to the trimmed video. In this way, the electronic device can provide the function of adding video effects to long videos, thereby expanding the applicability of the video effects addition function.

[0025] In one possible design of the first aspect, after the first image is generated, the electronic device further includes: displaying a preview interface of the first image.

[0026] In this embodiment, after the electronic device generates the final video, it can directly display a preview, thereby allowing users to preview the video effects and improving the efficiency of human-computer interaction.

[0027] In one possible design of the first aspect, the preview interface includes a second control used to trigger the electronic device to edit the video. After the electronic device displays the preview interface of the first video, the method further includes: the electronic device playing the first video in the preview interface. If the electronic device has not detected any third user operation on the second control, in response to the completion of playback of the first video, the electronic device displays a second prompt message in the preview interface; the second prompt message prompts the electronic device to edit the first video.

[0028] In this embodiment, the electronic device can provide editing prompts in the preview interface, thereby clearly instructing the user to continue editing the final product.

[0029] In one possible design of the first aspect, the preview interface includes a second control for triggering the electronic device to edit the video. After the electronic device displays the preview interface of the first video, the method further includes: the electronic device responding to a third operation by the user on the second control by switching at least one of the first video effects; the at least one effect includes one or more of background music, filters, stickers, frames, transitions, and end credits.

[0030] In this embodiment, the video effects added by the electronic device can be adjusted in the preview interface. This allows for the customization of the video effects added by the electronic device, resulting in more diverse videos.

[0031] In one possible design of the first aspect, after the electronic device displays a preview interface of the first image, the method further includes: the electronic device saving the first image in response to a fourth user operation on the preview interface. Upon completion of saving the first image, the electronic device displays a ninth interface; the ninth interface is an editing interface for the first image, and does not include the first control. Displaying a third interface includes: the electronic device displaying the third interface in response to a user's return operation input on the ninth interface.

[0032] Secondly, embodiments of this application also provide an electronic device that supports video recording functionality. The electronic device includes a display screen, a memory, and one or more processors. The display screen, the memory, and the processors are coupled. The memory stores computer program code, which includes computer instructions. When the computer instructions are executed by the processor, the electronic device performs the following steps: the electronic device displays a first interface; the first interface includes a first option displaying a thumbnail of a frame from a first video; the electronic device, in response to a user's click on the first option in the first interface, displays a second interface; the second interface is the editing interface for the first video, and the second interface also includes a first control; the electronic device, in response to a user's first operation on the first control in the second interface, generates a first finished video; the first finished video is generated by the electronic device for the first video... The electronic device displays a third interface after adding a first video effect to the video; the third interface includes a second option and the first option, the second option displaying a thumbnail of a frame from the first video; the electronic device displays a fourth interface in response to a user's click on the first option in the third interface; the fourth interface is the editing interface for the first video, and the fourth interface also includes the first control; the electronic device generates a second video in response to a user's first operation on the first control in the fourth interface; the second video is the video obtained after the electronic device adds a second video effect to the first video; wherein the first video effect and the second video effect are different.

[0033] In one possible design of the second aspect, the first interface is the interface before recording video or taking a photo in the camera application of the electronic device, or the first interface is the application interface of the gallery application in the electronic device; and the third interface is the application interface of the gallery application.

[0034] In one possible design of the second aspect, when the computer instructions are executed by the processor, the electronic device performs the following steps: in response to a user's click on the first option in the first interface, if the first video is a video without added video effects, the electronic device displays the second interface.

[0035] In one possible design of the second aspect, when the computer instructions are executed by the processor, the electronic device performs the following steps: in response to a user's click on the first option in the first interface, if the first video has already had video effects added, the electronic device displays a fifth interface; the fifth interface is the editing interface of the first video, and the fifth interface does not include the first control.

[0036] In one possible design of the second aspect, when the computer instructions are executed by the processor, the electronic device performs the following steps: the electronic device displays a sixth interface in response to a user's click on the second option; the sixth interface is the first piece of editing interface, and the sixth interface does not include the first control.

[0037] In one possible design of the second aspect, when the computer instructions are executed by the processor, the electronic device performs the following steps: in response to a user's click operation on the first option in the first interface, if the video duration of the first video exceeds a first duration and the video duration of the first video does not exceed a second duration, the electronic device displays the second interface; the first duration is less than the second duration.

[0038] In one possible design of the second aspect, when the computer instructions are executed by the processor, the electronic device performs the following steps: when the electronic device first displays the first control, the electronic device simultaneously displays a first prompt message, the first prompt message being used to indicate the applicable video duration for the function of adding video effects.

[0039] In one possible design of the second aspect, when the computer instructions are executed by the processor, the electronic device performs the following steps: in response to a user's click operation on the first option in the first interface, if the video duration of the first video does not exceed the first duration, or if the video duration of the first video exceeds the second duration, the electronic device displays a seventh interface; the seventh interface is an editing interface for the first video, and the seventh interface does not include the first control.

[0040] In one possible design of the second aspect, the duration of the first video exceeds the second duration; when the computer instruction is executed by the processor, the electronic device performs the following steps: the electronic device displays an eighth interface in response to the user's first operation on the first control in the second interface; the eighth interface is an interface for the electronic device to trim the first video; the electronic device generates a first finished video in response to the user's second operation on the eighth interface; the first finished video is a video obtained by the electronic device by adding the first video effect to a target segment, the target segment belonging to the first video, and the duration of the target segment not exceeding the second duration.

[0041] In one possible design of the second aspect, when the computer instructions are executed by the processor, the electronic device performs the following steps: the electronic device displays a preview interface of the first piece of content.

[0042] In one possible design of the second aspect, the preview interface includes a second control for triggering the electronic device to edit the video. When the computer instruction is executed by the processor, the electronic device performs the following steps: the electronic device plays the first video in the preview interface; if the electronic device has not detected a third operation by the user on the second control, the electronic device displays a second prompt message in the preview interface upon completion of playback of the first video; the second prompt message prompts the electronic device to edit the first video.

[0043] In one possible design of the second aspect, the fifth interface includes a second control for triggering the electronic device to edit the video; when the computer instruction is executed by the processor, the electronic device performs the following steps: in response to a third operation by the user on the second control, the electronic device switches at least one of the first video effects; the at least one effect includes one or more of background music, filters, stickers, frames, transitions, and end credits.

[0044] In one possible design of the second aspect, when the computer instructions are executed by the processor, the electronic device performs the following steps: the electronic device saves the first image in response to a fourth operation by the user on the preview interface; the electronic device displays a ninth interface in response to the completion of saving the first image; the ninth interface is the editing interface of the first image, and the ninth interface does not include the first control; the electronic device displays the third interface in response to a return operation input by the user on the ninth interface.

[0045] Thirdly, embodiments of this application provide a chip system applied to an electronic device including a display screen and a memory; the chip system includes one or more interface circuits and one or more processors; the interface circuits and the processors are interconnected via lines; the interface circuits are used to receive signals from the memory of the electronic device and send the signals to the processors, the signals including computer instructions stored in the memory; when the processor executes the computer instructions, the electronic device performs the method as described in the first aspect and any possible design of the method.

[0046] Fourthly, this application provides a computer storage medium including computer instructions that, when executed on an electronic device, cause the electronic device to perform the method described in the first aspect and any possible design thereof.

[0047] Fifthly, this application provides a computer program product that, when run on a computer, causes the computer to perform the method described in the first aspect and any possible design thereof.

[0048] It is understood that the beneficial effects achieved by the electronic device described in the second aspect, the chip system described in the third aspect, the computer storage medium described in the fourth aspect, and the computer program product described in the fifth aspect can be referred to the beneficial effects in the first aspect and any of its possible design embodiments, which will not be repeated here. Attached Figure Description

[0049] Figure 1 A schematic diagram of the hardware structure of a mobile phone provided in an embodiment of this application;

[0050] Figure 2 One of the schematic diagrams of a mobile phone interface provided in this application embodiment;

[0051] Figure 3A A second schematic diagram of a mobile phone interface provided in an embodiment of this application;

[0052] Figure 3B The third schematic diagram of a mobile phone interface provided in this application embodiment;

[0053] Figure 4 The fourth schematic diagram of a mobile phone interface provided in this application embodiment;

[0054] Figure 5A A schematic diagram illustrating a film-forming effect provided in an embodiment of this application;

[0055] Figure 5B Fifth schematic diagram of a mobile phone interface provided in this application embodiment;

[0056] Figure 6A A schematic diagram illustrating a video duration provided in an embodiment of this application;

[0057] Figure 6B The sixth schematic diagram of a mobile phone interface provided as an embodiment of this application;

[0058] Figure 6C The seventh schematic diagram of a mobile phone interface provided in this application embodiment;

[0059] Figure 6D Eighth schematic diagram of a mobile phone interface provided for an embodiment of this application;

[0060] Figure 7A The ninth schematic diagram of a mobile phone interface provided as an embodiment of this application;

[0061] Figure 7B This is a schematic diagram of a music fading process provided in an embodiment of this application;

[0062] Figure 8 The tenth schematic diagram of a mobile phone interface provided in this application embodiment;

[0063] Figure 9 Eleventh of the schematic diagrams of a mobile phone interface provided in this application embodiment;

[0064] Figure 10 The twelfth schematic diagram of a mobile phone interface provided as an embodiment of this application;

[0065] Figure 11 This is a schematic diagram of a chip system provided in an embodiment of this application. Detailed Implementation

[0066] In the description of the embodiments of this application, unless otherwise stated, "at least one" refers to one or more, and "more than one" refers to two or more. Furthermore, to facilitate a clear description of the technical solutions of the embodiments of this application, the terms "first" and "second" are used in the embodiments of this application to distinguish identical or similar items with substantially the same function and effect. Those skilled in the art will understand that the terms "first" and "second" do not limit the quantity or execution order, nor are they necessarily different. Moreover, in the description of the embodiments of this application, unless otherwise stated, the position and shape of each interface element in the interface diagram are illustrative; in actual implementation, the position and shape can be flexibly adjusted according to actual needs.

[0067] This application provides a video processing method applicable to electronic devices such as mobile phones and tablets that support video processing. The electronic device provides a quick editing entry point for videos stored on it. The device can receive preset operations from the user at this quick editing entry point, such as clicks or swipes. In response to these preset operations, the electronic device can add a set of video effects to the video, including background music, filters, special effects (such as twinkling stars), transitions, frames, and stickers, generating a finished video. Furthermore, for the same video, the electronic device can add different sets of video effects to the video in response to multiple preset operations from the user, thereby generating finished videos with different effects.

[0068] In summary, by employing the method of this application embodiment, the electronic device can quickly add a set of effects to a video in response to the user's preset operations, improving the intelligence and efficiency of video processing. Furthermore, for the same video, responding to multiple preset operations by the user can create finished videos with different effects, enhancing the diversity of the finished videos.

[0069] For example, the electronic device in this application embodiment may be a mobile phone, tablet computer, desktop computer, laptop computer, handheld computer, notebook computer, ultra-mobile personal computer (UMPC), netbook, as well as cellular phone, personal digital assistant (PDA), augmented reality (AR) / virtual reality (VR) device and other devices that support video processing. This application embodiment does not impose any special restrictions on the specific form of the electronic device.

[0070] See Figure 1 This is a hardware structure diagram of an electronic device provided in an embodiment of this application. Figure 1 As shown, taking a mobile phone as an example, a mobile phone may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.

[0071] It is understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device. In other embodiments, the electronic device may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0072] Processor 110 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0073] It is understood that the interface connection relationships between the modules illustrated in this embodiment are merely illustrative and do not constitute a structural limitation on the electronic device. In other embodiments, the electronic device may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.

[0074] The charging management module 140 receives charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 receives charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 receives wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also supply power to the electronic device via the power management module 141.

[0075] The power management module 141 connects the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, providing power to the processor 110, internal memory 121, external memory, display screen 194, camera 191, and wireless communication module 160, etc. The power management module 141 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In some other embodiments, the power management module 141 may also be located within the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be located in the same device.

[0076] The wireless communication function of electronic devices can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.

[0077] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.

[0078] Electronic devices implement display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connecting the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0079] Electronic devices can perform shooting functions through an ISP, camera 193, video codec, GPU, display 194, and application processor. The ISP is used to process data fed back by the camera 193. The camera 193 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through a lens. In some embodiments, the electronic device may include one or N cameras 193, where N is a positive integer greater than 1.

[0080] The external storage interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.

[0081] Internal memory 121 can be used to store computer executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of the electronic device by running the instructions stored in internal memory 121. For example, processor 110 can display different content on display screen 184 in response to a user opening display screen 194 by executing instructions stored in internal memory 121. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback function, image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device (such as audio data, phone book, etc.). In addition, internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.

[0082] Electronic devices can implement audio functions such as music playback and recording through audio modules 170, speakers 170A, receivers 170B, microphones 170C, headphone jacks 170D, and application processors.

[0083] Buttons 190 include a power button, volume buttons, etc. Buttons 190 can be mechanical buttons or touch buttons. The electronic device can receive button inputs and generate key signal inputs related to user settings and function control. Motor 191 can generate vibration alerts. Motor 191 can be used for incoming call vibration alerts or for touch vibration feedback. Indicator 192 can be an indicator light, used to indicate charging status, battery level changes, messages, missed calls, notifications, etc. SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to achieve contact and separation with the electronic device. The electronic device can support one or N SIM card interfaces, where N is a positive integer greater than 1.

[0084] The method of this application embodiment will be described in detail below with reference to the accompanying drawings and taking a mobile phone as an example. The method of this application embodiment can be applied to video processing scenarios. The video to be processed (also referred to as the first video) can be a video captured by a mobile phone, a video downloaded from the internet, or a video stored in the cloud. In the following embodiments, the solution of this application is mainly described using a video captured by a mobile phone as an example.

[0085] See Figure 2 In (a) of the example, in one scenario, the mobile phone can capture the video to be processed in single-camera recording mode. Single-camera recording mode is the regular recording mode in the conventional sense. In single-camera recording mode, the mobile phone uses only one camera to capture video. For example, Figure 2 The interface 201 shown in (a) is the viewfinder interface before recording in single-lens video mode. This interface 201 only includes the image 202 captured by a single camera (such as the front-facing camera). When recording begins in this mode, the phone is recording in single-lens video mode.

[0086] See Figure 2 In scenario (b), the phone can capture the video to be processed using a multi-camera recording mode. In multi-camera recording mode, the phone can use two or more cameras simultaneously to capture video. For example, Figure 2 The interface 203 shown in (b) is a viewfinder interface for multi-camera recording before recording. This interface 203 includes images 204 and 205 captured by two cameras (such as a rear main camera and a front camera). Recording begins in this mode, with the phone recording in multi-camera recording mode. In the following embodiments, the solution of this application will be described primarily in multi-camera recording mode.

[0087] It's important to note that in multi-camera recording mode, you can also switch to using a single camera to record video by clicking the switch button 206 on interface 203. To distinguish it from single-camera recording mode, the mode that uses a single camera to record video in multi-camera recording mode can be referred to as multi-camera mode.

[0088] See Figure 3A (a) and Figure 3A In (b) of the above, in multi-camera recording mode, on the viewfinder interface before video recording, such as interface 301, the mobile phone can receive user operation 1, which triggers the mobile phone to start video recording. For example, the viewfinder interface before recording includes control 1, such as... Figure 3A (a) shows button 302 in interface 301. Control 1 is used to trigger the phone to start video recording; operation 1 can be a user click on control 1. In response to operation 1, the phone can start video recording and display the viewfinder for video recording, such as... Figure 3A Interface 303 is shown in (b) of the diagram. After video recording begins, the mobile phone can receive user operation 2, which triggers the phone to end video recording. For example, the viewfinder during recording includes control 2, such as button 304 in interface 303. Control 2 is used to trigger the phone to end video recording; operation 2 can be a user click on control 2. In response to operation 2, the mobile phone can end video recording and store the recorded video (which can be referred to as video 1, belonging to the first video).

[0089] It should be noted that the forms of operations 1 and 2 are not limited to those exemplified above. For example, operation 1 could also be a user swiping from the right edge of the viewfinder before video recording to the left. As another example, operation 2 could also be a double-tap operation of the viewfinder during video recording. This application does not impose specific limitations on these aspects.

[0090] See also Figure 3B (a) and Figure 3B In embodiment (c), after the video is stored, the phone can restore the viewfinder interface before shooting (also referred to as the first interface). The viewfinder interface before video shooting includes a gallery resource control, which can display a thumbnail of a frame from video 1 (hereinafter referred to as the thumbnail of video 1). For example, after the video is stored, the phone can display... Figure 3BThe interface 311 shown in (a) is the viewfinder interface before video recording. The button 312 in the lower left corner of interface 311 is the gallery resource control, which displays a thumbnail 313 of video 1. For ease of explanation, the thumbnail can be referred to as an option; for example, the thumbnail of video 1 can be called the first option. Furthermore, the gallery resource control can be used to trigger the phone to display the video corresponding to the thumbnail. The phone can receive user clicks, long presses, and swipes on the gallery resource control; the following explanation will primarily focus on clicks. In response to a user's click on the gallery resource control, the phone can display interface 1 (also called the second interface), which is the editing interface for video 1. For example, in response to a user's click on... Figure 3B Button 312, shown in (a) above, is the click operation of the gallery resource control. The mobile phone can display... Figure 3B Interface 316, also known as interface 1, is shown in (c) in the diagram. In interface 316, the video corresponding to the thumbnail 313 in the editable button 312 is displayed.

[0091] See Figure 3B (b) and Figure 3B In some embodiments, following step (c), after the video is stored, the phone can synchronize video 1 to the gallery application, and then a thumbnail of video 1 will be displayed in the gallery application's interface (also referred to as the first interface). For example, after synchronizing video 1 to the gallery application, the phone can display... Figure 3B Interface 314, shown in (b) above, is the application interface of the gallery application. Interface 314 includes a thumbnail 315 of video 1. Similarly, the thumbnail of video 1 can be referred to as the first option. During the display of the gallery application's interface, the mobile phone can receive user clicks on the thumbnails in the application interface. In response to the user's click on the thumbnail of video 1 in the application interface, the mobile phone can also display interface 1 (also referred to as the second interface), which is the editing interface for video 1. For example, using... Figure 3B (b) shows an example where the thumbnail 315 in interface 314 is a thumbnail of video 1. In response to the user's click on thumbnail 315, the phone can display... Figure 3B Interface 316, or interface 1, is shown in (c) in the diagram. Video 1 can be edited in interface 316.

[0092] In some embodiments, interface 1 may include a share control, a favorite control, an edit control, a delete control, etc. For example, interface 1 is... Figure 3B Taking interface 316 shown in (c) as an example, the sharing control can be a "Share" button, the collection control can be a "Collect" button, and so on. This allows for basic video editing.

[0093] In this embodiment of the application, interface 1 includes control 3 (i.e., quick editing entry, also known as the first control), such as Figure 3B The "One-Click Blockbuster" button in interface 316 is shown in (c). Control 3 is used to trigger the mobile phone to process the video (e.g., video 1) using an effect template (e.g., template 1). For ease of explanation, this processing function can be called "One-Click Blockbuster". Furthermore, the following explanation will primarily use template 1 as an example of the effect template used for "One-Click Blockbuster" to illustrate the solution of this application. Each effect template has a combination of background music, filters, special effects (e.g., twinkling stars), transitions, frames, stickers, etc., which can be simply referred to as video effects. That is, each effect template corresponds to a set of video effects. Accordingly, the mobile phone can add corresponding video effects to the video by using the effect template. For ease of explanation, the set of video effects corresponding to template 1 can be called the first video effect. The mobile phone can receive user operation 3 (also called the first operation) on control 3. Operation 3 is used to trigger the mobile phone to process the video (e.g., video 1) using template 1. Operation 3 can be a user's click operation, long press operation, swipe operation, etc. on control 3. Alternatively, operation 3 can be a user's swipe-up operation on control 3, etc. This application does not specifically limit the form of operation 3. In the following embodiments, operation 3 is mainly taken as a user's click operation on control 3 to illustrate the solution of this application. In response to operation 3, the mobile phone can use template 1 to process the video to be processed (such as video 1) to form a finished piece (also known as the first finished piece). For example, the mobile phone can add a set of video effects corresponding to template 1 to video 1, such as background music, filters, special effects, transitions, frames, stickers, etc., so that the effect of the finished piece is completely consistent with the video effect corresponding to template 1. For example, the effect of the finished piece can be as follows: Figure 3B As shown in (d), the finished product has a dark gray filter and effects such as "happy hour" stickers.

[0094] In some scenarios, the video on your phone may be unprocessed using an effect template, such as Video 1, or it may have been processed using an effect template. For clarity, we can refer to the video processed using an effect template as Video 2 (belonging to the first video). Processing with an effect template includes the following two situations: First, it was processed using "One-Click Video Creation." For an explanation of "One-Click Video Creation," please refer to the previous text; it will not be repeated here. Second, an effect template (such as Template 2) is selected before starting video recording, and the video is automatically processed according to Template 2 after recording ends, generating a finished video which is then saved on your phone. To facilitate understanding, a specific example is provided below to illustrate the second situation:

[0095] See Figure 4 For example, before starting video recording, the phone may display... Figure 4The interface 401 shown in (a) includes a "Mini-Movie" button 402, which triggers the phone to select an effect template. The phone can receive a user's click on the "Mini-Movie" button 402. In response to the user's click on the "Mini-Movie" button 402, the phone can display template options for multiple effect templates, such as... Figure 4 The image (b) shows four template options: "Hello Summer," "Beautiful," "Good Mood," and "Small Moments of Beauty." The phone can then receive the user's selection of template option 1 (e.g., "Hello Summer"). Template option 1 is any one of multiple template options. In response to the user's selection of template option 1, the phone can select the corresponding effect template, such as "Hello Summer." Next, the phone can receive the user's command to start shooting. Figure 4 Clicking button 403 in (b) of the video. In response to the start recording operation, the phone can begin recording video. After video recording ends, the phone can automatically process the recorded video using the effect template selected before recording, forming a finished video (such as Video 2) and saving it on the phone. For example, Video 2 can be like this... Figure 4 As shown in (c), it features a light gray filter and a sticker that reads "Summer Feelings, the Most Beautiful Summer We Are Together".

[0096] For the video 2 obtained in the two scenarios mentioned above, it already has effects such as background music, filters, and stickers. If "one-click conversion" is applied to it further, two sets of effects may overlap, resulting in a poor final product. For example, in... Figure 5A The effect shown in (a) is... Figure 5A The combined effect shown in (b) can produce the following result. Figure 5A The effect shown in (c) is problematic. On one hand, the overlay of light gray and dark gray filters results in excessively dark filter colors in the final product, affecting the original video content. On the other hand, the overlay of the two stickers, "Happy Times" and "Summer Feelings, the Most Beautiful Summer We Are Together," leads to an inconsistent video theme.

[0097] Based on this, in some embodiments, the mobile phone can add processing identifiers to videos stored on the phone, adding a first identifier to videos that have not been processed using the effect template (such as video 1), and / or adding a second identifier to videos that have been processed using the effect template (such as video 2). For example, after adding processing identifiers to videos, the mobile phone can display... Figure 5BImage (a) shows the application interface 501 of the gallery application, which displays thumbnails 502, 503, and 504. Thumbnails 503 and 504 have a five-pointed star in their upper right corner, indicating that the video corresponding to thumbnails 503 and 504 has been processed using an effect template. That is, the five-pointed star is a secondary identifier. Thumbnail 502 does not have a five-pointed star in its upper right corner, indicating that the video corresponding to thumbnail 502 has not been processed using an effect template.

[0098] In this embodiment, in response to a user's click on any thumbnail (which can be denoted as the target thumbnail, or the first option) in the viewfinder interface before video recording or in the gallery application interface, if the processing identifier of the video corresponding to the thumbnail (denoted as the target video, also belonging to the first video) is the first identifier, or if the processing identifier of the target video is not the second identifier, the mobile phone can display interface 1. Regarding interface 1, please refer to the description in the previous embodiments; it will not be repeated here. For example, the target thumbnail is... Figure 5B The thumbnail 503 shown in (a) has no star (i.e., the second identifier) ​​in its upper right corner, indicating that the target video is a video that has not been processed using the effect template. The mobile phone, in response to the user's click on thumbnail 503, can display... Figure 5B Interface 505 is shown in (b) above. Interface 505 includes control 3, such as the "One-Click Photo" button. That is, interface 505 is interface 1.

[0099] The mobile phone responds to the user's click operation on the target thumbnail in the viewfinder before video recording or in the gallery application interface. If the processing identifier of the target video is the second identifier, or if the processing identifier of the video is not the first identifier, the mobile phone can display interface 2. For ease of explanation, interface 2 in this embodiment can be referred to as the fifth interface. Interface 2 is also the video editing interface, but interface 2 does not include control 3. For example, video 3 is... Figure 5B The video corresponding to thumbnail 504 shown in (a) has a five-pointed star (the second identifier) ​​in the upper right corner, indicating that the video corresponding to thumbnail 504 has been processed using an effects template. The mobile phone responds to the user's click on thumbnail 504 by displaying... Figure 5B Interface 506 is shown in (c). Interface 506 includes the target video but does not include control 3, such as the "One-Click Video" button. That is, interface 506 is interface 2.

[0100] In other words, the phone responds to the user's click on the target thumbnail in the viewfinder before video recording or in the gallery application interface. If the target video is not a video obtained by adding video effects based on an effect template (such as Video 1), the phone can display interface 1, which provides control 3. If the target video is a video obtained by adding video effects based on an effect template (such as Video 2), the phone can display interface 2, which does not provide control 3.

[0101] In this embodiment, control 3 is provided only for videos that have not been processed using effect templates, enabling "one-click video creation". This allows for targeted "one-click video creation" and improves the overall video processing effect.

[0102] In other embodiments, the mobile phone can provide control 3 for all videos, and simultaneously record the correspondence between each video (e.g., video 2) obtained after the mobile phone adds video effects according to the effect template and the corresponding original video (e.g., video 1). Then, when the mobile phone "creates a new video" from the video (e.g., video 2) obtained after the mobile phone adds video effects according to the effect template, it can find the corresponding original video and obtain a new video by adding video effects on the basis of the original video.

[0103] Using this embodiment, when a mobile phone creates a "one-click" video by adding video effects based on an effect template, it can avoid the superposition of video effects by finding the original video and then processing it. This improves the video processing effect.

[0104] In addition, the video lengths on mobile phones vary, for example, Figure 5B In (a) of the image, the video duration corresponding to thumbnail 502 is 00:10, or 10 seconds; the video duration corresponding to thumbnail 503 is 00:15, or 15 seconds; and the video duration corresponding to thumbnail 504 is 00:08, or 8 seconds. In some scenarios, when creating a video with a single click using an effect template, if the video duration is too short, the effect corresponding to the template may not be properly displayed.

[0105] For example, template 1 includes transitions, a fade-in at the beginning, and a fade-out at the end, with required durations of 1.5s, 2s, and 1.5s respectively. Figure 6A As shown in (a), the video duration is 8 seconds. If template 1 is used to... Figure 6A In the video shown in (a), which is "one-click to create a video", the first 1.5 seconds of video frames need to be used for the fade-in effect, the last 1.5 seconds of video frames need to be used for the fade-out effect, and the middle 2 seconds of video frames need to be used for the transition effect. As a result, only 3 seconds of video frames in the whole video can be displayed normally, which leads to the poor effect of "one-click to create a video".

[0106] Based on this, in some embodiments, in response to a user's click on the target thumbnail in the viewfinder before video recording or in the gallery application interface, if the video duration of the target video (i.e., the video corresponding to the target thumbnail) exceeds duration 1 (which can be referred to as the first duration), the mobile phone can display interface 1. For details on interface 1, please refer to the description in the preceding embodiments; it will not be repeated here.

[0107] For example, with a duration of 10 seconds, the target thumbnail is... Figure 6B Taking the thumbnail 602 in the camera application interface 601 shown in (a) as an example, the video corresponding to thumbnail 602, i.e., the target video, has a duration of 00:15, or 15 seconds, which exceeds the duration of 1 second. In response to the user's click on thumbnail 602, the phone can display... Figure 6B Interface 604 is shown in (b) above. Interface 604 includes control 3, such as the "One-Click Movie" button. That is, interface 604 is interface 1, which can also be obtained after the user clicks control 312 in interface 311. The interface includes the prompt message 608 "One-Click Movie provides intelligent editing for videos with a duration of 10 to 29 seconds, automatically generating wonderful movies". The prompt message can also be other suitable content, such as "Record a video between 10 and 35 seconds, and you can create a movie with one click". This application does not limit this.

[0108] The mobile phone responds to the user's click on the target thumbnail in the viewfinder before video recording or in the gallery application interface. If the video duration of the target video does not exceed duration 1, the mobile phone can display interface 2. For ease of explanation, interface 2 in this embodiment can be referred to as the seventh interface. Interface 2 is also the video editing interface, but interface 2 does not include control 3. For example, with duration 1 being 10 seconds and the target thumbnail being... Figure 6B Taking the thumbnail 603 in the camera application interface 601 shown in (a) as an example, the video corresponding to thumbnail 603, i.e., the target video, has a duration of 00:08, or 8 seconds, which does not exceed the duration of 1 second. In response to the user's click on thumbnail 603, the phone can display... Figure 6B Interface 605 is shown in (c). Interface 605 includes the target video but does not include control 3, such as the "One-Click Video" button. That is, interface 605 is interface 2.

[0109] In this embodiment, the duration 1 can be a value set based on experience, such as 5s, 8s, 10s, etc. Alternatively, multiple effect templates can be saved on the phone, each with its own duration. Generally, a better final product will only be achieved when the video to be processed (e.g., Video 1) has a duration of at least close to the template duration. For example, if template 1 has a duration of 15s and includes 3 transition effects, each lasting 2s, then the transition effects will require 6s, with an average interval of 3s between each transition. If the video duration is less than 15s, the interval between each transition will be shorter, resulting in a poor final product. Therefore, the duration 1 can be set to be less than the shortest template duration.

[0110] For example, the template durations of multiple effect templates saved on the mobile phone are shown in Table 1 below:

[0111] Table 1

[0112] Effect Template Template duration Hello Summer 15s good 15s Good mood 20s A Little Thing 25s

[0113] In Table 1 above, the shortest template duration is 15 seconds. If the template duration for Video 1 is shorter than 15 seconds, then using any effect template in Table 1 to process Video 1 will not yield a satisfactory final product. Therefore, the duration 1 can be set to a value less than 15 seconds, such as 10 seconds. Subsequently, for videos shorter than 10 seconds, the "one-click final product" function can be omitted.

[0114] In this embodiment, control 3 is provided only for videos with a duration exceeding 1, which is used to achieve "one-click video creation". This allows for targeted "one-click video creation" and improves the video processing effect.

[0115] In some scenarios, when creating a video with a single click using an effect template, if the video is too long, the effects corresponding to the template may not match the video. For example, template 1 might include background music in its set of effects, and the background music might be 30 seconds long. Figure 6A As shown in (b), the video duration is 35 seconds. If template 1 is used to "one-click create" the video, the background music of template 1 can only cover the first 30 seconds of video frames, leaving the remaining 5 seconds without background music or coverage, which will also affect the final product quality. Alternatively, in scenarios where videos are shot in multi-camera recording mode, multiple cameras are recording. If the video duration is too long, the video file will be too large, which is not conducive to the "one-click create" process in post-production. Furthermore, the final product will be very large, making it inconvenient to store, upload, and share.

[0116] Based on this, in some embodiments, in response to a user's click on the target thumbnail in the viewfinder before video recording or in the gallery application's interface, if the video duration of the target video (i.e., the video corresponding to the target thumbnail) does not exceed duration 2 (also referred to as the second duration), the phone can display interface 1. For example, duration 2 is 29 seconds, and the target thumbnail is... Figure 6B Taking the thumbnail 602 in the camera application interface 601 shown in (a) as an example, since the video corresponding to thumbnail 602, i.e., the target video, has a duration of 00:15, or 15 seconds, which does not exceed the duration of 2 seconds, the mobile phone can display the following in response to the user's click operation on thumbnail 602: Figure 6B Interface 604, shown in (b) above, includes the target video and controls 3, such as the "One-Click Video" button. That is, interface 604 is interface 1.

[0117] The mobile phone responds to the user's click on the target thumbnail in the viewfinder before video recording or in the gallery application interface. If the target video's duration exceeds duration 2, the mobile phone can display interface 2. For ease of explanation, interface 2 in this embodiment can be referred to as the seventh interface. Interface 2 is also the video editing interface, but interface 2 does not include control 3. For example, with duration 2 being 29 seconds and the target thumbnail being... Figure 6B Taking the thumbnail 606 in the camera application interface 601 shown in (a) as an example, since the video corresponding to thumbnail 606, i.e., the target video, has a video duration of 00:35, or 35 seconds, which exceeds the duration of 2, the mobile phone can display the thumbnail 606 in response to the user's click operation. Figure 6B Interface 607, shown in (d), includes the target video but does not include control 3, such as the "One-Click Video" button. That is, interface 607 is interface 2.

[0118] In this embodiment, the duration 2 can be a value set based on experience. For example, in a scenario where video is shot in multi-camera recording mode, a video duration exceeding 30 seconds would result in an excessively large video file, hindering post-processing and storage; therefore, the video duration can be set to 30 seconds. Alternatively, multiple effect templates can be saved on the phone, each template including background music in its set of effects. Typically, the background music needs to cover the video to be processed (e.g., video 1) to achieve a good final product effect. For example, as... Figure 6AAs shown in (b), if the video length is longer than the music length, a portion of the final video will lack background music, resulting in a poor final product. Therefore, a duration of 2 can be set to be longer than or equal to the longest music duration. When the video length exceeds duration 2 (the longest music duration), the background music will not cover the entire video when any effect template is used. In this case, a "one-click final product" function may not be provided. For example, if the longest background music duration is 30 seconds, duration 2 can be set to be greater than or equal to 30 seconds, such as 30 seconds. Furthermore, an effect template may include an end credits segment, which contains fixed content such as a mobile phone vendor's logo, usually unrelated to the video content. Typically, the background music needs to cover both the video and the end credits to achieve a good final product. For example, if the video length is too long, the background music may not cover the end credits. Therefore, duration 2 can be set to be longer than or equal to the difference between the longest music duration and the end credits duration. For example, if the longest background music duration is 30 seconds and the end credits duration is 1 second, then duration 2 can be set to 29 seconds.

[0119] In this embodiment, control 3 is provided only for videos whose duration does not exceed duration 2, in order to achieve "one-click video creation", thereby enabling targeted "one-click video creation" and improving the effect of video processing.

[0120] It should be understood that, in actual implementation, the above-described implementation that provides control 3 only for videos with a duration exceeding duration 1, and the implementation that provides control 3 only for videos with a duration not exceeding duration 2, can be used in combination. That is, in some other embodiments, the mobile phone may only provide control 3 for videos with a duration exceeding duration 1 but not exceeding duration 2. Where duration 1 is less than duration 2.

[0121] In the embodiments described above that address the issues caused by excessively long or short video durations, when the mobile phone first provides control 3, it can also simultaneously display prompt information 1 (also referred to as the first prompt information). Prompt information 1 indicates the applicable video duration for "One-Click Blockbuster". For example, the first displayed interface 1 is... Figure 6B Interface 604, shown in (b), includes control 3, such as the "One-Click Movie" button. Interface 604 also includes a prompt 608, which states, "One-Click Movie provides intelligent editing for videos between 10-29 seconds in length, automatically generating a stunning finished product," thus indicating the applicable video length for "One-Click Movie." In other words, prompt 608 is prompt information 1.

[0122] Furthermore, to address the issue of excessively long video duration, in some other embodiments, the mobile phone can provide control 3 for videos of any length. For example, with a duration of 29 seconds, the target thumbnail is... Figure 6B Taking the thumbnail 606 in interface 601 shown in (a) as an example, the video corresponding to thumbnail 606, i.e., the target video, has a duration of 00:35, or 35 seconds, which exceeds the duration of 2 seconds. In response to the user's click on thumbnail 606, the mobile phone can display... Figure 6C Interface 611 is shown in (a) above. Interface 611 also includes control 3, namely the "One-Click Movie" button. That is to say, if the video length of the target video exceeds the duration 2, the mobile phone can also provide control 3 to trigger the use of "One-Click Movie".

[0123] In this embodiment, the mobile phone can provide control 3 for videos of any length. Therefore, upon first providing control 3, prompt information 2 can be displayed. Prompt information 2 is only used to indicate the "one-click video creation" function, without specifying the applicable video length for "one-click blockbuster". For example, the first displayed interface 1 is... Figure 6C The interface 611 shown in (a) includes control 3, such as the "One-Click Movie" button. Interface 611 also includes a prompt 615, the specific content of which is "One-Click Movie provides intelligent editing for videos, automatically generating excellent finished products," thus highlighting the "One-Click Movie" function. That is, prompt 615 is prompt information 2.

[0124] Subsequently, the phone can receive user operation 3, such as clicking the "One-Click Video" button. In response to operation 3, if the target video's duration does not exceed duration 2, the phone can use template 1 to process the target video and create a finished video. In response to operation 3, if the target video's duration exceeds duration 2, the phone can display interface 3 (also known as the eighth interface). In interface 3, the phone can respond to the user's cropping operation (also known as the second operation) by cropping a video segment (which can be denoted as the target segment) from the target video, ensuring that the effect of template 1 matches the target segment. In other words, interface 3 is the interface the phone uses to crop the target. In response to the cropped target segment, the phone can use template 1 to add video effects to the target segment, creating a finished video.

[0125] For example, with a duration of 29 seconds, the target thumbnail is as described above. Figure 6B The thumbnail 606 shown in (a) is the interface 3 displayed in response to a click operation on the thumbnail 606. Figure 6CTaking interface 611 shown in (a) as an example, since the video corresponding to thumbnail 606, i.e., the target video, has a duration of 00:35, or 35 seconds, which exceeds the duration of 2 seconds, the mobile phone can display the following in response to the user's click operation on the "One-Click Movie" button in interface 611: Figure 6C Interface 612 is shown in (b) of the diagram. In interface 3, the mobile phone can select a video clip of no more than 29 seconds, i.e., the target clip.

[0126] Interface 3 includes control 4, which is used to trigger the phone to select a video clip with a duration not exceeding 2 seconds. For example, control 4 is... Figure 6C The selection box 613 shown in (b) can select a video segment with a maximum duration of 2. Normally, control 4 selects the video segment with a duration of 2 at the beginning of video 3 by default. In interface 3, the mobile phone can receive the user's swipe operation on the video segment selected by control 4, and in response to the user's swipe operation on the video segment selected by control 4, the mobile phone can select a new video segment.

[0127] Additionally, in interface 3, the phone can receive push-pull operations from the user on the left and right edges of control 4. In response to these operations, the phone can change the duration of the selected video clip, thus selecting a new video clip. Furthermore, in response to these push-pull operations, if the length of the dragged clip exceeds duration 2, the phone can display a prompt message 3 in interface 3, indicating that the maximum duration has been reached. For example, if duration 2 is 29 seconds... Figure 6D As shown in (a), the 29s video clip has already been selected. Based on this, as... Figure 6D As shown in (b), in response to the user pushing the right edge of the selection box in the direction indicated by the arrow, the phone can display... Figure 6D The prompt 624 is shown in (c) above. The specific content of prompt 624 is "Maximum adjustable duration reached," thus indicating that the maximum duration has been reached. In other words, prompt 624 is prompt message 3.

[0128] Furthermore, interface 3 can also include a playback progress bar, where the total duration of the progress bar represents the length of the selected video segment. For example, the playback progress bar is... Figure 6C The progress bar 614 shown in (b) indicates that the video segment duration is 29 seconds, with 00:29 on the right and 00:14 on the left indicating that the video is currently playing at the 14th second. The progress bar can be used to trigger the phone to update the playback progress of the currently selected video segment. Furthermore, the progress bar is set independently of control 4, allowing for convenient and accurate adjustment of the playback progress.

[0129] After selecting a satisfactory video segment, the phone can receive user operation 4 (i.e., the second operation) on interface 3. Operation 4 is used to trigger the phone to trim the target video. Operation 4 can be a preset gesture by the user on interface 3, such as an upward swipe gesture from the bottom edge of interface 3. Alternatively, interface 3 may include a cropping control, such as... Figure 6C The "√" button in the upper right corner of interface 612 shown in (b) is a capture control used to trigger the phone to capture a video clip. Operation 4 can be a user's click operation, long press operation, etc., on the capture control. In this embodiment, the form of operation 4 is not specifically limited. In response to operation 4, the phone can capture the target clip, which is the latest selected video clip on the phone with a duration of no more than 2 seconds, and add video effects to the captured target clip to generate a finished video.

[0130] Additionally, interface 3 may include a cancel control, such as... Figure 6C The "×" button in the upper left corner of interface 612 shown in (b) is a cancellation control used to trigger the phone to capture a default video segment. For example, the video segment with a duration of 2 seconds at the beginning of the target video. In response to the user's click, long press, or other actions on the cancellation control, the phone can capture the default video segment, add video effects, and generate the final video.

[0131] In this embodiment, "one-click blockbuster" processing can be achieved for videos of any length. Specifically, for target videos with a length exceeding 2, a target segment of length 2 is first extracted from the target video, and then the "one-click blockbuster" function is used to process the target segment. This avoids the problem of mismatch between the video length and the effect in template 1, thereby improving the final blockbuster effect.

[0132] It should be noted that in this embodiment, for videos exceeding duration 2, the effect template can only be used to process the target segment after the phone has captured the target segment. It is not used to process the entire video in response to operation 3.

[0133] In some scenarios, a mobile phone stores multiple effect templates, each with different effects. For example, if the effect includes background music, template 1 might have upbeat music, while template 2 might have cheerful music. In some embodiments, in scenarios where multiple effect templates are stored on the phone, in response to operation 3, such as clicking the "One-Click Video" button, the phone can select a target template from the multiple effect templates to process the video (e.g., video 1). The phone can select the target template randomly or according to a certain pattern, such as the order of the template numbers.

[0134] Furthermore, for the same video to be processed (such as Video 1), if the mobile phone provides control 3 multiple times and receives user operation 3 multiple times, the mobile phone can use different effect templates to process the video, thereby obtaining finished products with different effects. Taking Video 1 as an example, that is, for Video 1, after the mobile phone displays interface 1 for the first time, it can receive the user's first operation 3. In response to the user's first operation 3, the mobile phone can use template 1 to process Video 1, forming finished product 1. The effect of finished product 1 is completely consistent with the effect of template 1. Subsequently, for Video 1, after the mobile phone displays interface 1 again, the mobile phone can receive the user's second operation 3. In response to the user's second operation 3, the mobile phone can use template 2 to process Video 1, forming finished product 2. The effect of finished product 2 is completely consistent with the effect of template 2.

[0135] For example, interface 1 is Figure 7A Taking interface 701 shown in (a) as an example, interface 701 includes video 1 and control 3, such as the "One-Click Movie" button 702. After the interface 701 is displayed for the first time, in response to the user's click on the "One-Click Movie" button 702, the mobile phone processes video 1 using template 1 to obtain finished movie 1. For example, the effect of finished movie 1 is as follows: Figure 7A As shown in (b), finished video 1 has a dark gray filter and effects such as "Happy Time" stickers. After the second display interface 701, in response to the user's click on the "One-Click Finished Video" button 702, the phone processes video 1 using template 2 to obtain finished video 2. For example, the effect of finished video 2 is as follows: Figure 7A As shown in (c), the finished product 2 has a light gray filter and effects such as "Summer Feelings, the Most Beautiful Summer We Are Together".

[0136] Using this embodiment, for the same video, responding to operation 3 multiple times, the mobile phone can create finished videos with different effects. This can improve the diversity of the finished videos.

[0137] After selecting a target template (e.g., template 1), the mobile phone can add background music, filters, effects, special effects, frames, and other effects to the video being processed using the target template (e.g., template 1). In some embodiments, each effect template matches two versions of background music (referred to as version 1 and version 2). Version 1 has a duration equal to the template duration of the effect template, while version 2 has a fixed duration, such as 30 seconds. The fixed duration is longer than the maximum template duration. For example, the correspondence between effect templates and background music stored in the mobile phone is shown in Table 2 below:

[0138] Table 2

[0139] Effect Template Template duration Background music Version 1 Version 2 Hello Summer 15s Soothing 15s 30s good 15s summer 15s 30s Good mood 15s Dynamic 15s 30s A Little Thing 15s joy 15s 30s parting 20s sad 20s 30s Happy Winter 20s winter 20s 30s

[0140] Taking the "Hello Summer" template in Table 2 as an example, its matching background music is soothing music. Since the template duration of "Hello Summer" is 15 seconds, version 1 of the soothing music is the 15-second version. Similarly, taking the "Happy Winter" template in Table 2 as an example, its matching background music is winter music. Since the template duration of "Happy Winter" is 20 seconds, version 1 of the winter music is the 15-second version. Furthermore, version 2 of all music tracks is a fixed 30-second version.

[0141] In this embodiment, when adding background music to a video to be processed (such as Video 1), the mobile phone can match the version of the background music to be added based on the video length of the video to be processed. If the video length of the video to be processed is shorter than or equal to the template length of the target template, the mobile phone can add version 1 of the background music matched by the target template as the background music of the video to be processed. For example, taking the target template as the "Hello Summer" template in Table 2 above, assuming the video length of Video 1 is 14s, which is shorter than the template length of the "Hello Summer" template of 15s, then a 15s version of soothing music can be added as the background music of Video 1. If the video length of the video to be processed is longer than the template length of the target template, but shorter than or equal to the fixed length, the mobile phone can add version 2 of the background music matched by the target template as the background music of the video to be processed. For example, taking the target template as the "Hello Summer" template in Table 2 above, assuming the video length of Video 1 is 28s, which is longer than the template length of the "Hello Summer" template of 15s, but shorter than the fixed length of 30s, then a 30s version of soothing music can be added as the background music of Video 1. This allows the added background music to be sufficient to cover the entire video, improving the overall effect of the final product.

[0142] It should be noted that in the embodiments proposed above regarding the problem caused by excessively long video lengths, for videos exceeding duration 2, the mobile phone may not provide control 3; or, the mobile phone may provide control 3, but it needs to be trimmed first before the effect template can be selected for processing. Therefore, a fixed duration of 2 can be set, so that the background music of version 2 can cover all videos to be processed, for example, the target segment that does not exceed duration 2 after trimming.

[0143] Furthermore, in one scenario, the target template's set of effects does not include an end credits; consequently, the final cut does not include an end credits, and the final cut's duration is the video length. See also Figure 7BIn scenario (a) of section 7B, if the added background music duration is longer than the video duration, the phone can align the beginning of the background music with the beginning of the video to be processed, and then delete the portion of the background music that exceeds the shooting duration at the end. This means deleting the background music corresponding to the extra duration of 1 in section (a) of section 7B, resulting in valid music. A music fade-out effect is added to the end of the valid music to make the ending of the background music in the final video smoother. In another scenario, the target template's set of effects includes an end credits; correspondingly, the final video includes an end credits, and the final video duration equals the sum of the video duration and the end credits duration. See also... Figure 7B In scenario (a), if the duration of the added background music is longer than the sum of the video duration and the end credits, the phone can align the beginning of the background music with the beginning of the video to be processed, and then delete the portion of the background music that exceeds the end credits. Figure 7B In section (b), the background music corresponding to the extra duration of 2 is deleted to obtain the valid music. A music fade-out effect is added to the end of the valid music to make the ending of the background music in the final film smoother.

[0144] After the final video is generated, the phone can display interface 5, which is a preview of the finished video. The final video can be played on interface 5, thus presenting the final video effect to the user. For example, interface 5 is... Figure 8 Interface 801 is shown in (a) above. A finished video is playing in interface 801, which has effects such as a light gray filter and stickers that read "Summer feelings, the most beautiful summer, we are together".

[0145] In some embodiments, after displaying interface 5, if preset conditions are met, the mobile phone can display prompt information 4 (also referred to as second prompt information) on interface 5, such as... Figure 8 (b) shows the prompt 806 "Click to try different video styles" in interface 802. Prompt information 4 is used to prompt adjustments to the final video effect, i.e., adjusting the added video effects. The preset conditions include: the display duration of interface 5 reaches a duration of 3, such as 10 seconds, and no user preset operation is detected. Alternatively, the final video can be played in interface 5, and playback begins after the interface is displayed. Correspondingly, the preset conditions include: the final video playback in interface 5 ends, and no user preset operation is detected. The above preset operations are used to trigger the phone to adjust the final video effect.

[0146] For example, interface 5 includes an effect switching control (also known as a second control), which is used to trigger the phone to adjust the final image effect. For instance, the effect switching control may include a style switching control, such as... Figure 8The "Style" button 803 in interface 802 shown in (b) is a style switching control used to trigger the phone to switch the style of the video. Style refers to the overall effect excluding background music, such as the overall effect of multiple effects like filters, stickers, and frames. For example, the effect switching control may include a music switching control, such as... Figure 8 (b) shows the music button 804 in interface 802. The music switching control is used to trigger the phone to switch to background music. For example, the effect switching control may include an editing control, such as... Figure 8 The edit button 805 in interface 802 shown in (b) is used to trigger various effects such as background music, filters, stickers, frames, transitions, volume, and end credits on the mobile phone. The preset operation can be a click operation or a long press operation (also known as a third operation) of the effect switching control by the user.

[0147] Furthermore, "no user preset operation detected" means that from the first use of the phone, after using "One-Click Video Creation" and entering interface 5, no user preset operation has ever been detected. For example, if the user has used "One-Click Video Creation" and created a video in the past, and then clicked the style switching control in interface 5, then when interface 5 is displayed this time, no prompt message 4 will be displayed after the video finishes playing. This avoids repeatedly prompting users who are already familiar with the effect switching function.

[0148] In some embodiments, after displaying interface 5, the mobile phone can receive preset operations from the user. These preset operations are used to adjust the final image effect. For details on preset operations, please refer to the descriptions in the preceding embodiments; they will not be repeated here. Taking background music switching as an example, the preset operation could be a user setting... Figure 9 (a) shows the click operation of the music button 902 in interface 901. In response to a preset operation, the phone can display multiple effect options in interface 5, such as multiple effect options being... Figure 9 In the pop-up window 903 shown in (b), there are four music options: "Soothing", "Summer", "Dynamic", and "Pleasant". Each music option corresponds to a background music.

[0149] It should be noted that in the foregoing description of music options, to distinguish between music and effect templates, the album art and name of the music options are not related to the corresponding effect templates. In other embodiments, to reflect the association between music and effect templates, when displaying multiple music options, the album art of the music option can be set to the template album art of the effect template that matches the corresponding music. Alternatively, the name of the music option can be set to the template name of the effect template that matches the corresponding music.

[0150] In some embodiments, the background music option corresponding to the currently used effect template can be displayed as the first among multiple music options, facilitating a quick return to the original background music. Furthermore, the first music option can be selected by default. For example, if the currently used background music in the video is soothing music, the phone can display... Figure 9 In the pop-up window 903 shown in (b), the option for soothing music is highlighted in bold, indicating that the option is selected by default.

[0151] After displaying multiple music options, the phone can receive a user's selection of any one of the music options (let's call it music option 1). In response to the selection of music option 1, the phone can replace the background music in the video with the background music corresponding to option 1 and start playing the video from the beginning. For example, if music option 1 is... Figure 9 Taking option 904 shown in (c) as an example, in response to the user's selection of option 904, the phone can replace the background music in the finished video with the music corresponding to option 904, and then play the finished video from the beginning. This allows for easy previewing of the effect of applying the selected music to the finished video. Subsequently, the phone can receive user operation 5, which triggers the phone to switch the background music. Operation 5 can be a swipe-down operation from top to bottom through a pop-up window displaying multiple music options (referred to as a music pop-up). Alternatively, the music pop-up includes a confirmation control, and operation 5 can be a click or long-press operation by the user on the confirmation control. For example, the music pop-up is... Figure 9 The pop-up window 905 shown in (d) includes a "√" button. This "√" button is a confirmation control. Operation 5 can be a user clicking the "√" button. This application embodiment does not specifically limit the form of operation 5. In response to operation 5, the mobile phone can close multiple music options and restore the display of interface 5, which does not include music options. For example, it can display... Figure 9 Interface 901 is shown in (a) of the diagram.

[0152] In the above embodiments, the mobile phone, responding to a preset operation, can adjust at least one effect from a set of added video effects (such as the video effects in template 1), thereby breaking the fixed combination of background music, filters, frames, stickers, and other effects in the "one-click video creation" selected effect template (such as template 1). For example, after changing the background music, the filters, frames, stickers, and other effects of template 1 can be combined with the changed background music. This can enhance the diversity of the final video effect.

[0153] Furthermore, after displaying interface 5, the phone can receive user operation 6 (also known as the fourth operation), which triggers the phone to save the image. Operation 6 can be a left swipe operation by the user from the right edge of interface 5 inwards. Alternatively, interface 5 may include a control 5, such as... Figure 10In the example shown in (a), the "√" button 1002 in interface 1001 is used by control 5 to trigger the phone to save the video. Operation 6 can be a user's click or long-press operation on control 5. The form of operation 6 is not specifically limited in this embodiment. In response to operation 6, the phone can save the video and display a save prompt in interface 5. For example, the save prompt is... Figure 10 The prompt 1003 shown in (b) indicates that the save progress is 45% and will reach 100% when the save is complete.

[0154] Then, the phone responds to the completion of saving and displays interface 6 (also known as the ninth interface). Interface 6 is the editing interface for the finished video. The difference between interface 6 and interface 1 is that interface 6 includes the finished video to be processed in interface 1, and interface 6 does not include control 3, such as the "One-Click Finish" button. For example, interface 6 could be... Figure 10 Interface 1004 is shown in (c) of the diagram. (The last part is incomplete and likely refers to a different interface Figure 3B Compared to interface 316 (i.e. interface 1) shown in (c): the video in interface 1004 has effects such as filters and stickers, and is the finished product of the video in interface 316; interface 1004 does not include control 3, such as the "One-Click Film" button.

[0155] It should be noted that in some embodiments, in response to operation 6, the mobile phone may not display a save prompt, but may directly jump to interface 6. This application does not specifically limit this aspect.

[0156] The previous description of the finished product mainly involved previewing before saving. However, in some other embodiments, the phone can also save the finished product directly without displaying a preview.

[0157] In some embodiments, the mobile phone can receive a user operation 7 (which may be called a back operation) on the interface 6. Operation 7 triggers the phone to return to the gallery application's interface. Operation 7 can be a right swipe operation by the user from the left edge of the interface 6 inwards. Alternatively, the interface 6 includes a back control, such as... Figure 10 Button 1005 is shown in (c) in the diagram. Operation 7 can be a user's click operation on the return control. In this embodiment, the form of operation 7 is not specifically limited. In response to operation 7, the mobile phone can display interface 7 (also called the third interface), which is the application interface of the gallery application. At this time, a thumbnail of a frame image from the generated video is added to the application interface of the gallery application (which can be called the second option). For example, in response to operation 7, the mobile phone can display Figure 10 Interface 1006 is shown in (d) above, and includes a thumbnail 1007. This thumbnail 1007 is a thumbnail of the most recently saved image.

[0158] As explained above, for the same video to be processed (such as video 1), if the mobile phone provides control 3 multiple times and then receives user operation 3 multiple times, the mobile phone can use different effect templates to process the video, thereby obtaining finished products with different effects. Therefore, in some embodiments, after displaying interface 7, the mobile phone can again receive the user's thumbnail of video 1 (i.e., the first option), such as... Figure 10 In the diagram (d), the click operation on thumbnail 1008 in interface 1006, in response to the user's click operation on the thumbnail of video 1 (i.e., the first option), allows the phone to display interface 8 (also known as the fourth interface). Interface 8 is the editing interface for video 1, and it provides controls 3. The phone can then receive user operations 3 on interface 8, such as clicks on controls 3. In response to operation 3, the phone can add video effects to video 1 according to different effect templates (such as template 2), generating a new finished product (which can be called the second finished product). For ease of explanation, the video effect of template 2 can be referred to as the second video effect. The second video effect is different from the first video effect. It should be noted that the second video effect is different from the first video effect in that at least one of the effects is different, for example, at least one of the effects such as background music, filters, stickers, frames, and transitions is different. Thus, by repeatedly "creating a finished product with one click" for the same video, finished products with different effects can be generated.

[0159] As stated above, for the video obtained after adding video effects to the mobile phone (such as video 2), the mobile phone may not provide control 3. Meanwhile, interface 7 includes a thumbnail of the generated video (i.e., the second option). Therefore, in some embodiments, after displaying interface 7, the mobile phone can receive a user's click on the thumbnail of the generated video. In response to the user's click on the thumbnail, the mobile phone can display interface 9. This interface 9 is the editing interface for the generated video. Since the generated video is recorded as a video with added video effects, interface 9 does not include control 3. This avoids video effect confusion caused by further adding video effects to the generated video.

[0160] Other embodiments of this application provide an electronic device that may include: the aforementioned display screen (such as a touchscreen), a memory, and one or more processors. The display screen, memory, and processors are coupled. The memory stores computer program code, which includes computer instructions. When the processor executes the computer instructions, the electronic device can perform various functions or steps performed by the mobile phone in the above method embodiments. The structure of the electronic device can be referred to... Figure 1 The structure of the mobile phone is shown.

[0161] This application also provides a chip system, such as... Figure 11 As shown, the chip system 1100 includes at least one processor 1101 and at least one interface circuit 1102. The processor 1101 and the interface circuit 1102 are interconnected via lines. For example, the interface circuit 1102 can be used to receive signals from other devices (e.g., the memory of an electronic device). As another example, the interface circuit 1102 can be used to send signals to other devices (e.g., the processor 1101). Exemplarily, the interface circuit 1102 can read instructions stored in memory and send those instructions to the processor 1101. When the instructions are executed by the processor 1101, the electronic device can perform the steps in the above embodiments. Of course, the chip system may also include other discrete devices, and this application embodiment does not specifically limit this.

[0162] This application also provides a computer storage medium that includes computer instructions. When the computer instructions are executed on the electronic device, the electronic device causes the electronic device to perform various functions or steps performed by the mobile phone in the above method embodiment.

[0163] This application also provides a computer program product that, when run on a computer, causes the computer to perform the various functions or steps performed by the mobile phone in the above method embodiments.

[0164] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0165] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0166] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0167] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0168] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, essentially or in other words, the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0169] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A video processing method, characterized in that, Applied to electronic devices, including: The electronic device displays a first interface; the first interface includes a first option and a second option, the first option displays a thumbnail of a frame in the first video, and the second option displays a thumbnail of a frame in the first finished video, the first finished video being a video obtained by adding a first video effect to the first video; The electronic device responds to the user's click operation on the first option in the first interface. If the first video is a video without added video effects, the second interface is displayed. The second interface is the editing interface of the first video, and the second interface also includes the first control. The electronic device responds to a user's first operation on the first control in the second interface to generate a second video; the second video is a video obtained by the electronic device after adding a second video effect to the first video; wherein the first video effect and the second video effect are different; The electronic device responds to the user's click operation on the second option in the first interface and displays a third interface; the third interface is the editing interface of the first piece, and the third interface does not include the first control.

2. The method according to claim 1, characterized in that, The method further includes: In response to a user's click on the first option in the third interface, if the first video is a video with added video effects, the electronic device displays a fourth interface; the fourth interface is the editing interface for the first video, and the fourth interface does not include the first control.

3. The method according to claim 1, characterized in that, The electronic device, in response to a user's click on the first option in the first interface, displays a second interface, including: In response to a user's click on the first option in the first interface, if the duration of the first video exceeds a first duration but does not exceed a second duration, the electronic device displays the second interface; the first duration is less than the second duration.

4. The method according to claim 3, characterized in that, The method further includes: When the electronic device first displays the first control, the electronic device simultaneously displays a first prompt message, which is used to indicate the applicable video duration for the function of adding video effects.

5. The method according to claim 3, characterized in that, The method further includes: In response to a user's click on the first option in the first interface, if the duration of the first video does not exceed the first duration, or if the duration of the first video exceeds the second duration, the electronic device displays a fifth interface; the fifth interface is the editing interface of the first video, and the fifth interface does not include the first control.

6. The method according to claim 1, characterized in that, The duration of the first video exceeds the duration of the second video; The electronic device generates a second image in response to a user's first operation on the first control in the second interface, including: The electronic device responds to the user's first operation on the first control in the second interface and displays a sixth interface; the sixth interface is the interface for the electronic device to trim the first video; The electronic device generates the second video in response to the user's second operation on the sixth interface; the second video is a video obtained by the electronic device adding the first video effect to a target segment, the target segment belongs to the first video, and the segment length of the target segment does not exceed the second duration.

7. The method according to any one of claims 1-6, characterized in that, After generating the second piece, the method further includes: The electronic device displays a preview interface of the second piece of film.

8. The method according to claim 7, characterized in that, The preview interface includes a second control, which is used to trigger the electronic device to edit the video. The method further includes, after the electronic device displays the preview interface of the second completed image: The electronic device plays the first finished video in the preview interface; If the electronic device has not detected any third operation by the user on the second control, the electronic device displays a second prompt message in the preview interface in response to the completion of the second video playback; the second prompt message is used to indicate that the electronic device can be triggered to edit the second video.

9. The method according to claim 7, characterized in that, The preview interface includes a second control, which is used to trigger the electronic device to edit the video. The method further includes, after the electronic device displays the preview interface of the second completed image: The electronic device responds to a third operation by the user on the second control to switch at least one of the first video effects; the at least one effect includes one or more of background music, filters, stickers, frames, transitions, and end credits.

10. The method according to claim 7, characterized in that, After the electronic device displays a preview interface of the second completed image, the method further includes: The electronic device responds to the user's fourth operation on the preview interface and saves the second finished image; The electronic device displays a seventh interface in response to the completion of saving the second video; the seventh interface is the editing interface of the second video, and the seventh interface does not include the first control.

11. The method according to any one of claims 1-6, characterized in that, The first interface is the application interface of the gallery application in the electronic device.

12. An electronic device, characterized in that, The electronic device has multiple applications installed, and includes a display screen, a memory, and one or more processors; the display screen, the memory, and the processor are coupled; the memory is used to store computer program code, the computer program code including computer instructions, which, when executed by the processor, cause the electronic device to perform the method as described in any one of claims 1-11.

13. A computer-readable storage medium storing instructions, characterized in that, When the instructions are executed on an electronic device, the electronic device causes the electronic device to perform the method as described in any one of claims 1-11.

Citation Information

Patent Citations

  • Terminal screen recording method and device and computer readable storage medium

    CN107390972A

  • Data processing method and electronic device

    CN108427589A