CN117880634A - Video shooting method and electronic equipment - Google Patents

Video shooting method and electronic equipment Download PDF

Info

Publication number
CN117880634A
CN117880634A CN202311469452.XA CN202311469452A CN117880634A CN 117880634 A CN117880634 A CN 117880634A CN 202311469452 A CN202311469452 A CN 202311469452A CN 117880634 A CN117880634 A CN 117880634A
Authority
CN
China
Prior art keywords
camera
interface
video
electronic device
cameras
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311469452.XA
Other languages
Chinese (zh)
Inventor
卞超
康凤霞
葛璐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN117880634A publication Critical patent/CN117880634A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/695Control of camera direction for changing a field of view, e.g. pan, tilt or based on tracking of objects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/78Television signal recording using magnetic recording

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Studio Devices (AREA)

Abstract

A method for shooting video and electronic equipment relate to the technical field of shooting, cameras can be switched in the process of recording video, video files shot at multiple camera view angles can be obtained through one shooting, and shooting experience of users is improved. The electronic device may display a first interface; the first interface is a view finding interface for recording video, and comprises a first preview image acquired by a first camera; receiving a first operation of a user on a first interface; responding to the first operation, and displaying a second interface comprising a second preview image acquired by a second camera; receiving a second operation of the user on the first interface, wherein the second operation is used for triggering the electronic equipment to stop recording the video; a first video file is generated, the first video file comprising a first video stream comprising a plurality of frames of first preview images and a second video stream comprising a plurality of frames of second preview images.

Description

Video shooting method and electronic equipment
Technical Field
The embodiment of the application relates to the technical field of photographing, in particular to a video photographing method and electronic equipment.
Background
Existing mobile phones generally have a photographing function, and more people record live spot drops by photographing pictures and videos through the mobile phones. For example, the process of recording video by the mobile phone comprises the following steps (1) and (2). Step (1): after the mobile phone displays the view finding interface 101 of the recorded video shown in fig. 1A, the recorded video starts to be recorded in response to the clicking operation of the start recording button 102 by the user, and the recorded video interface 103 shown in fig. 1B is displayed. The recording video interface 103 includes a stop recording button 104. Step (2): the mobile phone stops recording video and generates recorded video in response to a user's click operation of the stop recording button 104 shown in fig. 1B.
Currently, most mobile phones are configured with multiple cameras, such as front cameras and rear cameras. Hardware parameters of different cameras are different, and positions of the different cameras on the mobile phone are different. Therefore, when the mobile phone is fixed in a viewing environment, images of the viewing environment acquired by different cameras are different. In order to shoot video with higher interest, in the process of recording a video, different cameras in the mobile phone are required to be switched to acquire images. However, the existing scheme does not support the video recording process to switch cameras.
In some schemes, a segmented recording mode can be adopted, and different cameras in the mobile phone are sequentially used for shooting for multiple times to obtain a plurality of temporary video files; finally, integrating the temporary video files into a completed video file. Thus, video files shot by different cameras can be switched.
Disclosure of Invention
The embodiment of the application provides a video shooting method and electronic equipment, which can switch cameras in the video recording process, can obtain video files shot at multiple camera visual angles through one shooting, and improves shooting experience of users.
In a first aspect, embodiments of the present application provide a method of capturing video, which may be applied to an electronic device including a plurality of cameras. The electronic device may display the first interface. The first interface is a viewfinder interface of a video being recorded by the electronic device, and includes a first preview image acquired by a first camera of the plurality of cameras. The electronic device may then receive a first operation of the first interface by the user. The first operation is for triggering the electronic device to switch to use a second camera of the plurality of cameras. In response to the first operation, the electronic device may display a second interface that is also a viewing interface of the video being recorded by the electronic device. The second interface includes a second preview image captured by a second camera. That is, the electronic device switches the first preview image in the first interface to the second preview image collected by the second camera. Finally, the electronic device may receive a second operation of the second interface by the user, where the second operation is used to trigger the electronic device to stop recording the video. The electronic device may generate a first video file. For example, the first interface also includes a stop recording button. The second operation may be a click operation (e.g., a clicking operation) of the stop recording button by the user.
The first video file may include a first video stream including a plurality of frames of first preview images and a second video stream including a plurality of frames of second preview images. The second camera is different from the first camera
In this application, during the process of recording video by the electronic device, a first operation of a user on a viewing interface (e.g., a first interface) of the electronic device on which video is being recorded may be received. Then, the electronic device can respond to the first operation to switch the first preview image acquired by the first camera to the second preview image acquired by the second camera, namely, the camera of the electronic device is switched in the process of recording the video. Finally, upon receiving a second operation from the user (e.g., a click operation on a stop recording button), the electronic device may generate a complete video file including the first video stream and the second video stream.
In summary, by adopting the method of the embodiment of the present application, the camera may be switched in the process of recording video. Moreover, by adopting the method, the multi-view video file can be obtained by one shooting, a plurality of temporary video files are not generated, the temporary video files are not required to be integrated, the mobile phone receives the click operation of a user on the stop recording button, and the multi-view video file can be generated in real time for the user to view at any time. Compared with the scheme of segmented recording, the video recording process can be simplified, the video shooting efficiency is improved, and the shooting experience of a user is improved.
Further, by adopting the method of the embodiment of the application, the duration of video recording by the electronic device is not limited. That is, the electronic device executes the method of the present application, and may record video files of any duration according to the needs of the user.
In one possible design manner of the first aspect, the first interface further includes a first control for triggering the electronic device to switch to use the second camera; the first operation is a clicking operation of the first control by a user. The first control used for triggering the electronic equipment to switch the camera is displayed on the first interface, so that a user can conveniently operate the electronic equipment to switch the camera in the video recording process.
In another possible design manner of the first aspect, the first operation may also be a preset gesture, such as an S-gesture or a v-gesture, input by the user on the first interface.
In another possible design manner of the first aspect, the first camera is a front camera of the electronic device, and the second camera is a rear camera of the electronic device. Or, the first camera is a rear camera of the electronic device, and the second camera is a front camera of the electronic device.
That is, by adopting the method of the embodiment of the application, the front camera and the rear camera can be switched in the process of recording the video by the electronic equipment.
In another possible design manner of the first aspect, the plurality of cameras includes a front camera and a rear camera of a plurality of types; the type of the camera at least comprises: the camera comprises a main camera, a wide-angle camera and a long-focus camera; the first camera and the second camera are any two cameras among the plurality of cameras, and the first camera is different from the second camera.
That is, by adopting the method of the embodiment of the application, in the process of recording video by the electronic device, the switching of any camera in the electronic device can be switched, and the any camera can be a front camera or a rear camera of various types in the electronic device.
In another possible design manner of the first aspect, each of the first interface and the second interface may include a plurality of second controls, where each second control corresponds to one of the plurality of cameras, and is configured to trigger the electronic device to switch to use the corresponding camera.
The plurality of second controls comprise a first control, the first control is used for triggering the electronic equipment to switch to use the second camera, and the first operation is click operation of the first control by a user.
For example, take an example in which the electronic device includes a front main camera, a front wide-angle camera, a front tele camera, a rear main camera, a rear wide-angle camera, and a rear tele camera. The plurality of second controls may include a "pre-panning" control, a "pre-tele" control, a "pre-wide" control, a "post-panning" control, a "post-tele" control, and a "post-wide" control. The front-facing main shooting control corresponds to a front-facing main camera of the electronic equipment, the rear-facing main shooting control corresponds to a rear-facing main camera of the electronic equipment, the front-facing long-focus control corresponds to a front-facing long-focus camera of the electronic equipment, the front-facing wide-angle control corresponds to a front-facing wide-angle camera of the electronic equipment, the rear-facing long-focus control corresponds to a rear-facing long-focus camera of the electronic equipment and is used for triggering the electronic equipment to display preview images acquired by the rear-facing long-focus camera, and the rear-facing wide-angle control corresponds to a rear-facing wide-angle camera of the electronic equipment.
In another possible design manner of the first aspect, in the first interface, the second control corresponding to the first camera is in a first display state, and the second controls corresponding to the other cameras are in a second display state. In the second interface, a second control corresponding to the second camera is in a first display state, and second controls corresponding to other cameras are in a second display state.
The camera corresponding to the second control in the first display state is a preview camera of the electronic equipment; the camera corresponding to the second control in the second display state is not the preview camera. Therefore, the user can identify the preview camera of the electronic device according to the display state of each second control.
In another possible design manner of the first aspect, the displaying, by the electronic device, the first interface may include: the electronic equipment displays a third interface; the third interface is a view finding interface of the video being recorded by the electronic equipment, the third interface comprises a first preview image acquired by the first camera, and the third interface also comprises a third control used for triggering the electronic equipment to display a plurality of second controls; in response to a click operation of the third control by the user, the electronic device displays a first interface including a plurality of second controls.
For example, the third control may be a camera switch option. In this design, a viewing interface (e.g., a third interface) of the electronic device that is recording video may display a third control. In response to a click operation of the third control by the user, the electronic device may display a plurality of second controls.
In another possible design manner of the first aspect, the electronic device may not switch the camera during the recording of the video in response to the first operation after the electronic device starts recording the video. Instead, after the video recording is started, the camera can be switched in the video recording process in response to the first operation after a preset function (such as a function of switching the camera in the video recording process) is started by the user.
Specifically, the electronic device may display the fourth interface before the electronic device displays the first interface. The fourth interface is a view finding interface of the electronic device for recording video, and the fourth interface comprises a start recording button for triggering the electronic device to start recording video. In response to a click operation of the start recording button by the user, the electronic device may display a fifth interface including a first preview image captured by the first camera. The fifth interface comprises a preset function switch, wherein the preset function switch is used for triggering the electronic equipment to start or close a preset function, and the preset function is a function of switching the camera in the video recording process. Then, the electronic device may receive a third operation of the preset function switch by the user, where the third operation is used to trigger the electronic device to start the preset function.
The electronic device displaying the first interface may include: and responding to a third operation of a user on a preset function switch, displaying a first interface comprising a first control by the electronic equipment, wherein the first control is used for triggering the electronic equipment to switch to use the second camera.
In this design, the electronic device may instruct the electronic device to turn on/off the preset function by the state of the preset function switch. Thus, the user can judge whether the preset function is on/off by observing the state of the preset function switch. Of course, the user may also determine whether the preset function is turned on/off by observing whether the viewfinder interface of the electronic device that is recording video includes the first control.
In another possible design manner of the first aspect, in response to the third operation of the preset function switch by the user, the electronic device may start other cameras except for the first camera of the plurality of cameras, but the electronic device may not display the other cameras to collect images on the first interface.
Generally, in the process of recording video by an electronic device, only one camera is turned on to collect images. In this way, in the process of recording video, if the electronic device is to switch the preview camera from the first camera to the second camera, a certain time is required for starting the second camera, and a short-time (such as 1 second) black screen or blank may appear on the view finding interface, which affects the user experience.
In order to realize the noninductive switching of the cameras in the process of recording the video by the electronic equipment, the electronic equipment can start the second camera in advance. Specifically, the electronic device may start other cameras except for the first camera among the plurality of cameras in advance.
The electronic equipment starts the other cameras in advance. Thus, no matter which camera is used by the electronic device in a switching way, a short-time (such as 1 second) black screen or blank of the view finding interface can be avoided because a certain time is needed for starting the camera. By adopting the scheme, the noninductive switching of the camera can be realized in the video recording process of the electronic equipment, and the shooting experience of a user can be improved.
In another possible design manner of the first aspect, after the electronic device starts recording the video, if the preset function of the electronic device is turned on, the electronic device may switch the camera in the process of recording the video in response to the first operation. However, after the electronic device starts recording the video, if the preset function of the electronic device is not yet turned on, the electronic device cannot switch the camera during the process of recording the video in response to the first operation.
Specifically, the electronic device may display the fourth interface before the electronic device displays the first interface. The fourth interface is a view finding interface of the electronic device for recording video, and the fifth interface comprises a start recording button and an image collected by the first camera, wherein the start recording button is used for triggering the electronic device to start recording video.
The electronic device displaying the first interface may include: and responding to the click operation of the start recording button by a user, and if the preset function of the electronic equipment is started, displaying the first interface comprising a first control by the electronic equipment, wherein the first control is used for triggering the electronic equipment to switch to use the second camera. The preset function is a function of switching a camera in the video recording process, and the setting interface or the notification bar of the electronic equipment comprises a preset function switch for switching on or off the preset function.
In this design, the electronic device may display the first control on the viewing interface of the recorded video in response to a user operation to start recording the video. Therefore, clicking operation of the user on the first control can be received, and the camera is switched, so that the service of switching the camera in the video recording process is provided for the user.
In another possible design manner of the first aspect, in response to the clicking operation of the start recording button by the user, if the preset function of the electronic device is started, the electronic device may start other cameras except for the first camera of the plurality of cameras, but the first interface does not display the other cameras to collect images. Wherein the other cameras comprise a second camera.
The electronic equipment starts the other cameras in advance. Thus, no matter which camera is used by the electronic device in a switching way, a short-time (such as 1 second) black screen or blank of the view finding interface can be avoided because a certain time is needed for starting the camera. By adopting the scheme, the noninductive switching of the camera can be realized in the video recording process of the electronic equipment, and the shooting experience of a user can be improved.
In another possible design manner of the first aspect, in order to reduce power consumption of the electronic device, the electronic device may not start the plurality of cameras in the electronic device in advance, but start the second camera in response to the first operation of the first interface by the user. Thus, although a short-time (e.g., 1 second) black screen or blank space may appear on the viewfinder interface during the process of switching the cameras, the power consumption of the electronic device can be reduced compared with the scheme of starting a plurality of cameras in advance.
In another possible design manner of the first aspect, after the electronic device switches the first preview image in the first interface to the second preview image acquired by the second camera in response to the first operation, the method of the embodiment of the present application may further include: and responding to a fourth operation of a user on a preset function switch, and closing the first camera by the electronic equipment. In this way, the power consumption of the electronic device can be reduced.
In another possible design manner of the first aspect, the electronic device may switch the camera at least twice during one video capturing process. For example, after the electronic device switches the preview camera from the first camera to the second camera, the electronic device may switch the preview camera from the second camera to the third camera.
Specifically, the method of the embodiment of the application may include: the electronic equipment displays a first interface; the electronic equipment receives a first operation of a user on a first interface, wherein the first operation is used for triggering the electronic equipment to switch to use a second camera in the plurality of cameras; responding to the first operation, the electronic equipment switches a first preview image in the first interface into a second preview image acquired by the second camera; the electronic device receives a first operation (such as clicking operation of a third control corresponding to a third camera in the plurality of second controls) of the first interface by a user again, where the first operation is used to trigger the electronic device to switch to use the third camera in the plurality of cameras; responding to the first operation, the electronic equipment switches the second preview image in the first interface into a third preview image acquired by a third camera; the electronic equipment receives a second operation of the user on the first interface, and the second operation is used for triggering the electronic equipment to stop recording videos. The electronic device can generate a second video file. The second video file includes a first video stream including a plurality of frames of first preview images, a second video stream including a plurality of frames of second preview images, and a third video stream including a plurality of frames of third preview images.
In a second aspect, embodiments of the present application provide an electronic device that includes a display screen, a plurality of cameras, a memory, and one or more processors. The display screen, the plurality of cameras, the memory, and the processor are coupled. The cameras are used for acquiring images. The display screen is used for displaying images generated by the processor and images acquired by the cameras. The memory is used to store computer program code, which includes computer instructions.
Wherein the computer instructions, when executed by the processor, cause the electronic device to: displaying a first interface; the first interface is a view finding interface of the video being recorded by the electronic equipment, and comprises first preview images collected by a first camera in the plurality of cameras; receiving a first operation of a user on a first interface; the first operation is used for triggering the electronic equipment to switch to use a second camera in the plurality of cameras, and the second camera is different from the first camera; responding to the first operation, displaying a second interface, wherein the second interface is a framing interface of the video being recorded by the electronic equipment, and comprises a second preview image acquired by a second camera; receiving a second operation of a user on a second interface, wherein the second operation is used for triggering the electronic equipment to stop recording video; a first video file is generated, the first video file comprising a first video stream comprising a plurality of frames of first preview images and a second video stream comprising a plurality of frames of second preview images.
In one possible design manner of the second aspect, the first interface includes a first control for triggering the electronic device to switch to use the second camera; the first operation is a click operation of the first control by the user.
In another possible design manner of the second aspect, the first camera is a front camera of the electronic device, and the second camera is a rear camera of the electronic device. Or, the first camera is a rear camera of the electronic device, and the second camera is a front camera of the electronic device.
In another possible design manner of the second aspect, the plurality of cameras include a front camera and a rear camera of a plurality of types; the type of the camera at least comprises: the camera comprises a main camera, a wide-angle camera and a long-focus camera; the first camera and the second camera are any two cameras in the plurality of cameras, and the first camera is different from the second camera.
In another possible design manner of the second aspect, each of the first interface and the second interface includes a plurality of second controls, where each second control corresponds to one of the plurality of cameras, and is configured to trigger the electronic device to switch to use the corresponding camera.
The plurality of second controls comprise a first control, the first control is used for triggering the electronic equipment to switch to use the second camera, and the first operation is click operation of the first control by a user.
In another possible design manner of the second aspect, in the first interface, the second control corresponding to the first camera is in a first display state, and the second controls corresponding to the other cameras are in a second display state; in the second interface, the second control corresponding to the second camera is in the first display state, and the second controls corresponding to the other cameras are in the second display state.
The camera corresponding to the second control in the first display state is a preview camera of the electronic equipment; the camera corresponding to the second control in the second display state is not the preview camera.
In another possible design of the second aspect, the processor, when executing the computer instructions, causes the electronic device to further perform the steps of: displaying a third interface; the third interface is a view finding interface of the video being recorded by the electronic equipment, the third interface comprises a first preview image acquired by the first camera, and the third interface also comprises a third control used for triggering the electronic equipment to display a plurality of second controls; and responding to clicking operation of the third control by a user, and displaying a first interface comprising a plurality of second controls.
In another possible design of the second aspect, the processor, when executing the computer instructions, causes the electronic device to further perform the steps of: displaying a fourth interface; the fourth interface is a view finding interface for recording video of the electronic equipment, and comprises a start recording button which is used for triggering the electronic equipment to start recording video; responding to clicking operation of a user on a start recording button, starting a first camera, and displaying a fifth interface comprising a first preview image acquired by the first camera; the fifth interface comprises a preset function switch, wherein the preset function switch is used for triggering the electronic equipment to start or close a preset function, and the preset function is a function of switching a camera in the video recording process; receiving a third operation of a user on a preset function switch, wherein the third operation is used for triggering the electronic equipment to start a preset function; and responding to a third operation of a user on a preset function switch, displaying a first interface comprising a first control, wherein the first control is used for triggering the electronic equipment to switch to use the second camera.
In another possible design of the second aspect, the processor, when executing the computer instructions, causes the electronic device to further perform the steps of: and responding to a third operation of a user on a preset function switch, starting other cameras except the first camera in the plurality of cameras, wherein the first interface does not display the other cameras to acquire images. Wherein the other cameras comprise a second camera.
In another possible design of the second aspect, the processor, when executing the computer instructions, causes the electronic device to further perform the steps of: displaying a fourth interface; the fourth interface is a view finding interface for recording video of the electronic equipment, and comprises a start recording button and an image acquired by the first camera, wherein the start recording button is used for triggering the electronic equipment to start recording video; and responding to clicking operation of a start recording button by a user, and if a preset function of the electronic equipment is started, displaying a first interface comprising a first control, wherein the first control is used for triggering the electronic equipment to switch to use the second camera. The preset function is a function of switching the camera in the video recording process, and the setting interface or the notification bar of the electronic equipment comprises a preset function switch for switching on or switching off the preset function.
In another possible design of the second aspect, the processor, when executing the computer instructions, causes the electronic device to further perform the steps of: and responding to the click operation of the start recording button by a user, if the preset function of the electronic equipment is started, starting other cameras except the first camera in the plurality of cameras, wherein the first interface does not display the other cameras to acquire images. Wherein the other cameras comprise a second camera.
In another possible design of the second aspect, the processor, when executing the computer instructions, causes the electronic device to further perform the steps of: and responding to the first operation of the user on the first interface, and starting the second camera.
In another possible design of the second aspect, the processor, when executing the computer instructions, causes the electronic device to further perform the steps of: and responding to a fourth operation of a user on a preset function switch, and closing the first camera by the electronic equipment.
In a third aspect, embodiments of the present application provide a chip system that is applied to an electronic device including a display screen and a plurality of cameras. The system-on-chip includes one or more interface circuits and one or more processors. The interface circuit and the processor are interconnected by a wire. The interface circuit is for receiving signals from the memory of the electronic device and transmitting 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 one of its possible designs.
In a fourth aspect, embodiments of the present application provide a computer storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform a method as described in the first aspect and any one of its possible designs.
In a fifth aspect, embodiments of the present application provide a computer program product which, when run on a computer, causes the computer to perform the method according to the first aspect and any one of its possible designs. Wherein the computer may be an electronic device as described in the second aspect and any one of its possible designs.
It will be appreciated that the advantages achieved by the electronic device according to the second aspect, the chip system according to the third aspect, the computer storage medium according to the fourth aspect, and the computer program product according to the fifth aspect are referred to as the advantages in any one of the possible designs of the first aspect and the second aspect, and are not described herein again.
Drawings
Fig. 1A-1C are schematic views of a display interface of a mobile phone shooting video in the conventional technology;
fig. 1D-1E are schematic views of a display interface of another conventional mobile phone for capturing video;
fig. 2 is a schematic hardware structure of an electronic device according to an embodiment of the present application;
fig. 3A-3C are schematic diagrams of the positions and the numbers of front cameras in a mobile phone according to an embodiment of the present application;
FIG. 3D is a view of the three front cameras shown in FIG. 3C;
Fig. 3E to fig. 3G are schematic diagrams of positions and numbers of rear cameras in a mobile phone according to an embodiment of the present application;
FIG. 3H is a view of the three rear cameras shown in FIG. 3G;
fig. 4 is a schematic software architecture of an electronic device according to an embodiment of the present application;
fig. 5 is a flowchart of a method for capturing video according to an embodiment of the present application;
fig. 6A-6B are schematic views of a display interface of an electronic device according to an embodiment of the present application;
fig. 6C is a schematic diagram of a display interface of another electronic device according to an embodiment of the present application;
fig. 7A is a schematic diagram of an electronic device according to an embodiment of the present application to switch a first preview image of a first interface to a second preview image;
fig. 7B is a schematic diagram of content composition of a video file according to an embodiment of the present application;
fig. 7C is a schematic diagram of generating a video file by using an electronic device according to an embodiment of the present application;
fig. 8A-8B are schematic views of a display interface of another electronic device according to an embodiment of the present disclosure;
fig. 8C is a schematic diagram of a display interface of another electronic device according to an embodiment of the present application;
FIG. 9A is a schematic diagram illustrating content composition of another video file according to an embodiment of the present application;
Fig. 9B is a schematic diagram of a display interface of an electronic device according to an embodiment of the present application;
FIG. 9C is a flowchart of another method for capturing video according to an embodiment of the present application;
fig. 10A is a schematic diagram of a display interface of another electronic device according to an embodiment of the present application;
fig. 10B-10C are schematic views of a display interface of another electronic device according to an embodiment of the present application;
FIG. 10D is a flowchart of another method for capturing video according to an embodiment of the present disclosure;
fig. 11 is a schematic diagram of a display interface of another electronic device according to an embodiment of the present application;
fig. 12 is a schematic view of a display interface of another electronic device according to an embodiment of the present disclosure;
fig. 13 is a schematic view of a display interface of another electronic device according to an embodiment of the present disclosure;
fig. 14 is a flowchart of another method for capturing video according to an embodiment of the present application;
fig. 15A-15B are schematic views of a display interface of another electronic device according to an embodiment of the present disclosure;
FIG. 15C is a schematic diagram illustrating the content composition of another video file according to an embodiment of the present application;
fig. 16A-16B are schematic views of a display interface of another electronic device according to an embodiment of the present disclosure;
fig. 16C-16D are schematic views of a display interface of another electronic device according to an embodiment of the present disclosure;
Fig. 16E-16F are schematic views of a display interface of another electronic device according to an embodiment of the present disclosure;
fig. 16G-16H are schematic views of a display interface of another electronic device according to an embodiment of the present disclosure;
fig. 16I is a schematic view of a display interface of another electronic device according to an embodiment of the present application;
fig. 17A is a schematic diagram of a display interface of another electronic device according to an embodiment of the present application;
fig. 17B is a schematic view of a display interface of another electronic device according to an embodiment of the present disclosure;
fig. 18 is a schematic diagram of a display interface of another electronic device according to an embodiment of the present disclosure;
fig. 19 is a flowchart of another method for capturing video according to an embodiment of the present application;
fig. 20 is a schematic structural diagram of a chip system of an electronic device according to an embodiment of the present application.
Detailed Description
The terms "first" and "second" are used below for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the present embodiment, unless otherwise specified, the meaning of "plurality" is two or more.
For easy understanding, the embodiment of the application describes the process of recording video by the mobile phone in detail herein, so as to illustrate that the mobile phone cannot switch the camera in the process of recording video by adopting the conventional technology.
In general, the mobile phone may display a view interface for photographing in response to a clicking operation of a "camera" application icon by a user. When the user wants to record the video by using the mobile phone, the mobile phone can be triggered to display a viewing interface of the recorded video. For example, fig. 1A shows a viewfinder interface 101 for taking a picture of a cell phone. The photo viewfinder 101 includes a viewfinder 102 and a "record video" option 103. The viewfinder 102 is used for displaying preview images acquired by a camera (such as a rear camera of a mobile phone). The "record video" option 103 is used to trigger the handset to enter a record video mode.
In response to a user clicking on the "record video" option 103 in the viewfinder interface 101, the handset may display a viewfinder interface 104 of the recorded video as shown in FIG. 1B. The viewing interface 104 for recording video includes a start recording button 108, a view box 105, a timer option 106, an album option 107, and a camera switch option 109.
Wherein the start recording button 108 is used to trigger the mobile phone to start recording video. The viewfinder 105 is used to display a preview image captured by the camera. The timing option 106 is used for timing when the mobile phone starts to record video and the mobile phone ends to record video, and displaying the duration of video recording of the mobile phone. Album option 107 is used to display the most recently taken photograph or video of the handset. For example, assume that a cell phone has recently taken a photograph of two people in hand. As shown in fig. 1B, photos of two hands are displayed on the album option 107. The camera switch option 109 is used to trigger the handset to switch to use either the front camera or the rear camera to capture images.
In response to a user clicking on the start recording button 108 shown in fig. 1B, the cell phone may start recording video. For example, when the duration of video recording by the mobile phone is 8 seconds(s), the mobile phone may display the view interface 110 of the video recording shown in fig. 1C. In the view interface 110 of the recorded video, the time duration of the time option 112 is 00:00:08. The preview image in the viewfinder 111 in the viewfinder interface 110 of the recorded video is different from the preview image in the viewfinder 105 shown in fig. 1B. Included in the viewfinder interface 110 of the recorded video is a stop recording button 113. The stop recording button 113 is used to trigger the mobile phone to stop recording video and generate recorded video.
In response to a user clicking the stop recording button 113 shown in fig. 1C, the mobile phone may display the view interface 114 of the recorded video shown in fig. 1D. Included in the view interface 114 of the recorded video are a start recording button 108, a view finder 115, a timer option 116, an album option 117, and a camera switch option 109. The timing duration of the timing option 116 shown in fig. 1D is 00:00:00, which indicates that the mobile phone has stopped recording video. The album option 117 shown in fig. 1D displays a preview image in the viewfinder 111 in fig. 1C, indicating that the handset has generated a recorded video.
As can be seen by comparing the viewing interfaces of the recorded video shown in fig. 1B, 1C and 1D: the viewfinder interface shown in fig. 1B and 1D includes the camera switching option 109, while the viewfinder interface shown in fig. 1C does not include the camera switching option 109. The camera switch option 109 is used to trigger the mobile phone to switch to use the front camera or the rear camera to collect images. That is, before starting to record video and after stopping to record video, the mobile phone can respond to the operation of the user on the camera switching option 109 in the view finding interface to switch the camera; however, during the recording of video, the camera cannot be switched.
For example, in response to a user clicking on the camera switch option 109 shown in fig. 1D, the handset may display the view interface 118 of the recorded video shown in fig. 1E. The preview image displayed in the viewfinder 119 in the viewfinder interface 118 of the recorded video is an image captured by a front camera of the mobile phone. And the preview image displayed in the viewfinder of fig. 1A, 1B, 1C or 1D is an image captured by a rear camera of the mobile phone.
The embodiment of the application provides a method for shooting video, which can be applied to electronic equipment comprising a plurality of cameras. By adopting the method, the camera can be switched in the video recording process. Moreover, by adopting the method, the video files with multiple visual angles can be obtained by one shooting, a plurality of temporary video files can not be generated, and the temporary video files are not required to be integrated. Compared with the scheme of segmented recording, the video recording process can be simplified, the video shooting efficiency is improved, and the shooting experience of a user is improved.
For example, the electronic device in the embodiments of the present application may be a mobile phone, a tablet computer, a smart watch, a desktop, a laptop, a handheld computer, a notebook, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook, a cellular phone, a personal digital assistant (personal digital assistant, PDA), an augmented reality (augmented reality, AR) \virtual reality (VR) device, or a device including a plurality of cameras, and the embodiments of the present application do not limit the specific form of the electronic device.
The implementation of the examples of the present application will be described in detail below with reference to the accompanying drawings. Referring to fig. 2, a schematic structural diagram of an electronic device 200 according to an embodiment of the present application is provided. As shown in fig. 2, the electronic device 200 may include: processor 210, external memory interface 220, internal memory 221, universal serial bus (universal serial bus, USB) interface 230, charge management module 240, power management module 241, battery 242, antenna 1, antenna 2, mobile communication module 250, wireless communication module 260, audio module 270, speaker 270A, receiver 270B, microphone 270C, headset interface 270D, sensor module 280, keys 290, motor 291, indicator 292, camera 293, display 294, and subscriber identity module (subscriber identification module, SIM) card interface 295, among others.
The sensor module 280 may include pressure sensors, gyroscope sensors, barometric pressure sensors, magnetic sensors, acceleration sensors, distance sensors, proximity sensors, fingerprint sensors, temperature sensors, touch sensors, ambient light sensors, bone conduction sensors, and the like.
It is to be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic apparatus 200. In other embodiments, the electronic device 200 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 210 may include one or more processing units such as, for example: the processor 210 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller may be a neural hub and command center of the electronic device 200. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 210 for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. The memory may hold instructions or data that the processor 210 has just used or recycled. If the processor 210 needs to reuse the instruction or data, it may be called directly from the memory. Repeated accesses are avoided and the latency of the processor 210 is reduced, thereby improving the efficiency of the system.
In some embodiments, processor 210 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
It should be understood that the connection relationship between the modules illustrated in this embodiment is only illustrative, and does not limit the structure of the electronic device 200. In other embodiments, the electronic device 200 may also employ different interfaces in the above embodiments, or a combination of interfaces.
The charge management module 240 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 240 may receive a charging input of a wired charger through the USB interface 230. In some wireless charging embodiments, the charge management module 240 may receive wireless charging input through a wireless charging coil of the electronic device 200. The charging management module 240 may also provide power to the electronic device through the power management module 241 while charging the battery 242.
The power management module 241 is used for connecting the battery 242, and the charge management module 240 and the processor 210. The power management module 241 receives input from the battery 242 and/or the charge management module 240 and provides power to the processor 210, the internal memory 221, the external memory, the display 294, the camera 293, the wireless communication module 260, and the like. The power management module 241 may also be configured to monitor battery capacity, battery cycle times, battery health (leakage, impedance), and other parameters. In other embodiments, the power management module 241 may also be disposed in the processor 210. In other embodiments, the power management module 241 and the charge management module 240 may be disposed in the same device.
The wireless communication function of the electronic device 200 can be implemented by the antenna 1, the antenna 2, the mobile communication module 250, the wireless communication module 260, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 200 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 250 may provide a solution for wireless communication including 2G/3G/4G/5G, etc., applied on the electronic device 200. The mobile communication module 250 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 250 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation.
The wireless communication module 260 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc., as applied on the electronic device 200.
The wireless communication module 260 may be one or more devices that integrate at least one communication processing module. The wireless communication module 260 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 210. The wireless communication module 260 may also receive a signal to be transmitted from the processor 210, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, antenna 1 and mobile communication module 250 of electronic device 200 are coupled, and antenna 2 and wireless communication module 260 are coupled, such that electronic device 200 may communicate with a network and other devices via wireless communication techniques.
The electronic device 200 implements display functions through a GPU, a display screen 294, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display screen 294 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 210 may include one or more GPUs that execute program instructions to generate or change display information.
The display 294 is used to display images, videos, and the like. The display 294 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light emitting diode (AMOLED), a flexible light-emitting diode (flex), a mini, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like.
The electronic device 200 may implement a photographing function through an ISP, a camera 293, a video codec, a GPU, a display 294, an application processor, and the like.
The ISP is used to process the data fed back by the camera 293. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and is converted into an image visible to naked eyes. ISP can also optimize the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in the camera 293.
The camera 293 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format. In some embodiments, the electronic device 200 may include N cameras 293, N being a positive integer greater than 1.
Illustratively, the N cameras 293 may include: one or more front cameras and one or more rear cameras. For example, the electronic device 200 is a mobile phone. The handset shown in fig. 3A includes a front facing camera, such as front facing camera 301. The handset shown in fig. 3B includes two front cameras, such as front camera 302 and front camera 303. The handset shown in fig. 3C includes three front cameras, such as front cameras a, b, and C. The handset shown in fig. 3E includes two rear cameras, such as rear cameras 304 and 305. The handset shown in fig. 3F includes four rear cameras, such as rear cameras 306, 307, 308, and 309. The handset shown in fig. 3G includes three rear cameras, such as rear cameras 1, 2, and 3.
The above N may be 3, and the mobile phone may include a front camera 301 shown in fig. 3A, a rear camera 304 shown in fig. 3E, and a rear camera 305. Alternatively, N may be 5, and the handset may include front camera 301 shown in fig. 3A, rear camera 306, rear camera 307, rear camera 308, and rear camera 309 shown in fig. 3F. Of course, the number of cameras in the above-described cell phone includes, but is not limited to, the number described in the above-described example. For example, N may also be 6, and the mobile phone includes three front cameras (front camera a, front camera b, and front camera C shown in fig. 3C) and three rear cameras (rear camera 1, rear camera 2, and rear camera 3 shown in fig. 3G).
Wherein, the N cameras 239 may include one or more of the following cameras: the camera comprises a main camera, a long-focus camera, a wide-angle camera, a super-wide-angle camera, a micro-distance camera, a fish-eye camera, an infrared camera, a depth camera and a black-and-white camera.
(1) And a main camera.
The main camera has the characteristics of large light incoming quantity, high resolution and centered visual field range. The primary camera is typically the default camera for an electronic device, such as a cell phone. That is, the electronic device (e.g., a cell phone) may default to the primary camera in response to a user launching the "camera" application, displaying the image captured by the primary camera on the preview interface. The field of view of the camera is determined by the field of view (FOV) of the camera. The larger the FOV of the camera, the larger the field of view of the camera.
(2) A tele camera.
The long-focus camera has longer focal length and can be suitable for shooting objects far away from the mobile phone (namely, far objects). However, the amount of light entering the tele camera is small. Using a tele camera to capture images in a dim light scene may affect image quality due to insufficient light input. In addition, the field of view of the tele camera is small, and the tele camera is not suitable for shooting images of larger scenes, namely is not suitable for shooting larger shooting objects (such as buildings or landscapes).
(3) Wide angle camera.
The wide-angle camera has a larger visual field range and can be suitable for shooting larger shooting objects (such as buildings or landscapes). However, the resolution of the wide-angle camera is low. In addition, the image of the subject is easily distorted, that is, the image of the subject is easily deformed, due to the fact that the image obtained by photographing with the wide-angle camera is used.
(4) Ultra-wide angle camera.
The ultra-wide angle camera and the wide angle camera are the same camera. Alternatively, the ultra-wide angle camera may have a wider field of view than the wide angle camera described above.
(5) And a micro-camera.
The micro camera is a special lens used for micro photography, and is mainly used for shooting very fine objects such as flowers, insects and the like. The micro-range lens is used for shooting fine natural scenes, so that microscopic scenes which cannot be seen by people can be shot.
(6) Fish-eye camera.
The fisheye camera is an auxiliary lens with a focal length of 16mm or less and a field angle of view of approximately 180 deg.. A fisheye camera may be considered an extreme wide angle camera. The front lens of this camera is very short in diameter and projects in a parabolic shape toward the front of the lens, quite similar to the eyes of a fish, and is therefore called a fish-eye camera. The image shot by the fish-eye camera is very different from the real world image in the eyes of people; therefore, the fisheye camera is generally used when a special shooting effect is obtained.
(7) An infrared camera.
The infrared camera has the characteristic of large spectrum range. For example, an infrared camera may sense not only visible light but also infrared light. Under a dim light scene (namely weak light), the characteristic that the infrared camera can sense infrared light is utilized, and the infrared camera is used for shooting images, so that the image quality can be improved.
(8) Depth camera.
A time of flight (ToF) camera or a structured light camera, etc., are depth cameras. Taking a depth camera as an example of a ToF camera. The ToF camera has the characteristic of accurately acquiring depth information of a shooting object. The ToF camera can be suitable for face recognition and other scenes.
(9) Black and white cameras.
Black and white cameras do not have filters. Therefore, the amount of light input to the black-and-white camera is large compared to the color camera. However, images acquired by the black-and-white camera can only show gray scales of different levels, and cannot show the true color of a shooting object. The main camera, the tele camera, the wide camera and the like are all color cameras.
It will be appreciated that the location of the different cameras on the handset is different. Therefore, when the mobile phone is fixed in a viewing environment, the field of view of different cameras may be different, and the images acquired by the mobile phone in the viewing environment may be different.
For example, consider a cell phone that includes three front cameras a, b, and C as shown in fig. 3C. The three front cameras are sequentially arranged from left to right; therefore, the three front cameras have different visual fields, and the images of the same view-finding environment acquired by the front cameras are different. As shown in fig. 3C, the front camera a is disposed at a position far to the left of the mobile phone than the front cameras b and C; therefore, as shown in fig. 3D, the field of view a of the front camera a is left-shifted compared to the field of view B of the front camera B and the field of view C of the front camera C. As shown in fig. 3C, the front camera b is disposed in the middle of the front cameras a and b; therefore, as shown in fig. 3D, the field of view B of the front camera B is offset from the field of view a of the front camera a and the field of view C of the front camera C. As shown in fig. 3C, the front camera C is disposed at a position far to the right of the mobile phone than the front cameras a and b; therefore, as shown in fig. 3D, the field of view C of the front camera C is right-shifted compared to the field of view a of the front camera a and the field of view B of the front camera B.
For example, consider a cell phone that includes three rear cameras 1, 2, and 3 as shown in fig. 3G. The three rear cameras are sequentially arranged from top to bottom; therefore, the three rear cameras have different visual fields, and the images of the same view-finding environment acquired by the three rear cameras are different. As shown in fig. 3G, the rear camera 1 is disposed at a position above the mobile phone compared with the rear cameras 2 and 3; therefore, as shown in fig. 3H, the field of view 1 of the rear camera 1 is shifted upward compared to the field of view II of the rear camera 2 and the field of view III of the rear camera 3. As shown in fig. 3G, the rear camera 2 is disposed in the middle of the rear cameras 1 and 3, and thus the field of view II of the rear camera 2 is offset in the middle compared to the field of view 1 of the rear camera 1 and the field of view III of the rear camera 3. As shown in fig. 3G, the rear camera 3 is disposed at a position lower than the rear cameras 1 and 2 in the mobile phone, and thus the field of view III of the rear camera 3 is lower than the field of view 1 of the rear camera 1 and the field of view II of the rear camera 2.
Of course, factors affecting the field of view of the camera include not only the position of the camera on the electronic device, but also hardware parameters of the camera (e.g., field angle). The position of the camera on the electronic device affects the position of the camera's field of view (e.g., left, right, up or down, etc.), as described above; the hardware parameters of the camera (such as the angle of view) affect the size of the field of view of the camera.
Illustratively, the field of view of the primary camera (e.g., the rear primary camera) may be 1.0X-8.0X; the visual field range of the wide-angle camera (such as a rear-mounted wide-angle camera) is 0.6X-1.0X; the field of view of the tele camera (such as a rear tele camera) is 8.0X. Wherein, 1.0X, 8.0X and 0.6X are all zoom magnifications. "1×" indicates that the zoom magnification is 1. "8.0X" means that the zoom magnification is 8.0 times. "0.6X" means that the zoom magnification is 0.6 times. The zoom magnification described in the embodiments of the present application may be an optical zoom magnification or a digital zoom magnification.
For example, the field of view a of the front camera a (e.g., a wide-angle camera) shown in fig. 3D is larger than the field of view B of the front camera B (e.g., a main camera). For another example, the field of view III of the rear camera 3 (e.g., a wide-angle camera) shown in fig. 3H is larger than the field of view II of the rear camera 2 (e.g., a main camera).
In the process of recording video by using the electronic device 200 (such as a mobile phone), according to the above characteristics of the various cameras (such as the position of the camera on the mobile phone and the hardware parameters of the camera), at least two cameras may be used in a switching manner based on different shooting purposes. For example, when a user wants to shoot a distant object by using a mobile phone, the user can switch to use the tele camera; when a user wants to photograph a distant large photographic subject using a mobile phone, a wide-angle camera may be used.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the electronic device 200 is selecting a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, or the like.
Video codecs are used to compress or decompress digital video. The electronic device 200 may support one or more video codecs. In this way, the electronic device 200 may play or record video in a variety of encoding formats, such as: dynamic picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
The NPU is a neural-network (NN) computing processor, and can rapidly process input information by referencing a biological neural network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously perform self-learning. Applications such as intelligent cognition of the electronic device 200 may be implemented by the NPU, for example: image recognition, face recognition, speech recognition, text understanding, etc.
The external memory interface 220 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 200. The external memory card communicates with the processor 210 through an external memory interface 220 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
Internal memory 221 may be used to store computer executable program code that includes instructions. The processor 210 executes various functional applications of the electronic device 200 and data processing by executing instructions stored in the internal memory 221. For example, in an embodiment of the present application, the processor 210 may include a memory program area and a memory data area by executing instructions stored in the internal memory 221.
The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the electronic device 200 (e.g., audio data, phonebook, etc.), and so on. In addition, the internal memory 221 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like.
The electronic device 200 may implement audio functions through an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, an ear-headphone interface 270D, an application processor, and the like. Such as music playing, recording, etc.
The audio module 270 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 270 may also be used to encode and decode audio signals. In some embodiments, the audio module 270 may be disposed in the processor 210, or some functional modules of the audio module 270 may be disposed in the processor 210. Speaker 270A, also referred to as a "horn," is used to convert audio electrical signals into sound signals. A receiver 270B, also referred to as a "earpiece", is used to convert the audio electrical signal into a sound signal. Microphone 270C, also referred to as a "microphone" or "microphone," is used to convert sound signals into electrical signals.
The earphone interface 270D is for connecting a wired earphone. Earphone interface 270D may be USB interface 230 or a 3.5mm open mobile electronic device platform (open mobile terminal platform, OMTP) standard interface, american cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor is used for sensing a pressure signal and can convert the pressure signal into an electric signal. In some embodiments, a pressure sensor may be provided at the display 294. The gyroscopic sensor may be used to determine a motion pose of the electronic device 200. The air pressure sensor is used for measuring air pressure. The magnetic sensor includes a hall sensor. The electronic device 200 may detect the opening and closing of the flip cover using a magnetic sensor. The acceleration sensor may detect the magnitude of acceleration of the electronic device 200 in various directions (typically three axes). The magnitude and direction of gravity may be detected when the electronic device 200 is stationary. The electronic equipment gesture recognition method can also be used for recognizing the gesture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications. The distance sensor is used to measure distance. The electronic device 200 may measure the distance by infrared or laser. The proximity light sensor may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 200 emits infrared light outward through the light emitting diode. The electronic device 200 detects infrared reflected light from nearby objects using a photodiode. When sufficient reflected light is detected, it may be determined that an object is in the vicinity of the electronic device 200.
The ambient light sensor is used for sensing ambient light brightness. The ambient light sensor may also be used to automatically adjust white balance when taking a photograph. The ambient light sensor may also cooperate with the proximity light sensor to detect whether the electronic device 200 is in a pocket to prevent false touches. The fingerprint sensor is used for collecting fingerprints. The electronic device 200 can utilize the collected fingerprint characteristics to realize fingerprint unlocking, access an application lock, fingerprint photographing, fingerprint incoming call answering and the like. The temperature sensor is used for detecting temperature. Touch sensors, also known as "touch panels". The touch sensor may be disposed on the display screen 294, and the touch sensor 280K and the display screen 294 form a touch screen, which is also called a "touch screen". The touch sensor is used to detect a touch operation acting on or near it. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type.
Keys 290 include a power on key, a volume key, etc. The keys 290 may be mechanical keys. Or may be a touch key. The electronic device 200 may receive key inputs, generating key signal inputs related to user settings and function controls of the electronic device 200.
The motor 291 may generate a vibration alert. The motor 291 may be used for incoming call vibration alerting or for touch vibration feedback. For example, touch operations acting on different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 291 may also correspond to different vibration feedback effects by touch operations applied to different areas of the display 294. Different application scenarios (such as time reminding, receiving information, alarm clock, game, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
The indicator 292 may be an indicator light, which may be used to indicate a state of charge, a change in power, a message indicating a missed call, a notification, etc.
The SIM card interface 295 is for interfacing with a SIM card. The SIM card may be inserted into the SIM card interface 295 or removed from the SIM card interface 295 to enable contact and separation from the electronic device 200. The electronic device 200 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 295 may support Nano SIM cards, micro SIM cards, and the like.
The methods in the following embodiments may be implemented in the electronic device 200 having the above-described hardware structure.
The software system of the electronic device 200 may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In this embodiment, taking an Android system with a layered architecture as an example, a software structure of the electronic device 200 is illustrated.
Fig. 4 is a software architecture block diagram of an electronic device 200 provided in an embodiment of the present application. The layered architecture may divide the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer (abbreviated as application layer) 410, an application framework layer (abbreviated as framework layer) 420, a hardware abstraction layer (hardware abstract layer, HAL) layer 430, and a Kernel layer (Kernel, also referred to as driver layer) 440.
The Application layer (Application) 410 may include a series of Application packages, among other things. The application layer may include a plurality of application packages. The plurality of application packages may be camera, gallery, calendar, phone call, map, navigation, WLAN, bluetooth, music, video, short message, desktop start (Launcher) applications, etc. For example, as shown in fig. 4, the application layer 410 may include a camera system application (also referred to as a camera application) 411.
As shown in fig. 4, the camera system application 411 may be configured to present the video stream reported by the bottom layer in the view interface of the recorded video in the recorded video mode. The electronic device 200 may include a plurality of cameras, each of which may be configured to capture images, and successive multi-frame images captured by the cameras may form a video stream. That is, each of the cameras described above may be used to capture video streams.
For example, assume that the electronic device 200 includes a front camera and a rear camera; the video stream 1 shown in fig. 4 may be a video stream collected by a front-end camera, referred to as a front-end video stream; the video stream 2 shown in fig. 4 may be a video stream collected by a rear camera, referred to as a rear video stream.
Although multiple cameras of the electronic device 200 may collect video streams; however, in general, only one video stream captured by one camera is shown in the viewing interface of the recorded video. The video stream shown in the view interface of the recorded video may be referred to as a preview video stream. The camera that captures the preview video stream may be referred to as a preview camera. Through the preview video stream presented by the camera system application 411, the user can view the view of the current video stream in real time. The preview video stream may be video stream 1 or video stream 2 described above.
In the embodiment of the application, the user can dynamically switch the camera according to the needs of the user. For example, as shown in fig. 4, the camera system application 411 is also used to provide the following functions: in the video recording mode, if the user selects to switch the camera (i.e. switch the function of the camera during the video recording process), the icon of the switch camera (i.e. the first control in the embodiment of the present application) may be displayed (i.e. appear) on the viewfinder interface of the video recording process. In response to a user clicking on the toggle camera icon (i.e., the first control), the camera system application 411 may toggle the preview camera to refresh the video stream (i.e., refresh the preview video stream). For example, when the preview camera is a front camera, the preview video stream is video stream 1. In response to the user clicking the switch camera icon, the camera system application 411 may switch the preview camera to the rear camera, and the preview video stream is refreshed to video stream 2.
Wherein the Camera identity (Camera ID) of each Camera is different. The application layer 410 may instruct the bottom layer (e.g. the kernel layer 440) to start the corresponding Camera through the Camera ID of the Camera, and instruct the bottom layer (e.g. the frame layer 420) to process the preview video stream collected by the preview Camera according to the Camera ID of the preview Camera. The application layer 410 may also instruct the bottom layer (e.g. the kernel layer 440) to close the corresponding Camera through the Camera ID of the Camera according to the operation of the user.
Further, in the video recording mode, if the user turns off the switch camera (i.e., turns off the function of switching the camera during video recording), the camera system application 411 will not display the switch camera icon (i.e., the first control) on the viewfinder interface of the video recording. Also, the camera system application 411 may also instruct the bottom layer to shut down the idle video stream. The idle video stream may include other video streams except the preview video stream in video streams collected by a plurality of cameras of the electronic device. The camera system application 411 may close the idle video stream by closing the idle camera. The idle camera may include other cameras of the plurality of cameras of the electronic device other than the preview camera. The power consumption of the electronic device can be reduced by closing the idle camera.
The Framework layer (Framework) 420 provides an application programming interface (application programming interface, API) and programming Framework for the application programs of the application layer. The application framework layer includes a number of predefined functions. As shown in fig. 4, the framework layer may provide Camera APIs such as a Camera API (API 1|api 2) 421, a video processing (Media Recorder) module 422, a Camera Service (Camera Service) 423, a Camera expansion Service (Camera Service Extra) 425, and a hardware development kit (hardware software development kit, hw SDK) 424.
The Camera API (API 1|api 2) 421 is used as an interface for the bottom layer (such as the hardware abstraction layer 430) to interact with the application layer 410. Specifically, the Camera API (API 1|api 2) 421 may receive a notification from an upper layer (such as the application layer 410) of switching the function of the Camera during the process of starting up the recorded video, and process the notification of switching the function of the Camera during the process of starting up the recorded video through the Camera service 423, the Camera expansion service 425, and the HwSDK 424. Then, the kernel layer 440 is instructed to turn on the idle camera by the HAL layer 430, and the video streams collected by the preview camera and the idle camera are obtained by the HAL layer 430. The Camera API (API 1|api 2) 421 may also receive Camera switch notifications from an upper layer (e.g., application layer 410). The Camera switching notification includes a Camera ID to be switched to a preview Camera.
Typically, the application layer 410 interacts with the user, and after triggering the electronic device 200 to begin recording video, the Media Recorder module 422 can record in real time the preview video stream of the Surface view presented to the user and prepare it for generating a video file at any time.
In this embodiment of the present application, when the application layer 410 interacts with a user to trigger the electronic device 200 to switch the preview camera, the application layer 410 may refresh the Surface view in real time, for example, update the Surface view, and then switch the video stream collected by the preview camera. At this time, the Media Recorder module 422 does not need to do any operation (e.g., does not need to generate a video file), as long as the video stream is obtained by going to the Surface view. In this way, the electronic device 200 switches the camera without sensing the Media Recorder module 422, and when the application layer 410 interacts with the user to trigger the electronic device 200 to stop recording video, a complete video file can be generated even if the camera is switched during video recording. The complete video file comprises preview video streams collected by a plurality of cameras before and after switching.
HAL layer 430 is used to connect framework layer 420 and kernel layer 440. For example, HAL layer 430 may transfer data (e.g., transparent) between framework layer 420 and kernel layer 440. Of course, HAL layer 430 may also process data from the underlying layers (i.e., kernel layer 440) and then transmit it to framework layer 420. For example, HAL layer 430 may convert parameters of kernel layer 440 regarding hardware devices into a software programming language recognizable by framework layer 420 and application layer 410. For example, HAL layer 430 may include HAL3.0.
In this embodiment, the HAL layer 430 may manage video streams collected by multiple cameras according to the notification from the upper layers (such as the framework layer 420 and the application layer 410), for example, instruct the lower layers (such as the kernel layer 440) to turn off/on the video streams of the cameras according to the previous notification.
The kernel layer 440 includes a Camera driver 441, an image signal processor ISP 443, and a Camera device 442. The Camera device 442 may include a plurality of cameras, each including a Camera lens, an image sensor, and the like. The image signal processor ISP 443 may be provided separately from a Camera (e.g., camera device 442). In other embodiments, the image signal processor ISP 443 may be provided in a Camera (e.g., camera device 442).
Among them, the image signal processor ISP 443 and the Camera device 442 are main devices that take videos or pictures. The light signal reflected by the view finding environment is irradiated on the image sensor through the camera lens and can be converted into an electric signal, and the electric signal can be used as an original parameter stream (i.e. video stream) to be transmitted to the upper layer by the camera drive 441 after being processed by the image signal processor ISP 443. Also, the Camera driver 441 may also receive a notification (e.g., a notification indicating to turn on or off a Camera) from an upper layer, and send a stream of functional processing parameters to the Camera device 442 according to the notification to turn on or off the corresponding Camera.
In the following embodiments, the method of the embodiments of the present application will be described by taking the electronic device 200 as an example of a mobile phone.
The embodiment of the application provides a method for shooting video, which can be applied to a mobile phone comprising a plurality of cameras. In a first application scenario, the plurality of cameras includes a first camera and a second camera. The first camera is a rear camera of the mobile phone, and the second camera is a front camera of the mobile phone; or, the first camera is a front camera of the mobile phone, and the second camera is a rear camera of the mobile phone. In the application scene, by adopting the method of the embodiment of the application, the mobile phone can switch between the front camera and the rear camera of the mobile phone in the process of recording video. For example, as shown in fig. 5, the method of capturing video may include S501 to S505:
S501, the mobile phone displays a first interface. The first interface is a viewing interface where the cell phone is recording video. The first interface includes a first preview image captured by a first camera of the plurality of cameras.
Illustratively, the handset may display a first interface 601 shown in fig. 6A. The first interface 601 may include a stop recording button 603, where the timing duration of the timing option 607 in the first interface 601 is 00:00:08. In the case that the mobile phone is recording video, the view finding interface of the video recording of the mobile phone can comprise a stop recording button, and the time counting option in the view finding interface of the video recording of the mobile phone can count time. It can be seen that the first interface 601 is a viewing interface where a mobile phone is recording video.
In addition, a first preview image 602 acquired by a first camera (such as a rear camera of a mobile phone) is displayed in a viewfinder of the first interface 601.
S502, the mobile phone receives a first operation of a user on a first interface. The first operation is for triggering the electronic device to switch to use a second camera of the plurality of cameras.
In one implementation, the first interface may include a first control. The first control can be used for triggering the mobile phone to switch the camera. For example, a first control 604 is included in the first interface 601 shown in fig. 6A, and the first control 604 is also referred to as an icon for switching cameras. The first operation may be a click operation (e.g., a single click operation) of the first control 604 shown in fig. 6A by the user.
In another implementation manner, the first operation may also be a preset gesture, such as an S-gesture or a v-gesture, which is input by the user on the first interface. The preset gesture may be preconfigured in the handset. And the mobile phone can prompt the user with the preset gesture and the function triggered by the preset gesture (namely, the function of switching the camera in the video recording process) on the video-recording view-finding interface.
Wherein the second camera is different from the first camera. For example, in the case where the first camera is a rear camera of a cellular phone, the second camera is a front camera of the cellular phone.
S503, responding to the first operation, and displaying a second interface by the mobile phone. The second interface is a viewing interface where the cell phone is recording video. The second interface includes a second preview image captured by a second camera of the plurality of cameras.
That is, the mobile phone can switch the first preview image in the first interface to the second preview image collected by the second camera.
For example, the first operation described above is exemplified by a click operation of the first control 604 shown in fig. 6A by the user. In response to a first operation by the user of the first control 604 shown in fig. 6A, the handset may display a view interface (i.e., a second interface) 605 of fig. 6B where the handset is recording video.
Wherein, in response to the first operation of the first control 604 shown in fig. 6A by the user, the mobile phone is recording the preview image in the viewing interface (i.e. the first interface) of the video, the first preview image 602 shown in fig. 6A is switched to the second preview image 606 shown in fig. 6B. The first preview image 602 and the second preview image 606 are images captured by different cameras, and thus, as shown in fig. 6A and 6B, the first preview image 602 and the second preview image 606 are different.
In general, in the process of recording video by a mobile phone, only one camera is turned on to collect images. Therefore, in the process of recording video, if the mobile phone is to switch the preview camera from the first camera to the second camera, a certain time is required for starting the second camera, and a short-time (such as 1 second) black screen or blank can appear on the view finding interface, so that the user experience is affected. For example, in the process of recording video by the mobile phone, if only the first camera is turned on, in response to the first operation of the first control 604 shown in fig. 8A by the user, the mobile phone may display the view interface 901 for recording video shown in fig. 9B (for example, display for 1 second), and then automatically display the view interface 803 for recording video by the mobile phone shown in fig. 8B.
In order to realize the noninductive switching of the cameras in the process of recording the video by the mobile phone, in the embodiment of the application, in the process of executing S501-S502 by the mobile phone, not only the first camera of the mobile phone is used for collecting images, but also the second camera of the mobile phone is used for collecting images. Specifically, by adopting the method of the embodiment of the application, the mobile phone can start a plurality of cameras in advance. It should be noted that although both the first camera and the second camera are capturing images; however, when the mobile phone executes S501, the first camera is used as a preview camera, and the mobile phone displays the first preview image acquired by the first camera on the first interface, and does not display the image acquired by the second camera. And when the mobile phone executes S503, the second camera is used as a preview camera, the mobile phone displays a second preview image acquired by the second camera on the second interface, and does not display the image acquired by the first camera.
That is, with the method of the embodiment of the present application, multiple cameras (e.g., a first camera and a second camera) all acquire images, ready to provide a video stream for a surface view. For example, as shown in fig. 7A, a first camera provides video stream 1 while a second camera provides video stream 2. When the mobile phone executes S501, the first camera is used as a preview camera, and the surfacview displays the video stream 1 (i.e., the first video stream). The mobile phone executes S503, after the preview camera is switched from the first camera to the second camera, the second camera is used as the preview camera, and the surfacview displays the video stream 2 (i.e. the second video stream).
In an exemplary embodiment, when the mobile phone enters a video recording mode, the mobile phone can start a plurality of cameras in the mobile phone, so that the non-sensing switching of the cameras is realized in the process of recording video by the mobile phone.
Thus, the mobile phone starts the cameras to collect images, so that the cameras are ready for displaying the SurfaceView. Therefore, no matter which camera is used by the mobile phone in a switching way, a short-time (such as 1 second) black screen or blank of a view finding interface can be avoided because a certain time is needed for starting the camera. By adopting the scheme, the noninductive switching of the camera can be realized in the process of recording the video by the mobile phone, and the shooting experience of a user can be improved.
It should be noted that, in the process of executing S501, the mobile phone may cache the video stream including the above-mentioned multi-frame first preview image. However, in response to the first operation, the mobile phone does not pause or stop recording video, nor does the mobile phone generate a video file of a video stream composed of a plurality of frames of the first preview image. And continuing to record the video, caching the video stream comprising a plurality of frames of second preview images, and stopping recording the video and generating a first video file by responding to the second operation by the mobile phone until receiving the second operation of the user. After receiving the second operation, the mobile phone generates the first video file, and the detailed description of the first video file may refer to the content in the following embodiments, which are not described herein.
In some embodiments, to reduce power consumption of the mobile phone, the mobile phone may not activate the plurality of cameras in the mobile phone in advance, but rather activate the second camera in response to a first operation of the first interface by the user. In this way, although a short-time (e.g., 1 second) black screen or blank space may appear on the viewfinder interface during the process of switching the cameras, compared with the scheme of starting a plurality of cameras in advance, the power consumption of the mobile phone can be reduced.
In some embodiments, to reduce power consumption of the mobile phone, the mobile phone may not activate the plurality of cameras in the mobile phone in advance, but rather activate the second camera in response to a first operation of the first interface by the user. In this way, although a short-time (e.g., 1 second) black screen or blank space may appear on the viewfinder interface during the process of switching the cameras, compared with the scheme of starting a plurality of cameras in advance, the power consumption of the mobile phone can be reduced.
S504, the mobile phone receives a second operation of the user on a second interface. The second operation is used for triggering the mobile phone to stop recording the video.
The second interface (i.e. the viewfinder interface of the mobile phone that is recording video) may include a stop recording button. The second operation may be a click operation (e.g., a clicking operation) of the stop recording button by the user. For example, the view interface 601 for recording video shown in fig. 6A, the view interface 605 for recording video shown in fig. 6B, and the view interface 609 for recording video shown in fig. 6C each include a stop recording button 603. The mobile phone can receive the second operation of the stop recording button 603 in the view finding interface of the recorded video by the user at any time during the process of recording the video, stop recording the video and generate the recorded video file.
It should be appreciated that the timing duration of the timing options in the viewing interface of the video recorded by the handset may change over time during the video recorded by the handset. For example, the timing duration of timing option 607 shown in FIG. 6A is 00:00:08, and the timing duration of timing option 608 shown in FIG. 6B is 00:00:09, and the timing duration of timing option 610 shown in FIG. 6C is 00:00:18 over time.
For example, assume that the handset receives a second operation from the user when the duration of recording the video is 00:00:18. For example, as shown in fig. 6C, when the timing duration of the timing option 610 is 00:00:18, the mobile phone receives the second operation of the stop recording button 603 by the user.
S505, the mobile phone generates a first video file. The first video file includes a first video stream including a plurality of frames of first preview images and a second video stream including a plurality of frames of second preview images.
For example, the mobile phone receives the second operation of the stop recording button 603 shown in fig. 6C by the user, and may generate the first video file shown in fig. 7B. As shown in fig. 7B, the first video file includes: a first video stream and a second video stream. The first video stream comprises a plurality of frames of first preview images displayed on a display screen of the mobile phone under the condition that the first camera is used as a preview camera. And the second video stream comprises a plurality of frames of second preview images displayed on a display screen of the mobile phone under the condition that the second camera is used as a preview camera.
It should be noted that, in the process of executing S501 by the mobile phone, the first camera is used as a preview camera of the mobile phone, and the image collected by the first camera (i.e., the first preview image) is displayed in the viewing interface of the video recorded by the mobile phone; after the mobile phone executes S502-S503, the second camera is used as a preview camera of the mobile phone, and the image collected by the second camera (i.e. the second preview image) is displayed in the viewing interface of the video recorded by the mobile phone.
It should be understood that the mobile phone executing the video file generated in S505 includes: and displaying all preview images in a view finding interface of the video recorded by the mobile phone in the video recording process of the mobile phone.
For example, assume that the cell phone is the first camera as the preview camera from 00:00:00 video recording to 00:00:08, without switching cameras.
As can be seen from fig. 6A to 6C: during the period of 00:00:00-00:00:08, the first camera is used as a preview camera; the second camera acts as a preview camera during the period of 00:00:09-00:00:18. Thus, as shown in fig. 7B, the first video file generated by the mobile phone executing S505 may include: 00:00:00-00:00:08, and a first video stream acquired by a first camera; and a second video stream acquired by the second camera for a period of 00:00:09-00:00:18.
Wherein, during the period of 00:00:00-00:00:08, the first video stream collected by the first camera may include: 00:00:00-00:00:08, and acquiring and displaying multiple frames of first preview images on a display screen of the mobile phone by the first camera. 00:00:09-00:00:18, the second video stream acquired by the second camera may include: 00:00:09-00:00:18, and a plurality of frames of second preview images are acquired and displayed on the display screen of the mobile phone by the second camera.
The principle of the mobile phone executing S505 to generate the first video file in the embodiment of the present application is described herein with reference to fig. 4 and fig. 7C.
The preview video stream (including a plurality of frames of preview images) in the surficial view of the mobile phone is collected by a preview camera of the mobile phone and displayed on a display screen. I.e., the preview video stream in the surfmeview is the video stream that the user wants to capture and generate. Thus, as shown in fig. 7C, video recording is started from the handset, and a video processing (Media Recorder) module 422 acquires the preview video stream from the surface view in real time and buffers the acquired video stream. Thus, upon receipt of the second operation (i.e., stopping recording the video), the video processing (Media Recorder) module 422 may generate a video file comprising the buffered video stream.
By adopting the method of the embodiment of the application, the mobile phone can switch the camera in the video recording process. As shown in fig. 7C, after the camera is switched, the mobile phone can continue to record video, and the video processing (Media Recorder) module 422 will not be affected to obtain the first video stream from the surface view in real time, and buffer the first video stream.
From the above description, it is clear that: after the preview camera of the mobile phone is switched from the first camera to the second camera, the preview video stream in the surface view is also switched, for example, the preview video stream in the surface view is switched from the first video stream collected by the first camera to the second video stream collected by the second camera. Thus, after the handset switches cameras, the video processing (Media Recorder) module 422 obtains the preview video stream from the surface view, and the first video stream collected by the first camera becomes the second video stream collected by the second camera. In this way, a second video stream may be acquired and buffered by a Media Recorder (422). And receiving a second operation (namely, an operation of stopping recording the video) of the user, and stopping recording the video by the mobile phone. At this time, a video processing (Media Recorder) module 422 may generate a first video file including the buffered first video stream and the second video stream.
It should be noted that, the video file generated in S505 by the mobile phone, such as the first video file shown in fig. 7B, is a complete video file. By the method, after the mobile phone finishes recording the video, a complete first video file can be generated and generated. That is, by adopting the method, the video files with multiple visual angles can be obtained by one shooting, a plurality of temporary video files can not be generated, and the temporary video files do not need to be integrated.
In this embodiment, during the video recording process of the mobile phone, a first operation of the user on a view finding interface (such as a first interface) of the video being recorded by the mobile phone, such as a clicking operation on a first control for triggering the mobile phone to switch the camera, may be received. Then, the mobile phone can respond to the first operation to switch the first preview image acquired by the first camera in the first interface to the second preview image acquired by the second camera, namely, the camera of the mobile phone is switched in the process of recording the video. Finally, the mobile phone receives a second operation (such as clicking the record stop button) from the user, and can generate a complete video file including the first video stream and the second video stream.
In summary, by adopting the method of the embodiment of the present application, the camera may be switched in the process of recording video. Moreover, by adopting the method, the multi-view video file can be obtained by one shooting, a plurality of temporary video files are not generated, the temporary video files are not required to be integrated, the clicking operation of a user on a stop recording button is received, and the multi-view video file can be generated in real time for the user to view at any time. Compared with the scheme of segmented recording, the video recording process can be simplified, the video shooting efficiency is improved, and the shooting experience of a user is improved.
Further, by adopting the method of the embodiment of the application, the duration of video recording by the mobile phone is not limited. That is, the mobile phone executes the method of the embodiment of the application, and can record video files with any duration according to the requirement of the user.
In other embodiments, the mobile phone may switch the camera at least twice during one video capturing process. For example, assume that the mobile phone does not receive the second operation of the user when the duration of recording the video is 00:00:18, but receives the first operation of the user again when the duration of recording the video is 00:01:09.
For example, over time, the cell phone may display the video recording viewfinder interface 801 shown in fig. 8A, where the time duration of the time option 805 in the video recording viewfinder interface 801 is 00:01:09. The second preview image 802 is included in the viewfinder of the viewfinder interface 801 of the recorded video.
The handset may receive a first operation by the user of a first control (also referred to as toggling an icon of the camera) 604 shown in fig. 8A. In response to a first operation of the first control 604 shown in fig. 8A by the user, the handset can switch the second preview image 802 to a third preview image captured by the first camera. For example, the handset may display the framing interface 803 of fig. 8B where the handset is recording video. The viewfinder of the viewfinder interface 803 of the recorded video includes a third preview image 804. The second preview image 802 and the third preview image 804 are images acquired by different cameras, and thus, as shown in fig. 8A and 8B, the second preview image 802 and the third preview image 804 are different. The third preview image 804 and the first preview image 602 are images collected by the first camera. For example, as can be seen from comparing fig. 8B and 6A, the third preview image 804 is substantially identical to the first preview image 602.
In the process of recording the video by the mobile phone, the timing duration of the timing options in the viewing interface of recording the video by the mobile phone can be changed along with the time. For example, the timing duration of the timing option 805 shown in fig. 8A is 00:01:09, the timing duration of the timing option 806 shown in fig. 8B is 00:01:10, and the timing duration of the timing option 808 shown in fig. 8C is 00:01:20 over time.
Assume that the mobile phone receives a second operation of the user when the duration of video recording is 00:01:20. For example, as shown in fig. 8C, when the timing duration of the timing option 808 is 00:01:20, the mobile phone receives the second operation of the stop recording button 603 shown in fig. 8C by the user. Upon receiving the second operation of the stop recording button 603 shown in fig. 8C by the user, the mobile phone may generate the second video file shown in fig. 9A. As shown in fig. 9A, the second video file includes: a first video stream, a second video stream, and a third video stream. The first video stream comprises a plurality of frames of first preview images displayed on a display screen of the mobile phone under the condition that the first camera is used as a preview camera. The second video stream includes a plurality of frames of second preview images displayed on a display screen of the mobile phone when the second camera is used as the preview camera. The third video stream includes a plurality of frames of third preview images displayed on the display screen of the mobile phone under the condition that the first camera is used as the preview camera.
It should be understood that the second video file generated by the mobile phone includes all preview images displayed in the viewing interface of the video recorded by the mobile phone during the video recording process of the mobile phone.
For example, assume that the cell phone is the first camera as the preview camera from 00:00:00 video recording to 00:00:08, without switching cameras. As can be seen from the above description in connection with fig. 6A-6C and 8A: during the period of 00:00:00-00:00:08, the first camera is used as a preview camera; during the period of 00:00:09-00:01:09, the second camera is used as a preview camera; the first camera is used as a preview camera in the period of 00:01:10-00:01:20. Thus, as shown in fig. 9A, the second video file generated by the mobile phone may include: 00:00:00-00:00:08, and a first video stream acquired by a first camera; 00:00:09-00:01:09, and a second video stream acquired by a second camera; and a third video stream acquired by the first camera during a period of 00:01:10-00:01:20.
Wherein, during the period of 00:00:00-00:00:08, the first video stream collected by the first camera may include: 00:00:00-00:00:08, and acquiring and displaying multiple frames of first preview images on a display screen of the mobile phone by the first camera. 00:00:09-00:01:09, the second video stream acquired by the second camera may include: 00:00:09-00:01:09, and a plurality of frames of second preview images are acquired and displayed on the display screen of the mobile phone by the second camera. 00:01:10-00:01:20, the third video stream collected by the first camera may include: 00:01:10-00:01:20, and acquiring and displaying a plurality of frames of third preview images on a display screen of the mobile phone by the first camera.
It should be noted that the second video file generated by the mobile phone (such as the second video file shown in fig. 9A) is a complete video file. By the method, after the mobile phone finishes recording the video, a complete video file can be generated and generated. That is, by adopting the method, the video files with multiple visual angles can be obtained by one shooting, a plurality of temporary video files can not be generated, and the temporary video files do not need to be integrated. Compared with the scheme of segmented recording, the video recording process can be simplified, the video shooting efficiency is improved, and the shooting experience of a user is improved.
In some embodiments, after the mobile phone starts recording the video, the camera cannot be switched during the process of recording the video in response to the first operation. Instead, after the video recording is started, the camera can be switched in the video recording process in response to the first operation after a preset function (such as a function of switching the camera in the video recording process) is started by the user. Specifically, as shown in fig. 9C, before S501, the method in the embodiment of the present application may further include S901-S903. As shown in fig. 9C, S501 shown in fig. 5 may include S904.
S901, displaying a fourth interface by the mobile phone. The fourth interface is a view finding interface for recording video by the mobile phone. The fourth interface includes a start recording button. The start recording button is used for triggering the mobile phone to start recording video.
Wherein, although the fourth interface and the first interface are all view finding interfaces for recording video of the mobile phone; however, the first interface is a viewing interface of the mobile phone recording video, that is, a viewing interface of the mobile phone having started recording video; and the fourth interface is a view finding interface that the mobile phone does not start recording video. For example, the first interface includes a stop recording button and the fourth interface includes a start recording button.
It should be appreciated that when the handset displays the fourth interface, the handset has entered the video mode. In the video recording mode, the mobile phone can start recording video as long as the mobile phone receives the click operation of the start recording button by the user. For example, the handset may display the fourth interface 104 shown in fig. 1B, where the fourth interface 104 is a viewing interface for video recorded by the handset. The fourth interface 104 includes a start recording button 108.
S902, responding to clicking operation of a recording start button in the fourth interface by a user, and displaying a fifth interface by the mobile phone. The fifth interface is a viewing interface where the cell phone is recording video. The fifth interface includes a preset function switch.
The preset function switch is used for triggering the mobile phone to start or close the preset function. The preset function is a function of switching cameras in the video recording process.
For example, in response to a user clicking (e.g., clicking) on the start record button 108 in the fourth interface 104 shown in fig. 1B, the handset may display the fifth interface 1001 shown in fig. 10A. The fifth interface 1001 is a view interface where the mobile phone is recording video, for example, the fifth interface 1001 includes a stop recording button 603. The fifth interface 1001 further includes a preset function switch (e.g., a switch) 1002. The switch 1002 is used to trigger the mobile phone to turn on or off a preset function.
It should be noted that the fifth interface and the first interface are both viewing interfaces where the mobile phone is recording video. The differences are: when the mobile phone displays the first interface, the preset function of the mobile phone is started, and the mobile phone responds to the first operation of the user on the first interface to switch the camera. When the mobile phone displays the fifth interface, the preset function of the mobile phone is not started yet, and the mobile phone responds to the click operation of the preset function switch in the fifth interface by a user to start the preset function.
S903, the mobile phone receives a third operation of the preset function switch by the user, and the third operation is used for triggering the mobile phone to start the preset function.
The preset function is a function of switching cameras in the video recording process.
And S904, responding to a third operation of a preset function switch by a user, and displaying the first interface, such as the first interface comprising the first control, by the mobile phone.
For example, the mobile phone may receive a third operation of the preset function switch (e.g., the switch) 1002 shown in fig. 10A by the user. In response to a third operation of the preset function switch (e.g., a change-over switch) 1002 by the user, the mobile phone may display a first interface 1003 shown in fig. 10B. The first interface 1003 includes a first control 604. The first control 604 is used to trigger the mobile phone to switch the camera. The first interface 1003 further includes a preset function switch 1004.
In some embodiments, the mobile phone may display the preset function switch in the third display state on the fifth interface, and display the preset function switch in the fourth display state on the first interface. The third display state is used for indicating that the mobile phone has not started the preset function, and the fourth display state is used for indicating that the mobile phone has started the preset function. For example, the mobile phone displays a preset function switch 1002 in a third display state, such as a "switch" of black-on-white character, on a fifth interface 1001 shown in fig. 10A; the mobile phone displays a preset function switch 1004 in a fourth display state, such as a "change-over switch" of black-matrix white words, on a first interface 1003 shown in fig. 10B.
In this embodiment, the mobile phone may instruct the mobile phone to turn on/off the preset function through the state of the preset function switch. Thus, the user can judge whether the preset function is on/off by observing the state of the preset function switch. Of course, the user can also judge whether the preset function is on/off by observing whether the view finding interface of the video being recorded by the mobile phone comprises the first control.
In other embodiments, the mobile phone may also close the preset function in response to a user operation during the video recording process. Specifically, after S904, the method in the embodiment of the present application may further include S905 to S906. S905: the mobile phone receives a fourth operation of the preset function switch by a user, wherein the fourth operation is used for triggering the mobile phone to close the preset function. S906, responding to a fourth operation of a preset function switch by a user, closing the preset function by the mobile phone, and displaying a sixth interface. The sixth interface is a viewfinder interface in which the cell phone is recording video. When the mobile phone displays the sixth interface, the camera cannot be switched in response to the first operation of the user. For example, the sixth interface does not include the first control described above, and thus the camera cannot be switched in response to the first operation by the user.
Note that the cell phone may execute S905 to S906 in the process of the cell phone executing S502 to S503 after S904. That is, before and after the mobile phone switches the camera, the mobile phone can execute S905-S906 to close the preset function.
For example, in response to a fourth operation of the preset function switch 1004 shown in fig. 10B by the user (e.g., a switch), the mobile phone may display a sixth interface 1005 shown in fig. 10C, where the sixth interface 1005 is a viewing interface in which the mobile phone is recording video.
In this embodiment, the mobile phone may turn on/off the preset function according to the user's requirement in response to the third operation of the user. The preset function is turned on/off according to the requirements of the user, so that the shooting experience of the user can be improved; the idle camera can be closed by closing the preset function, so that the power consumption of the mobile phone can be reduced.
In other embodiments, after the mobile phone starts recording the video, if the preset function of the mobile phone is started, the mobile phone may switch the camera in the process of recording the video in response to the first operation. However, after the mobile phone starts to record the video, if the preset function of the mobile phone is not started, the mobile phone cannot switch the camera in the process of recording the video in response to the first operation.
Specifically, as shown in fig. 10D, before S501, the method in the embodiment of the present application may further include S1001. As shown in fig. 10D, S501 shown in fig. 5 may include S1002.
S1001, the mobile phone displays a fourth interface. The fourth interface is a view finding interface for recording video by the mobile phone. The fourth interface includes a start recording button. The start recording button is used for triggering the mobile phone to start recording video.
For a detailed description of the fourth interface, reference may be made to the description of the fourth interface in S901, which is not repeated herein in this embodiment of the present application. For example, the handset may display the fourth interface 104 shown in fig. 1B, where the fourth interface 104 is a viewing interface for video recorded by the handset. The fourth interface 104 includes a start recording button 108.
S1002, responding to clicking operation of a recording start button in a fourth interface by a user, and if a preset function of the mobile phone is started, displaying a first interface, such as a first interface comprising a first control, by the mobile phone.
For example, in response to a user clicking on the start record button 108 in the fourth interface 104 shown in fig. 1B, the handset may display the first interface 1101 shown in fig. 11. The first interface 1101 includes a first control 604. The first interface 1101 also includes a stop video button, a timer option, and the like.
In this embodiment, the mobile phone may start the above-mentioned preset function by any one of the following implementation manners, that is, the function of switching the camera during the video recording process.
Implementation mode (1): and the mobile phone responds to the operation of starting the preset function input by the user on the setting interface, and starts the preset function.
For example, as shown in fig. 12, the setup interface 1201 of the mobile phone includes a preset function switch, such as a "video switch camera" switch 1202. In response to the user's turning on of the "video switch camera" switch 1202, the mobile phone may activate a preset function. After the mobile phone starts the preset function, the mobile phone may display a first interface 1101 shown in fig. 11, that is, a viewing interface for recording video. In response to the user's closing operation of the "video switch camera" switch 1202, the mobile phone may close a preset function. After the mobile phone closes the preset function, the mobile phone may display the viewing interface 110 for recording video shown in fig. 1C.
The setup interface 1201 shown in fig. 12 also includes a "flight mode" switch, a "WLAN" option, a "bluetooth" option, a "mobile network" option, and the like for the handset. For specific functions of these switches and options, reference may be made to the detailed description of each switch and option of the setting interface in the conventional technology, which is not described herein.
Implementation mode (2): the mobile phone responds to the operation of starting the preset function input by the user in the notification bar of the mobile phone, and starts the preset function.
For example, the cell phone may display a notification bar 1301 shown in fig. 13 in response to a user's drop-down operation on top of a display (e.g., touch screen) of the cell phone. The notification bar 1301 includes a preset function switch, such as a "video switch camera" switch 1302. In response to the user's turning on of the "video switch camera" switch 1302, the mobile phone may start a preset function. After the mobile phone starts the preset function, the mobile phone may display a first interface 1101 shown in fig. 11, that is, a viewing interface for recording video. In response to the user closing the "video switch camera" switch 1302, the mobile phone may close the preset function. After the mobile phone closes the preset function, the mobile phone may display the viewing interface 110 for recording video shown in fig. 1C.
The notification bar 1301 shown in fig. 13 also includes a "flight mode" switch, a "WLAN" option, a "bluetooth" option, a "mobile network" option, a "flashlight" switch, etc. of the handset. For specific functions of these switches and options, reference may be made to the detailed description of each switch and option in the notification bar in the conventional technology, which is not described herein.
In this embodiment, the mobile phone may display the first control on the view finding interface of the recorded video in response to the operation of starting to record the video by the user. Therefore, clicking operation of the user on the first control can be received, and the camera is switched, so that the service of switching the camera in the video recording process is provided for the user.
In other embodiments, if the mobile phone starts the preset function and the mobile phone is in the video recording mode, the mobile phone can start a plurality of cameras in the mobile phone to collect images, so that the non-sensing switching of the cameras is realized in the process of recording video by the mobile phone. The principle that the mobile phone starts a plurality of cameras to collect images so as to realize the noninductive switching of the cameras in the process of recording video by the mobile phone can be referred to the detailed description in the above embodiment, and will not be repeated here.
In this embodiment, in order to reduce the power consumption of the mobile phone, after the mobile phone turns off the preset function, the mobile phone may turn off the idle camera (i.e. the non-preview camera), i.e. the video stream of the idle camera (i.e. the non-preview camera).
In a second application scenario, the plurality of cameras may include a plurality of types of front cameras and rear cameras. The types of cameras in the embodiments of the present application may include: at least two of a main camera, a long-focus camera, a wide-angle camera, a super-wide-angle camera, a micro-distance camera, a fish-eye camera, an infrared camera, a depth camera and a black-and-white camera. In the application scene, by adopting the method of the embodiment of the application, the mobile phone can switch between the front camera and the rear camera of the mobile phone in the process of recording video.
In the following embodiments, the method of the present embodiment is described by taking a mobile phone including a front main camera, a front wide-angle camera, a front tele camera, a rear main camera, a rear wide-angle camera, and a rear tele camera as an example. As shown in fig. 14, the method of the embodiment of the present application may include S1401-S1405.
S1401, the mobile phone displays a first interface. The first interface is a viewing interface where the cell phone is recording video. The first interface comprises a first preview image acquired by a first camera of the cameras, and a plurality of second controls, wherein each second control corresponds to one camera of the cameras.
Illustratively, the handset may display the first interface 1501 shown in fig. 15A. The first interface 1501 includes a stop record button 1503, and the timing duration of the timing options in the first interface 1501 is 00:00:08. Under the condition that the mobile phone is recording video, a stop recording button is included in a viewing interface of the video recorded by the mobile phone, and a timing option in the viewing interface of the video recorded by the mobile phone is timed. It can be seen that the first interface 1501 is a viewfinder interface where a video is being recorded by the handset.
In addition, a first preview image 1502 acquired by a first camera (such as a rear camera of a mobile phone) is displayed in a viewfinder of the first interface 1501. The first camera may be any one of a plurality of cameras of the cell phone. For example, in the following embodiments, the first camera is a rear-mounted main camera of the mobile phone.
As shown in fig. 15A, the first interface 1501 further includes a plurality of second controls, such as a "front-facing main shot" control, a "front-facing tele" control, a "front-facing wide" control, a "rear-facing main shot" control, a "rear-facing tele" control, and a "rear-facing wide" control.
The "front-end main camera" control shown in fig. 15A corresponds to a front-end main camera of the mobile phone, and is used for triggering the mobile phone to display a preview image acquired by the front-end main camera. The "front-facing tele" control shown in fig. 15A corresponds to a front-facing tele camera of the mobile phone, and is used to trigger the mobile phone to display a preview image acquired by the front-facing tele camera. The "front wide angle" control shown in fig. 15A corresponds to the front wide angle camera of the mobile phone, and is used for triggering the mobile phone to display the preview image acquired by the front wide angle camera.
The "post-master" control shown in fig. 15A corresponds to a post-master camera of the mobile phone, and is used to trigger the mobile phone to display a preview image acquired by the post-master camera. The "rear-mounted tele" control shown in fig. 15A corresponds to a rear-mounted tele camera of the mobile phone, and is used for triggering the mobile phone to display a preview image acquired by the rear-mounted tele camera. The "rear wide angle" control shown in fig. 15A corresponds to the rear wide angle camera of the mobile phone, and is used for triggering the mobile phone to display the preview image collected by the rear wide angle camera.
In some embodiments, in S1401, the handset may display the second control of the first camera on the first interface in a manner that is different from the second controls of the other cameras. For example, the mobile phone may display the second control of the first camera in the first display state on the first interface, and display the second control of the other cameras in the second display state on the first interface.
Illustratively, taking the example that the first camera is a rear-mounted main camera of the mobile phone. As shown in fig. 15A, the mobile phone may display a "post-panning" control in a first display state (e.g., black matrix white) on the first interface. The 'post-master-camera' control in the first display state is used for indicating the mobile phone to currently display the preview image acquired by the post-master camera.
As shown in fig. 15A, the mobile phone may display a "front-facing main shot" control, a "front-facing tele" control, a "front-facing wide" control, a "rear-facing tele" control, and a "rear-facing wide" control in a second display state (e.g., white background black characters) on the first interface. The second control in the second display state is used for indicating that the mobile phone does not display the preview image acquired by the camera corresponding to the second control currently.
The mobile phone displays the second control of the first camera in a mode different from the second control of the other cameras, so that a user can quickly identify the preview camera of the mobile phone.
S1402, the mobile phone receives a first operation of a first control in the plurality of second controls by a user. The first operation is for triggering the electronic device to switch to use a second camera of the plurality of cameras.
Wherein the first control is any one of a plurality of second controls. The second camera is a camera corresponding to the first control. The second camera is different from the first camera. The second camera may be any camera other than the first camera among the plurality of cameras. For example, in the case where the first camera is a rear-mounted main camera of the mobile phone, the second camera may be any one of a front-mounted main camera, a front-mounted wide-angle camera, a front-mounted tele camera, a rear-mounted wide-angle camera, or a rear-mounted tele camera.
In the following embodiments, the first camera is a rear-mounted main camera of the mobile phone, and the second camera is a front-mounted main camera. In this case, the first control is a "front-facing main" control shown in fig. 15A. The first operation may be a click operation (e.g., a single click operation) of the "front-facing main" control shown in fig. 15A by the user.
S1403, responding to the first operation of the first control, and displaying a second interface by the mobile phone. The second interface is a viewing interface where the cell phone is recording video. The second interface includes a second preview image captured by a second camera of the plurality of cameras.
The second interface also comprises a plurality of second controls, and each second control corresponds to one camera of the plurality of cameras. In some embodiments, in S1403, the mobile phone may display the second control of the second camera on the second interface in a manner different from the second controls of the other cameras. For example, the mobile phone may display the second control of the second camera in the first display state on the second interface, and display the second control of the other cameras in the second display state on the second interface.
Illustratively, taking the example that the second camera is a front-facing main camera of the mobile phone. As shown in fig. 15B, the mobile phone may display a "front-facing main" control in a first display state (e.g., black matrix white) on the second interface. The front-end main shooting control in the first display state is used for indicating the mobile phone to currently display the preview image acquired by the front-end main camera. As shown in fig. 15B, the mobile phone may display a "post-main" control, a "pre-tele" control, a "pre-wide" control, a "post-tele" control, and a "post-wide" control in a second display state (e.g., white background black characters) on the second interface. The second control in the second display state is used for indicating that the mobile phone does not display the preview image acquired by the camera corresponding to the second control currently.
That is, the mobile phone can switch the first preview image in the first interface to the second preview image collected by the second camera.
For example, in response to a first operation by the user of the "front-facing main" control shown in fig. 15A, the handset may display the framing interface (i.e., second interface) 1504 of fig. 15B where the handset is recording video. That is, in response to the first operation of the "pre-main" control shown in fig. 15A by the user, the preview image in the framing interface (i.e., the first interface) in which the mobile phone is recording video is switched from the first preview image 1502 shown in fig. 15A to the second preview image 1505 shown in fig. 15B. The first preview image 602 and the second preview image 606 are images captured by different cameras, and thus, as shown in fig. 15A and 15B, the first preview image 1502 and the second preview image 1505 are different.
It should be noted that, in the process of executing S1401, the mobile phone may cache the video stream including the above-mentioned multi-frame first preview image. However, in response to the first operation, the mobile phone does not pause or stop recording video, nor does the mobile phone generate a video file of a video stream composed of a plurality of frames of the first preview image. And continuing to record the video, caching the video stream comprising a plurality of frames of second preview images, and stopping recording the video and generating a first video file by responding to the second operation by the mobile phone until receiving the second operation of the user. The mobile phone generates the first video file, and the detailed description of the first video file may refer to the content in the following embodiments, which are not described herein.
S1404, the mobile phone receives a second operation of the user on a second interface. The second operation is used for triggering the mobile phone to stop recording the video.
The detailed description of S1404 may refer to the description of S504 in the above embodiment, and will not be repeated here.
S1405, the mobile phone generates a first video file. The first video file includes a first video stream including a plurality of frames of first preview images and a second video stream including a plurality of frames of second preview images.
For example, assume that the handset receives a second operation from the user when the duration of recording the video is 00:00:18. The handset may generate the first video file shown in fig. 7B.
In this embodiment, during the video recording process of the mobile phone, a first operation of the user on a view finding interface (such as a first interface) of the video being recorded by the mobile phone, such as a clicking operation on a first control for triggering the mobile phone to switch the camera, may be received. Then, the mobile phone can respond to the first operation to switch the first preview image acquired by the first camera in the first interface to the second preview image acquired by the second camera, namely, the camera of the mobile phone is switched in the process of recording the video. Finally, in response to a second operation by the user (e.g., a click operation on a stop recording button), the handset may generate a complete video file including the first video stream and the second video stream.
In summary, by adopting the method of the embodiment of the present application, the camera may be switched in the process of recording video. Moreover, by adopting the method, the multi-view video file can be obtained by one shooting, a plurality of temporary video files are not generated, the temporary video files are not required to be integrated, the clicking operation of a user on a stop recording button is received, and the multi-view video file can be generated in real time for the user to view at any time. Compared with the scheme of segmented recording, the video recording process can be simplified, the video shooting efficiency is improved, and the shooting experience of a user is improved.
Further, by adopting the method of the embodiment of the application, the duration of video recording by the mobile phone is not limited. That is, the mobile phone executes the method of the embodiment of the application, and can record video files with any duration according to the requirement of the user.
In other embodiments, the mobile phone may switch the camera at least twice during one video capturing process. For example, assume that the mobile phone does not receive the second operation of the user when the duration of recording the video is 00:00:18, but receives the first operation of the "front tele" control again when the duration of recording the video is 00:01:09. In response to a first operation of the "front-end tele" control by the user, the cell phone may switch the second preview image 1505 to a third preview image acquired by the front-end tele camera (i.e., the third camera).
If the duration of video recording of the mobile phone is 00:01:20, receiving a second operation of the user; and the mobile phone does not switch the camera in the period of 00:01:10-00:01:20. Upon receiving a second operation of the stop recording button by the user, the mobile phone may generate a second video file as shown in fig. 15C.
As shown in fig. 15C, the second video file includes: a first video stream, a second video stream, and a third video stream. The first video stream comprises a plurality of frames of first preview images displayed on a display screen of the mobile phone under the condition that the rear-mounted main camera is used as a preview camera. The second video stream comprises a plurality of frames of second preview images displayed on a display screen of the mobile phone under the condition that the front main camera is used as a preview camera. The third video stream comprises a plurality of frames of third preview images displayed on a display screen of the mobile phone under the condition that the front-mounted tele camera is used as a preview camera. That is, as shown in fig. 15C, the second video file generated by the mobile phone may include: 00:00:00-00:00:08, and rearing a first video stream acquired by a main camera; 00:00:09-00:01:09, and leading the second video stream acquired by the main camera; and a third video stream acquired by the front-end tele camera in the period of 00:01:10-00:01:20.
Wherein, during the period of 00:00:00-00:00:08, the first video stream acquired by the rear main camera may include: and (3) acquiring and displaying a plurality of frames of first preview images on a display screen of the mobile phone by the rear main camera during the period of 00:00:00-00:00:08. The period of 00:00:09-00:01:09, the second video stream collected by the front-end main camera can comprise: 00:00:09-00:01:09, and acquiring and displaying a plurality of frames of second preview images on a display screen of the mobile phone by the front main camera. The third video stream acquired by the front-end tele camera during the period of 00:01:10-00:01:20 can comprise: and (3) acquiring and displaying a multi-frame third preview image on a display screen of the mobile phone by the front-end tele camera within the period of 00:01:10-00:01:20.
It should be noted that the second video file generated by the mobile phone (the second video file shown in fig. 15C) is a complete video file. By the method, after the mobile phone finishes recording the video, a complete video file can be generated and generated. That is, by adopting the method, the video files with multiple visual angles can be obtained by one shooting, a plurality of temporary video files can not be generated, and the temporary video files do not need to be integrated. Compared with the scheme of segmented recording, the video recording process can be simplified, the video shooting efficiency is improved, and the shooting experience of a user is improved.
It should be understood that in the embodiment of the present application, the positions of the plurality of second controls at the first interface or the second interface include, but are not limited to, the positions shown in fig. 15A or fig. 15B.
The handset may also display the plurality of second controls, for example, in a viewfinder frame of a first interface (i.e., a viewfinder interface in which the handset is recording video). For example, the handset may display a first interface 1601 shown in fig. 16A (i.e., a viewfinder interface where the handset is recording video). A first preview image 1602 is displayed in the viewfinder of the first interface 1601. A plurality of second controls, a "front-facing main shot" control, a "front-facing tele" control, a "front-facing wide" control, a "rear-facing main shot" control, a "rear-facing tele" control, and a "rear-facing wide" control are also displayed in the viewfinder of the first interface 1601. In response to a first operation by the user of a first control (e.g., a "pre-master" control) 1603 of the plurality of second controls shown in fig. 16A, the handset can display a second interface 1604 shown in fig. 16B. That is, in response to the first operation of the "pre-main" control shown in fig. 16A by the user, the preview image in the viewing interface (i.e., the first interface) in which the mobile phone is recording video is switched from the first preview image 1602 shown in fig. 16A to the second preview image 1605 shown in fig. 16B.
In other embodiments, in order to avoid that the second controls are displayed on the viewfinder interface of the video recorded by the mobile phone, occupy a display area in a viewfinder in the viewfinder interface, so as to influence the user to view the preview image. In general, the mobile phone will not display the plurality of second controls on the first interface. And responding to the preset operation of the user, the mobile phone can display the plurality of second controls on the first interface. For example, the handset may display the first interface 1606 shown in fig. 16C, which first interface 1606 does not include the plurality of second controls. In response to a preset operation (e.g., a right-to-left sliding operation input by a right frame of the display screen) performed by the user on the first interface 1606, the mobile phone may display the first interface 1601 shown in fig. 16A.
In response to a first operation by the user of a first control (e.g., a "pre-master" control) 1603 of the plurality of second controls shown in fig. 16A, the handset can display a first interface 1607 shown in fig. 16D. The first interface 1607 does not include a plurality of second controls. In response to a preset operation (e.g., a right-to-left sliding operation input by a right frame of the display screen) performed by the user on the first interface 1607, the mobile phone may display the first interface 1605 shown in fig. 16B.
It should be noted that in this embodiment, the mobile phone does not display a plurality of second controls on the first interface, not because the mobile phone does not open a preset function; but rather to avoid the plurality of second controls occupying a display area in a viewfinder in the viewfinder interface, affecting the user's view of the preview image.
In this embodiment, the mobile phone may not display the plurality of second controls during the video recording process. Instead, the plurality of second controls are displayed in response to a user's operation when the user wants to switch the camera, according to the user's needs. Therefore, the mobile phone can be supported to switch the camera in the video recording process, the plurality of second controls can be prevented from occupying the display area in the view-finding frame in the view-finding interface, and the shooting experience of a user can be improved.
In other embodiments, the handset may display a third interface including a third control prior to displaying the first interface including the plurality of second controls. The third control may be a camera toggle option. The third control is used for triggering the mobile phone to display a plurality of second controls. The third interface is a viewing interface for recording video by the mobile phone. The third interface does not include a plurality of second controls. In response to a click operation of the third control by the user, the mobile phone can display a first interface (i.e., a viewing interface for recording video) including a plurality of second controls. For example, the handset may display a third interface 1608 shown in fig. 16E, the third interface 1608 including a third control (e.g., camera switch option) 1609. In response to a user clicking on the third control 1609, the handset can display a first interface 1610 shown in fig. 16F, the first interface 1610 including a plurality of second controls 1611. Alternatively, in response to a click operation of the third control 1609 by the user, the cell phone may display the first interface shown in fig. 16A or fig. 15A.
Optionally, the first interface 1609 shown in fig. 16F further includes a third control (e.g., a camera switch option) 1609. In response to a user clicking on the third control 1609 shown in fig. 16F, the handset can hide the plurality of second controls 1611 in the first interface 1609, displaying the viewing interface 1608 of the recorded video shown in fig. 16E.
In this embodiment, the plurality of second controls displayed on the viewfinder interface of the video recording by the mobile phone may at least include the following three implementation manners.
Implementation (a):
as shown in any one of fig. 15A, 15B, 16A, 16B, or 16F, the type indication information of the corresponding camera is displayed on each of the plurality of second controls. In this embodiment of the present application, the type indication information of one camera is used to indicate the type of the camera, and may also indicate that the camera is a front camera or a rear camera.
For example, in response to a user clicking on the camera switch option 1609 shown in fig. 16E, the handset can display the first interface 1610 shown in fig. 16F. As shown in fig. 16F, the type of instruction information, "front main shot", "front tele", "front wide", "rear main shot", "rear tele", "rear wide" is displayed on each of the plurality of second controls 1611. The type indication information is used for indicating that the second control corresponds to the front-mounted main camera. The type indication information is used for indicating that the second control corresponds to the front tele camera. The type indication information "front wide angle" is used for indicating that the second control corresponds to the front wide angle camera. The type indication information is used for indicating that the second control corresponds to the rear-mounted main camera. The type indication information is used for indicating that the second control corresponds to the rear-mounted tele camera. The type indication information "rear wide angle" is used for indicating that the second control corresponds to the rear wide angle camera.
Implementation (b):
and each of the plurality of second controls is displayed with a preview image acquired by the corresponding camera. For example, as shown in fig. 16G, the first interface 1612 includes a plurality of second controls, such as second control 1613, second control 1614, second control 1615, second control 1616, second control 1617, and second control 1618.
The second control 1613 displays a preview image acquired by the rear-mounted main camera. A preview image acquired by the rear-mounted wide-angle camera is displayed in the second control 1614. The second control 1615 displays a preview image acquired by the rear-mounted tele camera. The second control 1616 displays a preview image captured by the front-facing main camera. A preview image acquired by the front wide-angle camera is displayed in the second control 1617. The second control 1618 displays a preview image acquired by the front-facing tele camera.
Therefore, the second control 1613 may also be referred to as a "post-panning" control, the second control 1614 may also be referred to as a "post-wide" control, and the second control 1615 may also be referred to as a "post-tele" control; the second control 1616 may also be referred to as a "front-facing main" control, the second control 1617 may also be referred to as a "front-facing wide" control, and the second control 1618 may also be referred to as a "front-facing tele" control. The handset may also display a first interface 1619 shown in fig. 16H.
The first interface 1612 shown in fig. 16G and the first interface 1619 shown in fig. 16H further include a camera switching option. In response to a click operation of the camera switching option shown in fig. 16G or 16H by the user, the mobile phone may hide the plurality of second controls, and display the first interface 1608 shown in fig. 16E.
It is understood that the preview images collected by the corresponding cameras are displayed on each first control, so that the shooting effect, the shooting view angle and the like of each camera can be intuitively displayed for a user, and the user can select the cameras meeting the user requirements, such as the shooting effect, the shooting view angle and the like, from the cameras. Thus, the shooting experience of the user can be improved.
Implementation (c):
and proxy information of the corresponding camera is displayed on each of the plurality of second controls. In this embodiment of the present application, the proxy information of one camera may indicate that the camera is a front camera or a rear camera, and may further include the number of the camera.
In one case, the number of the camera may be assigned to the camera by the handset. For example, the number of the Camera may be the Camera ID of the Camera. Camera IDs of different cameras are different. In another case, the number of the camera may be assigned to the camera by the user in the cell phone. The numbers of different front cameras are different, and the numbers of different rear cameras are different.
Illustratively, in response to a user clicking on the camera switch option 1609 shown in fig. 16E, the handset can display the view interface (i.e., first interface) 1620 of the photograph shown in fig. 16I. As shown in fig. 16I, the first interface 1620 includes a plurality of second controls 1621. For example, the numbers of cameras are 1, 2, and 3. The plurality of second controls 1621 may include a "front camera 1" control, a "front camera 2" control, a "front camera 3" control, a "rear camera 1" control, a "rear camera 2" control, and a "rear camera 3" control.
The proxy information "front camera 1" is used to indicate that the second control (e.g. "front camera 1" control) corresponds to a front camera, and the number of the front camera is 1. For example, the number 1 is that the front camera is the front main camera. The proxy information "front camera 2" is used to indicate that the second control (e.g., "front camera 2" control) corresponds to a front camera, where the number of the front camera is 2. For example, the reference numeral 2 is a front camera and a front wide-angle camera. The proxy information "front camera 3" is used to indicate that the second control (e.g., "front camera 3" control) corresponds to a front camera, and the number of the front camera is 3. For example, the number 3 is that the front camera is a front tele camera.
The proxy information "rear camera 1" is used for indicating that the second control (such as "rear camera 1" control) corresponds to one rear camera, and the number of the rear camera is 1. For example, the number 1 is that the rear camera is the rear main camera. The proxy information "rear camera 2" is used to indicate that the second control (e.g. "rear camera 2" control) corresponds to a rear camera, and the number of the rear camera is 2. For example, the reference numeral 2 is a rear camera and a rear wide-angle camera. The proxy information "rear camera 3" is used to indicate that the second control (e.g., "rear camera 3" control) corresponds to a rear camera, and the number of the rear camera is 3. For example, the number 3 is a rear camera and the rear tele camera.
In other embodiments, the mobile phone may display a plurality of second controls on the first interface using at least one of implementations (a) - (c) above. The specific implementation manner of displaying the plurality of second controls on the first interface by the mobile phone can be preconfigured in the mobile phone or set in the mobile phone by a user. The specific method for receiving and displaying the plurality of second controls by the mobile phone according to the user setting may be described in the conventional technology without further description.
In other embodiments, the method of embodiments of the present application may further include S901-S903 prior to S1401 described above. S1401 described above may include S904'. S904': and responding to a third operation of the preset function switch by the user, and displaying a first interface comprising a plurality of second controls by the mobile phone. The detailed descriptions of S901-S903 and S904' may refer to the related descriptions of the above embodiments, and are not repeated here.
In other embodiments, the method of embodiments of the present application may further include S1001 before S1401 described above. S1401 described above may include S1002'. S1002': and responding to clicking operation of a recording start button in the fourth interface by a user, and displaying a first interface comprising a plurality of second controls by the mobile phone. The detailed descriptions of S1001 and S1002' may refer to the related descriptions of the above embodiments, and are not repeated here.
In other embodiments, the method of the first application scenario or the second application scenario may also be applied to a multi-scene shooting scenario of a mobile phone. The mobile phone can display a plurality of view-finding frames in a multi-view shooting scene, and each view-finding frame can display a preview image acquired by a camera. For example, the mobile phone may display the viewing interface of the recorded video shown in fig. 17A or fig. 18 in a multi-view shooting scene.
In a first application scenario, as shown in fig. 17A, the mobile phone may display two frames, where the frame 1701 displays a first preview image 1702 collected by a front camera, and the frame 1703 displays a first preview image 1704 collected by a rear camera. Included in the viewfinder 1701 are a stop video button 1706 and a first control 1705. Included in the view box 1702 are a stop video button 1707 and a first control 1708.
The mobile phone may perform the method in the first application scenario described above for the viewfinder 1701 and the viewfinder 1703, respectively, and switch the camera during the video recording process. For example, the handset may display the view interface of the recorded video shown in fig. 17B in response to a first operation by the user of the first control 1705 in the view box 1701 shown in fig. 17A.
The view interface of the recorded video shown in fig. 17B includes a view frame 1701 and a view frame 1703. The preview image in the viewfinder 1701 is switched from the first preview image 1702 collected by the front camera to the second preview image 1709 collected by the rear camera.
It should be noted that, the mobile phone executes the method in the first application scenario described above with respect to the viewfinder 1701, and does not affect the recording of the video in the viewfinder 1703. In addition, the mobile phone executes the method in the first application scenario described above with respect to the viewfinder 1703, and does not affect the recording of the video in the viewfinder 1701. For example, in response to a first operation of the first control 1705 shown in fig. 17A by the user, the preview image in the view frame 1701 shown in fig. 17B is switched to the second preview image 1709 acquired by the rear camera, compared to the view frame 1701 shown in fig. 17A; however, as shown in fig. 17B, the first preview image acquired by the rear camera is still displayed in the viewfinder 1702.
For a specific method of the mobile phone for switching the camera during the video recording process of the viewfinder 1701 and/or the viewfinder 1703, reference may be made to the detailed description of S501-S505 in the above embodiment, which is not repeated herein.
In a second application scenario, as shown in fig. 18, the handset may display two frames, such as frame 1801 and frame 1802. The viewfinder 1801 displays a first preview image acquired by the front camera, and the viewfinder 1802 displays a first preview image acquired by the rear camera. The viewfinder 1801 includes a stop video button and a plurality of second controls. The viewfinder 1802 includes a stop video button and a plurality of second controls.
The mobile phone may perform the method in the second application scenario described above for the viewfinder 1801 and the viewfinder 1802, respectively, and switch the camera during the video recording process. It should be noted that, the mobile phone executes the method in the second application scenario described above with respect to the viewfinder 1801, and does not affect the recording of the video in the viewfinder 1802. In addition, the mobile phone executes the method in the second application scenario described above with respect to the viewfinder 1802, and does not affect the recording of video in the viewfinder 1801.
For a specific method of the mobile phone for switching the camera during the video recording process of the viewfinder 1801 and/or the viewfinder 1802, reference may be made to the detailed description of S1401-S1405 in the above embodiment, which is not repeated herein.
In the embodiment of the present application, the mobile phone includes the camera 1 (i.e. the first camera) and the camera 2 (i.e. the second camera) as an example, and the method steps described in fig. 4 and the foregoing embodiments are combined to describe a method flow of capturing video by the mobile phone in the embodiment of the present application.
After the mobile phone enters the photographing mode, the system camera application 411 of the application layer 410 may trigger 1901 the bottom layer to start the main camera 1 of the mobile phone by default. The main camera 1 is a default camera of the mobile phone, such as a rear main camera. For example, the system Camera application 411 may send a notification carrying the Camera ID-1 of the Camera 1 to the hardware abstraction layer HAL 430 through the framework layer 420, the notification being for instructing the hardware abstraction layer HAL 430 to execute 1902, starting the video stream 1 of the Camera 1 according to the Camera ID-1. The hardware abstraction layer HAL 430 may instruct the Kernel layer (Kernel) to start the Camera 1 identified as Camera ID-1, so that the video stream 1 of the Camera 1 may be obtained from the Kernel layer (Kernel) 440. The Camera driver 441 of the Kernel layer (Kernel) 440 may activate the Camera 1 in the Camera device 442 according to the Camera ID-1.
The principle of capturing video streams by the Camera device 442 of the Kernel layer (Kernel) 440 is as follows: the Camera device 442 may convert an optical signal reflected in a viewing environment into an electrical signal, and the electrical signal is processed by the image signal processor ISP 443 to obtain a video stream.
The hardware abstraction layer HAL 430 may then process data (e.g., video stream 1) from the underlying layer (e.g., kernel layer 440) and then transfer it to the framework layer 420. For example, HAL layer 430 may convert parameters of kernel layer 440 regarding hardware devices into a software programming language recognizable by framework layer 420 and application layer 410.
The framework layer 420 may receive video stream 1 from the underlying layer (e.g., kernel layer 440) transmitted by the hardware abstraction layer HAL 430. The camera service 423 of the framework layer 420 may transfer the video stream 1 to an upper layer (e.g., the application layer 410) through an API 1 sub-API 2 interface 421. After the system camera application 411 of the application layer 410 receives the video stream 1, the video stream 1 may be presented at the viewfinder interface, e.g., the video stream 1 is refreshed at surfmeview at 1907.
Thereafter, the handset may execute 1904 to enter a video recording mode and then begin recording video. For example, the mobile phone may perform S901 to display a fourth interface including a start recording button, and then perform S902 to display a fifth interface including a preset function switch (i.e., a switch for turning on/off a preset function) and start recording video in response to a user' S click operation of the start recording button. At this time, the camera 1 serves as a preview camera of the mobile phone.
The handset may then execute 1905 the user dynamically selects to switch cameras (i.e., turn on preset functions). For example, the mobile phone may perform S903 to receive a third operation of the preset function switch by the user, that is, an operation for turning on the preset function. After the mobile phone performs 1905 the preset function, the application layer 410 may send a notification to the hardware abstraction layer HAL 430 to instruct the hardware abstraction layer HAL 430 to perform 1903, and start the video stream of the Camera 2 (i.e. the idle Camera) according to the Camera ID-2. At this time, the camera 1 and the camera 2 of the mobile phone are both started.
Thereafter, the handset may execute 1906, and a camera switch icon (i.e., a first control) may appear on the viewing interface of the handset. For example, the mobile phone may execute S904 to display a first interface including a first control in response to a third operation of the preset function switch by the user. After the user clicks the camera switch icon at 1906, the application layer 410 may execute 1907 to refresh the video stream in the surfmeview, e.g., switch the video stream in the surfmeview from video stream 1 to video stream 2. At this time, the camera 2 serves as a preview camera of the mobile phone.
Wherein, as shown in fig. 19, the application layer 410 may receive two video streams, such as video stream 1 and video stream 2, from the bottom layer. The application layer 410 may execute 1908 to refresh the video stream in the surfmeview in real time. And displaying the video stream acquired by the preview camera of the mobile phone in real time in the surface view.
Displaying the video stream acquired by the preview camera of the mobile phone in real time in the surface view; thus, the video processing module 422 of the framework layer 420 obtains and buffers the video streams from the surfacview in real time, so that all video streams presented in the viewing interface of the recorded video of the mobile phone can be buffered. Thus, in response to a user ending the recording of video 1910, video processing module 422 may perform 1911 an immediate generation and generation of a video file comprising a video stream cached by video processing module 422.
Further, before the mobile phone executes 1906, after the mobile phone starts the preset function, the mobile phone may execute 1905 again, and the user dynamically selects to switch the camera, so as to close the preset function. After the mobile phone performs 1905 the preset function, the application layer 410 may send a notification to the hardware abstraction layer HAL 430 to instruct the hardware abstraction layer HAL 430 to perform 1909, and close the video stream of the Camera 2 (i.e. the idle Camera) according to the Camera ID-2.
Other embodiments of the present application provide an electronic device, which may include: the display screen (e.g., touch screen), memory, and one or more processors. The display, memory, and processor are coupled. The memory is for storing computer program code, the computer program code comprising computer instructions. When the processor executes the computer instructions, the electronic device may perform the functions or steps performed by the mobile phone in the above-described method embodiments. The structure of the electronic device may refer to the structure of the electronic device 200 shown in fig. 2.
The present embodiment also provides a chip system, as shown in fig. 20, the chip system 2000 includes at least one processor 2001 and at least one interface circuit 2002. The processor 2001 and interface circuit 2002 may be interconnected by wires. For example, the interface circuit 2002 may be used to receive signals from other devices (e.g., a memory of an electronic apparatus). For another example, the interface circuit 2002 may be used to send signals to other devices (e.g., the processor 2001). Illustratively, the interface circuit 2002 may read instructions stored in the memory and send the instructions to the processor 2001. The instructions, when executed by the processor 2001, may cause the electronic device to perform the various steps of the embodiments described above. Of course, the chip system may also include other discrete devices, which are not specifically limited in this embodiment of the present application.
The embodiment of the application also provides a computer storage medium, which comprises computer instructions, when the computer instructions run on the electronic device, the electronic device is caused to execute the functions or steps executed by the mobile phone in the embodiment of the method.
The present application also provides a computer program product, which when run on a computer, causes the computer to perform the functions or steps performed by the mobile phone in the above-mentioned method embodiments.
It will be apparent to those skilled in the art from this description that, for convenience and brevity of description, only the above-described division of the functional modules is illustrated, and in practical application, the above-described functional allocation may be performed by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to perform all or part of the functions described above.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another apparatus, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and the parts displayed as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a readable storage medium. Based on such understanding, the technical solution of the embodiments of the present application may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions for causing a device (may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a specific embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered in the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (26)

1. A method of capturing video for application to an electronic device comprising a plurality of cameras, the method comprising:
the electronic equipment displays a first interface; the first interface is a view finding interface of the video being recorded by the electronic equipment, and comprises a first preview image acquired by a first camera of the plurality of cameras;
the electronic equipment receives a first operation of a user on the first interface; the first operation is used for triggering the electronic equipment to switch to use a second camera of the plurality of cameras, and the second camera is different from the first camera;
responding to the first operation, the electronic equipment displays a second interface, wherein the second interface is a view finding interface of the video being recorded by the electronic equipment, and the second interface comprises a second preview image acquired by the second camera;
The electronic equipment receives a second operation of the user on the second interface, wherein the second operation is used for triggering the electronic equipment to stop recording video;
the electronic device generates a first video file comprising a first video stream comprising a plurality of frames of the first preview image and a second video stream comprising a plurality of frames of the second preview image.
2. The method of claim 1, wherein the first interface comprises a first control for triggering the electronic device to switch use of the second camera; the first operation is a click operation of the first control by a user.
3. The method of claim 1 or 2, wherein the first camera is a front camera of the electronic device and the second camera is a rear camera of the electronic device; or,
the first camera is a rear camera of the electronic device, and the second camera is a front camera of the electronic device.
4. The method of claim 1 or 2, wherein the plurality of cameras comprises a plurality of types of front cameras and rear cameras; the type of the camera at least comprises: the camera comprises a main camera, a wide-angle camera and a long-focus camera; the first camera and the second camera are any two cameras among the plurality of cameras, and the first camera is different from the second camera.
5. The method of claim 4, wherein the first interface and the second interface each comprise a plurality of second controls, each second control corresponding to one of the plurality of cameras for triggering the electronic device to switch use of the corresponding camera;
the plurality of second controls comprise a first control, the first control is used for triggering the electronic equipment to switch to use the second camera, and the first operation is a click operation of a user on the first control.
6. The method of claim 5, wherein in the first interface, the second control corresponding to the first camera is in a first display state, and the second controls corresponding to other cameras are in a second display state;
in the second interface, a second control corresponding to the second camera is in the first display state, and second controls corresponding to other cameras are in the second display state;
the camera corresponding to the second control in the first display state is a preview camera of the electronic device; and the camera corresponding to the second control in the second display state is not the preview camera.
7. The method of claim 5 or 6, wherein the electronic device displays a first interface comprising:
the electronic equipment displays a third interface; the third interface is a view finding interface of the video being recorded by the electronic device, the third interface comprises the first preview image collected by the first camera, and the third interface further comprises a third control, and the third control is used for triggering the electronic device to display the plurality of second controls;
and responding to clicking operation of the third control by a user, and displaying the first interface comprising the plurality of second controls by the electronic equipment.
8. The method of any of claims 1-7, wherein prior to the electronic device displaying the first interface, the method further comprises:
the electronic equipment displays a fourth interface; the fourth interface is a view finding interface for recording video of the electronic equipment, and comprises a start recording button for triggering the electronic equipment to start recording video;
responding to the click operation of the start recording button by a user, and displaying a fifth interface comprising the first preview image acquired by the first camera by the electronic equipment; the fifth interface comprises a preset function switch, wherein the preset function switch is used for triggering the electronic equipment to start or close a preset function, and the preset function is a function of switching a camera in the video recording process;
The electronic equipment receives a third operation of the preset function switch by a user, wherein the third operation is used for triggering the electronic equipment to start the preset function;
the electronic device displays a first interface, including:
and responding to the third operation of the preset function switch by the user, displaying the first interface comprising a first control by the electronic equipment, wherein the first control is used for triggering the electronic equipment to switch to use the second camera.
9. The method of claim 8, wherein the method further comprises:
responding to the third operation of the preset function switch by a user, starting other cameras except the first camera in the plurality of cameras by the electronic equipment, wherein the other cameras are not displayed on the first interface to acquire images;
wherein the other cameras comprise the second camera.
10. The method of any of claims 1-7, wherein prior to the electronic device displaying the first interface, the method further comprises:
the electronic equipment displays a fourth interface; the fourth interface is a view finding interface for recording video of the electronic equipment, and comprises a start recording button and an image collected by the first camera, wherein the start recording button is used for triggering the electronic equipment to start recording video;
The electronic device displays a first interface, including:
responding to the click operation of the start recording button by a user, and if the preset function of the electronic equipment is started, displaying the first interface comprising a first control by the electronic equipment, wherein the first control is used for triggering the electronic equipment to switch to use the second camera;
the preset function is a function of switching a camera in the video recording process, and the setting interface or the notification bar of the electronic equipment comprises a preset function switch for switching on or off the preset function.
11. The method according to claim 10, wherein the method further comprises:
responding to the click operation of the start recording button by a user, if the preset function of the electronic equipment is started, starting other cameras except the first camera in the plurality of cameras by the electronic equipment, wherein the first interface does not display the second camera to acquire images;
wherein the other cameras comprise the second camera.
12. The method of any of claims 8-11, wherein after the electronic device switches the first preview image in the first interface to a second preview image captured by the second camera in response to the first operation, the method further comprises:
And responding to a fourth operation of the preset function switch by a user, and closing the first camera by the electronic equipment.
13. An electronic device comprising a display screen, a plurality of cameras, a memory, and one or more processors; the display screen, the plurality of cameras, the memory and the processor are coupled; the plurality of cameras are used for acquiring images, the display screen is used for displaying the images generated by the processor and the images acquired by the plurality of cameras, and the memory is used for storing computer program codes, and the computer program codes comprise computer instructions; the computer instructions, when executed by the processor, cause the electronic device to:
displaying a first interface; the first interface is a view finding interface of the video being recorded by the electronic equipment, and comprises a first preview image acquired by a first camera of the plurality of cameras;
receiving a first operation of a user on the first interface; the first operation is used for triggering the electronic equipment to switch to use a second camera of the plurality of cameras, and the second camera is different from the first camera;
Responding to the first operation, displaying a second interface, wherein the second interface is a view finding interface of the video being recorded by the electronic equipment, and comprises a second preview image acquired by the second camera;
receiving a second operation of the user on the second interface, wherein the second operation is used for triggering the electronic equipment to stop recording video;
generating a first video file, wherein the first video file comprises a first video stream and a second video stream, the first video stream comprises a plurality of frames of the first preview images, and the second video stream comprises a plurality of frames of the second preview images.
14. The electronic device of claim 13, wherein the first interface comprises a first control for triggering the electronic device to switch use of the second camera; the first operation is a click operation of the first control by a user.
15. The electronic device of claim 13 or 14, wherein the first camera is a front camera of the electronic device and the second camera is a rear camera of the electronic device; or,
the first camera is a rear camera of the electronic device, and the second camera is a front camera of the electronic device.
16. The electronic device of claim 13 or 14, wherein the plurality of cameras includes a plurality of types of front cameras and rear cameras; the type of the camera at least comprises: the camera comprises a main camera, a wide-angle camera and a long-focus camera; the first camera and the second camera are any two cameras among the plurality of cameras, and the first camera is different from the second camera.
17. The electronic device of claim 16, wherein the first interface and the second interface each comprise a plurality of second controls, each second control corresponding to one of the plurality of cameras for triggering the electronic device to switch use of the corresponding camera;
the plurality of second controls comprise a first control, the first control is used for triggering the electronic equipment to switch to use the second camera, and the first operation is a click operation of a user on the first control.
18. The electronic device of claim 17, wherein in the first interface, the second control corresponding to the first camera is in a first display state, and the second controls corresponding to other cameras are in a second display state;
In the second interface, a second control corresponding to the second camera is in the first display state, and second controls corresponding to other cameras are in the second display state;
the camera corresponding to the second control in the first display state is a preview camera of the electronic device; and the camera corresponding to the second control in the second display state is not the preview camera.
19. The electronic device of claim 17 or 18, wherein the computer instructions, when executed by the processor, cause the electronic device to further perform the steps of:
displaying a third interface; the third interface is a view finding interface of the video being recorded by the electronic device, the third interface comprises the first preview image collected by the first camera, and the third interface further comprises a third control, and the third control is used for triggering the electronic device to display the plurality of second controls;
and responding to clicking operation of the third control by a user, and displaying the first interface comprising the plurality of second controls.
20. The electronic device of any of claims 13-19, wherein the computer instructions, when executed by the processor, cause the electronic device to further perform the steps of:
Displaying a fourth interface; the fourth interface is a view finding interface for recording video of the electronic equipment, and comprises a start recording button for triggering the electronic equipment to start recording video;
responding to the click operation of the user on the start recording button, and displaying a fifth interface comprising the first preview image acquired by the first camera; the fifth interface comprises a preset function switch, wherein the preset function switch is used for triggering the electronic equipment to start or close a preset function, and the preset function is a function of switching a camera in the video recording process;
receiving a third operation of the preset function switch by a user, wherein the third operation is used for triggering the electronic equipment to start the preset function;
and responding to the third operation of the preset function switch by a user, displaying the first interface comprising a first control, wherein the first control is used for triggering the electronic equipment to switch to use the second camera.
21. The electronic device of claim 20, wherein the computer instructions, when executed by the processor, cause the electronic device to further perform the steps of:
And responding to the third operation of the preset function switch by a user, starting the second camera, and enabling the fifth interface not to display the acquired image of the second camera.
22. The electronic device of any of claims 13-19, wherein the computer instructions, when executed by the processor, cause the electronic device to further perform the steps of:
displaying a fourth interface; the fourth interface is a view finding interface for recording video of the electronic equipment, and comprises a start recording button and an image collected by the first camera, wherein the start recording button is used for triggering the electronic equipment to start recording video;
responding to the click operation of the start recording button by a user, and if the preset function of the electronic equipment is started, displaying the first interface comprising a first control, wherein the first control is used for triggering the electronic equipment to switch to use the second camera;
the preset function is a function of switching a camera in the video recording process, and the setting interface or the notification bar of the electronic equipment comprises a preset function switch for switching on or off the preset function.
23. The electronic device of claim 22, wherein the computer instructions, when executed by the processor, cause the electronic device to further perform the steps of:
and responding to the click operation of the start recording button by a user, and if the preset function of the electronic equipment is started, starting the second camera, wherein the first interface does not display the second camera to acquire images.
24. The electronic device of any of claims 20-23, wherein the computer instructions, when executed by the processor, cause the electronic device to further perform the steps of:
and responding to a fourth operation of the preset function switch by a user, and closing the first camera by the electronic equipment.
25. A computer storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method of any of claims 1-12.
26. A computer program product, characterized in that the computer program product, when run on a computer, causes the computer to perform the method according to any of claims 1-12.
CN202311469452.XA 2020-11-30 2020-12-02 Video shooting method and electronic equipment Pending CN117880634A (en)

Applications Claiming Priority (7)

Application Number Priority Date Filing Date Title
CN2020113813532 2020-11-30
CN202011385330 2020-11-30
CN202011381353 2020-11-30
CN202011377560 2020-11-30
CN2020113775600 2020-11-30
CN2020113853309 2020-11-30
CN202011410110.7A CN114584686B (en) 2020-11-30 2020-12-02 Video shooting method and electronic equipment

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN202011410110.7A Division CN114584686B (en) 2020-11-30 2020-12-02 Video shooting method and electronic equipment

Publications (1)

Publication Number Publication Date
CN117880634A true CN117880634A (en) 2024-04-12

Family

ID=81770711

Family Applications (4)

Application Number Title Priority Date Filing Date
CN202011410110.7A Active CN114584686B (en) 2020-11-30 2020-12-02 Video shooting method and electronic equipment
CN202311469452.XA Pending CN117880634A (en) 2020-11-30 2020-12-02 Video shooting method and electronic equipment
CN202311469990.9A Pending CN118075615A (en) 2020-11-30 2020-12-02 Video shooting method and electronic equipment
CN202210677485.2A Active CN115278048B (en) 2020-11-30 2020-12-02 Video shooting method and electronic equipment

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202011410110.7A Active CN114584686B (en) 2020-11-30 2020-12-02 Video shooting method and electronic equipment

Family Applications After (2)

Application Number Title Priority Date Filing Date
CN202311469990.9A Pending CN118075615A (en) 2020-11-30 2020-12-02 Video shooting method and electronic equipment
CN202210677485.2A Active CN115278048B (en) 2020-11-30 2020-12-02 Video shooting method and electronic equipment

Country Status (1)

Country Link
CN (4) CN114584686B (en)

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110007205A1 (en) * 2009-07-08 2011-01-13 Dechnia, LLC Rear to forward facing camera adapter
US9860490B2 (en) * 2010-11-05 2018-01-02 Tom Galvin Network video recorder system
CN103841326B (en) * 2014-02-26 2017-05-17 宇龙计算机通信科技(深圳)有限公司 Video recording method and device
CN105391965B (en) * 2015-11-05 2018-09-07 广东欧珀移动通信有限公司 Video recording method based on multi-cam and device
CN105554386A (en) * 2015-12-23 2016-05-04 努比亚技术有限公司 Mobile terminal and camera shooting control method thereof
CN106657774A (en) * 2016-11-25 2017-05-10 杭州联络互动信息科技股份有限公司 Method and device for recording video
CN107360400B (en) * 2017-07-27 2021-05-28 上海传英信息技术有限公司 Video recording method and video recording device for intelligent equipment camera
CN109040582A (en) * 2018-07-24 2018-12-18 珠海格力电器股份有限公司 Video shooting method and device for touch screen terminal, storage medium and touch screen terminal
CN110248081A (en) * 2018-10-12 2019-09-17 华为技术有限公司 Image capture method and electronic equipment
KR102664705B1 (en) * 2019-02-19 2024-05-09 삼성전자주식회사 Electronic device and method for modifying magnification of image using multiple cameras
CN112954219A (en) * 2019-03-18 2021-06-11 荣耀终端有限公司 Multi-channel video recording method and equipment
CN111031248A (en) * 2019-12-25 2020-04-17 维沃移动通信(杭州)有限公司 Shooting method and electronic equipment
CN111654629B (en) * 2020-06-11 2022-06-24 展讯通信(上海)有限公司 Camera switching method and device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN114584686B (en) 2023-11-14
CN114584686A (en) 2022-06-03
CN118075615A (en) 2024-05-24
CN115278048B (en) 2023-08-22
CN115278048A (en) 2022-11-01

Similar Documents

Publication Publication Date Title
US11831977B2 (en) Photographing and processing method and electronic device
CN112333380B (en) Shooting method and equipment
CN111263005B (en) Display method and related device of folding screen
CN110072070B (en) Multi-channel video recording method, equipment and medium
WO2020073959A1 (en) Image capturing method, and electronic device
CN110035141B (en) Shooting method and equipment
CN112887583B (en) Shooting method and electronic equipment
CN113810601B (en) Terminal image processing method and device and terminal equipment
CN113475057A (en) Video frame rate control method and related device
CN114092364A (en) Image processing method and related device
CN113556466B (en) Focusing method and electronic equipment
CN113452898A (en) Photographing method and device
CN113572956A (en) Focusing method and related equipment
CN113596321A (en) Transition dynamic effect generation method, apparatus, storage medium, and program product
CN113542613A (en) Device and method for photographing
CN113364969B (en) Imaging method of non-line-of-sight object and electronic equipment
CN115150542A (en) Video anti-shake method and related equipment
CN112532508B (en) Video communication method and video communication device
CN114257737B (en) Shooting mode switching method and related equipment
CN114302063B (en) Shooting method and equipment
CN117880634A (en) Video shooting method and electronic equipment
CN114745508B (en) Shooting method, terminal equipment and storage medium
WO2024093854A1 (en) Image processing method and electronic device
CN118555469A (en) Shooting method
CN116582743A (en) Shooting method, electronic equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination