Video recording method, device, apparatus and medium

By displaying preview images of multiple camera components on an electronic device and receiving user input to set points, multiple camera components can be controlled to record video, generating multi-camera video. This solves the problem of a single recording method and realizes the diversity of recording formats and the switching of multi-camera images.

CN119485008BActive Publication Date: 2026-06-23VIVO MOBILE COMM CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
VIVO MOBILE COMM CO LTD
Filing Date
2024-11-11
Publication Date
2026-06-23

Smart Images

  • Figure CN119485008B_ABST
    Figure CN119485008B_ABST
Patent Text Reader

Abstract

The application discloses a video recording method, device, equipment and medium, and belongs to the technical field of electronic equipment. The video recording method comprises the following steps: displaying a first shooting preview image corresponding to a first camera assembly; wherein the first camera assembly is any one of a plurality of camera assemblies included in the electronic equipment; receiving a first input on the first shooting preview image; in response to the first input, setting a plurality of point positions in an actual scene corresponding to the first shooting preview image; recording a video input; in response to the video input, controlling the plurality of camera assemblies to record videos at the plurality of point positions, and obtaining a plurality of first videos; and generating a second video according to the plurality of first videos.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of electronic equipment technology, and specifically relates to a recording method, apparatus, device and medium. Background Technology

[0002] With the development of electronic devices, people are becoming increasingly accustomed to using electronic devices to record videos to document their lives.

[0003] In related technologies, when using electronic devices to record video, only a single shot can be recorded, and the recording method is relatively simple. It is not possible to achieve multi-camera recording as in stage scenes (such as concerts and music festivals). Summary of the Invention

[0004] The purpose of this application is to provide a video recording method, apparatus, device, and medium that can solve the problem of limited video recording formats.

[0005] In a first aspect, embodiments of this application provide a video recording method, including:

[0006] Displays a first captured preview image corresponding to the first camera component; wherein, the first camera component is any one of a plurality of camera components included in the electronic device;

[0007] Receive the first input to the first captured preview image;

[0008] In response to the first input, multiple points are set in the actual scene corresponding to the first captured preview image;

[0009] Receive video input;

[0010] In response to video recording input, multiple camera components are controlled to record video from multiple locations, resulting in multiple first videos;

[0011] A second video is generated based on multiple first videos.

[0012] Secondly, embodiments of this application provide a video recording device, including:

[0013] A first display module is used to display a first shooting preview image corresponding to the first camera component; wherein, the first camera component is any one of a plurality of camera components included in the electronic device;

[0014] The first receiving module is used to receive a first input to the first captured preview image;

[0015] The setting module is used to set multiple points in the actual scene corresponding to the first captured preview image in response to the first input.

[0016] The second receiving module is used to receive video recording input;

[0017] The recording module is used to respond to recording input, control multiple camera components to record multiple points, and obtain multiple first videos;

[0018] The generation module is used to generate a second video based on multiple first videos.

[0019] Thirdly, embodiments of this application provide an electronic device, which includes a plurality of camera components, a processor, and a memory. The memory stores programs or instructions that can run on the processor, and when the programs or instructions are executed by the processor, they implement the steps of the recording method provided in embodiments of this application.

[0020] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, and when the program or instructions are executed by a processor, they implement the steps of the recording method provided in embodiments of this application.

[0021] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the steps of the recording method provided in embodiments of this application.

[0022] Sixthly, embodiments of this application provide a computer program product, which is stored in a storage medium and executed by at least one processor to implement the steps of the recording method provided in embodiments of this application.

[0023] In this embodiment, a first shooting preview image corresponding to a first camera component is displayed; a first input to the first shooting preview image is received; in response to the first input, multiple points are set in the actual scene corresponding to the first shooting preview image; a recording input is received; in response to the recording input, multiple camera components are controlled to record multiple points to obtain multiple first videos; and a second video is generated based on the multiple first videos. Thus, the second video includes a portion of the video obtained from recording multiple points by multiple camera components, enabling switching between the shooting views of different camera components, similar to switching between multi-camera shots, thus improving the diversity of recording formats. Attached Figure Description

[0024] Figure 1 This is a flowchart illustrating the video recording method provided in an embodiment of this application;

[0025] Figure 2 This is a schematic diagram showing the result of setting the points according to the embodiments of this application;

[0026] Figure 3 This is a schematic diagram of adjusting the camera movement speed provided in an embodiment of this application;

[0027] Figure 4 This is a schematic diagram illustrating the adjustment of zoom magnification provided in an embodiment of this application;

[0028] Figure 5 This is a schematic diagram illustrating the first variation of the output image provided in the embodiments of this application;

[0029] Figure 6 This is a schematic diagram illustrating a second variation of the output image provided in the embodiments of this application;

[0030] Figure 7 This is a schematic diagram of the identification points provided in the embodiments of this application;

[0031] Figure 8 This is a schematic diagram of the structure of the recording device provided in the embodiments of this application;

[0032] Figure 9 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application;

[0033] Figure 10 This is a schematic diagram of the hardware structure of an electronic device that implements the embodiments of this application. Detailed Implementation

[0034] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0035] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0036] The recording methods, apparatus, devices, and media provided in this application will be described in detail below with reference to the accompanying drawings and through specific embodiments and application scenarios.

[0037] Figure 1 This is a flowchart illustrating the recording method provided in an embodiment of this application. The recording method may include:

[0038] Step 101: Display the first shooting preview image corresponding to the first camera component; wherein, the first camera component is any one of the multiple camera components included in the electronic device;

[0039] In some possible implementations of the embodiments of this application, the multiple camera components in the embodiments of this application have different fields of view. The multiple camera components in the embodiments of this application include, for example, telephoto camera components, conventional camera components, wide-angle camera components, and super telephoto camera components.

[0040] In some possible implementations of the embodiments of this application, the first camera component in the embodiments of this application may be the camera component with the largest field of view among the multiple camera components included in the electronic device.

[0041] When the first camera component is the camera component with the largest field of view among the multiple camera components included in the electronic device, the range of the scene in the first captured preview image is the largest.

[0042] Step 102: Receive the first input for the first captured preview image;

[0043] In some possible implementations of the embodiments of this application, the first input in the embodiments of this application is used to set a point. The first input in the embodiments of this application includes, but is not limited to: touch input by the user on the first captured preview image through a touch object (e.g., a finger or a stylus), voice command input, specific gesture input, etc.; wherein, touch input includes, but is not limited to, click input, swipe input, etc. Click input can be single-click input, double-click input, or any number of clicks, and can also be long-press input or short-press input; specific gesture input can be any one of single-click gesture, swipe gesture, drag gesture, long-press gesture, area change gesture, double-press gesture, double-click gesture. The first input in the embodiments of this application can be set and modified adaptively according to actual needs.

[0044] Step 103: In response to the first input, set multiple points in the actual scene corresponding to the first captured preview image;

[0045] For example, in steps 102 and 103, when a user long-presses a certain position on the screen, the position corresponding to that position in the actual scene is taken as a point.

[0046] For example, such as Figure 2 As shown, Figure 2 This is a schematic diagram showing the result of setting the points according to the embodiments of this application. Figure 2 The diagram shows four points: point ①, point ②, point ③, and point ④.

[0047] Step 104: Receive video input;

[0048] In some possible implementations of the embodiments of this application, the recording input in the embodiments of this application is an input used to trigger recording, such as a click input for clicking the "record" control.

[0049] Step 105: In response to the recording input, control multiple camera components to record multiple points to obtain multiple first videos;

[0050] In some possible implementations of the embodiments of this application, in step 105, multiple camera components are controlled to record video of the same location at the same time.

[0051] Step 106: Generate a second video based on multiple first videos.

[0052] In some possible implementations of the embodiments of this application, the embodiments of this application do not limit the method used to generate a second video from multiple first videos, and any available method can be applied to the embodiments of this application. For example, the desired video segments can be selected from multiple first videos respectively, and then the multiple video segments can be combined into a single video.

[0053] In this embodiment, a first shooting preview image corresponding to a first camera component is displayed; a first input to the first shooting preview image is received; in response to the first input, multiple points are set in the actual scene corresponding to the first shooting preview image; a recording input is received; in response to the recording input, multiple camera components are controlled to record multiple points to obtain multiple first videos; and a second video is generated based on the multiple first videos. Thus, the second video includes a portion of the video obtained from recording multiple points by multiple camera components, enabling switching between the shooting views of different camera components, similar to switching between multi-camera shots, thus improving the diversity of recording formats.

[0054] In some possible implementations of the embodiments of this application, the user can select the camera component to be recorded from multiple camera components, and record the video using the selected camera component. Based on this, before step 104, the recording method provided in the embodiments of this application may further include: receiving a fifth input; in response to the fifth input, using the camera component corresponding to the fifth input as the camera component to be used for recording, and correspondingly, step 106 may include: controlling the camera component to be used for recording to record multiple points.

[0055] In some possible implementations of the embodiments of this application, the fifth input in the embodiments of this application is used to select the camera component to be used for recording. Exemplarily, the fifth input in the embodiments of this application includes, but is not limited to: touch input by the user using a touch device such as a finger or stylus to the identifier of the camera component, or voice commands input by the user, or specific gestures input by the user, or other feasible inputs. The specific input can be determined according to actual usage needs, and the embodiments of this application do not limit it. Specific gestures in the embodiments of this application can be any one of a single-click gesture, a swipe gesture, a drag gesture, a pressure-recognition gesture, a long-press gesture, an area-change gesture, a double-press gesture, or a double-tap gesture; the click input in the embodiments of this application can be a single-click input, a double-tap input, or any number of clicks, and can also be a long-press input or a short-press input. For example, the fifth input can be: a click input by the user using a finger to the identifier of the camera component.

[0056] For example, assuming the electronic device includes camera component 1, camera component 2, and camera component 3, after setting multiple points, a camera component selection interface is displayed. This camera component selection interface includes the identifiers of camera component 1, camera component 2, and camera component 3. When the user clicks the identifiers of camera component 2 and camera component 3, that is, the user selects camera component 2 and camera component 3 from camera component 1, camera component 2, and camera component 3, then during recording, camera component 2 and camera component 3 are used for recording.

[0057] In this embodiment of the application, the user can select the camera component to be used for recording, thereby enabling the generated video to meet their needs for video content.

[0058] In some possible implementations of the embodiments of this application, the user can also control the camera movement speed of the camera components during recording. Based on this, the recording method provided in the embodiments of this application may further include: displaying a second control while controlling multiple camera components to record multiple points, wherein the second control is used to adjust the camera movement speed of the multiple camera components; receiving a fourth input to the second control; adjusting the camera movement speed in response to the fourth input; correspondingly, step 106 may include: controlling multiple camera components to record multiple points according to the adjusted camera movement speed.

[0059] This application does not limit the appearance of the second control. Any available appearance can be applied to this application, such as a ring, a slider, etc.

[0060] In some possible implementations of the embodiments of this application, the fourth input in the embodiments of this application includes, but is not limited to: touch input of the second control by the user through a touch device such as a finger or stylus, or voice command input by the user, or specific gesture input by the user, or other feasible inputs. The specific input can be determined according to actual usage needs, and the embodiments of this application do not limit it. The specific gesture in the embodiments of this application can be any one of the following: single-click gesture, swipe gesture, drag gesture, pressure recognition gesture, long-press gesture, area change gesture, double-press gesture, and double-click gesture; the click input in the embodiments of this application can be single-click input, double-click input, or any number of clicks, and can also be long-press input or short-press input. For example, the fourth input can be: the user dragging the slider of the slider bar with their finger.

[0061] For example, such as Figure 3 As shown, Figure 3 This is a schematic diagram illustrating the adjustment of camera movement speed according to an embodiment of this application. When rotating clockwise... Figure 3 After the second control 301 in the middle, increase the camera speed, when rotating counterclockwise. Figure 3 After the second control 301 in the middle, reduce the camera movement speed.

[0062] In this embodiment of the application, by adjusting the camera movement speed of the camera component, the generated video can meet its requirements for video content.

[0063] In some possible implementations of this application's embodiments, the user can also control the zoom ratio of the camera components during recording. Based on this, before step 104, the recording method provided in this application's embodiments may further include: displaying a plurality of first controls corresponding to a plurality of camera components, wherein the first controls are used to adjust the zoom ratio of the camera components; receiving a third input to a first target control, wherein the first target control is any one of the plurality of first controls; and configuring the zoom ratio of the camera component corresponding to the first target control in response to the third input. Accordingly, step 106 may include: controlling the plurality of camera components to record multiple points at their respective zoom ratios.

[0064] This application does not limit the appearance of the first control. Any available appearance can be applied to this application, such as a ring, a slider, etc.

[0065] In some possible implementations of the embodiments of this application, the third input in the embodiments of this application includes, but is not limited to: touch input of the user to the first control by a touch device such as a finger or stylus, or voice command input by the user, or specific gesture input by the user, or other feasible inputs. The specific input can be determined according to actual usage needs, and the embodiments of this application do not limit it. The specific gesture in the embodiments of this application can be any one of the following: single-click gesture, swipe gesture, drag gesture, pressure recognition gesture, long-press gesture, area change gesture, double-press gesture, and double-click gesture; the click input in the embodiments of this application can be single-click input, double-click input, or any number of clicks, and can also be long-press input or short-press input. For example, the fourth input can be: drag input of the slider of the slider bar by the user's finger.

[0066] For example, such as Figure 4 As shown, Figure 4 This is a schematic diagram illustrating the adjustment of zoom magnification provided in an embodiment of this application. Figure 4 In the middle, the first control is the slider 401, and the zoom ratio of the camera component can be adjusted by the slider on the slider.

[0067] Assuming the periscope camera's zoom level is adjusted to 5x, the telephoto camera's zoom level to 2x, the main camera's zoom level to 1x, and the ultra-wide-angle camera's zoom level to 0.6x, during video recording, the periscope camera will record at 5x zoom, the telephoto camera at 2x zoom, the main camera at 1x zoom, and the ultra-wide-angle camera at 0.6x zoom.

[0068] In this embodiment of the application, by adjusting the zoom ratio of each camera component, the generated video can meet its requirements for video content.

[0069] In some possible implementations of the embodiments of this application, step 106 may include: controlling multiple camera components to record video of multiple points in sequence according to the setting order of multiple points.

[0070] For example, assuming the four points are set in the following order: point ①, point ②, point ③, and point ④, multiple camera components are controlled to first record point ①, then move to point ② to record point ②, then move to point ③ to record point ③, and then move to point ④ to record point ④.

[0071] In some possible implementations of the embodiments of this application, controlling multiple camera components to record multiple points sequentially according to the setting order of multiple points may include: when the second shooting preview image corresponding to the second camera component includes the first point and the second point, controlling the video captured by the second camera component through electronic image stabilization to record the movement process from the first point to the second point; wherein, the second camera component is any one of the multiple camera components, and the second point is the point that is located after the first point according to the setting order.

[0072] In some possible implementations of this application, Electronic Imagestabilization (EIS) is a video stabilization algorithm that achieves video stability by sacrificing the image's field of view. The algorithm's input is a full-size image captured by the camera assembly, which is processed by electronic imagestabilization to eliminate shake factors. The algorithm's output is an image smaller than the full-size image.

[0073] In some possible implementations of the embodiments of this application, the second camera component may be the camera component with the smallest field of view among a plurality of camera components.

[0074] In some possible implementations of the embodiments of this application, the image output by EIS can be controlled by changing the field of view coordinates of the EIS output.

[0075] For example, such as Figure 5 As shown, Figure 5 This is a schematic diagram illustrating the first variation of the output image provided in the embodiments of this application. Figure 5 In the video recording, when recording at point ①, EIS outputs image X; when recording at point ②, EIS outputs image X. Figure 5 In the image Y, when recording the movement process from point ① to point ②, the field of view coordinates output by EIS can be gradually changed from the coordinates of point ① to the coordinates of point ②. The change in coordinates from point ① to point ② is a linear change, that is, the field of view coordinates output by EIS are changed according to the points on the straight line from point ① to point ②.

[0076] In some possible implementations of the embodiments of this application, controlling multiple camera components to record video of multiple points in sequence according to the setting order of multiple points may include: when the second shooting preview image corresponding to the second camera component includes the first point but does not include the second point, controlling the video captured by the second camera component through optical image stabilization and electronic image stabilization to record the movement process from the first point to the second point.

[0077] In some possible implementations of this application, optical image stabilization (OIS) is an image stabilization technology that achieves image stability by changing the position of optical components. By utilizing the OIS's ability to move the camera module, the position of the camera module is moved during the recording process, thereby achieving the purpose of moving the recorded image.

[0078] For example, during video recording, if the preview image captured by the second camera component does not include the next point, the position of the second camera component is first changed via OIS to control the video recording captured by the second camera component, and then the image output by the EIS is controlled by changing the field of view coordinates output by the EIS. Figure 6 As shown, Figure 6 This is a schematic diagram illustrating a second variation of the output image provided in an embodiment of this application. Figure 6 In this diagram, point ④ is the next point after point ①. When recording at point ①, the EIS output is image X. At this time, point ④ is not in the preview image of the second camera component. The position of the second camera component is adjusted by OIS to place point ④ in the preview image. Then, by changing the field of view coordinates output by EIS, the EIS output image Y is controlled when recording at point ④. Figure 6 The image Z in the image is the EIS output when the midpoint between points ① and ④ is recorded during the recording process.

[0079] In this embodiment of the application, multiple camera components can automatically record video according to the set order of the locations.

[0080] In some possible implementations of the embodiments of this application, the recording method provided in the embodiments of this application may further include: during the process of controlling multiple camera components to record multiple points, displaying the identification information corresponding to the multiple points and the third shooting preview image corresponding to the third camera component; and displaying the identification information corresponding to the points included in the third shooting preview image in a first display mode.

[0081] This application does not limit the first display method. Any available method can be applied to this application embodiment. For example, the identification information can be displayed in a specific color.

[0082] For example, such as Figure 7 As shown, Figure 7 This is a schematic diagram of the identification points provided in the embodiments of this application. Figure 7 In the middle, point ① and point ② are shown in red.

[0083] In this embodiment of the application, by displaying the identification information corresponding to the points included in the captured preview image in a first display mode, the user can know which point is currently being recorded.

[0084] In some possible implementations of the embodiments of this application, step 106 may include: receiving a second input of identification information for a third point, wherein the third point is any one of a plurality of points; and controlling a plurality of camera components to record video of the third point in response to the second input.

[0085] In some possible implementations of the embodiments of this application, the second input can be touch input of the user's identification information of the point using a touch device such as a finger or stylus; wherein, touch input includes, but is not limited to, click input, swipe input, etc. Click input can be single click input, double click input, or any number of clicks input, and can also be long press input or short press input. The second input in the embodiments of this application can be set and modified adaptively according to actual needs.

[0086] For example, four points are pre-set: point ①, point ②, point ③, and point ④. Identification information for each point is displayed on the screen of the electronic device. When recording at point ②, the user clicks on the identification information for point ④, controlling multiple camera components to record at point ④, resulting in the recorded image moving from point ② to point ④.

[0087] In this embodiment of the application, the camera movement control during video recording can be improved based on the user's manual control of the location identification information, thereby enhancing the user experience.

[0088] The recording method provided in this application can be executed by a recording device. This application uses a recording device executing the recording method as an example to illustrate the recording device provided in this application.

[0089] Figure 8 This is a schematic diagram of the structure of the recording device provided in an embodiment of this application. The recording device 800 may include:

[0090] The first display module 801 is used to display a first shooting preview image corresponding to the first camera component; wherein, the first camera component is any one of a plurality of camera components included in the electronic device;

[0091] The first receiving module 802 is used to receive a first input to the first captured preview image;

[0092] Setting module 803 is used to set multiple points in the actual scene corresponding to the first captured preview image in response to the first input;

[0093] The second receiving module 804 is used to receive video recording input;

[0094] The recording module 805 is used to control multiple camera components to record multiple points in response to recording input, thereby obtaining multiple first videos;

[0095] The generation module 806 is used to generate a second video based on multiple first videos.

[0096] In this embodiment, a first shooting preview image corresponding to a first camera component is displayed; a first input to the first shooting preview image is received; in response to the first input, multiple points are set in the actual scene corresponding to the first shooting preview image; a recording input is received; in response to the recording input, multiple camera components are controlled to record multiple points to obtain multiple first videos; and a second video is generated based on the multiple first videos. Thus, the second video includes a portion of the video obtained from recording multiple points by multiple camera components, enabling switching between the shooting views of different camera components, similar to switching between multi-camera shots, thus improving the diversity of recording formats.

[0097] In some possible implementations of the embodiments of this application, the recording module 805 is specifically used for:

[0098] Based on the setting order of multiple locations, control multiple camera components to record video at multiple locations in sequence.

[0099] In some possible implementations of the embodiments of this application, the recording module 805 is specifically used for:

[0100] When the second shooting preview image corresponding to the second camera component includes the first point and the second point, the video captured by the second camera component through electronic image stabilization is used to record the movement process from the first point to the second point; wherein, the second camera component is any one of a plurality of camera components, and the second point is the point that is located next to the first point in the set order.

[0101] In some possible implementations of the embodiments of this application, the recording module 805 is specifically used for:

[0102] When the second shooting preview image corresponding to the second camera component includes the first point but does not include the second point, the video captured by the second camera component is controlled by optical image stabilization and electronic image stabilization to record the movement process from the first point to the second point; wherein, the second camera component is any one of a plurality of camera components, and the second point is the point that is located next to the first point in the set order.

[0103] In some possible implementations of the embodiments of this application, the recording device 800 provided in the embodiments of this application may further include:

[0104] The second display module is used to display the identification information corresponding to the multiple camera components and the third shooting preview image corresponding to the third camera component during the process of controlling multiple camera components to record multiple points; wherein, the third camera component is any one of the multiple camera components;

[0105] The third display module is used to display the identification information corresponding to the points included in the third captured preview image in a first display mode.

[0106] In some possible implementations of embodiments of this application, the recording module 805 includes:

[0107] The first receiving submodule is used to receive a second input of the identification information of the third point; wherein the third point is any one of multiple points;

[0108] The recording submodule is used to control multiple camera components to record video at a third location in response to the second input.

[0109] In some possible implementations of the embodiments of this application, the recording device 800 provided in the embodiments of this application may further include:

[0110] The fourth display module is used to display multiple first controls corresponding to multiple camera components before receiving video input; wherein, the first controls are used to adjust the zoom ratio of the camera components;

[0111] The third receiving module is used to receive a third input to the first target control, wherein the first target control is any one of a plurality of first controls;

[0112] The configuration module is used to configure the zoom ratio of the camera component corresponding to the first target control in response to the third input.

[0113] In some possible implementations of the embodiments of this application, the recording device 800 provided in the embodiments of this application may further include:

[0114] The fifth display module is used to display the second control during the process of controlling multiple camera components to record video at multiple points; the second control is used to adjust the camera movement speed of the multiple camera components.

[0115] The fourth receiving module is used to receive the fourth input to the second control;

[0116] An adjustment module is used to adjust the camera movement speed in response to the fourth input;

[0117] The 805 video recording module is specifically used for:

[0118] Based on the adjusted camera movement speed, control multiple camera components to record video from multiple locations.

[0119] In some possible implementations of the embodiments of this application, the recording device 800 provided in the embodiments of this application may further include:

[0120] The fifth receiving module is used to receive the fifth input;

[0121] The determination module is used to respond to the fifth input and select the camera component corresponding to the fifth input as the camera component to be used for recording.

[0122] The 805 video recording module is specifically used for:

[0123] Control recording requires the use of camera components to record from multiple locations.

[0124] The recording device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television set (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the scope of the device.

[0125] The recording device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit the specific operating system used.

[0126] The video recording device provided in this application embodiment can achieve... Figures 1 to 7 The various processes implemented in the video recording method embodiment will not be described again here to avoid repetition.

[0127] Optionally, such as Figure 9As shown, this application embodiment also provides an electronic device 900, including a processor 901 and a memory 902. The memory 902 stores a program or instructions that can run on the processor 901. When the program or instructions are executed by the processor 901, they implement the various steps of the above-described recording method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.

[0128] The electronic device 900 in this application embodiment also includes multiple camera modules.

[0129] Figure 10 This is a schematic diagram of the hardware structure of an electronic device that implements the embodiments of this application.

[0130] The electronic device 1000 includes, but is not limited to, components such as: radio frequency unit 1001, network module 1002, audio output unit 1003, input unit 1004, sensor 1005, display unit 1006, user input unit 1007, interface unit 1008, memory 1009, and processor 1010.

[0131] Those skilled in the art will understand that the electronic device 1000 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 1010 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 10 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.

[0132] The display unit 1006 is used to: display a first shooting preview image corresponding to the first camera component; wherein the first camera component is any one of the plurality of camera components included in the electronic device 1000;

[0133] User input unit 1007 is used to: receive a first input to the first captured preview image;

[0134] Processor 1010 is used to: in response to a first input, set multiple points in the actual scene corresponding to the first captured preview image;

[0135] The user input unit 1007 is also used for: receiving video input;

[0136] The processor 1010 is also configured to: control multiple camera components to record multiple points in response to video input, thereby obtaining multiple first videos; and generate a second video based on the multiple first videos.

[0137] In this embodiment, a first shooting preview image corresponding to a first camera component is displayed; wherein the first camera component is any one of a plurality of camera components included in the electronic device; a first input to the first shooting preview image is received; in response to the first input, multiple points are set in the actual scene corresponding to the first shooting preview image; a recording input is received; in response to the recording input, multiple camera components are controlled to record multiple points to obtain multiple first videos; and a second video is generated based on the multiple first videos. Thus, the second video includes a portion of the video obtained by multiple camera components recording multiple points, enabling switching between the shooting images of different camera components, similar to switching between multi-camera shots, thus improving the diversity of recording formats.

[0138] In some possible implementations of the embodiments of this application, the processor 1010 is specifically used for:

[0139] Based on the setting order of multiple locations, control multiple camera components to record video at multiple locations in sequence.

[0140] In some possible implementations of the embodiments of this application, the processor 1010 is specifically used for:

[0141] When the second shooting preview image corresponding to the second camera component includes the first point and the second point, the video captured by the second camera component through electronic image stabilization is used to record the movement process from the first point to the second point; wherein, the second camera component is any one of a plurality of camera components, and the second point is the point that is located next to the first point in the set order.

[0142] In some possible implementations of the embodiments of this application, the processor 1010 is specifically used for:

[0143] When the second shooting preview image corresponding to the second camera component includes the first point but does not include the second point, the video captured by the second camera component is controlled by optical image stabilization and electronic image stabilization to record the movement process from the first point to the second point; wherein, the second camera component is any one of a plurality of camera components, and the second point is the point that is located next to the first point in the set order.

[0144] In some possible implementations of the embodiments of this application, the display unit 1006 is further configured to:

[0145] During the process of controlling multiple camera components to record multiple points, the identification information corresponding to the multiple points and the third shooting preview image corresponding to the third camera component are displayed; wherein, the third camera component is any one of the multiple camera components; the identification information corresponding to the points included in the third shooting preview image is displayed in a first display mode.

[0146] In some possible implementations of the embodiments of this application, the user input unit 1007 is further used for:

[0147] Receive a second input for the identification information of the third point; wherein the third point is any one of multiple points;

[0148] Accordingly, the processor 1010 is specifically used to: control multiple camera components to record video at the third point in response to the second input.

[0149] In some possible implementations of the embodiments of this application, the display unit 1006 is further configured to: display a plurality of first controls corresponding to a plurality of camera components respectively before receiving video input; wherein the first controls are used to adjust the zoom ratio of the camera components;

[0150] The user input unit 1007 is further configured to: receive a third input to a first target control, wherein the first target control is any one of a plurality of first controls;

[0151] The processor 1010 is also used to: in response to a third input, configure the zoom ratio of the camera component corresponding to the first target control.

[0152] In some possible implementations of the embodiments of this application, the display unit 1006 is further configured to: display a second control during the process of controlling multiple camera components to record multiple points; wherein the second control is used to adjust the camera movement speed of the multiple camera components;

[0153] The user input unit 1007 is also used to: receive a fourth input to the second control;

[0154] Processor 1010 is also used to: adjust camera movement speed in response to a fourth input;

[0155] Accordingly, the processor 1010 is specifically used to control multiple camera components to record video at multiple points according to the adjusted camera movement speed.

[0156] In some possible implementations of the embodiments of this application, the user input unit 1007 is further configured to: receive a fifth input;

[0157] The processor 1010 is also configured to: in response to the fifth input, use the camera component corresponding to the fifth input as the camera component to be used for recording; and control the camera component to be used for recording to record multiple points.

[0158] It should be understood that, in this embodiment, the input unit 1004 may include a graphics processing unit (GPU) 10041 and a microphone 10042. The GPU 10041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 1006 may include a display panel 10061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 1007 includes a touch panel 10071 and at least one of other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.

[0159] The memory 1009 can be used to store software programs and various data. The memory 1009 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 1009 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 1009 in this embodiment includes, but is not limited to, these and any other suitable types of memory.

[0160] The processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into the processor 1010.

[0161] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the recording method provided in this application and achieve the same technical effect. To avoid repetition, they will not be described again here.

[0162] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes a computer-readable storage medium, examples of which include non-transitory computer-readable media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0163] This application also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the recording method provided in this application and achieve the same technical effect. To avoid repetition, it will not be described again here.

[0164] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0165] This application also provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the recording method embodiment provided in this application, and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0166] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0167] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0168] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A video recording method, characterized in that, The method includes: Displays a first preview image corresponding to the first camera component; wherein the first camera component is any one of a plurality of camera components included in the electronic device; the plurality of camera components have different fields of view; Receive a first input to the first captured preview image; In response to the first input, multiple points are set in the actual scene corresponding to the first captured preview image; Receive video input; In response to the recording input, multiple camera components are controlled to record video at the multiple locations, resulting in multiple first videos; Generate a second video based on the plurality of first videos; The control of the plurality of camera components to record video at the plurality of locations includes: According to the setting order of the multiple points, the multiple camera components are controlled to record video at the multiple points in sequence; The step of controlling the multiple camera components to sequentially record video at the multiple locations according to the setting order of the multiple locations includes: When the second shooting preview image corresponding to the second camera component includes the first point and the second point, the video captured by the second camera component is controlled by electronic image stabilization to record the movement process from the first point to the second point; wherein, the second camera component is any one of the plurality of camera components, and the second point is the point next to the first point according to the set order.

2. The method according to claim 1, characterized in that, The step of controlling the multiple camera components to record video sequentially at the multiple locations according to the setting order of the multiple locations also includes: When the second shooting preview image corresponding to the second camera component includes the first point but does not include the second point, the video captured by the second camera component is controlled by optical image stabilization and electronic image stabilization to record the movement process from the first point to the second point; wherein, the second camera component is any one of the plurality of camera components, and the second point is the point next to the first point according to the set order.

3. The method according to claim 1, characterized in that, The method further includes: During the process of controlling the multiple camera components to record video of the multiple locations, the identification information corresponding to the multiple locations and the third shooting preview image corresponding to the third camera component are displayed; wherein, the third camera component is any one of the multiple camera components; The identification information corresponding to the points included in the third captured preview image is displayed in the first display mode.

4. The method according to claim 3, characterized in that, The control of the plurality of camera components to record video at the plurality of locations includes: Receive a second input for the identification information of the third point; wherein the third point is any one of the plurality of points; In response to the second input, the plurality of camera components are controlled to record video at the third location.

5. The method according to claim 1, characterized in that, Before receiving the video input, the method further includes: Display multiple first controls corresponding to multiple camera components; wherein, the first controls are used to adjust the zoom ratio of the camera components; Receive a third input to a first target control; wherein the first target control is any one of the plurality of first controls; In response to the third input, the zoom ratio of the camera component corresponding to the first target control is configured.

6. The method according to claim 1, characterized in that, The method further includes: During the process of controlling the multiple camera components to record video at the multiple locations, a second control is displayed; wherein, the second control is used to adjust the camera movement speed of the multiple camera components; Receive a fourth input to the second control; In response to the fourth input, the camera movement speed is adjusted; The control of the plurality of camera components to record video at the plurality of locations includes: Based on the adjusted camera movement speed, the multiple camera components are controlled to record video at the multiple locations.

7. The method according to claim 1, characterized in that, Before receiving the video input, the method further includes: Receive the fifth input; In response to the fifth input, the camera component corresponding to the fifth input is selected as the camera component required for recording. The control of the plurality of camera components to record video at the plurality of locations includes: The camera components used to control the recording need to record the multiple locations.

8. A video recording device, characterized in that, The device includes: A first display module is used to display a first shooting preview image corresponding to a first camera component, wherein the first camera component is any one of a plurality of camera components included in the electronic device; the plurality of camera components have different fields of view. The first receiving module is configured to receive a first input to the first captured preview image; The setting module is used to set multiple points in the actual scene corresponding to the first captured preview image in response to the first input. The second receiving module is used to receive video recording input; The recording module is used to control the plurality of camera components to record the plurality of points in response to the recording input, thereby obtaining a plurality of first videos; A generation module is used to generate a second video based on the plurality of first videos; The video recording module is specifically used for: According to the setting order of the multiple points, the multiple camera components are controlled to record video at the multiple points in sequence; The video recording module is specifically used for: When the second shooting preview image corresponding to the second camera component includes the first point and the second point, the video captured by the second camera component is controlled by electronic image stabilization to record the movement process from the first point to the second point; wherein, the second camera component is any one of the plurality of camera components, and the second point is the point next to the first point according to the set order.

9. The apparatus according to claim 8, characterized in that, The device further includes: The fourth display module is used to display a plurality of first controls corresponding to a plurality of camera components before receiving the video input; wherein the first controls are used to adjust the zoom ratio of the camera components; The third receiving module is used to receive a third input to the first target control; wherein the first target control is any one of the plurality of first controls; The configuration module is used to configure the zoom ratio of the camera component corresponding to the first target control in response to the third input.

10. An electronic device, characterized in that, The electronic device includes a plurality of camera components, a processor, and a memory, the memory storing programs or instructions that can run on the processor, the programs or instructions being executed by the processor to implement the steps of the recording method as described in any one of claims 1-7.

11. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the recording method as described in any one of claims 1-7.