Video processing method and electronic equipment
By designing multiple interfaces and controls in electronic devices and adding different effects to videos, the problem of cumbersome and insufficient intelligence in the prior art video processing is solved, and the diversity and simplicity of video films are achieved.
Patent Information
- Application Number
- CN202411118316.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2021-11-29
- Filing Date
- 2022-01-13
- Publication Date
- 2025-01-10
- Estimated Expiration
- 2042-01-13
AI Technical Summary
Existing electronic devices are cumbersome to operate when processing videos, are not very intelligent, and cannot effectively improve the diversity of videos.
Provide a video processing method. By designing multiple interfaces in electronic devices, users can add different video effects to the video by clicking different options and controls to generate films with different effects, including the 'one-click film' function. It is suitable for videos without adding video effects, and provides the function of adding video effects within the video duration range to avoid confusion in video effects.
It realizes the generation of diversified films for the same video, improves the intelligence and efficiency of video processing, simplifies user operations, and avoids the confusion of video effects and unsatisfactory film problems.
Smart Images

Figure CN119299843A_ABST
Abstract
Description
[0001] This application claims the priority of the Chinese patent application filed with the State Intellectual Property Office on June 16, 2021, with application number 202110676709.3 and application name “A user video creation method and electronic device based on storyline mode”, and the priority of the Chinese patent application filed with the State Intellectual Property Office on November 29, 2021, with application number 202111439314.8 and invention name “A video processing method and electronic device”, all contents of which are incorporated by reference in this application.
[0002] This application is a divisional application. The application number of the original application is 202210038856.2, and the original application date is January 13, 2022. The entire contents of the original application are incorporated into this application by reference. Technical Field
[0003] The present application relates to the field of terminal technology, and in particular to a video processing method and electronic device. Background Art
[0004] Electronic devices such as mobile phones and tablets all provide functions such as video shooting and processing. Taking mobile phones as an example, mobile phones provide a gallery application, which can be used to process videos. For example, filters and music can be added to videos.
[0005] However, the inventors found in the process of implementing the embodiments of the present application that the video processing solutions provided in the prior art have at least the following defects: the electronic device can only complete the video processing based on the user's settings for various effects such as filters, soundtracks, watermarks, etc. The operation is cumbersome, resulting in a weak intelligence of the video processing. Summary of the invention
[0006] The embodiments of the present application provide a video processing method and an electronic device, which can generate films with different effects for the same video, thereby improving the diversity of the films.
[0007] In a first aspect, an embodiment of the present application provides a video shooting method, which is applied to electronic devices that support video shooting, such as mobile phones and tablets. The electronic device displays a first interface. The first interface includes a first option, and the first option displays a thumbnail of a frame of image in the first video. In response to a user clicking 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 the second interface also includes a first control. For example, the first control is a "one-click film" button, and the electronic device generates a first film in response to the user's first operation on the first control in the second interface; the first film is a video obtained after the electronic device adds a first video effect to the first video. At this point, the electronic device has added the first video effect to the video in the electronic device.
[0008] Then, the electronic device may display a third interface. The third interface includes a second option and a first option, and the second option displays a thumbnail of an image frame in the first film. That is, after adding a video effect to the first video, the electronic device may provide two options for selection: the first video and the first film. Moreover, the electronic device displays a fourth interface in response to a user clicking on the first option in the third interface. The fourth interface is an editing interface for the first video, and the fourth interface also includes a first control. The electronic device generates a second film in response to a user's first operation on the first control in the fourth interface; the second film is a video obtained after the electronic device adds a second video effect to the first video. Among them, the first video effect and the second video effect are different.
[0009] In summary, using the method of the embodiment of the present application, for a first video without video effects added, the electronic device can add video effects to the first video in response to the user's operation on the first control to form a first film. Afterwards, the electronic device still provides the user with the option of the first video. And, for the first video, the electronic device can add different video effects to the first video again in response to the user's operation on the first control to form a second film. In this way, films with different effects can be formed for the same video, thereby improving the diversity of films.
[0010] In a possible design of the first aspect, the first interface is an interface before recording a video or taking a photo in a camera application of the electronic device, or the first interface is an application interface of a gallery application in the electronic device. And the third interface is an application interface of the gallery application.
[0011] In a possible design of the first aspect, the above-mentioned electronic device displays the second interface in response to a user clicking operation on a first option in a first interface, including: the electronic device responds to a user clicking operation on a first option in the first interface, and if the first video is a video without added video effects, the electronic device displays the second interface.
[0012] By adopting the method of this embodiment, the electronic device provides the function of adding video effects only for videos without video effects added, that is, the function of "one-key video creation", thereby achieving targeted video effects and improving the effect of video processing.
[0013] In a possible design of the first aspect, the method further includes: the electronic device responds to a user's click operation on the first option in the first interface, and if the first video is a video with 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] With the method of this embodiment, the electronic device no longer provides the function of adding video effects to the video to which video effects have been added, but only displays a common editing interface, namely the fifth interface, so as to avoid confusion of video effects.
[0015] In a possible design method of the first aspect, after the electronic device displays the third interface, it also includes: the electronic device displays a sixth interface in response to a user's click operation on the second option; the sixth interface is an editing interface of the first piece, and the sixth interface does not include the first control.
[0016] In this embodiment, since the second option corresponds to the first film, and the first film is a film to which a video effect has been added, the electronic device does not provide a function of adding a video effect for it, thereby avoiding confusion of video effects.
[0017] In a possible design method of the first aspect, the above-mentioned electronic device displays the second interface in response to a user clicking operation on a first option in the first interface, including: the electronic device responds to the user clicking operation on the first option in the first interface, and if the video length of the first video exceeds the first length and the video length of the first video does not exceed the second length, the electronic device displays the second interface; the first length is less than the second length.
[0018] It should be understood that if the video duration is too long or too short, the final film will not be particularly ideal after adding video effects. In this embodiment, the electronic device only provides the function of adding video effects for videos with a certain duration range, which can improve the effect of video processing.
[0019] In a possible design of the first aspect, the method further includes: when the electronic device displays the first control for the first time, the electronic device simultaneously displays a first prompt message, and the first prompt message is used to prompt the video length applicable to the function of adding video effects.
[0020] In this embodiment, when the electronic device displays the first interface for the first time, it prompts the video duration applicable to the function of adding video effects, thereby clearly indicating the applicable scope of the function of adding video effects and improving the efficiency of human-computer interaction.
[0021] In a possible design of the first aspect, the method further includes: the electronic device responds to a user clicking operation on a first option in a first interface, and if the video length of the first video does not exceed the first length, or the video length of the first video exceeds the second length, the electronic device displays a seventh interface; the seventh interface is an editing interface of 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 does not provide the function of adding video effects to it. In this way, the effect of video processing can be improved.
[0023] In a possible design of the first aspect, the video duration of the above-mentioned first video exceeds the second duration. Wherein, the electronic device generates a first film in response to the user's first operation on the first control in the 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 crop the first video. The electronic device generates a first film in response to the user's second operation on the eighth interface; the first film is a video obtained by the electronic device adding a first video effect to a target segment, the target segment belongs to the first video, and the segment duration of the target segment does not exceed the second duration.
[0024] In this embodiment, for a video that is too long, if it is detected that a video effect needs to be added, the electronic device can first crop the video, and then add the video effect to the cropped video. In this way, the electronic device can provide the function of adding video effects to a longer video. Thus, the application scope of the function of adding video effects can be improved.
[0025] In a possible design manner of the first aspect, after generating the first finished film, the method further includes: the electronic device displays a preview interface of the first finished film.
[0026] In this embodiment, after the electronic device generates the finished film, it can directly display the preview, so that the video effect can be directly previewed, thereby improving the efficiency of human-computer interaction.
[0027] In a possible design of the first aspect, the preview interface includes a second control, and the second control is used to trigger the electronic device to edit the film. After the electronic device displays the preview interface of the first film, the method further includes: the electronic device plays the first film in the preview interface. If the electronic device has not detected the user's third operation on the second control, the electronic device displays a second prompt message in the preview interface in response to the completion of the playback of the first film; the second prompt message is used to prompt the electronic device to edit the first film.
[0028] In this embodiment, the electronic device can provide editing prompts in the preview interface, thereby clearly instructing the user to continue editing into a film.
[0029] In a possible design of the first aspect, the preview interface includes a second control, and the second control is used to trigger the electronic device to edit the film. After the electronic device displays the preview interface of the first film, the method further includes: the electronic device switches at least one of the first video effects in response to a third operation of the user on the second control; the at least one effect includes one or more of background music, filters, stickers, photo frames, transitions, and endings.
[0030] In this embodiment, in the preview interface, the video effects added by the electronic device can be adjusted, so that the video effects added by the electronic device can be broken to form a more diverse video.
[0031] In a possible design of the first aspect, after the electronic device displays the preview interface of the first film, the method further includes: the electronic device saves the first film in response to a fourth operation of the user on the preview interface. The electronic device displays a ninth interface in response to the completion of saving the first film; the ninth interface is an editing interface of the first film, and the ninth interface does not include the first control. The electronic device displays the third interface, including: the electronic device displays the third interface in response to a return operation input by the user in the ninth interface.
[0032] In a second aspect, an embodiment of the present application further provides an electronic device, which can support a video shooting function, and the electronic device 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, and the computer program code 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, and the first option displays a thumbnail of a frame of image in a first video; the electronic device responds to a user's click operation on the first option in the first interface, and displays a second interface; the second interface is an editing interface for the first video, and the second interface also includes a first control; the electronic device responds to the user's first operation on the first control in the second interface, and generates a first finished film; the first finished film is the electronic device for the first A video obtained by adding a first video effect to a video; the electronic device displays a third interface; the third interface includes a second option and the first option, and the second option displays a thumbnail of a frame of image in the first film; the electronic device displays a fourth interface in response to a user clicking the first option in the third interface; the fourth interface is an editing interface for the first video, and the fourth interface also includes the first control; the electronic device generates a second film in response to the user's first operation on the first control in the fourth interface; the second film is a video obtained by the electronic device adding a second video effect to the first video; wherein the first video effect and the second video effect are different.
[0033] In a possible design manner of the second aspect, the first interface is the interface in the camera application of the electronic device before recording a 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 the gallery application.
[0034] In a 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 responds to a user clicking operation on the first option in the first interface, and if the first video is a video without added video effects, the electronic device displays the second interface.
[0035] In a 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 responds to a user click on the first option in the first interface, and if the first video is a video with video effects added, the electronic device displays a fifth interface; the fifth interface is an editing interface for the first video, and the first control is not included in the fifth interface.
[0036] In a 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 clicking the second option; the sixth interface is an editing interface of the first piece, and the first control is not included in the sixth interface.
[0037] In a 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 responds to a user click on the first option in the first interface, and if the video length of the first video exceeds a first length and does not exceed a second length, the electronic device displays the second interface; and the first length is less than the second length.
[0038] In a 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 displays the first control for the first time, the electronic device simultaneously displays a first prompt message, wherein the first prompt message is used to prompt the video length applicable to the function of adding video effects.
[0039] In a 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 responds to the user's click operation on the first option in the first interface, if the video length of the first video does not exceed the first length, or the video length of the first video exceeds the second length, the electronic device displays a seventh interface; the seventh interface is the editing interface of the first video, and the first control is not included in the seventh interface.
[0040] In a possible design of the second aspect, the video length of the first video exceeds the second length; when the computer instructions are executed by the processor, the electronic device performs the following steps: the electronic device displays an eighth interface in response to the first operation of the user on the first control in the second interface; the eighth interface is an interface for the electronic device to crop the first video; the electronic device generates a first film in response to the second operation of the user on the eighth interface; the first film 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 length.
[0041] In a possible design manner of the second aspect, when the computer instruction is executed by the processor, the electronic device executes the following steps: the electronic device displays a preview interface of the first piece.
[0042] In a possible design of the second aspect, the preview interface includes a second control, and the second control is used to trigger the electronic device to edit the finished film. When the computer instruction is executed by the processor, the electronic device performs the following steps: the electronic device plays the first finished film in the preview interface; if the electronic device has not detected a third operation of the user on the second control, the electronic device displays a second prompt message in the preview interface in response to completion of the playback of the first finished film; the second prompt message is used to prompt the electronic device to edit the first finished film.
[0043] In a possible design of the second aspect, the fifth interface includes a second control, and the second control is used to trigger the electronic device to edit into a film; when the computer instruction is executed by the processor, the electronic device performs the following steps: the electronic device switches at least one of the first video effects in response to a third operation of the user on the second control; the at least one effect includes one or more of background music, filters, stickers, photo frames, transitions and ending credits.
[0044] In a 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 film in response to a fourth operation of the user on the preview interface; the electronic device displays a ninth interface in response to completion of saving the first film; the ninth interface is an editing interface for the first film, 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 in the ninth interface.
[0045] In a third aspect, an embodiment of the present application provides a chip system, which is 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 circuit and the processor are interconnected by lines; the interface circuit is used to receive a signal from the memory of the electronic device and send the signal to the processor, the signal including computer instructions stored in the memory; when the processor executes the computer instructions, the electronic device executes the method described in the first aspect and any possible design method thereof.
[0046] In a fourth aspect, the present application provides a computer storage medium, which includes computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the method described in the first aspect and any possible design thereof.
[0047] In a fifth aspect, the present application provides a computer program product, which, when executed on a computer, enables the computer to execute the method as described in the first aspect and any possible design thereof.
[0048] It can be understood that the beneficial effects that can be 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 provided above can refer to the beneficial effects in the first aspect and any possible design method thereof, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 A schematic diagram of the hardware structure of a mobile phone provided in an embodiment of the present application;
[0050] Figure 2 One of the interface diagrams of a mobile phone provided in an embodiment of the present application;
[0051] Figure 3A A second schematic diagram of an interface of a mobile phone provided in an embodiment of the present application;
[0052] Figure 3B A third schematic diagram of an interface of a mobile phone provided in an embodiment of the present application;
[0053] Figure 4 A fourth schematic diagram of an interface of a mobile phone provided in an embodiment of the present application;
[0054] Figure 5A A schematic diagram of a film-forming effect provided in an embodiment of the present application;
[0055] Figure 5B A fifth schematic diagram of an interface of a mobile phone provided in an embodiment of the present application;
[0056] Fig. 6A A schematic diagram of a video duration provided in an embodiment of the present application;
[0057] Figure 6B A sixth schematic diagram of an interface of a mobile phone provided in an embodiment of the present application;
[0058] Figure 6C A seventh schematic diagram of an interface of a mobile phone provided in an embodiment of the present application;
[0059] Fig.6D An eighth schematic diagram of an interface of a mobile phone provided in an embodiment of the present application;
[0060] Fig. 7A A ninth schematic diagram of an interface of a mobile phone provided in an embodiment of the present application;
[0061] Figure 7B A schematic diagram of a music fade process provided in an embodiment of the present application;
[0062] Figure 8 A tenth schematic diagram of an interface of a mobile phone provided in an embodiment of the present application;
[0063] Fig. 9 The eleventh schematic diagram of an interface of a mobile phone provided in an embodiment of the present application;
[0064] Fig.10 A twelfth schematic diagram of an interface of a mobile phone provided in an embodiment of the present application;
[0065] Fig.11 A schematic diagram of the structure of a chip system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0066] In the description of the embodiments of the present application, unless otherwise specified, "at least one" means one or more, and "multiple" means two or more than two. In addition, in order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first" and "second" are used to distinguish between the same items or similar items with basically the same functions and effects. Those skilled in the art can understand that the words "first" and "second" do not limit the quantity and execution order, and the words "first" and "second" do not necessarily limit them to be different. In addition, in the description of the embodiments of the present application, unless otherwise specified, the position and form of each interface element in the interface schematic diagram are schematic. In actual implementation, the position and form can be flexibly adjusted according to actual needs.
[0067] An embodiment of the present application provides a video processing method, which can be applied to electronic devices that support video processing, such as mobile phones and tablets. Among them, the electronic device can provide a quick editing entry for the video in the electronic device. The electronic device can receive a user's preset operation on the quick editing entry, such as a click operation, a sliding operation, etc. In response to the preset operation, the electronic device can add a group of video effects such as background music, filters, special effects (such as twinkling stars), transitions, photo frames, stickers, etc. to the video to generate a finished film. Among them, for the same video, the electronic device can add different groups of video effects to the video in response to multiple preset operations of the user, thereby generating finished films with different effects.
[0068] In summary, by using the method of the embodiment of the present application, the electronic device can quickly add a set of effects to the video in response to the user's preset operation, thereby improving the intelligence and efficiency of video processing. Moreover, for the same video, in response to multiple preset operations by the user, films with different effects can be formed, thereby improving the diversity of the films.
[0069] Exemplarily, the electronic device in the embodiments of the present application may be a mobile phone, a tablet computer, a desktop, a laptop, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, as well as a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) device, a virtual reality (VR) device, and other devices that support video processing. The embodiments of the present application do not impose any special restrictions on the specific form of the electronic device.
[0070] See also Figure 1 , is a hardware structure diagram of an electronic device provided in an embodiment of the present application. Figure 1 As shown, taking the electronic device as a mobile phone as an example, the 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, an earphone interface 170D, a sensor module 180, a button 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 to be 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 shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0072] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0073] It is understandable that the interface connection relationship between the modules illustrated in this embodiment is only a schematic illustration and does not constitute a structural limitation on the electronic device. In other embodiments, the electronic device may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0074] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.
[0075] The power management module 141 is used to connect 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, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 191, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0076] The wireless communication function of the electronic device can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor.
[0077] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. 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 the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0078] The electronic device implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0079] The electronic device can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor. ISP is used to process the data fed back by camera 193. Camera 193 is used to capture static images or videos. The object generates an optical image through the lens and projects it to the photosensitive element. In some embodiments, the electronic device may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0080] The external memory 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 memory interface 120 to implement a data storage function. For example, files such as music and videos can be stored in the external memory card.
[0081] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device by running the instructions stored in the internal memory 121. For example, the processor 110 can display different contents on the display screen 184 in response to the user's operation of unfolding the display screen 194 by executing the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0082] The electronic device can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0083] The button 190 includes a power button, a volume button, etc. The button 190 can be a mechanical button. It can also be a touch button. The electronic device can receive the button input and generate a key signal input related to the user settings and function control of the electronic device. The motor 191 can generate a vibration prompt. The motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. The indicator 192 can be an indicator light, which can be used to indicate the charging status, power changes, messages, missed calls, notifications, etc. The SIM card interface 195 is used to connect the SIM card. The SIM card can be inserted into the SIM card interface 195, or pulled out from the SIM card interface 195 to achieve contact and separation with the electronic device. The electronic device can support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
[0084] The following will be combined with the accompanying drawings and take the electronic device as an example to describe the method of the embodiment of the present application in detail. Among them, the method of the embodiment of the present application can be applied to the scene of video processing. The video to be processed (also referred to as the first video) can be a video shot by a mobile phone, or a video downloaded from the Internet or stored in the cloud. In the following embodiments, the present application scheme is mainly described by taking the video to be processed as a video shot by a mobile phone as an example.
[0085] See also Figure 2 In (a), in one scenario, the mobile phone can shoot the video to be processed in single-lens video mode. Single-lens video mode is a common video mode in the conventional sense. In single-lens video mode, the mobile phone uses only one camera to shoot the video. For example, Figure 2 The interface 201 shown in (a) is a viewfinder interface before recording in single-lens video mode. The interface 201 only includes an image 202 captured by a single camera (such as a front camera). In this case, the mobile phone starts shooting in single-lens video mode.
[0086] See also Figure 2 In (b), in another scenario, the mobile phone can shoot the video to be processed in multi-lens recording mode. In multi-lens recording mode, the mobile phone can use two or more cameras to shoot the video at the same time. For example, Figure 2 The interface 203 shown in (b) is a viewfinder interface before recording in a multi-lens recording mode. The interface 203 includes images 204 and 205 captured by two cameras (such as a rear main camera and a front camera). When shooting starts in this case, the mobile phone shoots in a multi-lens recording mode. In the following embodiments, the present application scheme will be mainly described in a multi-lens recording mode.
[0087] It should be noted that in the multi-lens recording mode, the mobile phone can also be triggered to switch to shooting video with a single camera by a switching operation, for example, clicking the switch button 206 in the interface 203. In order to distinguish it from the single-lens recording mode, the mode of shooting video with a single camera in the multi-lens recording mode can be recorded as the multi-lens mode.
[0088] See also Figure 3A (a) and Figure 3A In (b), in the multi-lens video recording mode, in the viewfinder interface before video shooting, such as interface 301, the mobile phone can receive the user's operation 1, and the operation 1 is used to trigger the mobile phone to start video shooting. Exemplarily, the viewfinder interface before shooting includes controls 1, such as Figure 3A Button 302 in interface 301 shown in (a) of FIG. Control 1 is used to trigger the mobile phone to start video shooting. Operation 1 may be a user clicking operation on control 1. In response to operation 1, the mobile phone may start video shooting and display a framing interface in video shooting, such as Figure 3A Interface 303 shown in (b) in FIG. After starting video shooting, the mobile phone may receive operation 2 of the user, and operation 2 is used to trigger the mobile phone to end video shooting. Exemplarily, the framing interface during shooting includes control 2, such as button 304 in interface 303. Control 2 is used to trigger the mobile phone to end video shooting, and operation 2 may be a user clicking operation on control 2. In response to operation 2, the mobile phone may end video shooting and store the shot video (which may be recorded as video 1, belonging to the first video).
[0089] It should be noted that the forms of operation 1 and operation 2 are not limited to the forms in the above examples. For example, operation 1 can also be a sliding operation of the user from the right edge of the viewfinder interface before video shooting to the left. For another example, operation 2 can also be a double-click operation of the user on the viewfinder interface during video shooting. The embodiments of the present application do not make specific limitations on this.
[0090] Continue to see Figure 3B (a) and Figure 3B In (c), in some embodiments, after the video is stored, the mobile 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, and the gallery resource control can display a thumbnail of a frame of image in video 1 (also referred to as the thumbnail of video 1). For example, after the video is stored, the mobile phone can display Figure 3BThe interface 311 shown in (a) is the framing interface before video shooting. The button 312 at the lower left position of the interface 311 is the gallery resource control, and the thumbnail 313 of video 1 is displayed in the button 312. For the convenience of explanation, thumbnails can be referred to as options, such as the thumbnail of video 1 is referred to as the first option. In addition, the gallery resource control can be used to trigger the mobile phone to display the video corresponding to the thumbnail. The mobile phone can receive user click operations, long press operations, sliding operations, etc. on the gallery resource control. The following will mainly explain the click operation as an example. In response to the user's click operation on the gallery resource control, the mobile phone can display interface 1 (also referred to as the second interface), and interface 1 is the editing interface of video 1. For example, in response to the user's click operation on the gallery resource control, the mobile phone can display interface 1 (also referred to as the second interface). Interface 1 is the editing interface of video 1. For example, in response to the user's Figure 3B The button 312 shown in (a) is a click operation of the gallery resource control, and the mobile phone can display Figure 3B The interface 316 shown in (c) is the interface 1. In the interface 316, the video corresponding to the thumbnail 313 in the button 312 can be edited.
[0091] See also Figure 3B (b) and Figure 3B In (c), in other embodiments, after the video is stored, the mobile phone can synchronize video 1 to the gallery application, and then the thumbnail of video 1 will also be displayed in the application interface (also referred to as the first interface) of the gallery application. Figure 3B The interface 314 shown in (b) of the figure is the application interface of the gallery application. The interface 314 includes a thumbnail 315 of video 1. Similarly, the thumbnail of video 1 can be called the first option. In the process of displaying the application interface of the gallery application, the mobile phone can receive a user's click operation on the thumbnail in the application interface. In response to the user's click operation on the thumbnail of video 1 in the application interface, the mobile phone can also display interface 1 (also called the second interface), which is the editing interface of video 1. For example, Figure 3B In the example of the thumbnail 315 in the interface 314 shown in (b) of FIG. 1 being the thumbnail of video 1, the mobile phone may display the thumbnail 315 in response to the user's click operation on the thumbnail 315. Figure 3B The interface 316 shown in (c) is the interface 1. In the interface 316, the video 1 can be edited.
[0092] In some embodiments, the interface 1 may include a share control, a favorite control, an edit control, a delete control, etc. For example, the interface 1 is Figure 3B Taking the interface 316 shown in (c) as an example, the sharing control may be a "share" button, the collection control may be a "collection" button, etc. Thus, basic video editing can be completed.
[0093] In the embodiment of the present application, the interface 1 includes a control 3 (i.e., a quick edit entry, also referred to as a first control), such as Figure 3B The "One-click Blockbuster" button in the interface 316 shown in (c) in FIG. Control 3 is used to trigger the mobile phone to use an effect template (such as template 1) to process the video to be processed (such as video 1). For the convenience of explanation, this processing function can be called "one-click blockbuster". In addition, the following will mainly use the effect template used by "one-click blockbuster" as template 1 as an example to illustrate the present application scheme. Among them, each effect template has a combination of background music, filters, special effects (such as twinkling stars), transitions, photo frames, stickers and other effects, which can be referred to as video effects. In other words, each effect template corresponds to a group of video effects. Correspondingly, the mobile phone uses the effect template, and the corresponding video effects can be added to the video. For the convenience of explanation, a group of video effects corresponding to template 1 can be called the first video effect. The mobile phone can receive the user's operation 3 (also referred to as the first operation) on control 3. Operation 3 is used to trigger the mobile phone to use template 1 to process the video to be processed (such as video 1). Among them, operation 3 can be a user's click operation, long press operation, sliding operation, etc. on control 3. Or, operation 3 can be a user's upward sliding operation on control 3, etc. The present application does not specifically limit the form of operation 3. In the embodiments below, operation 3 is mainly taken as an example of a user clicking on control 3 to illustrate the present application scheme. 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 film (also referred to as the first film). Exemplarily, 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, photo frames, stickers and other effects, so that the effect of the formed film is completely consistent with the video effect corresponding to template 1. For example, the effect of the film can be as follows: Figure 3B As shown in (d) in the figure, the finished film has effects such as a dark gray filter and “Happy Hour” stickers.
[0094] In some scenarios, the video in the mobile phone may not be processed with the effect template, such as Video 1, or it may be processed with the effect template. For the sake of convenience, the video processed with the effect template can be recorded as Video 2 (belonging to the first video). Among them, the processing with the effect template includes the following two situations: The first is processed by "one-click filming". Regarding "one-click filming", please refer to the instructions in the previous article, which will not be repeated here. The second is to select an effect template (such as Template 2) before starting video shooting, and automatically process the shot video according to Template 2 after the video shooting is finished, and save it in the mobile phone after generating the film. For ease of understanding, the second situation is illustrated by a specific example below:
[0095] See also Figure 4 For example, before starting video recording, the phone may display Figure 4The interface 401 shown in (a) of FIG. 4 includes a "micro-movie" button 402, which is used to trigger the mobile phone to select an effect template. The mobile phone can receive a user's click operation on the "micro-movie" button 402. In response to the user's click operation on the "micro-movie" button 402, the mobile phone can display template options of multiple effect templates, such as Figure 4 As shown in (b) of FIG. 1 , there are four template options, namely, “Hello Summer”, “Beautiful”, “Good Mood”, and “Little Beauty”. Then, the mobile phone can receive a user's selection operation for template option 1 (such as the option for “Hello Summer”), where template option 1 is any one of the multiple template options. In response to the user's selection operation for template option 1, the mobile phone can select a corresponding effect template, such as “Hello Summer”. Then, the mobile phone can receive an operation to start shooting, such as a user's operation for Figure 4 In response to the operation of starting to shoot, the mobile phone can start video shooting. After the video shooting is completed, the mobile phone can automatically use the effect template selected before shooting to process the shot video, form a film (such as video 2) and save it in the mobile phone. For example, video 2 can be Figure 4 As shown in (c), it has effects such as a light gray filter and a sticker that says "Summer love, we are together in the most beautiful summer."
[0096] For the video 2 obtained in the above two cases, it already has background music, filters, stickers and other effects. On this basis, if the "one-click film" is further used on it, the two sets of effects may be superimposed, resulting in poor film effects. Figure 5A The effect shown in (a) and Figure 5A The effects shown in (b) above are superimposed to obtain Figure 5A The effect is shown in (c) in the figure. On the one hand, the light gray filter and the dark gray filter are superimposed, resulting in the filter color in the finished film being too dark, affecting the picture of the original video content. On the other hand, the superposition of the two stickers "Happy Time" and "Summer Feelings, the Most Beautiful Summer We Are Together" leads to inconsistency in the video theme.
[0097] Based on this, in some embodiments, the mobile phone can add processing marks to the videos in the mobile phone, add a first mark to the video that has not been processed by the effect template (such as video 1), and / or add a second mark to the video that has been processed by the effect template (such as video 2). Figure 5B(a) in the figure shows an application interface 501 of the gallery application, in which thumbnails 502, 503 and 504 are displayed. The upper right corners of thumbnails 503 and 504 are marked with five-pointed stars, which are used to indicate that the videos corresponding to thumbnails 503 and 504 are videos processed using effect templates. That is, the five-pointed star is the second identifier. If there is no five-pointed star marked in the upper right corner of thumbnail 502, it indicates that the video corresponding to thumbnail 502 is a video that has not been processed using an effect template.
[0098] In this embodiment, in response to a user clicking on any thumbnail (referred to as a target thumbnail, or also referred to as a first option) in the viewfinder interface before video shooting or in the application interface of the gallery application, if the processing identifier of the video corresponding to the thumbnail (referred to as the target video, also belonging to the first video) is the first identifier, or the processing identifier of the target video is not the second identifier, the mobile phone can display interface 1. For interface 1, please refer to the description in the previous embodiment, which will not be repeated here. For example, the target thumbnail is Figure 5B In the thumbnail 503 shown in (a) of FIG. 1 , there is no five-pointed star (i.e., the second mark) marked in the upper right corner of the thumbnail 503, indicating that the target video is a video that has not been processed using the effect template. In response to the user's click operation on the thumbnail 503, the mobile phone can display Figure 5B The interface 505 shown in (b) in FIG. 5 includes a control 3, such as a "one-key to film" button. That is, the interface 505 is the interface 1.
[0099] In response to a user clicking on a target thumbnail in the viewfinder interface before video shooting or in the application interface of the gallery application, if the processing identifier of the target video is the second identifier, or the processing identifier of the video is not the first identifier, the mobile phone can display interface 2. For the sake of convenience, interface 2 in this embodiment can be referred to as the fifth interface. Interface 2 is also a video editing interface, but interface 2 does not include control 3. For example, video 3 is Figure 5B The video corresponding to the thumbnail 504 shown in (a) in FIG. 5 is marked with a five-pointed star (i.e., the second identifier) in the upper right corner of the thumbnail 504, indicating that the video corresponding to the thumbnail 504 is a video processed using the effect template. In response to the user's click operation on the thumbnail 504, the mobile phone can display Figure 5B The interface 506 shown in (c) in FIG. 5 includes the target video, but does not include the control 3, such as the "one-key video" button. That is, the interface 506 is the interface 2.
[0100] That is, in response to a user clicking on a target thumbnail in the viewfinder interface before video shooting or in the application interface of the gallery application, if the target video is not a video obtained by the mobile phone after adding video effects according to the effect template (such as video 1), the mobile phone can display interface 1, and control 3 is provided in interface 1. If the target video is a video obtained by the mobile phone after adding video effects according to the effect template (such as video 2), the mobile phone can display interface 2, and control 3 is not provided in interface 2.
[0101] In this embodiment, a control 3 is provided only for videos that have not been processed using an effect template, so as to realize "one-key formation of a film". Thus, "one-key formation of a film" can be realized in a targeted manner, and the effect of video processing can be improved.
[0102] In other embodiments, the mobile phone can provide controls 3 for all videos, and record the corresponding relationship between each video (such as video 2) obtained by adding video effects according to the effect template and the corresponding original video (such as video 1). Then, when the mobile phone "one-clicks to film" the video (such as video 2) obtained by adding video effects according to the effect template, the mobile phone can search for the corresponding original video and obtain a new video by adding video effects on the basis of the original video.
[0103] With this embodiment, when a mobile phone converts a video into a movie after adding video effects according to an effect template, the mobile phone can avoid superposition of video effects by searching the original video and then processing it, thereby improving the effect of video processing.
[0104] In addition, the video lengths of videos in mobile phones vary, e.g. Figure 5B In (a), the video duration of the video corresponding to thumbnail 502 is 00:10, i.e., 10 seconds (s); the video duration of the video corresponding to thumbnail 503 is 00:15, i.e., 15 seconds; and the video duration of the video corresponding to thumbnail 504 is 00:08, i.e., 8 seconds. In some scenarios, when a video is converted into a movie in one click according to an effect template, if the video duration is too short, the effect corresponding to the effect template may not be well presented.
[0105] For example, template 1 includes transition, beginning fade-in and ending fade-out effects, and the durations required are 1.5s, 2s and 1.5s respectively. Fig. 6A As shown in (a) in the figure, the video duration is 8 seconds. If template 1 is used to Fig. 6A For the video "One-click to Movie" shown in (a), the first 1.5s of video frames need to be used for fade-in effect, the last 1.5s of video frames need to be used for fade-out effect, and the middle 2s of video frames need to be used for transition effect. Then, only 3s of video frames are left for normal display of the entire video, resulting in poor effect of "One-click to Movie".
[0106] Based on this, in some embodiments, in response to a user clicking on a target thumbnail in the viewfinder interface before video shooting or in the application interface of the gallery application, if the video duration of the target video (i.e., the video corresponding to the target thumbnail) exceeds duration 1 (which may be referred to as the first duration), the mobile phone may display interface 1. For interface 1, please refer to the description in the previous embodiment, which will not be repeated here.
[0107] For example, the duration 1 is 10 seconds, and the target thumbnail is Figure 6B Taking the thumbnail 602 in the application interface 601 of the camera application shown in (a) as an example, the video corresponding to the thumbnail 602, that is, the video duration of the target video, is 00:15, that is, 15 seconds, which exceeds the duration 1. In response to the user's click operation on the thumbnail 602, the mobile phone can display Figure 6B Interface 604 shown in (b) in the figure. Interface 604 includes controls 3, such as a "one-click to film" 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 prompt information 608 "One-click blockbuster provides intelligent editing for videos with a duration of 10 to 29 seconds, and automatically generates wonderful videos". The prompt information can also be other appropriate content, such as "Record videos between 10 and 35 seconds, which can be made into a film with one click", which is not limited in this application.
[0108] In response to the user clicking on the target thumbnail in the viewfinder interface before video shooting or in the application interface of the gallery application, if the video duration of the target video does not exceed duration 1, the mobile phone can display interface 2. For the convenience of explanation, interface 2 in this embodiment can be called the seventh interface. Interface 2 is also a video editing interface, but interface 2 does not include control 3. For example, if duration 1 is 10s and the target thumbnail is Figure 6B Taking the thumbnail 603 in the application interface 601 of the camera application shown in (a) as an example, the video corresponding to the thumbnail 603, that is, the video duration of the target video, is 00:08, that is, 8 seconds, which does not exceed the duration 1. In response to the user's click operation on the thumbnail 603, the mobile phone can display Figure 6B The interface 605 shown in (c) in FIG. 605 includes the target video, but does not include the control 3, such as the "one-key video" button. That is, the interface 605 is the interface 2.
[0109] In the present embodiment, duration 1 can be a value set according to experience, such as 5s, 8s, 10s, etc. Alternatively, multiple effect templates can be saved in the mobile phone, and each effect template has its own template duration. Normally, when the video duration of the video to be processed (such as video 1) is at least close to the template duration, a better film effect can be finally presented. For example, the template duration of template 1 is 15s, and template 1 includes 3 transition effects, and the duration of each transition is 2s. Then the transition effect requires 6s, and the average interval between every two transitions is 3s. If the video duration is less than 15s, the interval between every two transitions will be shorter, resulting in a poor film effect. Based on this, duration 1 can be set to be less than the shortest template duration.
[0110] Exemplarily, the template durations of multiple effect templates saved in the mobile phone are shown in Table 1 below:
[0111] Table 1
[0112] Effect templates Template duration Hello Summer 15s good 15s Good Mood 20s Little Beauty 25s
[0113] In Table 1 above, the shortest template duration is 15 seconds. When the template duration of video 1 is shorter than 15 seconds, using any effect template in Table 1 above to process video 1 will not produce a good film effect. Therefore, the duration 1 can be set to a value less than 15 seconds, such as 10 seconds. Later, for videos that are less than 10 seconds, the "one-click filming" function can be disabled.
[0114] In this embodiment, control 3 is provided only for videos whose duration exceeds duration 1, for realizing “one-click film formation”, so that “one-click film formation” can be realized in a targeted manner, thereby improving the effect of video processing.
[0115] In some scenarios, when you use the effect template to "make a movie with one click", if the video is too long, it may be difficult for the effect template to match the video. For example, a set of effects corresponding to template 1 includes background music, and the background music is 30 seconds long. Fig. 6A As shown in (b), the video length is 35 seconds. If Template 1 is used to "one-click to make a film" for the video, the background music of Template 1 can only cover the first 30 seconds of video frames, and the remaining 5 seconds will have no background music and coverage, which will also affect the film effect. Or, in the scene of shooting a video in multi-lens recording mode, there are multiple cameras to record. If the video length is too long, the video file will be larger, which is not conducive to the later "one-click to make a film" processing, and the final film will also be large, which is not convenient for storage and uploading and sharing.
[0116] Based on this, in some embodiments, in response to a user clicking on a target thumbnail in the viewfinder interface before video shooting or in the application interface of the gallery application, 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 mobile phone may display interface 1. For example, if duration 2 is 29s and the target thumbnail is Figure 6B Taking the thumbnail 602 in the application interface 601 of the camera application shown in (a) as an example, since the video corresponding to the thumbnail 602, that is, the video duration of the target video, is 00:15, that is, 15 seconds, which does not exceed the duration 2. In response to the user's click operation on the thumbnail 602, the mobile phone can display Figure 6B The interface 604 shown in (b) includes the target video and controls 3, such as a "one-key video" button. That is, the interface 604 is the interface 1.
[0117] In response to the user clicking on the target thumbnail in the viewfinder interface before video shooting or in the application interface of the gallery application, if the video duration of the target video exceeds duration 2, the mobile phone can display interface 2. For the sake of convenience, interface 2 in this embodiment can be called the seventh interface. Interface 2 is also a video editing interface, but interface 2 does not include control 3. For example, duration 2 is 29s and the target thumbnail is Figure 6B Taking the thumbnail 606 in the application interface 601 of the camera application shown in (a) as an example, since the video corresponding to the thumbnail 606, that is, the video duration of the target video, is 00:35, that is, 35 seconds, which exceeds the duration 2, the mobile phone responds to the user's click operation on the thumbnail 606 and can display Figure 6B The interface 607 shown in (d) includes the target video but does not include the control 3, such as the "one-key video" button. That is, the interface 607 is the interface 2.
[0118] In this embodiment, duration 2 may be a value set based on experience. For example, in a scenario where a video is shot in multi-camera recording mode, if the video duration exceeds 30 seconds, the video file will be too large, which is not conducive to post-processing and storage. Therefore, the video duration may be set to 30 seconds. Alternatively, multiple effect templates may be saved in the mobile phone, and each effect template includes background music in a set of effects. Usually, the background music needs to cover the video to be processed (such as video 1) in order to present a better film effect. For example, Fig. 6AAs shown in (b), if the video duration is longer than the music duration, part of the film will have no background music, resulting in a poor film effect. Based on this, duration 2 can be set to be longer than or equal to the longest music duration. When the video duration of the video to be processed exceeds duration 2, that is, the longest music duration, the background music cannot cover the entire video when any effect template is used to process the video to be processed. The "one-click film" function may not be provided for it later. For example, if the music duration of the longest background music is 30s, duration 2 can be set to a duration greater than or equal to 30s, such as 30s. Furthermore, a set of effects in the effect template may also include an ending, which is a fixed content, such as a mobile phone merchant's logo, which is usually unrelated to the content of the video being shot. Generally, the background music needs to cover the video to be processed and the ending in order to present a better film effect. For example, if the video duration is too long, the background music may not cover the ending. Based on this, duration 2 can be set to be longer than or equal to the difference between the longest music duration and the ending duration. For example, if the longest background music duration is 30 seconds and the ending 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, for realizing "one-click filming", so that "one-click filming" can be realized in a targeted manner, thereby improving the effect of video processing.
[0120] It should be understood that in actual implementation, the above implementation of providing control 3 only for videos whose duration exceeds duration 1 and the implementation of providing control 3 only for videos whose duration does not exceed duration 2 can be used in combination. That is, in other embodiments, the mobile phone can provide control 3 only for videos whose duration exceeds duration 1 and does not exceed duration 2. Among them, duration 1 is less than duration 2.
[0121] In the above embodiment for the problem of the video being too long or too short, when the mobile phone provides the control 3 for the first time, the mobile phone can also display the prompt information 1 (also called the first prompt information) at the same time, and the prompt information 1 is used to prompt the video length applicable to the "one-click blockbuster". For example, the first displayed interface 1 is Figure 6B The interface 604 shown in (b) of FIG. 6 includes a control 3, such as a "one-click movie" button. The interface 604 also includes a prompt 608, and the specific content of the prompt 608 is "one-click blockbuster provides intelligent editing for videos with a duration of 10-29 seconds, and automatically generates a wonderful movie", so as to indicate the video duration applicable to the "one-click blockbuster". That is, the prompt 608 is the prompt information 1.
[0122] In addition, in order to solve the problem caused by the excessive length of the video, in other embodiments, the mobile phone can provide control 3 for videos of any length. For example, the length 2 is 29s, and the target thumbnail is Figure 6B Taking the thumbnail 606 in the interface 601 shown in (a) as an example, the video corresponding to the thumbnail 606, that is, the video duration of the target video, is 00:35, that is, 35 seconds, which exceeds the duration 2. In response to the user clicking the thumbnail 606, the mobile phone can display Figure 6C Interface 611 shown in (a) of FIG. Interface 611 also includes control 3, namely, a "one-click movie" button. That is, if the video length of the target video exceeds the length 2, the mobile phone can also provide control 3 for it to trigger the use of "one-click movie".
[0123] In this embodiment, the mobile phone can provide control 3 for videos of any length. When control 3 is provided for the first time, prompt information 2 can be displayed. Prompt information 2 is only used to prompt the function of "one-click movie", and there is no need to prompt the video length applicable to "one-click movie". For example, the first displayed interface 1 is Figure 6C The interface 611 shown in (a) of FIG. 6 includes a control 3, such as a "one-click movie" button. The interface 611 also includes a prompt 615, and the specific content of the prompt 615 is "one-click movie provides intelligent editing for videos and automatically generates wonderful movies", so as to prompt the function of "one-click movie". That is, the prompt 615 is the prompt information 2.
[0124] Subsequently, the mobile phone may receive operation 3 from the user, such as clicking on the "One-click to Film" button. In response to operation 3, if the video duration of the target video does not exceed duration 2, the mobile phone may use template 1 to process the target video to form a film. In response to operation 3, if the video duration of the target video exceeds duration 2, the mobile phone may display interface 3 (also referred to as the eighth interface). In interface 3, the mobile phone may, in response to the user's capture operation (also referred to as the second operation), capture a video segment (recorded as a target segment) of no more than duration 2 from the target video, so that the effect of template 1 may match the target segment. In other words, interface 3 is an interface used by the mobile phone to crop the target. In response to capturing the target segment, the mobile phone may use template 1 to add video effects to the target segment to form a film.
[0125] For example, the duration 2 is 29 seconds, and the target thumbnail is the above Figure 6B The thumbnail 606 shown in (a) in FIG. 1 is displayed in response to a click operation on the thumbnail 606. The interface 3 is Figure 6CTaking the interface 611 shown in (a) of FIG. 1 as an example, since the video corresponding to the thumbnail 606, that is, the target video, has a video duration of 00:35, that is, 35 seconds, which exceeds the duration 2. In response to the user clicking the "One-click to Film" button in the interface 611, the mobile phone may display Figure 6C (b) shows interface 612. In interface 3, the mobile phone can select a video segment not exceeding 29 seconds, namely, the target segment.
[0126] Interface 3 includes control 4, which is used to trigger the mobile phone to select a video clip that does not exceed the duration 2. For example, control 4 is Figure 6C The selection box 613 shown in (b) of FIG. 4 can select a video clip of duration 2 at most. Usually, the control 4 selects the video clip of duration 2 at the beginning of the video 3 by default. In the interface 3, the mobile phone can receive a sliding operation of the user on the video clip selected by the control 4, and in response to the sliding operation of the user on the video clip selected by the control 4, the mobile phone can select a new video clip.
[0127] In addition, in interface 3, the mobile phone can receive the user's push and pull operation on the left and right edges of control 4. In response to the user's push and pull operation on the left and right edges of control 4, the mobile phone can change the length of the selected video segment, thereby selecting a new video segment. In addition, in response to the user's push and pull operation on the left and right edges of control 4, if the length of the dragged segment exceeds duration 2, the mobile phone can display prompt information 3 in interface 3. Prompt information 3 is used to prompt that the maximum duration has been reached. For example, taking duration 2 as 29s, if Fig.6D As shown in (a) in the figure, a 29s video clip has been selected. Based on this, Fig.6D As shown in (b) of FIG. 1 , in response to the user pushing the right edge of the selection box in the direction indicated by the arrow, the mobile phone may display Fig.6D The prompt 624 shown in (c) in FIG. The specific content of the prompt 624 is "the maximum adjustable time has been reached", so that it can be prompted that the maximum time has been reached. That is, the prompt 624 is prompt information 3.
[0128] Furthermore, the interface 3 may also include a playback progress bar, and the entire duration corresponding to the playback progress bar indicates the duration of the selected video clip. Figure 6C (b) shows a progress bar 614, where 00:29 on the right side of the progress bar 614 indicates that the duration of the video clip is 29 seconds, and 00:14 on the left side indicates that the current playback is at the 14th second. The playback progress bar can be used to trigger the mobile phone to update the playback progress of the currently selected video clip. In addition, the playback progress bar is independently set from the control 4, so as to facilitate accurate adjustment of the playback progress.
[0129] After selecting a satisfactory video clip, the mobile phone may receive an operation 4 (i.e., a second operation) performed by the user on interface 3, and operation 4 is used to trigger the mobile phone to crop the target video. Operation 4 may be a preset gesture of the user on interface 3, such as a swipe gesture from the bottom edge of interface 3. Alternatively, interface 3 may include a capture control, such as Figure 6C The "√" button in the upper right corner of the interface 612 shown in (b) in the figure is used to trigger the mobile phone to capture a video clip. Operation 4 can be a click operation or a long press operation of the capture control by the user. In the embodiment of the present application, the form of operation 4 is not specifically limited. In response to operation 4, the mobile phone can capture the target clip, which is the video clip that is most recently selected by the mobile phone and does not exceed the duration 2, and add video effects to the captured target clip to generate a film.
[0130] In addition, the interface 3 may include a cancel control, such as Figure 6C The “×” button at the upper left corner of the interface 612 shown in (b) of FIG. 1 is used to cancel the control to trigger the mobile phone to capture the default video clip. For example, the video clip of the target video with a duration of 2. In response to the user's click operation, long press operation, etc. on the cancel control, the mobile phone can capture the default video clip, add video effects, and generate a film.
[0131] In this embodiment, the "one-click blockbuster" processing can be implemented for videos of any length. Among them, for a target video whose video length exceeds duration 2, first cut the target segment of duration 2 from the target video, and then use "one-click blockbuster" to process the target segment. In this way, the problem of the video length being too long and causing it to not match the effect in template 1 can be avoided, thereby improving the blockbuster effect.
[0132] It should be noted that in this embodiment, when the video duration exceeds duration 2, the mobile phone can use the effect template to process the target segment only after the mobile phone intercepts the target segment in response to operation 3, instead of using the effect template to process the entire video.
[0133] In some scenarios, a mobile phone stores multiple effect templates, and different effect templates have different effects. Taking the effect including background music as an example, the background music of template 1 is dynamic music, and the background music of template 2 is cheerful music. In some embodiments, in a scenario where a mobile phone stores multiple effect music, in response to operation 3, such as clicking the "one-click to film" button, the mobile phone can select a target template from multiple effect templates to process the video to be processed (such as video 1). Among them, the mobile phone can select the target template from multiple effect templates randomly or according to a certain rule, for example, according to the order of template numbers.
[0134] Moreover, 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 films with different effects. Take video 1 as an example, that is, for video 1, the mobile phone can receive the user's first operation 3 after displaying interface 1 for the first time. In response to the user's first operation 3, the mobile phone can use template 1 to process video 1 to form finished film 1. The effect of finished film 1 is exactly the same as that 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 to form finished film 2. The effect of finished film 2 is exactly the same as that of template 2.
[0135] For example, interface 1 is Fig. 7A For example, the interface 701 shown in (a) of FIG. 700 includes a video 1 and controls 3, such as a "one-click to create a film" button 702. After the interface 701 is displayed for the first time, in response to the user's click operation on the "one-click to create a film" button 702, the mobile phone uses the template 1 to process the video 1, and a film 1 can be obtained. For example, the effect of the film 1 is as follows: Fig. 7A As shown in (b) of FIG. 7 , the finished film 1 has a dark gray filter and a “Happy Hour” sticker. After the second display of the interface 701, in response to the user clicking the “One-click to Film” button 702, the mobile phone processes the video 1 using the template 2 to obtain the finished film 2. For example, the effect of the finished film 2 is as follows: Fig. 7A As shown in (c), film 2 has a light gray filter and effects such as "Summer love, the most beautiful summer we are together" stickers.
[0136] With this embodiment, for the same video, the mobile phone can generate films with different effects by responding to operation 3 multiple times, thereby improving the diversity of the films.
[0137] After the mobile phone selects the target template (such as template 1), it can add background music, filters, fitting, special effects, photo frames and other effects to the video to be processed using the target template (such as template 1). In some embodiments, there are two versions of background music matched by each effect template (which can be recorded as version 1 and version 2). The duration of version 1 is equal to the template duration of the effect template, and the duration of version 2 is a fixed duration, such as 30s. Among them, the fixed duration is longer than the maximum template duration. Exemplarily, the correspondence between the effect templates and background music stored in the mobile phone is shown in Table 2 below:
[0138] Table 2
[0139] Effect templates 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 Little Beauty 15s joy 15s 30s parting 20s sad 20s 30s Happy winter 20s winter 20s 30s
[0140] Taking the template "Hello Summer" in Table 2 as an example, the background music it matches is soothing music. Since the template duration of the template "Hello Summer" is 15 seconds, the version 1 of the soothing music is the 15 second version. Taking the template "Happy Winter" in Table 2 as an example, the background music it matches is winter music. Since the template duration of the template "Happy Winter" is 20 seconds, the version 1 of the winter music is the 15 second version. In addition, the version 2 of all music is a version with a fixed duration of 30 seconds.
[0141] In this embodiment, when the mobile phone adds background music to the video to be processed (such as video 1), the version of the added background music can be matched according to the video duration of the video to be processed. If the video duration of the video to be processed is shorter than or equal to the template duration 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 as an example, assuming that the video duration of video 1 is 14s, which is shorter than the template duration 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 duration of the video to be processed is longer than the template duration of the target template, but shorter than or equal to the fixed duration, 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 as an example, assuming that the video duration of video 1 is 28s, which is longer than the template duration of the "Hello Summer" template of 15s, but shorter than the fixed duration of 30s, then a 30s version of soothing music can be added as the background music of video 1. This way, the added background music can be sufficient to cover the entire video and enhance the effect of the film.
[0142] It should be noted that in the above embodiment for the problem caused by the excessive length of the video, the mobile phone may not provide control 3 for the video whose length exceeds duration 2; or the mobile phone may provide control 3 for it, but it needs to be cropped first, and then the effect template can be selected for processing after cropping. Therefore, the fixed duration can be set to be equal to duration 2, so that the background music of version 2 can cover all the videos to be processed, for example, the target segment that does not exceed duration 2 is obtained after cropping.
[0143] Furthermore, in a scenario, the set of effects of the target template does not include the ending, and accordingly, the final film does not include the ending, and the duration of the film is the duration of the video. Figure 7BIn (a), in this scenario, if the duration of the added background music is longer than the duration of the video, the mobile phone can align the beginning of the background music with the beginning of the video to be processed, and then delete the part of the background music that exceeds the shooting duration at the end, that is, delete the background music corresponding to the excess duration 1 in (a) of 7B to obtain the effective music. Add a music fade effect at the end of the effective music to make the end of the background music in the finished film smoother. In another scenario, the set of effects of the target template includes the ending credits, and accordingly, the final film includes the ending credits, and the film duration is equal to the sum of the video duration and the ending credits. See Figure 7B In (a), in this scenario, if the duration of the added background music is longer than the sum of the video duration and the ending duration, the mobile phone can align the beginning of the background music with the beginning of the video to be processed, and then delete the part of the background music that exceeds the ending duration. Figure 7B The background music corresponding to the extra duration 2 in (b) is deleted to obtain the effective music. A music fade effect is added at the end of the effective music to make the end of the background music in the finished film smoother.
[0144] After the finished film is formed, the mobile phone can display interface 5, which is a preview interface of the finished film. In interface 5, the finished film can be played. Thus, the finished film effect can be presented to the user. For example, interface 5 is Figure 8 Interface 801 shown in (a) in the figure. In interface 801, a movie is being played, and the movie has effects such as a light gray filter and a sticker with the words "Summer love, the most beautiful summer, we are together".
[0145] In some embodiments, after displaying interface 5, if the preset conditions are met, the mobile phone can display prompt information 4 (also referred to as second prompt information) in interface 5, such as Figure 8 Prompt 806 in interface 802 shown in (b) "Click to try different movie styles". Prompt information 4 is used to prompt the effect of adjusting the film, that is, adjusting the added video effect. Among them, satisfying the preset conditions includes: the display time of interface 5 reaches duration 3, such as 10s, and no user's preset operation is detected. Alternatively, the film can be played in interface 5, and after the interface is displayed, the film starts to be played. Correspondingly, satisfying the preset conditions includes: the playback of the film in interface 5 ends, and no user's preset operation is detected. The above preset operations are used to trigger the mobile phone to adjust the film effect.
[0146] Exemplarily, the interface 5 includes an effect switching control (also referred to as a second control), which is used to trigger the effect of adjusting the mobile phone to a film. For example, the effect switching control may include a style switching control, such as Figure 8In the "style" button 803 in the interface 802 shown in (b), the style switching control is used to trigger the mobile phone to switch the style of the film. The style refers to the overall effect other than the background music, such as the overall effect of multiple effects such as filters, stickers, photo frames, etc. For another example, the effect switching control may include a music switching control, such as Figure 8 In the music button 804 in the interface 802 shown in (b), the music switching control is used to trigger the mobile phone to switch to the background music of the movie. For another example, the effect switching control may include an editing control, such as Figure 8 The edit button 805 in the interface 802 shown in (b) is used to trigger the mobile phone to switch to various effects such as background music, filters, stickers, photo frames, transitions, volume, and endings. The preset operation can be a click operation or a long press operation (also referred to as a third operation) of the effect switching control by the user.
[0147] Furthermore, the user's preset operation is not detected, which means that since the first use of the mobile phone, after using the "one-click to create a movie" and entering the interface 5, the user's input of the preset operation has never been detected. For example, in the past use of the mobile phone, after using the "one-click to create a movie" and creating a movie, the user clicked the style switching control in the interface 5. When the interface 5 is displayed this time, the prompt message 4 is not displayed after the movie is played. In this way, it is possible to avoid repeated prompts to users who are familiar with the effect switching function.
[0148] In some embodiments, after the interface 5 is displayed, the mobile phone can receive a preset operation of the user, and the preset operation is used to adjust the effect of the film. For the preset operation, please refer to the description in the previous embodiment, which will not be repeated here. Taking the switching of background music as an example, the preset operation can be the user's Fig. 9 In (a) of FIG. 9 , the music button 902 in the interface 901 is clicked. In response to the preset operation, the mobile phone may display multiple effect options in the interface 5 , such as multiple effect options are Fig. 9 There are four music options in the pop-up window 903 shown in (b), namely, "Relaxing", "Summer", "Dynamic", and "Happy", and each music option corresponds to a background music.
[0149] It should be noted that in the above description of the music options, in order to distinguish between music and effect templates, the cover and name of the music options have no association with the corresponding effect template. In other embodiments, in order to reflect the association between music and effect templates, when multiple music options are displayed, the cover of the music option can be set to the template cover 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 option corresponding to the background music of the currently used effect template can be displayed in the first of multiple music options, so as to facilitate quick restoration to the original background music. In addition, the first music option can be selected by default. For example, if the background music currently used in the film is soothing music, the mobile phone can display Fig. 9 In the pop-up window 903 shown in (b), the option of soothing music is displayed in bold, indicating that this option is selected by default.
[0151] After displaying multiple music options, the mobile phone may receive a user's selection operation for any music option (which may be recorded as music option 1). In response to the selection operation for music option 1, the mobile phone may replace the background music in the film with the background music corresponding to option 1 and play the film from the beginning. Fig. 9 For example, in response to the user's selection of option 904, the mobile phone may replace the background music in the finished film with the music corresponding to option 904, and then play the finished film from the beginning. In this way, it is convenient to preview the effect of applying the selected music to the finished film. Subsequently, the mobile phone may receive operation 5 from the user, and operation 5 is used to trigger the mobile phone to switch the background music. Operation 5 may be a top-to-bottom sliding operation from a pop-up window (which may be recorded as a music pop-up window) displaying multiple music options. Alternatively, the music pop-up window includes a confirmation control, and operation 5 may be a click or long press operation of the user on the confirmation control. For example, the music pop-up window is Fig. 9 The pop-up window 905 shown in (d) in FIG. 1 includes a "√" button. The "√" button is a confirmation control. Operation 5 may be a user clicking the "√" button. The embodiment of the present application does not specifically limit the form of operation 5. In response to operation 5, the mobile phone may close multiple music options and restore the display of interface 5 that does not include music options. For example, it may display Fig. 9 Interface 901 shown in (a).
[0152] In the above embodiment, the mobile phone can adjust at least one of the added set of video effects (such as the video effects of template 1) in response to the preset operation, so as to break the fixed combination of background music, filters, photo frames, stickers and other effects in the effect template (such as template 1) selected by "one-click filming". For example, after switching the background music, the filters, photo frames, stickers and other effects of template 1 can be combined with the switched background music. This can improve the diversity of filming effects.
[0153] After the interface 5 is displayed, the mobile phone may receive an operation 6 (also referred to as a fourth operation) from the user, and the operation 6 is used to trigger the mobile phone to save the film. The operation 6 may be a left swipe from the right edge of the interface 5. Alternatively, the interface 5 includes a control 5, such as Fig.10In the interface 1001 shown in (a), the "√" button 1002 is used to trigger the mobile phone to save the video. Operation 6 can be a click operation or a long press operation of the user on the control 5. The form of operation 6 is not specifically limited in the embodiment of the present application. In response to operation 6, the mobile phone can save the video and display a save prompt in the interface 5. For example, the save prompt is Fig.10 The prompt 1003 shown in (b) indicates that the saving progress is 45%, and the progress is 100% when the saving is completed.
[0154] Then, in response to the completion of saving, the mobile phone may display interface 6 (also referred to as the ninth interface). Interface 6 is a finished film editing interface. The difference from interface 1 is that interface 6 includes the finished film of the video to be processed in interface 1, and interface 6 does not include control 3, such as a "one-click film" button. For example, interface 6 may be Fig.10 The interface 1004 shown in (c) of FIG. Figure 3B Compared with interface 316 (i.e., interface 1) shown in (c): the video in interface 1004 has effects such as filters and stickers, and is a finished film of the video in interface 316; interface 1004 does not include control 3, such as a "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 directly jump to interface 6. The embodiment of the present application does not specifically limit this.
[0156] In the above description about the film being formed, it is mainly about previewing first and then saving. However, in other embodiments, the mobile phone can also save the film directly after it is formed without displaying a preview.
[0157] In some embodiments, the mobile phone may receive an operation 7 (which may be referred to as a return operation) from the user on the interface 6, and the operation 7 is used to trigger the mobile phone to return to the application interface of the gallery application. The operation 7 may be a right swipe operation from the left edge of the interface 6. Alternatively, the interface 6 includes a return control, such as Fig.10 . Operation 7 may be a user clicking operation on the return control. In the embodiment of the present application, the form of operation 7 is not specifically limited. In response to operation 7, the mobile phone may display interface 7 (also referred to as the third interface), which is the application interface of the gallery application. At this time, a thumbnail of a frame of the image generated this time is added to the application interface of the gallery application (which may be referred to as the second option). For example, in response to operation 7, the mobile phone may display Fig.10 The interface 1006 shown in (d) includes a thumbnail 1007. The thumbnail 1007 is a thumbnail of the latest saved film.
[0158] Based on the above description, it can be known that 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 films with different effects. Therefore, in some embodiments, after displaying interface 7, the mobile phone can receive the user's thumbnail of video 1 again (i.e., the first option), such as Fig.10 In the example of (d) in FIG. 1 , in response to the user's click operation on the thumbnail 1008 in the interface 1006 (i.e., the first option), the mobile phone can display the interface 8 (also referred to as the fourth interface). The interface 8 is the editing interface of the video 1, and the control 3 is provided in the interface 8. Then, the mobile phone can receive the user's operation 3 on the interface 8, such as the click operation on the control 3. In response to the operation 3, the mobile phone can add video effects to the video 1 according to different effect templates (such as template 2) to generate a new film (which can be referred to as the second film). For the convenience of explanation, the video effect of template 2 can be referred to as the second video effect. Among them, 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, which means that at least one of the second video effect and the first video effect is different, for example, at least one of the background music, filter, sticker, photo frame, transition and other effects is different. In this way, for the same video, "one-click filming" can be performed for multiple times to form films with different effects.
[0159] Based on the above statements, it can be known that for the video (such as video 2) obtained after the mobile phone adds video effects, the mobile phone may not provide control 3 for it. At the same time, interface 7 includes the thumbnail of the film generated this time (i.e., the second option). Therefore, in some embodiments, after displaying interface 7, the mobile phone can receive a user's click operation on the thumbnail of the film generated this time, and in response to the user's click operation on the thumbnail of the film generated this time, the mobile phone can display interface 9. This interface 9 is the editing interface of the film generated this time. Since the film generated this time is recorded as a video with video effects added, control 3 is not included in interface 9. This can avoid confusion in video effects caused by further adding video effects to the generated film.
[0160] Some other embodiments of the present application provide an electronic device, which may include: the above-mentioned display screen (such as a touch 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, and the computer program code includes computer instructions. When the processor executes the computer instructions, the electronic device can execute the various functions or steps executed by the mobile phone in the above-mentioned method embodiment. The structure of the electronic device can refer to Figure 1 The structure of the mobile phone is shown.
[0161] The present application also provides a chip system, such as Fig.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 can be interconnected via lines. For example, the interface circuit 1102 can be used to receive signals from other devices (such as a memory of an electronic device). For another example, the interface circuit 1102 can be used to send signals to other devices (such as processor 1101). Exemplarily, the interface circuit 1102 can read instructions stored in the memory and send the instructions to the processor 1101. When the instructions are executed by the processor 1101, the electronic device can execute the various steps in the above embodiments. Of course, the chip system may also include other discrete devices, which are not specifically limited in the embodiments of the present application.
[0162] An embodiment of the present application also provides a computer storage medium, which includes computer instructions. When the computer instructions are executed on the above-mentioned electronic device, the electronic device executes each function or step executed by the mobile phone in the above-mentioned method embodiment.
[0163] The embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute each function or step executed by the mobile phone in the above method embodiment.
[0164] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned 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 the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0166] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0167] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0168] If the integrated unit is implemented in the form of 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 solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0169] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims
1. A video processing method, characterized in that: Used in electronic equipment, 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 of an image in the first video, and the second option displays a thumbnail of a frame of an image in a first film, and the first film is a video obtained by adding a first video effect to the first video; The electronic device displays a second interface in response to a user clicking the first option in the first interface; the second interface is an editing interface of the first video, and the second interface also includes a first control; The electronic device generates a second finished film in response to a first operation of the user on the first control in the second interface; the second finished film is a video obtained by the electronic device adding a second video effect to the first video; wherein the first video effect and the second video effect are different; The electronic device displays a third interface in response to a user clicking operation on the second option in the first interface; the third interface is an editing interface of the first sheet, and the third interface does not include the first control.
2. The method according to claim 1, characterized in that The electronic device displays a second interface in response to a user clicking the first option in the first interface, including: In response to a user clicking operation on the first option in the first interface, if the first video is a video without video effects added, the electronic device displays the second interface.
3. The method according to claim 2, characterized in that The method further comprises: The electronic device responds to a user clicking operation on the first option in the third interface, and if the first video is a video with added video effects, the electronic device displays a fourth interface; the fourth interface is an editing interface for the first video, and the first control is not included in the fourth interface.
4. The method according to any one of claims 1 to 3, characterized in that The electronic device displays a second interface in response to a user clicking the first option in the first interface, including: The electronic device responds to a user clicking operation on the first option in the first interface, and if the video length of the first video exceeds a first length and does not exceed a second length, the electronic device displays the second interface; and the first length is less than the second length.
5. The method according to claim 4, characterized in that The method further comprises: When the electronic device displays the first control for the first time, the electronic device simultaneously displays first prompt information, where the first prompt information is used to prompt the video duration applicable to the function of adding video effects.
6. The method according to claim 4 or 5, characterized in that: The method further comprises: The electronic device responds to a user clicking operation on the first option in the first interface, and if the video length of the first video does not exceed the first length, or the video length of the first video exceeds the second length, the electronic device displays a fifth interface; the fifth interface is an editing interface for the first video, and the first control is not included in the fifth interface.
7. The method according to any one of claims 1 to 3, characterized in that The video duration of the first video exceeds the second duration; The electronic device generates a second slice in response to a first operation of the user on the first control in the second interface, including: The electronic device displays a sixth interface in response to the user's first operation on the first control in the second interface; the sixth interface is an interface for the electronic device to crop the first video; The electronic device generates the second film in response to the user's second operation on the sixth interface; the second film 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 length.
8. The method according to any one of claims 1 to 7, characterized in that After generating the second slice, the method further includes: The electronic device displays a preview interface of the second film.
9. The method according to claim 8, characterized in that The preview interface includes a second control, and the second control is used to trigger the electronic device to edit into a film; Wherein, after the electronic device displays a preview interface of the second film, the method further includes: The electronic device plays the first completed film in the preview interface; When the electronic device has not detected the third operation of the user on the second control, the electronic device displays a second prompt message in the preview interface in response to completion of playing the second film; the second prompt message is used to trigger the electronic device to edit the second film.
10. The method according to claim 8 or 9, characterized in that: The preview interface includes a second control, and the second control is used to trigger the electronic device to edit into a film; Wherein, after the electronic device displays a preview interface of the second film, the method further includes: The electronic device switches at least one of the first video effects in response to a third operation of the user on the second control; the at least one effect includes one or more of background music, filters, stickers, photo frames, transitions, and ending credits.
11. The method according to any one of claims 8 to 10, characterized in that: After the electronic device displays a preview interface of the second piece, the method further includes: The electronic device saves the second finished image in response to a fourth operation of the user on the preview interface; In response to completion of saving the second film, the electronic device displays a seventh interface; the seventh interface is an editing interface of the second film, and the seventh interface does not include the first control.
12. The method according to any one of claims 1 to 11, characterized in that The first interface is an application interface of a gallery application in the electronic device.
13. An electronic device, characterized in that: The electronic device has multiple applications installed in it, and the electronic device 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, and the computer program code includes computer instructions, and when the computer instructions are executed by the processor, the electronic device executes the method described in any one of claims 1-12.
14. A computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, characterized in that: When the instructions are executed on an electronic device, the electronic device is caused to execute the method as claimed in any one of claims 1 to 12.
Citation Information
Patent Citations
Terminal screen recording method and device and computer readable storage medium
CN107390972A
Data processing method and electronic device
CN108427589A
Video and image processing method and device, electronic equipment and storage medium
CN111541936A
Previewing Effects Applicable to Digital Media Content
US20100027958A1
Video Recording and Editing System
US20160225408A1