A video shooting method and electronic device

By providing motion effect templates to process images captured by the camera in dual-lens recording, users can select motion effect templates on electronic devices to record short films, solving the difficulty of recording dynamic videos in existing technologies and realizing animation effect recording and flexible control without the need for mobile devices.

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

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-31
Publication Date
2026-04-03

AI Technical Summary

Technical Problem

In existing technologies, it is difficult for users to record dynamic videos in a simple and convenient way, especially in dual-lens recording scenarios, where moving electronic devices is required to control the framing, which increases the difficulty of recording short films.

Method used

In dual-lens recording scenarios, by displaying real-time images captured by multiple cameras and providing motion effect template options, users can select motion effect templates to process images to record short films. No mobile device is required; the electronic device automatically processes the animation effects.

Benefits of technology

It enables the recording of animated short films without the need for the user's mobile device in dual-lens recording scenarios, reducing the recording difficulty and providing real-time preview and flexible recording control, thereby improving the recording effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116156314B_ABST
    Figure CN116156314B_ABST
Patent Text Reader

Abstract

This application provides a video shooting method and electronic device, relating to the field of photography technology. In a dual-lens recording scenario, a short film can be recorded without the user moving the electronic device to control the framing. This reduces the difficulty of shooting short films in dual-lens recording scenarios. The electronic device displays a first interface. Responding to a first operation by the user on the first interface, the electronic device displays multiple template options; each template option corresponds to an image processing animation template. Responding to a second operation by the user on the first template option, the electronic device displays a second interface; wherein the second interface is used to play the animation effect of the first animation template corresponding to the first template option. Responding to a third operation by the user on the second interface, the electronic device processes the first real-time image captured by the first camera and the second real-time image captured by the second camera using the first animation template to record a short film.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application. The original application has the application number 202110604950.5 and the original application date is May 31, 2021. The entire contents of the original application are incorporated herein by reference. Technical Field

[0002] This application relates to the field of photography technology, and more particularly to a video shooting method and electronic device. Background Technology

[0003] Currently, mobile phones and other electronic devices not only offer photo-taking capabilities but also video recording functions. However, in existing technology, video recording is typically limited by the frame's boundaries, requiring users to move the device to record dynamic videos. In reality, most users lack the professional skills to control their phone's viewfinder and record dynamic videos.

[0004] Therefore, there is an urgent need for a simple and convenient solution to achieve dynamic video recording, in order to reduce the difficulty of video shooting. Summary of the Invention

[0005] This application provides a video shooting method and electronic device that, in dual-lens recording scenarios, eliminates the need for the user to move the electronic device to control the framing, thus reducing the difficulty of shooting short films in dual-lens recording scenarios.

[0006] In a first aspect, embodiments of this application provide a video recording method, which is applied to an electronic device including multiple cameras. The electronic device displays a first interface; wherein the first interface is a viewfinder interface before the electronic device starts recording, and the first interface includes real-time images captured by two of the multiple cameras. In response to a first operation by a user on the first interface, the electronic device displays multiple template options on the first interface. The first operation is used to trigger the electronic device to record a short film, each template option corresponding to an image processing animation template, the animation template being used to process preview images captured by at least two of the multiple cameras and obtain corresponding animation effects. In response to a second operation by the user on the first template option among the multiple template options, the electronic device displays a second interface; wherein the second interface is used to play the animation effect of the first animation template corresponding to the first template option. In response to a third operation by the user on the second interface, the electronic device uses the first animation template to process a first real-time image captured by a first camera and a second real-time image captured by a second camera to record a short film. The first camera is one of the multiple cameras, and the second camera is one of the multiple cameras other than the first camera.

[0007] In summary, the video shooting method provided in this application embodiment can perform motion effect processing on the real-time images captured by the two cameras in a dual-lens recording scenario, based on the motion effect template selected by the user, to obtain a short film with animated effects. This enables the recording of short films in dual-lens recording scenarios, thereby allowing for the recording of rich dual-lens video content. Furthermore, it eliminates the need for complex operations such as user-controlled framing, reducing the difficulty of recording short films.

[0008] In one possible design of the first aspect, the above-mentioned processing of real-time images captured by the first camera and the second camera using the first motion effect template includes: the electronic device displaying a third interface. The third interface is the viewfinder interface before the electronic device starts recording, allowing recording preparation to be performed on this interface. The third interface includes a third real-time image captured by the first camera and a fourth real-time image captured by the second camera. The micro-movie recorded using the first motion effect template consists of multiple movie clips. The first motion effect template includes multiple motion effect sub-templates, with each movie clip corresponding to one of the multiple motion effect sub-templates. The electronic device receives a fourth operation from the user on the third interface, which triggers the electronic device to record a first movie clip, which is any one of the multiple movie clips. The first clip corresponds to the first motion effect sub-template. In response to the fourth operation, the electronic device displays a fourth interface. The fourth interface is the viewfinder interface where the electronic device is recording, and it includes a first preview image and a second preview image. The first preview image is obtained by the electronic device applying the first motion effect sub-template to the first real-time image, and the second preview image is obtained by the electronic device applying the first motion effect sub-template to the second real-time image.

[0009] In other words, the method in this embodiment allows for pre-recording preparation, thereby improving the recording quality of the micro-movie. Furthermore, the motion effect template includes multiple sub-templates, which can be used for motion effect processing in multiple movie clips. This results in micro-movies with richer animation effects. Moreover, during dual-lens video recording, the mobile phone can process the real-time images captured by the two cameras according to the user-selected motion effect template, and display the processed preview image in the recording viewfinder. This reduces the difficulty of recording videos with dynamic effects. It also allows for real-time presentation of the processed motion effect results to the user, facilitating real-time preview of the recording.

[0010] In another possible design of the first aspect, after the electronic device displays the fourth interface, it further includes: the electronic device responding to a first event by displaying a third interface; wherein the first event is the event of the completion of recording of the first movie clip.

[0011] In other words, by using the method of this embodiment, the user can be redirected to the third interface again after each movie segment is recorded, thus allowing for recording preparation before each movie segment is recorded. This is beneficial for further improving the recording quality of the micro-movie.

[0012] In another possible design approach for the first aspect, the third interface also includes a first window, which is used to play the animation effect corresponding to the first motion effect sub-template.

[0013] In other words, using the method of this embodiment, the animation effects of the corresponding motion effect sub-templates can be viewed during the recording preparation stage. This allows for more accurate framing adjustments based on the animation effects, thereby improving the recording quality.

[0014] In another possible design of the first aspect, each motion effect sub-template includes a first sub-template and a second sub-template; wherein the first sub-template is used by the electronic device to perform motion effect processing on a first real-time image, and the second sub-template is used by the electronic device to perform motion effect processing on a second real-time image.

[0015] In other words, the method described in this embodiment allows for the use of corresponding sub-templates for processing different cameras. This enables the processing of preview images captured by two cameras at the same time to achieve different animation effects, further improving the processing efficiency.

[0016] In another possible design of the first aspect, after processing the first real-time image captured by the first camera and the second real-time image captured by the second camera using the first motion effect template, the method further includes: the electronic device responding to a second event to save the first video file; wherein the second event is used to trigger the electronic device to save the processed video; the first video file includes multiple first video streams and multiple second video streams. Each of the multiple first video streams corresponds one-to-one with multiple movie clips, and each of the multiple second video streams corresponds one-to-one with multiple movie clips. Each first video stream includes multiple frames of first preview images processed from the corresponding movie clip, and each second video stream includes multiple frames of second preview images processed from the corresponding movie clip.

[0017] In other words, using the method of this embodiment, a video file of the short film can be generated after the short film recording is completed. This allows the recorded short film to be played later.

[0018] In another possible design of the first aspect, the third interface includes p first segment options; where p ≥ 0, p is a natural number, and p is the number of recorded movie segments; each first segment option corresponds to a recorded movie segment; the third interface also includes a first control. It further includes: the electronic device receiving a user's selection operation for a second segment option, the second segment option being one of the p first segment options; the second segment option corresponding to a second movie segment. In response to the user's selection operation for the second segment option, the electronic device plays multiple frames of first preview images and multiple frames of second preview images processed from the second movie segment in the third interface. In response to the user's click operation on the first control, the electronic device displays a first prompt message in the second interface; the first prompt message is used to prompt whether to reshoot the second movie segment. In response to a fifth operation by the user on the first prompt message, the electronic device displays a fourth interface to reshoot the second movie segment.

[0019] In other words, the method described in this embodiment allows for the re-recording of completed movie clips. This ensures the quality of each movie clip in the recorded short film. Furthermore, the user is prompted before re-recording to confirm whether to repeat the process, thus preventing accidental user errors.

[0020] In another possible design of the first aspect, the third interface includes q third segment options; where q ≥ 0, q is a natural number, and q is the number of unrecorded movie segments; each third segment option corresponds to one unrecorded movie segment; the third interface also includes a first control. Before the electronic device receives a fourth operation from the user on the third interface, the method further includes: the electronic device responding to a third event by selecting a fourth segment option; the fourth segment option is one of the q third segment options; the fourth segment option corresponds to a first movie segment. The fourth operation is a click operation by the user on the first control when the fourth segment option is selected.

[0021] In other words, the method in this embodiment allows the film clips to be recorded to be determined based on user selection, without being limited by the order of the clips. This makes the recording of micro-films more flexible.

[0022] In another possible design approach of the first aspect, after displaying the fourth interface, the electronic device further includes: the electronic device not responding to a sixth operation by the user on the fourth interface, the sixth operation being used to trigger the electronic device to swap the viewfinders of the first camera and the second camera in the fourth interface. The sixth operation includes a long press or a drag operation.

[0023] In other words, by using the method of this embodiment, inconsistencies between the preview and the animation effect of the corresponding animation sub-template caused by switching the viewfinder during animation processing can be avoided. This improves the consistency between the previews before and after.

[0024] In another possible design approach of the first aspect, different motion effect templates are applicable to different cameras; the method further includes: the electronic device responding to a third operation by the user on a second interface to activate a first camera and a second camera; the first camera and the second camera are cameras to which the first motion effect template is applicable.

[0025] In other words, the method described in this embodiment can improve the matching degree between the camera used and the camera suitable for the motion effect template. This can improve the effect of motion effect processing.

[0026] In another possible design of the first aspect, the first interface includes a second control, which is used to trigger the electronic device to display multiple template options; the first operation is a click operation or a long press operation on the second control.

[0027] In other words, by using the method of this embodiment, a second control can be set in the viewfinder before recording begins, making it easier to trigger the recording of a short film.

[0028] In another possible design of the first aspect, the first interface includes a third control; wherein, in response to a second operation by the user on a first template option among multiple template options, the electronic device displays a second interface, including: the electronic device selecting the first template option in response to a user's selection operation on the first template option among multiple template options. When the electronic device selects the first template option, the electronic device displays the second interface in response to a user's click operation on the third control.

[0029] In other words, in this embodiment, the animation template can only be triggered to play after the user selects the corresponding template option and then based on the user's click operation on the third control. This ensures that the animation template that the user actually needs to view is played.

[0030] Secondly, embodiments of this application provide an electronic device, which includes multiple cameras, a display screen, a memory, and one or more processors. The display screen, the memory, and the processor are coupled. The memory stores computer program code, which includes computer instructions. When the computer instructions are executed by the processor, the electronic device performs the following steps: displaying a first interface; wherein the first interface is a viewfinder interface before recording begins, and the first interface includes real-time images captured by two of the multiple cameras. In response to a first operation by the user on the first interface, multiple template options are displayed on the first interface; the first operation is used to trigger the recording of a short film, each template option corresponding to an image processing animation template, the animation template being used to process preview images captured by at least two of the multiple cameras and obtain corresponding animation effects. In response to a second operation by the user on the first template option among the multiple template options, a second interface is displayed; wherein the second interface is used to play the animation effect of the first animation template corresponding to the first template option. In response to a third operation by the user on the second interface, the first real-time image captured by the first camera and the second real-time image captured by the second camera are processed using the first animation template to record a short film; wherein the first camera is one of the multiple cameras, and the second camera is one of the multiple cameras other than the first camera.

[0031] In one possible design of the second aspect, when the computer instructions are executed by the processor, the electronic device further performs the following steps: displaying a third interface; wherein the third interface is a viewfinder interface before recording begins; the third interface includes a third real-time image captured by a first camera and a fourth real-time image captured by a second camera; the micro-movie recorded using a first motion effect template consists of multiple movie clips, the first motion effect template includes multiple motion effect sub-templates, and the multiple movie clips correspond one-to-one with the multiple motion effect sub-templates; receiving a fourth operation from the user on the third interface, the fourth operation being used to trigger the recording of a first movie clip, the first movie clip being any one of the multiple movie clips; the first clip corresponding to the first motion effect sub-template; and in response to the fourth operation, displaying a fourth interface; wherein the fourth interface is a viewfinder interface during recording, the fourth interface including a first preview image and a second preview image; the first preview image is obtained by applying motion effects to the first real-time image using the first motion effect sub-template, and the second preview image is obtained by applying motion effects to the second real-time image using the first motion effect sub-template.

[0032] In another possible design of the second aspect, when the computer instructions are executed by the processor, the electronic device further performs the following steps: in response to a first event, displaying a third interface; wherein the first event is the event of completion of recording of the first movie clip.

[0033] In another possible design approach in the second aspect, the third interface also includes a first window, which is used to play the animation effect corresponding to the first motion effect sub-template.

[0034] In another possible design approach of the second aspect, each motion effect sub-template includes a first sub-template and a second sub-template; wherein the first sub-template is used to perform motion effect processing on the first real-time image, and the second sub-template is used to perform motion effect processing on the second real-time image.

[0035] In another possible design of the second aspect, when the computer instructions are executed by the processor, the electronic device further performs the following steps: in response to a second event, saving a first video file; wherein the second event is used to trigger the saving of the processed video; the first video file includes multiple first video streams and multiple second video streams; the multiple first video streams correspond one-to-one with multiple movie clips, and the multiple second video streams correspond one-to-one with multiple movie clips; each first video stream includes multiple frames of first preview images processed from the corresponding movie clip, and each second video stream includes multiple frames of second preview images processed from the corresponding movie clip.

[0036] In another possible design approach for the second aspect, the third interface includes p first segment options; where p ≥ 0, p is a natural number, and p is the number of recorded movie segments; each first segment option corresponds to a recorded movie segment; the third interface also includes a first control;

[0037] When the computer instructions are executed by the processor, the electronic device further performs the following steps: receiving a user's selection operation for a second segment option, the second segment option being one of p first segment options; the second segment option corresponding to a second movie segment; in response to the user's selection operation for the second segment option, playing multiple frames of first preview images processed in the second movie segment and multiple frames of second preview images processed in the second movie segment in a third interface; in response to the user's click operation on a first control, displaying a first prompt message in a second interface; the first prompt message indicating whether to reshoot the second movie segment; in response to a fifth operation by the user on the first prompt message, displaying a fourth interface to reshoot the second movie segment.

[0038] In another possible design of the second aspect, the third interface includes q third segment options; where q≥0, q is a natural number, and q is the number of unrecorded movie segments; each third segment option corresponds to one unrecorded movie segment; the third interface also includes a first control;

[0039] When the computer instructions are executed by the processor, the electronic device further performs the following steps: in response to a third event, selecting a fourth segment option; the fourth segment option is one of q third segment options; the fourth segment option corresponds to a first movie segment; wherein, the fourth operation is a user's click operation on a first control when the fourth segment option is selected.

[0040] In another possible design of the second aspect, when the computer instructions are executed by the processor, the electronic device also performs the following steps: not responding to a sixth operation by the user on the fourth interface, the sixth operation being used to trigger an interchange of the viewfinder frames of the first camera and the second camera in the fourth interface.

[0041] In another possible design approach for the second aspect, the sixth operation includes a long press or a drag operation.

[0042] In another possible design approach in the second aspect, different motion effect templates are suitable for different cameras;

[0043] When the computer instructions are executed by the processor, the electronic device further performs the following steps: in response to a third operation by the user on the second interface, it activates the first camera and the second camera; the first camera and the second camera are cameras to which the first motion effect template is applicable.

[0044] In another possible design approach in the second aspect, the first interface includes a second control, which is used to trigger the display of multiple template options; the first operation is a click operation or a long press operation on the second control.

[0045] In another possible design approach for the second aspect, the first interface includes a third control;

[0046] When the computer instructions are executed by the processor, the electronic device further performs the following steps: in response to a user's selection of a first template option among multiple template options, the first template option is selected; if the first template option is selected, in response to a user's click on a third control, a second interface is displayed.

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

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

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

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

[0051] Figure 1a A schematic diagram of a dual-lens recording interface in portrait mode provided in an embodiment of this application;

[0052] Figure 1b A schematic diagram of a dual-lens recording interface in portrait mode provided in an embodiment of this application;

[0053] Figure 2 A schematic diagram of an entry interface for dual-lens video recording provided in an embodiment of this application;

[0054] Figure 3a A schematic diagram of another dual-lens recording interface provided in an embodiment of this application;

[0055] Figure 3b A schematic diagram of another dual-lens recording interface provided in an embodiment of this application;

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

[0057] Figure 5 A flowchart illustrating a video capture method provided in an embodiment of this application;

[0058] Figure 6 A schematic diagram of a mobile phone recording interface provided in an embodiment of this application;

[0059] Figure 7 A flowchart illustrating another video capture method provided in this application embodiment;

[0060] Figure 8A schematic diagram of another mobile phone recording interface provided in an embodiment of this application;

[0061] Figure 9 A flowchart illustrating another video capture method provided in this application embodiment;

[0062] Figure 10 A schematic diagram of another mobile phone recording interface provided in an embodiment of this application;

[0063] Figure 11 A schematic diagram of another mobile phone recording interface provided in an embodiment of this application;

[0064] Figure 12 A schematic diagram of another mobile phone recording interface provided in an embodiment of this application;

[0065] Figure 13 A flowchart illustrating another video capture method provided in this application embodiment;

[0066] Figure 14a This is a schematic diagram illustrating the structure of a video file provided in an embodiment of this application;

[0067] Figure 14b A flowchart illustrating another video capture method provided in this application embodiment;

[0068] Figure 15 A schematic diagram of another mobile phone recording interface provided in an embodiment of this application;

[0069] Figure 16 A schematic diagram of another mobile phone recording interface provided in an embodiment of this application;

[0070] Figure 17 A schematic diagram of another mobile phone recording interface provided in an embodiment of this application;

[0071] Figure 18 A schematic diagram of another mobile phone recording interface provided in an embodiment of this application;

[0072] Figure 19 A schematic diagram of a video saving interface provided in an embodiment of this application;

[0073] Figure 20 This is a schematic diagram illustrating the structure of another video file provided in an embodiment of this application;

[0074] Figure 21 A flowchart illustrating a video re-recording method provided in this application embodiment;

[0075] Figure 22 A schematic diagram of another mobile phone recording interface provided in an embodiment of this application;

[0076] Figure 23 A schematic diagram of another mobile phone recording interface provided in an embodiment of this application;

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

[0078] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this embodiment, unless otherwise stated, "a plurality of" means two or more.

[0079] The embodiments of this application will now be described in detail with reference to the accompanying drawings. The video shooting method provided in this application can be applied to dual-lens recording scenarios. Dual-lens recording refers to the method of simultaneously activating two cameras to record video. In a dual-lens recording scenario, the viewfinder displayed on the mobile phone shows two images captured by two cameras.

[0080] To facilitate understanding of the embodiments of this application, we will first take a mobile phone as an example of an electronic device, and combine it with... Figure 1a and Figure 1b The scenario of dual-lens recording is described.

[0081] The phone can display Figure 1a Image (a) shows a viewfinder 101, which includes a live image 102 captured by a first camera (such as a rear main camera) and a live image 103 captured by a second camera (such as a front camera). Alternatively, the phone may display... Figure 1a Image (b) shows a viewfinder 104, which includes a live image 105 captured by a first camera (such as a rear telephoto camera) and a live image 106 captured by a second camera (such as a rear wide-angle camera). Alternatively, the phone may display... Figure 1a The viewfinder 107 shown in (c) includes a real-time image 108 captured by a first camera (such as a rear main camera) and a real-time image 109 captured by a second camera (such as a front camera).

[0082] The above Figure 1a Viewfinder 101 is shown in (a) above. Figure 1a Viewfinder 104 shown in (b) and Figure 1a The viewfinders 107 shown in (c) are all in portrait mode.

[0083] In some embodiments, the mobile phone can also record video using dual lenses in landscape mode. In this embodiment, the mobile phone can display... Figure 1b Image (a) shows a viewfinder 113, which includes a live image 114 captured by a first camera (such as a rear main camera) and a live image 115 captured by a second camera (such as a front camera). Alternatively, the phone may display... Figure 1b Image (b) shows a viewfinder 116, which includes a live image 117 captured by a first camera (such as a rear telephoto camera) and a live image 118 captured by a second camera (such as a rear wide-angle camera). Alternatively, the phone may display... Figure 1b The viewfinder 119 shown in (c) includes a real-time image 120 captured by a first camera (such as a rear main camera) and a real-time image 121 captured by a second camera (such as a front camera).

[0084] In the following embodiments, the main format will be portrait mode (e.g., Figure 1a The embodiments of this application will be described in the form shown.

[0085] In dual-lens recording scenarios, the viewfinder may also include a mode identifier, which indicates the currently used preview camera (such as a front camera and a rear camera) and the display layout of the live image captured by the preview camera in the viewfinder.

[0086] For example, suppose the image of a person is a real-time image captured by the front-facing camera, and the image of a building is a real-time image captured by the rear-facing camera. Figure 1a The viewfinder 101 shown in (a) includes a mode identifier 110, which indicates that the currently used preview camera is a rear camera and a front camera, and that the live images captured by the rear camera and the live images captured by the front camera are displayed in an up-down layout in the viewfinder. Figure 1a The viewfinder 104 shown in (b) includes a mode identifier 111, which indicates that the currently used preview camera is one of two rear cameras (such as a rear telephoto camera and a rear wide-angle camera), and that the live images captured by the two rear cameras are displayed in an up-down layout in the viewfinder. Figure 1a The viewfinder 107 shown in (c) includes a mode identifier 112, which indicates that the currently used preview camera is a rear camera and a front camera, and that the live images captured by the front camera and the live images captured by the rear camera are displayed in a picture-in-picture layout in the viewfinder.

[0087] Furthermore, in this embodiment, the specific method for triggering dual-lens recording is not limited. In some embodiments, a control a is provided in the additional function menu interface (also referred to as the "More" menu interface) of the camera application. This control a is used to trigger the phone to start dual-lens recording. The phone can receive a user's click operation on the control a. In response to the user's click operation on the control a, the phone can display interface a. This interface a is the viewfinder interface before starting dual-lens recording.

[0088] For example, Figure 2 The additional function menu interface 201 shown includes control a 202. The mobile phone can receive user clicks on control a 202. In response to the user's click on control a 202, the mobile phone can display... Figure 1a The viewfinder 101 shown in (a) is the viewfinder before the start of dual-lens recording.

[0089] In other embodiments, the viewfinder of normal video recording includes a control b, which triggers the phone to display multiple mode options. Each mode option corresponds to a display layout (e.g., picture-in-picture layout). The phone can receive a user's click on the control b. In response to the user's click on the control b, the phone can display a mode selection window in the viewfinder of normal video recording. The phone can receive a user's selection of mode option a among the multiple mode options. In response to the user's selection of mode option a (e.g., a click), the phone can display interface a. This interface a is the viewfinder before starting dual-lens video recording. In this viewfinder before dual-lens video recording, the real-time image captured by the first camera and the real-time image captured by the second camera are displayed in the display layout a corresponding to mode option a. That is, in this embodiment, dual-lens video recording is integrated into normal video recording, and the recording can be switched to dual-lens video recording during normal video recording.

[0090] For example, Figure 3a The viewfinder 301 for normal video recording shown in (a) includes a control b 302. The mobile phone can receive user clicks on the control b 302. In response to the user's click on the control b 302, the mobile phone can display... Figure 3a(b) shows the viewfinder 303 for normal video recording. This viewfinder 303 includes multiple mode options: mode option 304, mode option 305, and mode option 306. Mode option 303 corresponds to a display layout where the live images captured by the front camera and the rear camera are arranged vertically; mode option 304 corresponds to a display layout where the live images captured by the two rear cameras are arranged vertically; and mode option 305 corresponds to a display layout where the live images captured by the front camera and the rear camera are arranged in a picture-in-picture format. The phone can receive a user's click on mode option 304, i.e., mode option a is mode option 304. In response to the user's click on mode option 304, the phone can display... Figure 3a Interface a 307 is shown in (c) above. In this interface a 307, the real-time image 308 captured by the rear camera and the real-time image 309 captured by the front camera are displayed in a vertically arranged layout.

[0091] In some embodiments, the camera application's tab bar includes a multi-lens recording tab. Triggering this multi-lens recording tab allows direct entry into dual-lens recording. Specifically, the camera application provides a multi-lens recording tab, and the phone can receive user triggering actions (such as tapping, long-pressing, etc.) on this tab. In response to the user's triggering action on the multi-lens recording tab, the phone can display interface a. This interface a is the viewfinder before starting dual-lens recording. In this way, dual-lens recording can be triggered via a separate tab within the camera application, avoiding functional compatibility issues with other tabs.

[0092] Taking the user's trigger action for the multi-camera recording tag as a click operation as an example. The camera application provides... Figure 3b The multi-camera recording tag 310 is shown in (a) above. The mobile phone can receive a user's click on the multi-camera recording tag 310. In response to the user's click on the multi-camera recording tag 310, the mobile phone can display... Figure 3b Interface a 311 is shown in (b) above. In this interface a 311, the real-time image 312 captured by the rear camera and the real-time image 313 captured by the front camera are displayed in a vertically arranged layout. At this time, dual-lens recording is initiated.

[0093] This application provides a video recording method applicable to electronic devices. The electronic device provides video recording functionality, specifically dual-lens recording. During dual-lens recording, the electronic device can apply motion effects to the images captured by the two cameras based on a user-selected motion effect template, thereby recording a short film with animated effects.

[0094] In summary, the video shooting method provided in this application embodiment can record micro-movies without relying on complex operations such as user control of electronic devices, thus reducing the difficulty of recording dynamic videos.

[0095] For example, the electronic device in this application embodiment may be a mobile phone, tablet computer, desktop, laptop, handheld computer, notebook computer, ultra-mobile personal computer (UMPC), netbook, as well as cellular phone, personal digital assistant (PDA), augmented reality (AR) / virtual reality (VR) device, etc., including the above-mentioned foldable screen. This application embodiment does not impose any special restrictions on the specific form of the electronic device.

[0096] Let's take a mobile phone as an example. Please refer to... Figure 4 This is a structural schematic diagram of a mobile phone 400 provided in an embodiment of this application. Figure 4 As shown, the electronic device may include a processor 410, an external memory interface 420, an internal memory 421, a universal serial bus (USB) interface 430, a charging management module 440, a power management module 441, a battery 442, an antenna 1, an antenna 2, a mobile communication module 450, a wireless communication module 460, an audio module 470, a speaker 470A, a receiver 470B, a microphone 470C, a headphone jack 470D, a sensor module 480, buttons 490, a motor 491, an indicator 492, a camera 493, a display screen 494, and a subscriber identification module (SIM) card interface 495, etc.

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

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

[0099] A controller can be the nerve center and command center of an electronic device. Based on the instruction opcode and timing signals, the controller generates operation control signals to control the fetching and execution of instructions.

[0100] The processor 410 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 410 is a cache memory. This memory can store instructions or data that the processor 410 has just used or that are used repeatedly. If the processor 410 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 410, and thus improves the efficiency of the system.

[0101] In some embodiments, the processor 410 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

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

[0103] The charging management module 440 receives charging input from a charger, which can be either a wireless or wired charger. The power management module 441 connects to the battery 442, the charging management module 440, and the processor 410. The power management module 441 receives input from the battery 442 and / or the charging management module 440, providing power to the processor 410, internal memory 421, external memory, display 494, camera 493, and wireless communication module 460, etc.

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

[0105] The mobile communication module 450 can provide solutions for wireless communication applications, including 2G / 3G / 4G / 5G, in electronic devices. The mobile communication module 450 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.

[0106] The wireless communication module 460 can provide solutions for wireless communication applications in electronic devices, 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), and infrared (IR) technologies.

[0107] In some embodiments, the wireless communication module 360 ​​may include an NFC chip, which may include an NFC controller (NFCC). The NFC chip is capable of signal amplification, analog-to-digital conversion, digital-to-analog conversion, and storage. The NFCC is responsible for the physical transmission of data via an antenna. The NFCC may be included in the NFC chip of the electronic device. The device host (DH) is responsible for the management of the NFCC, such as initialization, configuration, and power management. The DH may be included in the main chip of the electronic device or integrated with the processor of the electronic device.

[0108] In some embodiments, antenna 1 of the electronic device is coupled to mobile communication module 450, and antenna 2 is coupled to wireless communication module 460, enabling the electronic device to communicate with networks and other devices via wireless communication technology. The wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time-Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc.

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

[0110] Display screen 494 is used to display images, videos, etc. Display screen 494 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Mini LED, a MicroLED, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc.

[0111] Electronic devices can achieve shooting functions through an ISP, camera 493, video codec, GPU, display 494, and application processor. The ISP processes data fed back from the camera 493. For example, when taking a picture, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, and the camera's photosensitive element transmits the electrical signal to the ISP for processing, converting it into a visible image. The ISP can also perform algorithmic optimization of image noise, brightness, and skin tone. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, the ISP can be integrated into the camera 493.

[0112] Camera 493 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In some embodiments, the electronic device may include one or N cameras 493, where N is a positive integer greater than 1.

[0113] The external storage interface 420 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 410 through the external storage interface 420 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.

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

[0115] Electronic devices can implement audio functions through audio modules 470, speakers 470A, receivers 470B, microphones 470C, headphone jacks 470D, and application processors. Examples include music playback and recording.

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

[0117] The methods in the following embodiments can all be implemented in a mobile phone 400 with the above-described hardware structure, and the methods of the embodiments of this application are mainly described in conjunction with the dual-lens video recording scenario in portrait mode.

[0118] This application provides a video recording method applicable to mobile phones. The mobile phone includes at least multiple cameras and provides dual-lens recording functionality. Figure 5 As shown, the method includes S501-S504.

[0119] S501, Mobile phone display interface a, which is the viewfinder interface before the mobile phone starts recording. Interface a includes real-time images captured by camera a and camera b among multiple cameras.

[0120] Interface a can also be referred to as the first interface, and the same applies below. Camera a and camera b are two of a total of multiple cameras.

[0121] As explained above, the phone can display interface a in response to a user's click on control a. Alternatively, the phone can display interface a in response to a user's selection of mode option a from multiple mode options. Or, the phone can display interface a in response to a user's click on control b. Furthermore, interface a includes real-time images captured by both cameras. For example, Figure 3a Interface a 307 shown in (c) includes a real-time image 308 captured by camera a (such as a rear main camera) and a real-time image 309 captured by camera b (such as a front camera).

[0122] S502, In response to the user's operation a on interface a, the mobile phone displays multiple template options on interface a. This operation a is used to trigger the mobile phone to record a short film, and each template option corresponds to an image processing animation template. The animation template is used to process the preview images captured by at least two of the multiple cameras and obtain the corresponding animation effects.

[0123] Operation 'a' can also be called the first operation, and the same applies below.

[0124] Prior to S502, the mobile phone could receive user operations a on the interface a. Operation a could be a preset gesture a performed by the user on interface a (such as a swipe gesture or a long press gesture). Alternatively, interface a could include a control c, which triggers the phone to display multiple template options. Operation a is the user's triggering action on control c (such as a click or long press). Control c can also be referred to as a secondary control.

[0125] Taking operation 'a' as an example, where the user clicks on control 'c', Figure 6 Interface a 601 shown in (a) includes control c 602. The mobile phone can receive user clicks on control c 602. It should be noted that... Figure 6 The shape and position of control c602 shown in (a) are merely exemplary and are not limited to in actual implementation. For example, control c may also be displayed at the right or left edge of interface a. Furthermore, control c may also be circular or other shapes.

[0126] The motion effect templates are templates that simulate the dynamic effects of videos captured by a camera in various motion states. These motion states include pushing, pulling, panning, tilting, following, and / or flicking. Each motion effect template includes at least one motion effect for each motion state. To facilitate understanding of the motion effect templates, the shooting effects of the camera in pushing, pulling, panning, tilting, following, or flicking motion states are explained below:

[0127] 1. Push-in: A push-in is a shooting technique that uses a wide-angle shot to transition continuously. A push-in shot separates the subject from its environment and draws the viewer's attention to the subject or a detail of it.

[0128] 2. Pull: Pulling is the opposite of pushing. It reveals the subject from near to far, from partial to overall, making the subject or its details gradually smaller. Pulling emphasizes the relationship between the subject and its environment.

[0129] 3. Panning: Panning refers to keeping the camera stationary while changing its angle. This can be left / right, up / down, diagonal, or rotating. Its purpose is to show different parts of the subject, demonstrate its scale, or survey the environment. The most common type of panning is left / right, frequently used in television programs.

[0130] 4. Moving: Moving is short for "moving," referring to the camera moving horizontally in various directions while simultaneously filming. Moving shots require a higher level of skill and often necessitate specialized equipment. Moving shots can create a visual effect of surveying or displaying; if the subject is in motion, moving shots can produce a following visual effect on the screen.

[0131] 5. Following: Following refers to shooting while following the subject, meaning the camera always follows the subject to keep it in the frame. Its purpose is to better represent moving objects.

[0132] 6. Panning: Panning is actually a type of shaking. Specifically, at the end of one shot, the camera abruptly turns in another direction. During the panning, the image becomes very blurry, and a new shot only appears when the camera stabilizes. Its purpose is to depict rapid changes in things, time, or space, creating a sense of urgency in the viewer.

[0133] In S502, taking operation a as an example where the user clicks on control c, the phone responds to the user's action... Figure 6 The click operation of control c 602 in interface a 601 shown in (a) can display Figure 6(b) shows interface a 603. Interface a 603 includes four template options: template option 604, template option 605, template option 606, and template option 607. Among them, template option 604 corresponds to the animation template for "Friends Gathering", template option 605 corresponds to the animation template for "A Warm Moment", template option 606 corresponds to the animation template for "Intimate Time", and template option 607 corresponds to the animation template for "Pleasant Moment".

[0134] It should be noted that Figure 6 The number, position, and format of the template options shown in (b) are exemplary and are not limited to in actual implementation. For example, multiple option templates can also be displayed in the middle of interface a. Furthermore, multiple option templates can be arranged vertically. Also, each template option can have a different cover page.

[0135] In some embodiments, the multiple template options include multiple template option a and multiple template option b, wherein each template option a corresponds to a motion effect template for image processing in single-lens video recording, and each template option b corresponds to a motion effect template for image processing in dual-lens video recording. It should be noted that... Figure 3b (a) and Figure 3b After entering the dual-lens recording interface as shown in (b), the multiple template options displayed usually only include the motion effect template for dual-lens recording.

[0136] In this embodiment, to facilitate users in selecting motion effect templates that match the dual-lens recording scene, such as... Figure 7 As shown, the method further includes S701:

[0137] S701: The mobile phone locates multiple template options b from a variety of template options. Each template option b corresponds to a motion effect template for multi-camera video motion processing.

[0138] The mobile phone can locate multiple template options b based on the scene attributes of each template option. The scene attribute indicates the scene to which the template option is applicable. Applicable scenes include single-lens recording scenes and dual-lens recording scenes. Specifically, if the scene attribute of a template option is the first attribute, then the template option is located as template option a. If the scene attribute of a template option is the second attribute, then the template option is located as template option b. For example, if the scene attribute of an option template is 1, then the template option is located as template option b. That is, the second attribute is 1.

[0139] Furthermore, S502 further includes S702:

[0140] S702, the mobile phone responds to operation a, displaying multiple template options in interface a. This operation a is used to trigger the display of template options. These multiple template options are multiple template options b.

[0141] Specifically, starting with the first template option b, multiple template options b are displayed consecutively.

[0142] For example, Figure 6 The four template options included in interface a 603 shown in (b) are all template options b applicable to dual-lens recording scenarios. Furthermore, template option 604 is the first template option b located, template option 605 is the second template option b located, template option 606 is the third template option b located, and template option 607 is the fourth template option b located.

[0143] In this embodiment, for dual-lens recording scenarios, template option b is displayed for the user to select. This allows the displayed template options to be adapted to the scene, thus facilitating the quick selection of a matching template option later.

[0144] In other embodiments, to facilitate differentiation of the scenarios to which the template options are applicable (such as single-camera recording scenarios or dual-lens recording scenarios), the mobile phone displays a scene identifier at a preset position of the template option when displaying multiple template options. The scene identifier indicates the scenario to which the template option is applicable.

[0145] In other embodiments, the phone responds to operation 'a' by displaying multiple template options on interface 'a'. Simultaneously, multiple function icons and controls on interface 'a' are hidden to simplify the elements in the interface and facilitate the selection of template options. For example, compared to Figure 6 Interface a 601 is shown in (a) in the figure: Figure 6 Interface a 603 shown in (b) has the zoom adjustment control 608, beauty control 609, mode identifier 610, flash icon 611, filter icon 612, settings icon 613 and lens switching control 614 hidden.

[0146] S503, the mobile phone responds to the user's operation b on template option c among multiple template options, and displays interface b. This operation b is used to trigger the mobile phone to play an animation effect. Interface b is used to play the animation effect of the animation template a corresponding to template option c.

[0147] Among them, template option c can also be called the first template option, operation b can also be called the second operation, interface b can also be called the second interface, and animation template a can also be called the first animation template.

[0148] Prior to S503, the mobile phone could receive user operations b on interface a.

[0149] In some embodiments, operation b can be a user's selection operation on template option c (such as a click operation, a long press operation, etc.). Taking operation b as a user's click operation on template option c as an example, the mobile phone can receive user input... Figure 8 The interface shown is a 801 interface, showing the click operation of the template option c 802.

[0150] In other embodiments, the user's selection of template option c only triggers the phone to select animation template a. Then, the phone displays interface b in response to the user's preset operation a on interface a. For example, the preset operation a could be a preset gesture b on interface a (such as a swipe gesture). Alternatively, the preset operation a could be a long press on an area of ​​interface a where no controls or icons are displayed. Or, interface a could include a control d, which triggers the phone to play animation effects, and the preset operation a could be the user's trigger operation on control d (such as a click, long press, etc.). Control d can also be referred to as a third control.

[0151] Taking operation b as an example, which includes the user's selection of template option c and clicking on control d. Figure 9 As shown, S503 includes S901-S904:

[0152] S901, The mobile phone receives the user's selection of template option c. This template option c is one of multiple template options. Template option c corresponds to animation template a.

[0153] S902. In response to the selection operation, the mobile phone selects template option c and highlights template option c in interface a.

[0154] For example, a selection action is a user's click on template option c. The mobile phone can receive user input... Figure 10 (a) shows the click operation of template option c 1002 in interface a 1001. This click operation triggers the phone to select the animation template "A Warm Moment," which is animation template a. The animation template for "A Warm Moment" is the animation template corresponding to template option c 1002. The phone responds to the user's click. Figure 10 (a) shows the template options in interface a 1001 and the click operation in c 1002, which can display... Figure 10 (b) shows interface a 1003, in which template option c 1004 is highlighted.

[0155] It should be noted that by default, the template option highlighted in interface a is the one that appears first or in the middle of the interface. For example, Figure 6Interface a 603 shown in (b) includes four template options. The template option 604, which is highlighted by default, is the first one. Therefore, in one specific implementation, if the animation template a is the animation template corresponding to the first or middle template option, S901 and S902 can be omitted.

[0156] S903, The mobile phone receives the user's click operation on control d.

[0157] For example, a mobile phone can receive user input... Figure 10 (b) shows the click operation of control d 1005 in interface a 1003. This click operation is used to trigger the phone to play the animation template of "A Warm Moment," that is, the animation template of "A Warm Moment" is animation template a. The animation template of "A Warm Moment" is the animation template corresponding to template option c 1004. It should be noted that... Figure 10 The shape and position of control d 1005 shown in (b) are exemplary and are not limited to in actual implementation. For example, the shape of control d could also be a rounded rectangle containing a camera icon. Furthermore, control d could also be placed in the lower right corner of interface a.

[0158] S904: The mobile phone responds to the user's click operation on control d and displays interface b.

[0159] Therefore, in this embodiment, the mobile phone responds to the user's selection of template option c by selecting the corresponding animation template a. Then, the mobile phone can trigger the playback of animation template a based on the user's further click on control d in interface a. In this way, the playback of animation template a is triggered only after the user accurately selects the corresponding template option, thereby improving the orderly triggering of playback.

[0160] In S503, assume operation b includes the user's selection of template option c and click on control d. The mobile phone responds to the user's actions... Figure 10 The click operation of control d 1005 shown in (b) can display Figure 11 (a) shows interface b 1101. Interface b 1101 includes window a 1102. Window a 1102 is used to play animation template a.

[0161] It should be understood that Figure 11 The interface b shown in (a) is merely an example. This interface b is obtained by adding a mask (such as a gray mask) over the live image in interface a, displaying multiple template options, controls d, and other interface elements on the mask, and displaying window a on the mask. However, in actual implementation, it is not limited to this.

[0162] In some embodiments, interface b may be a viewfinder interface before dual-lens recording begins. Unlike interface a, interface b includes window a. For example, interface b may be... Figure 11 (b) shows interface b 1103. Interface b 1103 includes window a 1104, which is used to play animation template a.

[0163] In other embodiments, interface b may be an interface with a preset background. For example, the preset background may be a solid color background. Figure 11 Interface b 1105 shown in (c) is a pure black background interface. This interface b 1105 includes window a 1106, which is used to play the animation template a.

[0164] It should be understood that the above Figure 11 (a) shows window a 1102. Figure 11 (b) shows window a 1104 and Figure 11 The shape and position of window a 1106 shown in (c) are merely exemplary. In actual implementation, it is not limited to this. In some embodiments, window a can be a full-screen window. This allows the motion effect template to be reproduced one-to-one during playback. In other embodiments, the shape of window a is adapted to the screen orientation to which the motion effect template a is applicable. This facilitates instructing the user to adjust the screen orientation. For example, if the motion effect template a is suitable for motion processing of video recorded in landscape mode, then the shape of window a is a rectangle with a width greater than its height. As another example, if the motion effect template a is suitable for motion processing of video recorded in portrait mode, then the shape of window a is a rectangle with a width greater than its height.

[0165] In some embodiments, window a includes a first sub-window and a second sub-window, wherein the first sub-window is used to play sub-template a, and the second sub-window is used to play sub-template b. The display layout of the first and second sub-windows matches the display layout applicable to animation template a. This makes it easier to clearly define the display layout applicable to animation template a. Sub-template a can also be referred to as the first sub-template, and sub-template b can also be referred to as the second sub-template.

[0166] In this embodiment, before displaying interface b, the mobile phone detects the display layout b to which the animation template a is applicable. Display layout b includes a top-bottom display layout, a left-right display layout, a landscape picture-in-picture display layout, or a portrait picture-in-picture display layout. Then, S503 further includes: the mobile phone responding to operation b and displaying interface b. Interface b includes window a, which includes a first sub-window and a second sub-window, both displayed in a first display layout.

[0167] For example, in response to a user's click on control d 1005 in interface a 1003 shown in (b) of 10, the mobile phone can display... Figure 11 (a) shows interface b 1101, which includes window a 1102. Window a 1102 includes a first sub-window 1107 and a second sub-window 1108, wherein the first sub-window 1107 and the second sub-window 1108 are displayed in a left-right layout, indicating that... Figure 10 The animation template corresponding to template option c 1004 in (b) is suitable for scenarios where the preview streams of two cameras are displayed in a horizontal layout in landscape mode.

[0168] In some embodiments, interface b also includes multiple template options, allowing the user to reselect animation template a within interface b. This eliminates the need to return to interface a, allowing the user to continue switching animation templates within interface b. For example, Figure 11 Interface b 1101 shown in (a) includes multiple template options, namely: template option 1109, template option 1110, template option 1111 and template option 1112.

[0169] S504. In response to the user's operation c on interface b, the mobile phone uses animation template a to process the real-time image a captured by camera c and the real-time image b captured by camera d to record a short film. Here, camera c is one of a plurality of cameras, and camera d is one of the plurality of cameras other than camera c.

[0170] Among them, operation c can also be called the third operation, camera c can also be called the first camera, real-time image a can also be called the first real-time image, camera d can also be called the second camera, and real-time image b can also be called the second real-time image.

[0171] Prior to S504, the mobile phone could receive user operations c on interface b. Operation c could be a preset gesture c performed by the user on interface b. For example, the preset gesture c could be a right-to-left swipe gesture on interface b. Alternatively, interface b could include a control e, which is used to trigger the phone to start recording a short film. Operation c could be a trigger operation on control e (such as a tap, long press, etc.). For example, operation c could be a user's... Figure 12 (a) shows the click operation of control e 1202 in interface b 1201.

[0172] When a mobile phone responds to a user's operation c on interface b, it can use animation template a to create motion effects, thus completing the recording of a short film. For example, motion effects can be applied to real-time images a captured by camera c and real-time images b captured by camera d to achieve the animation effects of animation template a.

[0173] In some embodiments, different motion effect templates are suitable for applying motion effects to preview images captured by different cameras. In short, different motion effect templates are applicable to different cameras. Camera c and camera d are the two cameras for which motion effect template a is applicable.

[0174] Based on this, such as Figure 13 As shown, in this embodiment, S504 further includes S1301 and S1302:

[0175] S1301, The mobile phone responds to the user's operation c on the interface b and activates camera c and camera d according to the camera applicable to the animation template a.

[0176] Among them, the cameras c and d applicable to the motion effect template a can be any combination of any two cameras from the following: front camera, rear main camera, rear wide-angle camera, rear ultra-wide-angle camera, and rear telephoto camera.

[0177] Normally, a mobile phone can query the attribute information of animation template 'a' to determine the applicable camera.

[0178] S1302. After activating cameras c and d, the mobile phone uses motion effect template a to process the real-time image a captured by camera c and the real-time image b captured by camera d to record a short film.

[0179] This improves the compatibility between the camera used and the camera suitable for the motion effect template, thereby enhancing the effect of motion processing.

[0180] It should be noted that in this embodiment, camera c may be the same as camera a or camera b, or it may be different from both camera a and camera b; camera c may be the same as camera a or camera b, or it may be different from both camera a and camera b.

[0181] In other embodiments, cameras c and d are cameras that are already turned on before recording begins. For example, camera c is camera a that is already turned on, and camera d is camera b that is already turned on. Thus, upon receiving operation c, the two already turned-on cameras can be directly used as camera c and camera d respectively. This reduces the process of determining the cameras and allows for faster entry into motion effect processing.

[0182] In summary, the video shooting method provided in this application embodiment can perform motion effect processing on the real-time images captured by the two cameras in a dual-lens recording scenario, based on the motion effect template selected by the user, to obtain a short film with animated effects. This enables the recording of short films in dual-lens recording scenarios, thereby allowing for the recording of rich dual-lens video content. Furthermore, it eliminates the need for complex operations such as user-controlled framing, reducing the difficulty of recording short films.

[0183] In explaining the embodiments below, it should be noted that: typically, a short film includes multiple film clips. Correspondingly, motion effect template 'a' includes multiple motion effect sub-templates, with each film clip corresponding to one of the multiple motion effect sub-templates. Each motion effect sub-template is used for motion effect processing of real-time images captured in the corresponding film clip. This allows for the creation of short films with richer animation effects.

[0184] In some embodiments, to selectively apply motion effects to real-time images captured by different cameras, each motion effect sub-template further includes sub-template a and sub-template b. Sub-template a is used by the phone to apply motion effects to real-time image a, and sub-template b is used by the phone to apply motion effects to real-time image b. In this way, appropriate sub-templates can be used for processing different cameras. This allows for different animation effects to be obtained from processing preview images at the same time, further improving the processing effect. Sub-template a can also be referred to as the first sub-template, and sub-template b can also be referred to as the second sub-template.

[0185] For example, motion effect template 'a' includes n motion effect sub-templates, namely the 1st motion effect sub-template, the 2nd motion effect sub-template, ..., the nth motion effect sub-template. Each motion effect sub-template includes sub-template 'a' and sub-template 'b'. Assume each movie clip is 2.5 seconds long. Figure 14aAs shown, the first motion effect sub-template is used for motion effect processing in the first movie clip (such as the first 2.5 seconds). Specifically, sub-template a in the first motion effect sub-template is used for motion effect processing of the real-time image a captured by camera c in the first movie clip, and sub-template b in the first motion effect sub-template is used for motion effect processing of the real-time image b captured by camera d in the first movie clip. Similarly, the second motion effect sub-template is used for motion effects processing in the second movie clip (e.g., the second 2.5-second clip). Specifically, sub-template a in the second motion effect sub-template is used for motion effects processing of the real-time image a captured by camera c in the second movie clip, sub-template b in the second motion effect sub-template is used for motion effects processing of the real-time image b captured by camera d in the second movie clip, and so on. The nth motion effect sub-template is used for motion effects processing in the nth movie clip (e.g., the nth 2.5-second clip). Specifically, sub-template a in the nth motion effect sub-template is used for motion effects processing of the real-time image a captured by camera c in the nth movie clip, sub-template b in the nth motion effect sub-template is used for motion effects processing of the real-time image b captured by camera d in the nth movie clip.

[0186] In other embodiments, such as Figure 14b As shown, S504 of the aforementioned embodiment further includes S1401-S1402, and after S504, it also includes S1403:

[0187] S1401, In response to event a, the mobile phone displays interface c. This interface c is the viewfinder before dual-camera recording begins. Interface c includes the live image c captured by camera c and the live image d captured by camera d. Interface c also includes clip options for multiple movie clips.

[0188] Here, interface c can also be called the third interface, real-time image c can be called the third real-time image, and real-time image d can be called the fourth real-time image. It should be noted that there is no essential difference between real-time image c and real-time image a; both are real-time images captured by camera c, only at different times. Real-time image a is captured during the recording of the movie clip, while real-time image c is captured during the preparation for recording the movie clip (i.e., when interface c is displayed). Similarly, there is no essential difference between real-time image d and real-time image b, for the same reason.

[0189] In this embodiment, interface c represents the viewfinder before dual-camera recording begins. That is, recording has not actually started while interface c is displayed. Therefore, during the display of interface c, the phone can adjust the viewfinder based on the user's movements. Furthermore, these adjustments to the viewfinder are not recorded in the video. In this embodiment, this process of adjusting the viewfinder is referred to as recording preparation.

[0190] Here, it should be noted that there are two scenarios for displaying interface c. First, the phone responds to the user's operation c on interface b and jumps from interface b to interface c. That is, in the first scenario, event a is the user's operation c on interface b. Second, the phone responds to the event that the k-th movie clip recording is complete and jumps back to interface c. Here, 1 ≤ k ≤ n, and n is the number of motion effect sub-templates included in motion effect template a. Both k and n are positive integers. That is, in the second scenario, event a is the event that the k-th movie clip recording is complete; this event a can also be called the first event. The following will explain S1401 for each of these two scenarios.

[0191] In the first scenario, the user navigates from interface b to interface c. In this case, event a can be the user's action c on interface b, which triggers the phone to begin recording.

[0192] Prior to 1401, the mobile phone could receive user operations c on interface b.

[0193] Here, operation c can be a preset gesture c of the user on interface b. For example, the preset gesture c is a swipe gesture from right to left on interface b. Alternatively, interface b includes a control e, which is used to trigger the phone to start recording. Operation c can be a triggering operation on control e (such as a click operation, a long press operation, etc.). For example, operation c can be a user's... Figure 12 (a) shows the click operation of control e 1202 in interface b 1201.

[0194] For example, the mobile phone responds to the user's... Figure 12 The click operation of control e 1202 in interface b 1201 shown in (a) can display Figure 12 (b) shows interface c 1203, which is the viewfinder interface before dual-camera recording begins. Interface c 1203 includes a live image c 1204 captured by camera c (e.g., a rear camera) and a live image d 1205 captured by camera d (e.g., a front camera). Interface c 1203 also includes five clip options for movie segments: clip option 1206, clip option 1207, clip option 1208, clip option 1209, and clip option 1210.

[0195] It should be understood that Figure 12 The shape, number, and position of the fragment options shown in (b) are merely illustrative. In actual implementation, they are not limited to these. For example, the fragment duration (e.g., 2.5s) may not be displayed in the fragment options. Also, fragment options may be circular, square, or other shapes. The number of fragment options varies depending on the number of animation sub-templates included in animation template a.

[0196] In the second scenario, after the k-th (1≤k≤n, k is a positive integer) movie clip is recorded, the program returns to interface c. In this case, event a can be the event indicating the completion of the k-th movie clip recording. For example, event a is triggered when the countdown for recording the k-th movie clip (e.g., 2.5s) ends. The k-th movie clip recorded each time can also be referred to as the first movie clip.

[0197] Prior to S1401, the phone could detect whether the recording countdown for the k-th movie clip had ended. If the recording countdown ended, interface c would be displayed.

[0198] In this scenario, when interface c is displayed, k movie clips have been recorded. In some embodiments, to distinguish between recorded and incomplete movie clips, clip options a and b are displayed separately in interface c. Each clip option a corresponds to a recorded movie clip, and each clip option b corresponds to an incomplete movie clip. Specifically, interface c includes p clip options a and q clip options b. p ≥ 0, q ≥ 0, and p and q are natural numbers. Typically, p = k, and q = nk. Clip option a can also be called the first clip option, and clip option b can also be called the third clip option.

[0199] In one specific implementation, clip option a includes a clip cover, while clip option b does not, to distinguish between film clips that have been recorded and those that have not.

[0200] For example, if k=1, the phone can display... Figure 15 The interface c 1501 is shown in (a) of the diagram. In this interface c 1501, the segment option a 1502 that points to the first movie segment displays a cover, while the other segment options do not display covers.

[0201] For example, if k=2, the phone can display... Figure 15 The interface c 1503 is shown in (b) of the diagram. In this interface c 1503, the segment option a 1504 pointing to the first movie segment and the segment option a 1505 pointing to the second movie segment both display covers, while the other segment options do not display covers.

[0202] For example, if k=5, the phone can display... Figure 15 (c) shows interface c 1506. In this interface c 1506, all fragment options are fragment option a, and correspondingly, fragment options a 1507, a 1508, a 1509, a 1510, and a 1511 all display a cover.

[0203] It should be noted that the cover image can be selected from the video frames included in the movie clip pointed to by the clip option a. For example, the cover image could be the first frame preview image or the last frame preview image of the corresponding movie clip.

[0204] It should be noted that the above two situations occur sequentially during the recording of the micro-movie. The first situation corresponds to the first time the micro-movie is entered into interface c during the recording process, and the second situation corresponds to the second time the micro-movie is entered into interface c during the recording process.

[0205] In some embodiments of the two scenarios described above, interface c also includes window b, which is used to play the animation effects of each animation sub-template in animation template a. Specifically, window b plays the animation effects of the animation sub-template corresponding to the movie clip to be recorded (such as the first animation sub-template). This facilitates adjusting the framing of the movie clip to be recorded during the recording preparation stage by referring to the animation effects played in window b. Window b can also be referred to as the first window.

[0206] For example, such as Figure 15 As shown in (a), the second clip option is currently selected, which means that the second movie clip will be recorded. Therefore, the animation effect of the motion effect sub-template corresponding to the first movie clip is played in window b 1602 in interface c 1601.

[0207] It should be noted that once all movie clips have been recorded, there is no need to adjust the framing, and therefore window b will no longer be displayed in interface c. For example, Figure 15 The interface c shown in (c) does not include window b in 1506.

[0208] Furthermore, in this embodiment, the mobile phone can hide window b in response to the user's closing operation. This simplifies the interface elements and is more conducive to previewing. For example, the mobile phone can hide window b in response to the user's closing operation. Figure 16 Clicking the close button "x" in the upper right corner of window b 1602 in interface c1601 (a) will display... Figure 16 (b) shows interface c1603, in which a hidden identifier 1604 is present. This hidden identifier 1604 is used to trigger the restoration of window b1602. That is, window b1602 is hidden by this hidden identifier 1604.

[0209] After the phone displays interface c, recording preparation can be carried out on interface c. Once preparation is complete, dual-camera recording can be triggered. Multiple movie clips are recorded sequentially, and the real-time images captured in each movie clip are processed with motion effects using various motion effect sub-templates. Specifically, for the k-th movie clip, the recording process is as follows (S1402):

[0210] S1402, The mobile phone responds to the user's operation d on interface c and displays interface d. This operation d is used to trigger the mobile phone to start recording the k-th movie clip. The k-th movie clip is any one of multiple movie clips. The k-th movie clip corresponds to the first motion effect sub-template. This interface d is the viewfinder interface of the mobile phone recording video, and interface d includes preview image a and preview image b. Preview image a is obtained by the mobile phone using the first motion effect sub-template to perform motion effect processing on the real-time image a captured by camera c, and preview image b is obtained by the mobile phone using the first motion effect sub-template to perform motion effect processing on the real-time image b captured by camera d.

[0211] Here, operation d can also be called the fourth operation, interface d can also be called the fourth interface, the kth movie clip can also be called the first movie clip, preview image a can also be called the first preview image, and preview image b can also be called the second preview image.

[0212] Before S1402, the phone needs to determine the k-th movie segment to be recorded. Specifically, in response to event b, the phone selects segment option c. Segment option c is one of q segment options b. Segment option c corresponds to an unfinished movie segment, i.e., the k-th movie segment. Event b can also be called the third event, and segment option c can also be called the fourth segment option.

[0213] In some embodiments, the k-th movie clip can be automatically selected by the phone. That is, event b is the event where the phone automatically selects clip option c. For example, the phone selects the 1st, 2nd, ... nth movie clip in sequence from front to back as the k-th movie clip to be recorded. The corresponding clip option c is then highlighted in interface c. In this way, the movie clips can be recorded sequentially, ensuring that the recording timeline matches the order of the movie clips.

[0214] In this embodiment, operation d can be a preset gesture c of the user on the interface c. For example, the preset gesture c is... Figure 16 (b) shows an upward swipe gesture in interface c 1603. Alternatively, interface c may include a control f that triggers the phone to start dual-camera recording. Operation d is a triggering operation on control f (such as a tap, long press, etc.). For example, operation d could be a user action on... Figure 16 (b) shows the click operation of control f 1605 in interface c 1603. This control f can also be called the first control.

[0215] In other embodiments, the k-th movie clip is manually selected by the user. That is, event b can be a user's manual selection of clip option c. For example, in response to the user's selection of the third clip option (i.e., clip option c is the third clip option), the phone can determine that the k-th movie clip to be recorded is the third movie clip.

[0216] In this embodiment, operation d can be a user's selection of fragment option c. Alternatively, operation d can be a preset gesture c performed by the user on interface c when fragment option c is selected. For example, the preset gesture c is... Figure 16 (b) shows the bottom-up swipe gesture in interface c 1603. Alternatively, interface c includes control f, which triggers the phone to start dual-camera recording. Operation d is the triggering operation for control f (such as a click, long press, etc.).

[0217] In S1402, for example, k=1, the mobile phone responds to the user's input. Figure 16 (b) shows the click operation of control f1605 in interface c1603, displaying... Figure 17 The interface d 1701 is shown. This interface d 1701 includes preview image a 1702 and preview image b 1703. Preview image a 1702 is obtained by the phone applying motion effects to the real-time image a captured by camera c based on sub-template a in the first motion effect sub-template; preview image b 1703 is obtained by the phone applying motion effects to the real-time image b captured by camera d based on sub-template b in the first motion effect sub-template.

[0218] In this example, preview images a and b displayed in interface d are both preview images after animation processing. This allows the user to view the animation effects in real-time from interface d during recording.

[0219] In some embodiments, the interface d also includes a prompt message a, which provides tips for recording dynamic videos. For example, Figure 17 The interface d 1701 shown includes a prompt message a 1704, which states: "Automatically record dynamic video without the user moving the phone."

[0220] In some embodiments, interface d also includes a countdown timer for the recording of the k-th movie segment. This clearly indicates the remaining recording time for the k-th movie segment.

[0221] Under normal circumstances, during dual-lens recording, the phone can respond to the user's operation 'f' to swap the viewfinder frames of the two cameras in the viewfinder, thus enabling flexible real-time image switching. Operation 'f' can also be referred to as the sixth operation.

[0222] However, in some embodiments of this application, to ensure that the preview in interface d is completely consistent with the animation effect of the motion effect sub-template corresponding to the k-th movie clip, the mobile phone blocks the user's operation f on interface d. This operation f is used to trigger the mobile phone to swap the viewfinders of camera c and camera d in interface d. In other words, the mobile phone does not respond to the user's operation f on interface d. This avoids inconsistencies between the preview and the animation effect of the motion effect sub-template corresponding to the k-th movie clip due to the swapping during motion effect processing, thereby improving the consistency of the previews before and after.

[0223] Here, operation f can be a double-click operation on preview image a or preview image b, or a drag operation on preview image a or preview image b. Taking a double-click operation on preview image a or preview image b as an example, the phone does not respond to the user's input. Figure 17 The double-click operation of preview image a 1702 or preview image b 1703 in the interface d 1701 shown.

[0224] When the countdown for recording the kth movie clip ends, event a is triggered, which returns to S1401 and displays interface c. Then, the phone responds to the user's operation d on interface c, displays interface d, and begins recording the next movie clip. This cycle repeats until all n movie clips are recorded, at which point the loop ends.

[0225] To facilitate understanding of this loop process, the following example, using n=5 and the method of selecting segment options sequentially on a mobile phone, will specifically illustrate the process of S1401-S1402:

[0226] Recording of the first movie clip: The phone responds to the user's input. Figure 12 (a) shows the click operation of control d 1202 in interface b 1201, which displays... Figure 12 Interface c 1203, shown in (b) of the diagram, is now in preparation for recording the first movie clip. The phone then responds to the user's input... Figure 12 (b) shows the click operation of control f in interface c 1203, which displays... Figure 17 The interface shown is d 1701. Recording of the first movie clip begins at this point and continues until the 2.5-second countdown ends, at which point the recording of the first movie clip is complete.

[0227] Recording the second movie clip: The phone responded to the end of the 2.5-second recording countdown for the first movie clip, displaying... Figure 15 Interface c 1501, shown in (a) above, is now in preparation for recording the second movie clip. The phone then responds to the user's input... Figure 15 (a) shows the click operation of control f in interface c 1501, which displays... Figure 17 The interface shown is d 1701. Recording of the second movie clip will then begin and continue until the 2.5-second countdown ends, at which point the recording of the second movie clip will be complete.

[0228] Recording the third movie clip: The phone responded that the 2.5-second countdown for recording the second movie clip had ended, and displayed... Figure 15 Interface c 1503, shown in (b) of the diagram, is now in preparation for recording the third movie clip. The phone then responds to the user's input... Figure 15 (b) shows the click operation of control f in interface c 1503, which displays... Figure 17 The interface shown is d 1701. Recording of the third movie clip begins now and continues until the 2.5-second countdown ends, at which point the recording of the third movie clip is complete.

[0229] This process repeats until the recording of the fifth movie clip is complete. The phone then displays a message indicating the 2.5-second countdown for the fifth movie clip has ended. Figure 15 Interface c 1506 is shown in (c) in the figure.

[0230] S1403, The mobile phone responds to event c and generates video file a. Event c is used to trigger the mobile phone to save a video with dynamic effects. The video file a includes n segments of first video stream and n segments of second video stream, wherein the k-th segment of the first video stream includes multi-frame preview images a processed from the k-th movie segment, and the k-th segment of the second video stream includes multi-frame preview images b processed from the k-th movie segment.

[0231] Event c can also be called the second event, and video file a can also be called the first video file.

[0232] Prior to S1403, the mobile phone could receive event c. This event c could be an event automatically triggered by the mobile phone. For example, event a would be triggered after all n movie clips have been recorded. Alternatively, event c would be triggered if the user does not interact with the interface c within a preset time after all n movie clips have been recorded.

[0233] Alternatively, event c can also be a user-triggered event. For example, after all n movie clips have been recorded, the phone's interface c includes a control g, which triggers the phone to save the video with motion effects. Event c can be a user action that triggers the control g (such as a click, long press, etc.). As another example, after all n movie clips have been recorded, the phone's interface c includes a control h, which triggers the phone to display controls j and j' on interface c. Control j triggers the phone to save the video with motion effects, and control j' also triggers the phone to delete the video with motion effects. Event c is an action that triggers control j (such as a click, long press, etc.).

[0234] For example, assuming n=5, after all 5 movie clips are recorded, the phone can display... Figure 18 Image (a) shows interface c 1801. Interface c 1801 includes control h 1802. The mobile phone can receive user clicks on control h 1802. In response to user clicks on control h 1802, the mobile phone can display... Figure 18 (b) shows interface c 1803, which includes controls j 1804 and j 1805. Control j 1804 is used to trigger the phone to save the video with motion effects, and control j 1805 is used to trigger the phone to delete the video with motion effects. Event c is a click operation on control j 1804.

[0235] Then, in response to event c, the phone generates video file a. In some embodiments, in response to event c, the phone displays a prompt message b on interface c, which indicates the progress of video file generation. This allows for a clear and intuitive display of the generation progress.

[0236] For example, event c is a user's action on... Figure 18 (b) shows a click operation on control j 1804 in interface c 1803. In response to the user's click operation on control i 1804, the mobile phone can display... Figure 19 The interface shown is c 1901. This interface c1901 includes a prompt message b 1902, which indicates that the video file generation progress is 25%.

[0237] For example, such as Figure 20As shown, video file 'a' comprises n segments of the first video stream, namely: the first video stream segment 1, the second video stream segment 2, ..., the nth video stream segment 3. Specifically, the first video stream segment 1 is obtained by sequentially stitching together all preview images 'a' from the first movie segment (e.g., the first 2.5s segment), the second video stream segment 2 is obtained by sequentially stitching together all preview images 'a' from the second movie segment (e.g., the second 2.5s segment), and so on, until the nth video stream segment 3 is obtained by sequentially stitching together all preview images 'a' from the nth movie segment (e.g., the nth 2.5s segment).

[0238] Furthermore, video file 'a' also includes n second video streams, namely: the first first video stream, the second first video stream, ..., the nth first video stream. Specifically, the first second video stream is obtained by sequentially stitching together all preview images 'b' from the first movie clip (e.g., the first 2.5s segment), the second second video stream is obtained by sequentially stitching together all preview images 'b' from the second movie clip (e.g., the second 2.5s segment), and so on, until the nth second video stream is obtained by sequentially stitching together all preview images 'b' from the nth movie clip (e.g., the nth 2.5s segment).

[0239] Finally, the phone generates n segments of the first video stream and n segments of the second video stream. This results in a video file with dynamic effects.

[0240] In summary, by employing the method of this application embodiment, during dual-lens video recording, the mobile phone can perform motion effect processing on the real-time images captured by the two cameras according to the motion effect template selected by the user, and display the processed preview image in the viewfinder during recording. This reduces the difficulty of recording videos with dynamic effects. Furthermore, it allows for real-time presentation of the motion effect processing results to the user, facilitating real-time preview of the recording results.

[0241] After recording, the phone generates a video file 'a' with dynamic effects. In this way, a video with dynamic effects can be intelligently obtained.

[0242] Furthermore, before generating video file 'a', it is necessary to obtain n segments of the first video stream and n segments of the second video stream. Then, a video file 'a' comprising the n segments of the first video stream and the n segments of the second video stream is generated.

[0243] In some embodiments, the mobile phone responds to event c and obtains n segments of the first video stream and n segments of the second video stream. This allows for centralized processing of all video streams after the phone is triggered to save a video with motion effects, thus avoiding repeated calls to the same program.

[0244] In other embodiments, the mobile phone, in response to an event indicating the completion of recording of the k-th movie segment (e.g., the recording countdown ends), processes and obtains the k-th segment of the first video stream and the k-th segment of the second video stream corresponding to the k-th movie segment. Thus, the first and second video streams corresponding to the respective movie segment can be obtained promptly after the recording of that movie segment is completed.

[0245] Furthermore, in one specific implementation, timely acquisition of the first and second video streams of the k-th segment allows users to promptly view the recording quality of each completed movie clip. It also enables re-recording if the recording quality is unsatisfactory. Re-recording, in this context, means re-recording. Specifically, for example... Figure 21 As shown, the re-recording process includes S2101-S2103.

[0246] S2101. After at least one movie segment is recorded, the mobile phone, in response to the user's operation e on the segment option d in interface c, plays the r-th segment of the first video stream within the viewfinder of camera c in interface c, and plays the r-th segment of the second video stream within the viewfinder of camera d in interface c. Segment option d is one of p segment options a. The operation e is a selection operation on segment option d.

[0247] Here, segment option d can also be called the second segment option. The second segment option corresponds to the second movie segment, which consists of the r-th segment of the first video stream and the r-th segment of the second video stream. Segment option a is the segment option corresponding to the already recorded movie segment.

[0248] Prior to S2101, the mobile phone could receive user actions e on the segment options d in interface c. This action e could be a tap or a long press, etc.

[0249] For example, after the first and second movie clips are recorded, the phone can display... Figure 22 The interface c 2201 shown in (a) includes five clip options. Clip options 2202 and 2203 both have covers indicating that the first and second movie clips have been recorded. The mobile phone can receive a user's click on clip option 2203. In response to the user's click on clip option 2203, the mobile phone can display... Figure 22 Interface c 2204 is shown in (b) above. Interface c 2204 includes viewfinder 2205 of camera c and viewfinder 2206 of camera d. Viewfinder 2205 plays the second segment of the first video stream corresponding to the second movie clip, and viewfinder 2206 plays the second segment of the second video stream corresponding to the second movie clip.

[0250] S2102. The mobile phone responds to the user's operation d on the interface c and displays a prompt message c on the interface c. This prompt message c is used to ask whether to re-record the movie clip corresponding to the clip option d.

[0251] Among them, prompt message c can also be called the first prompt message.

[0252] Prior to S2102, the mobile phone could receive user operations d on interface c. For an explanation of operation d, please refer to the relevant explanation in S1402 above; it will not be repeated here.

[0253] For example, consider an interface c containing a control f, where operation d is a click operation on control f. The mobile phone can receive user input... Figure 22 (b) shows a click operation on control f 2207. In response to the user's click operation on control f 2207, the mobile phone can display... Figure 22 The interface c 2208 is shown in (c). This interface c 2208 includes a prompt message c 2209, the specific content of which is: whether to re-record this video segment.

[0254] In this embodiment, the phone responds to operation d but does not immediately begin recording. Instead, it first prompts the user whether they need to re-record. This allows for more accurate re-recording.

[0255] S2103. In response to the user's operation g on the prompt message c, the mobile phone displays interface d to re-record the movie clip corresponding to the clip option d. Here, operation g is used to trigger the mobile phone to start re-recording the movie clip corresponding to the clip option d.

[0256] Operation g can also be called the fifth operation.

[0257] Prior to S2103, the mobile phone could receive user actions g on the prompt message c. Action g could be a preset gesture d for the prompt message c. For example, the preset gesture d was... Figure 22 (c) shows the circled gesture for "retake" in prompt c 2209. Alternatively, prompt c includes controls 1 and 2, where control 1 triggers the phone to cancel re-recording, and control 2 triggers the phone to start re-recording. Operation g can be a click operation on control 2. For example, Figure 22 In the prompt message c2209 shown in (c), the "Cancel" button is control 1 and the "Retake" button is control 2.

[0258] The mobile phone responds to the user's action g on the prompt message c and displays interface d. For details about interface d, please refer to the relevant explanation in S1402 above, which will not be repeated here.

[0259] The preceding examples all illustrate the scenario of successfully recording at least one movie segment. In practice, users may exit recording before completing the recording of multiple movie segments.

[0260] In this scenario, the phone responds to the user's operation h on interface c by displaying a prompt message d on interface c. Operation h triggers the phone to exit the short film recording. Prompt message d prompts the user whether to save the video stream of the already recorded movie segment (such as the first and second video streams). The phone responds to the user's operation i on prompt message d by saving the video stream of the already recorded movie segment; operation i triggers the phone to save the video stream. Then, when the user re-enters interface a, the phone responds to the user's operation a on interface a by displaying interface c. Interface c includes multiple segment options, and segment option a, which points to the previously recorded movie segment, is displayed differently from segment option b, which points to the previously incomplete movie segment. This allows for further recording based on the previously saved movie segment's video stream upon the next recording session.

[0261] For example, operation h is a user's swipe gesture from left to right in interface c, and operation i is the user's interaction with a third control (such as...) in the prompt information d. Figure 23 The prompt message (b) shown in Figure 2303 indicates the "Keep" button click operation. After recording two movie clips, the phone displays... Figure 23 The interface c 2301 is shown in (a) above. The mobile phone, in response to a user's left-to-right swipe gesture on interface c 2301, can display... Figure 23 Interface c 2302 is shown in (b) above. Interface c 2302 includes a prompt message d 2303. In response to the user clicking the "Save" button in prompt message d 2303, the phone saves the first video stream corresponding to the first movie clip and the second video stream corresponding to the second movie clip. Then, when the user re-enters... Figure 6 The interface a 601 shown in (a) is such that, in response to a user's click on the control c602 in interface a 601, the mobile phone can display... Figure 23 Interface c 2301 is shown in (a) of the diagram.

[0262] Finally, it should be noted that including the segment option in interface c can clearly indicate information such as the number and duration of movie segments, as well as clearly indicate which movie segments have been recorded and which have not. Alternatively, it can facilitate user selection of movie segments. However, in some embodiments, to simplify interface elements, interface c may not include the segment option. For example, in an embodiment where the mobile phone automatically selects the movie segment to be recorded, there is no need for the user to select the movie segment to be recorded, so interface c may not include the segment option.

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

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

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

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

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

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

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

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

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

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

Claims

1. A video shooting method, characterized in that, Applied to an electronic device including multiple cameras, the method includes: The electronic device displays a first interface; wherein, the first interface is the viewfinder interface before the electronic device starts recording, the first interface includes real-time images captured by two cameras, the first interface includes a fourth control, and in response to a click operation on the fourth control, the electronic device displays multiple display layouts; The electronic device responds to the user's shooting operation on the first interface and starts recording video. During the video recording process, the electronic device responds to the user's sixth operation and swaps the viewfinder of the first camera and the viewfinder of the second camera. The electronic device responds to the user's first action by displaying multiple template options; The electronic device responds to a second operation by the user on a first template option among the plurality of template options, displays a second interface, and plays the animation effect corresponding to the first template option on the second interface; The electronic device responds to a third operation by the user on the second interface and displays a third interface, which includes a first real-time image captured by a first camera and a second real-time image captured by a second camera. The electronic device responds to the user's fourth operation on the third interface, displays the fourth interface, and starts recording video. During the video recording process, the electronic device does not respond to the user's sixth operation on the fourth interface. The sixth operation is used to trigger the electronic device to swap the viewfinders of the first camera and the second camera. The fourth interface does not include the fourth control.

2. The method according to claim 1, characterized in that, The third interface is the viewfinder interface before the electronic device starts recording. Each template option corresponds to an image processing motion effect template. The first template option corresponds to the first motion effect template. The first motion effect template includes multiple motion effect sub-templates. The multiple motion effect sub-templates correspond one-to-one with multiple video clips. The fourth operation triggers the electronic device to record a first video segment, the first video segment corresponding to a first motion effect sub-template; The fourth interface is the viewfinder interface of the electronic device recording video. The fourth interface includes a first preview image and a second preview image. The first preview image is obtained by the electronic device using the first motion effect sub-template to perform motion effect processing on the first real-time image. The second preview image is obtained by the electronic device using the first motion effect sub-template to perform motion effect processing on the second real-time image.

3. The method according to claim 2, characterized in that, After displaying the fourth interface, the method further includes: the electronic device responding to a first event to display the third interface; wherein the first event is the event that the recording of the first video segment is completed.

4. The method according to claim 2, characterized in that, The third interface includes a first window, and the method further includes: The electronic device plays the animation effect corresponding to the first motion effect sub-template in the first window.

5. The method according to any one of claims 2-4, characterized in that, Each motion effect sub-template includes a first sub-template and a second sub-template; wherein, the first sub-template is used by the electronic device to perform motion effect processing on the first real-time image, and the second sub-template is used by the electronic device to perform motion effect processing on the second real-time image.

6. The method according to any one of claims 2-4, characterized in that, After the electronic device applies the first motion effect sub-template to the first real-time image for motion effect processing, and after the electronic device applies the first motion effect sub-template to the second real-time image for motion effect processing, the method further includes: The electronic device responds to a second event and saves a first video file; wherein the second event is used to trigger the electronic device to save the processed video; the first video file includes multiple first video streams and multiple second video streams; the multiple first video streams correspond one-to-one with multiple video segments, and the multiple second video streams correspond one-to-one with multiple video segments; each first video stream includes multiple frames of the first preview image processed from the corresponding video segment, and each second video stream includes multiple frames of the second preview image processed from the corresponding video segment.

7. The method according to any one of claims 2-4, characterized in that, The third interface includes p first segment options; where p ≥ 0, p is a natural number, and p is the number of recorded video segments; each first segment option corresponds to a recorded video segment; the third interface also includes a first control; The method further includes: the electronic device receiving a user's selection operation for a second segment option, wherein the second segment option is one of p first segment options; the second segment option corresponds to a second video segment; In response to the user's selection of the second segment option, the electronic device plays multiple frames of the first preview image and multiple frames of the second preview image processed from the second video segment in the third interface. In response to a user's click on the first control, the electronic device displays a first prompt message on the second interface; the first prompt message is used to prompt whether to reshoot the second video segment. The electronic device responds to the user's fifth operation on the first prompt information by displaying a fourth interface to re-record the second video clip.

8. The method according to any one of claims 2-4, characterized in that, The third interface includes q third segment options; where q≥0, q is a natural number, and q is the number of unrecorded video segments; each third segment option corresponds to one unrecorded video segment; the third interface also includes a first control; Before the electronic device receives the user's fourth operation on the third interface, the method further includes: the electronic device responding to the third event by selecting a fourth segment option; the fourth segment option is one of q third segment options; the fourth segment option corresponds to a first video segment; The fourth operation is a user's click operation on the first control when the fourth segment option is selected.

9. The method according to claim 1, characterized in that, The sixth operation includes a long press or a drag operation.

10. The method according to any one of claims 1-4, characterized in that, Different motion effect templates are suitable for different cameras; the method also includes: The electronic device responds to a third operation by the user on the second interface and activates the first camera and the second camera; the first camera and the second camera are cameras to which the first animation template corresponding to the first template option is applicable.

11. The method according to any one of claims 1-4, characterized in that, The first interface includes a second control, which is used to trigger the electronic device to display multiple template options; the first operation is a click operation or a long press operation on the second control.

12. The method according to any one of claims 1-4, characterized in that, The first interface includes a third control; The electronic device, in response to a user's second operation on a first template option among the plurality of template options, displays a second interface, including: The electronic device selects the first template option in response to the user's selection operation of the first template option among the plurality of template options; When the first template option is selected by the electronic device, the electronic device displays a second interface in response to the user's click operation on the third control.

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

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

Citation Information

Patent Citations

  • Multi-channel video recording method and device

    CN110072070A

  • Video template recommendation method and device

    CN110177219A