Video recording method and device, electronic equipment and readable storage medium

By automatically adjusting shooting parameters using script template files in the video recording device, the problem of time spent manually adjusting parameters is solved, and the video recording process is simplified and efficiency improvement is achieved.

CN119653033APending Publication Date: 2025-03-18VIVO MOBILE COMM CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202411772501.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-04
Publication Date
2025-03-18

AI Technical Summary

Technical Problem

During the video recording process, users need to manually adjust the shooting parameters, which leads to cumbersome and time-consuming steps, affecting the recording efficiency.

Method used

By using script template files, electronic devices can automatically determine the occurrence location, time, motion parameters and shooting parameters of elements in the video recording interface, thereby automatically adjusting shooting information and reducing user manual operations.

Benefits of technology

The steps of the video recording process are simplified, shooting efficiency is improved, and user operation time is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119653033A_ABST
    Figure CN119653033A_ABST
Patent Text Reader

Abstract

The invention discloses a video recording method and device, electronic equipment and a readable storage medium, and belongs to the technical field of camera shooting. The method comprises the following steps: under the condition of displaying a video recording interface, determining first shooting information of at least one first element in the video recording interface according to a first script template file, the first shooting information comprises at least one of the following items: the occurrence position of the first element, the occurrence time of the first element, the motion parameter of the first element and the shooting parameter of the first element; receiving a first input of a user to the video recording interface, wherein the first input is used for triggering video recording; and in response to the first input, performing video recording according to the first shooting information, and generating a target video.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of video recording technology, and specifically relates to a video recording method, device, electronic device and readable storage medium. Background Art

[0002] With the development of technology, video recording has become an important way for users to record and share their lives. Users can use electronic devices to record videos to capture important moments in life.

[0003] In the related art, when recording a video through an electronic device, the user needs to manually adjust the position of elements in the preview element screen, switch cameras, or adjust shooting parameters such as focal length, etc. However, it takes a certain amount of time for the user to manually perform the above operations, which makes the entire video recording process cumbersome and time-consuming. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a video recording method, device, electronic device and readable storage medium, which can simplify the steps of the video recording process and thus improve shooting efficiency.

[0005] In a first aspect, an embodiment of the present application provides a video recording method, the method comprising:

[0006] When displaying a video recording interface, first shooting information of at least one first element in the video recording interface is determined according to a first script template file, the first shooting information including at least one of the following: an appearance position of the first element, an appearance time of the first element, a motion parameter of the first element, and a shooting parameter of the first element; a first input from a user to the video recording interface is received, the first input being used to trigger video recording; in response to the first input, video recording is performed according to the first shooting information to generate a target video.

[0007] In a second aspect, an embodiment of the present application provides a video recording device, which includes: a determination module, a receiving module and a processing module; the determination module is used to determine, when displaying the video recording interface, first shooting information of at least one first element in the video recording interface according to a first script template file, the first shooting information including at least one of the following: the appearance position of the first element, the appearance time of the first element, the motion parameters of the first element, and the shooting parameters of the first element; the receiving module is used to receive a first input from a user to the video recording interface, the first input is used to trigger video recording; the processing module is used to record the video according to the first shooting information in response to the first input to generate a target video.

[0008] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.

[0009] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0010] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.

[0011] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.

[0012] In an embodiment of the present application, when displaying a video recording interface, the electronic device determines the first shooting information of at least one first element in the video recording interface according to the first script template file, the first shooting information includes at least one of the following: the appearance position of the first element, the appearance time of the first element, the motion parameters of the first element, and the shooting parameters of the first element; receives a first input from the user to the video recording interface, the first input is used to trigger video recording; in response to the first input, performs video recording according to the first shooting information to generate a target video. Through this method, the electronic device can determine the appearance position, appearance time, motion parameters, shooting parameters and other shooting information of at least one first element in the video recording interface through a script template file to perform video recording, without the user having to manually adjust the shooting information of the first element, reducing the user's manual operation, and realizing the automatic adjustment of the shooting information of the element during the video recording process, thereby simplifying the steps of the video recording process and improving the shooting efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 It is a flowchart of a video recording method provided in an embodiment of the present application;

[0014] Figure 2 It is one of the schematic diagrams of the interface used by the video recording method provided in the embodiment of the present application;

[0015] Figure 3 This is a second schematic diagram of an interface used by the video recording method provided in an embodiment of the present application;

[0016] Figure 4This is a third schematic diagram of an interface used by the video recording method provided in an embodiment of the present application;

[0017] Figure 5 This is a fourth schematic diagram of an interface used by the video recording method provided in an embodiment of the present application;

[0018] Figure 6 A schematic diagram of the structure of a video recording device provided in an embodiment of the present application;

[0019] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0020] Figure 8 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0021] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0022] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0023] The terms "at least one (item)", "at least one of" and the like in the specification and claims of the present application refer to any one, any two or a combination of more than two of the objects included therein. For example, at least one (item) of a, b, and c can be represented by: "a", "b", "c", "a and b", "a and c", "b and c" and "a, b and c", where a, b, and c can be single or multiple. Similarly, "at least two (items)" refers to two or more, and its meaning is similar to that of "at least one (item)".

[0024] The video recording method provided in the embodiment of the present application can be applied to the scenario of recording videos through electronic devices.

[0025] When a scene including animal A, a person, and a plant is recorded by an electronic device, the preview screen of the video recording interface includes: a preview image of a puppy, a preview image of a person, and a preview image of a plant. If the user needs to focus on animal A in the scene, the shooting information of animal A can be determined according to the script template file, for example, the position where animal A appears in the preview screen, the time when animal A appears in the preview screen, and the camera used to shoot the animal A and the shooting parameters, etc., and then the animal A is recorded according to the shooting information to generate a target video including the animal A. In this way, the electronic device can determine the shooting information such as the position, time, motion parameters, and shooting parameters of animal A in the video recording interface through the script template file, and directly record the animal A according to the above shooting information, without the user having to manually adjust the shooting parameters and other shooting information of the animal A, thereby reducing the user's manual operation and realizing the automatic adjustment of the shooting information during the video recording process, thereby simplifying the steps of the video recording process and improving the shooting efficiency.

[0026] The execution subject of the video recording method provided in the embodiment of the present application may be a video recording device, which may be an electronic device, or a functional module or functional entity in an electronic device. The video recording method provided in the embodiment of the present application is described below by taking an electronic device executing the video recording method as an example.

[0027] The video recording method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0028] Figure 1 A schematic diagram of a video recording method provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the video recording method may include the following steps 201 to 203:

[0029] Step 201: When the electronic device displays a video recording interface, the electronic device determines first shooting information according to a first script template file.

[0030] The first shooting information may include at least one of the following: an appearance position of the first element, an appearance time of the first element, a motion parameter of the first element, and a shooting parameter of the first element.

[0031] In some embodiments of the present application, the above-mentioned video recording interface can be an interface displayed on the screen for displaying a preview image captured by a camera.

[0032] In some embodiments of the present application, the user can preview the recorded video stream and adjust the recording parameters through the video recording interface. For example, the user can adjust various settings related to video recording, such as focal length, exposure, etc., and the user can preview the recording effect.

[0033] In some embodiments of the present application, the above-mentioned video recording interface includes a preview screen captured by the camera.

[0034] It should be noted that the above-mentioned preview screen is the preview image.

[0035] In some embodiments of the present application, the above-mentioned video recording interface may be a video recording interface of a video recording application.

[0036] For example, suppose a user wants to record a video of animal A. After the user opens the video recording application on the electronic device, the electronic device immediately displays a video recording interface including a real-time preview screen. The video recording interface displays a preview image of animal A captured by the camera, and the side of the video recording interface includes multiple controls for adjusting shooting parameters. The user previews the real-time picture of animal A running in the park in the video recording interface and can adjust the shooting parameters through the controls.

[0037] In some embodiments of the present application, the first script template file may be a predefined configuration file for guiding the shooting of elements during video recording.

[0038] In some embodiments of the present application, the first script template file may be a local file or a file downloaded from a server.

[0039] Exemplarily, a function entry of "script template file import" is provided in the camera screen setting menu. After the user clicks to enter the entry, he can select a script template file from the local device file or download some types of script template files (such as party, sketching, sports, etc.) from the server as the first script template file.

[0040] For example, Figure 2 As shown, the video preview interface 21 of the electronic device includes images of animal A, person B, and plant C, as well as a "script template" option and a "record" button. Assuming that the user wants to shoot a motion video of animal A, after the user clicks the "script template" option, the electronic device displays the "local import" option and the "server" option on the shooting preview interface 21, and then the user can click the "server" option to trigger the electronic device to download the server script template file.

[0041] In some embodiments of the present application, the content in the first script template file includes information such as element type, motion parameters, and shooting parameters.

[0042] It should be noted that the first script template file is used to automate the element type, motion parameters and shooting parameters in the video recording process.

[0043] In some embodiments of the present application, the first script template file may store shooting information corresponding to a plurality of element types, and each element type corresponds to a set of shooting information.

[0044] Exemplarily, the format definition of the first script template file may be as follows:

[0045] {

[0046] elementType:person / / element type

[0047] elementPos:(100,200) / / element position

[0048] elementTime:10000 / / The time when the element appears, in ms

[0049] elementDes: "a piece of text describing the element" / / text language describes the element

[0050] cameraParam: / / camera parameters

[0051] / / Other defined contents

[0052] }

[0053] Specifically, elementType specifies the type of the element, such as "person" for a person. elementPos defines the position of the element in the video interface in pixels. elementTime specifies the time point when the element appears in milliseconds. elementDes provides a text description of the element, which can be used for display in the user interface or as a reference for automated processing. cameraParam contains specific parameter settings of the camera, such as zoom, focus, exposure, and white balance. motionParam defines the motion parameters of the element, including motion path, speed, and direction. otherParams can contain any other parameters related to video recording, such as background music, transition effects, and text overlays.

[0054] In some embodiments of the present application, the at least one first element may be determined based on user input, or the at least one first element may be an element of a preset type, or the at least one first element may be an element in the video recording interface that matches the element type in the first script template file.

[0055] In some embodiments of the present application, the first element may be a person, an animal, a plant, a building, or other such element.

[0056] In some embodiments of the present application, the electronic device may perform image recognition on the preview screen in the video recording interface to determine at least one first element in the preview screen.

[0057] For example, when a video of a scene including animal A, a person, and a plant is recorded by a camera of an electronic device, combined with the above Figure 2 The preview screen of the video recording interface 21 of the electronic device includes: animal A, person B, and plant C. The electronic device can perform image recognition on the preview screen to determine that the first element in the preview screen may include animal A, person B, and plant C in the recording preview interface (that is, at least one first element can be an element in the video recording interface that matches the element type in the first script template file).

[0058] Again illustratively, in combination with the above Figure 2 When a scene including animal A, a person and a plant is recorded by a camera of an electronic device, the preview screen of the video recording interface 21 includes: animal A, person B, plant C, and the user can input the preview screen, such as click input, long press input or voice input, etc. Assuming that the user clicks on animal A in the preview screen of the video recording interface 21, it is determined that the first element in the preview screen is animal A (that is, at least one first element can be determined based on the user's input).

[0059] Again illustratively, in combination with the above Figure 2 When a scene including animal A, a person and a plant is recorded by a camera of an electronic device, the preview screen of the video recording interface 21 includes: animal A, person B, plant C. The electronic device can perform image recognition on the preview screen and determine the element belonging to the plant type as the first element, that is, determine that the first element in the preview screen is plant C (that is, at least one first element can be an element of a preset type).

[0060] In some embodiments of the present application, the appearance position of the first element may be the display position of the first element in the video recording interface during the video recording process.

[0061] Exemplarily, the display position of animal A in the video recording interface may be the lower right corner, that is, the appearance position of animal A (the first element) is the lower right corner.

[0062] In some embodiments of the present application, the appearance time of the first element may be the moment when the first element appears in the video recording interface during the video recording process.

[0063] In some embodiments of the present application, the appearance time of the first element may be the continuous appearance time of the first element in the video recording interface during the video recording process.

[0064] Exemplarily, at 3 seconds after the start of video recording, animal A (the first element) begins to be displayed on the video recording interface, that is, the appearance time of the first element in the video recording interface is 3 seconds.

[0065] As another example, after animal A (the first element) is initially displayed on the video recording interface for 3 seconds, animal A is hidden, that is, the first element appears on the video recording interface for 3 seconds.

[0066] In some embodiments of the present application, the motion parameters of the first element may be motion characteristics of the first element during video recording. These parameters enable the electronic device to automatically track and record the moving first element, ensuring that it always remains at a predetermined position in the picture, or moves along a specific trajectory.

[0067] Specifically, the motion parameter of the first element may be the speed, direction, path, acceleration, rotation angle, starting point, end point, or other parameter types describing the motion of the first element.

[0068] In some embodiments of the present application, the shooting parameters of the first element may be parameters defining how to capture an image of the first element during video recording.

[0069] Specifically, the shooting parameters of the first element may be parameters affecting video quality, artistic effect or specific visual style, such as focal length, exposure, white balance, aperture, shutter speed, color mode, switching between the front camera and the rear camera, etc., for shooting the first element.

[0070] In some embodiments of the present application, the shooting parameters of the first element can be automatically adjusted according to the corresponding shooting parameters in the first script template file, or can be dynamically adjusted according to actual conditions during the video recording process.

[0071] For example, suppose a user wants to record a video about the activities of a pet dog in a park. The user starts a video recording application on an electronic device, selects a script template file of the "pet movement" type on the server, i.e., the first script template file, which predefines the shooting information of the pet type (as the first element) in the video, and the electronic device displays a video recording interface, starts the camera to capture the preview screen, and then analyzes the preview screen in real time through image recognition technology to find elements in the preview screen that match the "elementType" (pet type) defined in the script template. When a pet dog is identified as appearing in the preview screen, the electronic device determines it as the first element, and then determines the shooting information of the pet dog (i.e., the first shooting information) according to the various parameters such as the corresponding appearance position, appearance time, motion parameters, and shooting parameters of the pet type in the first script template file.

[0072] For example, the content of the script template file of the above-mentioned "pet sports" type may be as follows:

[0073] {

[0074] "elementType":"dog", / / The element type is dog

[0075] "elementPos":"center", / / The element should appear in the center of the video

[0076] "elementTime": 10000, / / The element should appear within 10 seconds after the video starts, in milliseconds

[0077] "cameraParam":{

[0078] "zoom":1.8, / / zoom multiple

[0079] "focusMode":"continuous", / / Continuous focus mode

[0080] "exposureCompensation":0.5, / / Exposure compensation

[0081] "whiteBalance":"auto" / / Automatic white balance

[0082] }

[0083] }

[0084] As another example, assume that during the video recording process, animal A is the first element, and assume that the shooting parameters of animal A at this time are aperture f / 2.8, ISO 200, and shutter speed 1 / 200 second. When the shooting environment of animal A changes, for example, it moves under the shade of a tree, causing the lighting conditions to become darker. In this case, the electronic device will automatically make dynamic adjustments to adapt to the new lighting environment: increase the ISO from 200 to 400 to increase the camera's sensitivity, thereby maintaining the image brightness of animal A in the darker shade of the tree; adjust the shutter speed from 1 / 200 second to 1 / 100 second to allow more light to enter the camera, ensuring that there is no excessive motion blur in the movement of animal A; if animal A moves quickly under the shade of the tree, the electronic device will enable continuous autofocus mode to ensure that animal A is in clear focus even when it is moving quickly.

[0085] Step 202: The electronic device receives a first input from a user on a video recording interface.

[0086] The first input is used to trigger video recording.

[0087] In some embodiments of the present application, the first input includes any input method that can effectively interact with the electronic device, such as click input, long press input, sliding input or voice input.

[0088] Exemplarily, the first input may be an input by a user clicking a “record” button on a screen to trigger video recording.

[0089] In some embodiments of the present application, the video recording may be in a fully manual mode, or in a semi-automatic or fully automatic mode.

[0090] Exemplarily, in the fully automatic mode, the electronic device can automatically adjust the recording process completely according to the parameters preset in the first script template file.

[0091] For example, suppose a user wants to record a video of animal A exercising in a park. Before recording the video, the user selects a first script template file of the "pet exercise" type, and the electronic device determines animal A as the first element and determines the first shooting information of animal A. Then, the user clicks the "start recording" button on the video recording interface, and the electronic device receives the user's first input on the video recording interface and starts the video recording function.

[0092] Step 203: The electronic device records a video in response to the first input according to the first shooting information to generate a target video.

[0093] In some embodiments of the present application, the above-mentioned generation of the target video may be to process and encode the recorded video stream and convert it into a standard video format, such as MP4, AVI or other common formats.

[0094] For example, it is assumed that the user uses an electronic device to complete the video recording of animal A moving in the park according to the first script template file. After the recording is completed, the electronic device processes and encodes the recorded video stream to generate a video file in MP4 format.

[0095] For example, when the user taps the "Start Recording" button, the electronic device automatically adjusts the position of animal A in the video recording interface according to the corresponding appearance position in the script template file when recording the motion picture of animal A, for example, adjusting the appearance position of animal A to the center of the picture; the electronic device automatically adjusts the focal length and exposure during shooting according to the shooting parameters in the script template file to ensure the clarity and brightness of the picture. When the user wants to stop video recording, the user can click the "Stop Recording" button, the electronic device stops video recording, and processes and encodes the previously recorded video stream and converts it into a video file in MP4 format.

[0096] Exemplarily, after the user imports the script template file, the camera system parses the content of the script template file to obtain various basic information of the elements that need to appear during the shooting and recording process (element type in the template, number of elements in the template, position of the elements in the shooting preview interface, time, shooting parameters, etc.), and during the shooting and recording process, the elements are adjusted accordingly according to the time when the elements appear and the corresponding script template and content, such as adjusting the position of the elements (for example, according to the template, the element should appear in the middle of the screen, but at this moment the element appears in the lower left corner of the preview screen, etc.).

[0097] For example, combining the above Figure 2 The screen of the electronic device displays a video recording interface 21. During the recording process, the position of character B in the picture is adjusted according to the corresponding position parameters of the character B. Figure 3 shown.

[0098] It should be noted that Figure 3 The dotted arrow in the figure indicates that character B is adjusted from the initial position to its corresponding appearance position in the script template file.

[0099] In combination with the above embodiment, the video recording method provided in the embodiment of the present application is described below through an example.

[0100] For example, in combination with the above Figure 2 and Figure 3, suppose the user wants to record a video of the user and animal A playing in the garden. The user clicks on the video recording application on the electronic device, and the electronic device displays the video recording interface, that is, the real-time preview image captured by the camera, including animal A, person B, and plant C. Then, the user imports the script template file from the local computer, and determines animal A, person B, and plant C as the first element through image recognition technology. Next, the user clicks the "Record" button on the screen, and the electronic device loads the script template file according to the user's click input, and determines the shooting information of each element according to the content in the script template file. After that, the electronic device automatically adjusts the shooting parameters, such as the focal length and exposure of the camera, according to the shooting information during the video recording process; and automatically adjusts the appearance position of each element according to the shooting information, such as adjusting the position of animal A to make it in the center of the picture. Finally, the user clicks the "Stop Recording" button on the screen, the electronic device stops video recording, and processes and encodes the recorded video stream, converts it into a standard video format file, such as MP4, and saves it in the device's memory.

[0101] According to the video recording method provided in the embodiment of the present application, an electronic device can determine the appearance position, appearance time, motion parameters, shooting parameters and other shooting information of at least one first element in the video recording interface through a script template file to perform video recording without the need for the user to manually adjust the shooting information of the first element, thereby reducing the user's manual operations and realizing automatic adjustment of the shooting information of the elements during the video recording process, thereby simplifying the steps of the video recording process and further improving shooting efficiency.

[0102] In some embodiments of the present application, the first shooting information includes: at least one of: the appearance position of the first element, the appearance time of the first element, and the motion parameter of the first element; illustratively, in the above step 203, performing video recording according to the first shooting information to generate the target video may also include the following steps 203a and 203b:

[0103] Step 203a: The electronic device generates and displays a second preview image of the first element in the video recording interface according to the first shooting information.

[0104] Step 203b: The electronic device records the video according to the second preview image to generate a target video.

[0105] In some embodiments of the present application, the second preview screen may be a real-time screen generated and displayed in the video recording interface after the electronic device captures the image of the first element through a camera according to the shooting parameters of the first element. The user may view the expected appearance and layout of the first element in the final recorded video through the second preview screen.

[0106] For example, assuming that the first element is animal A, a puppy running on the grass, the electronic device generates and displays an image of animal A in the video recording interface, that is, a second preview screen, according to the first shooting information in the first script template file.

[0107] As another example, suppose that the user wants to record a video of animal A chasing a football on the grass. The electronic device determines that animal A is the first element according to the first script template file, and determines the first shooting information of animal A. Then, the electronic device processes the real-time picture of animal A captured by the camera according to at least one of the appearance position of the first element, the appearance time of the first element, and the motion parameter of the first element, such as animal A appears in the lower left corner of the screen at the 3rd second, and then the electronic device displays the processed picture as the second preview picture on the video recording interface.

[0108] Exemplarily, after the above step 203a, that is, after the electronic device generates a second preview screen corresponding to the first element, after the user clicks the "record" button on the screen, the electronic device immediately starts recording the video according to the composition and effect of the second preview screen.

[0109] In an embodiment of the present application, the electronic device can generate a second preview screen of the first element based on the first shooting information, and record the second preview screen to obtain a target video that meets the user's requirements, without the user having to manually adjust the appearance position, appearance time and motion parameters of the first element in the preview screen, thereby simplifying the steps of the video recording process and improving video recording efficiency.

[0110] In some embodiments of the present application, the first shooting information includes: shooting parameters of the first element, and the shooting parameters include the camera and shooting and recording parameters corresponding to the first element; illustratively, the step 203 may include the following steps 203c and 203d:

[0111] Step 203c: the electronic device captures a third preview image of the first element according to the camera and shooting and recording parameters corresponding to the first element.

[0112] Step 203d: The electronic device records the video according to the third preview image to generate a target video.

[0113] In some embodiments of the present application, the third preview screen may be a screen acquired by the electronic device through a designated camera and processed according to shooting parameters of the first element, such as focal length, exposure, and white balance.

[0114] In some embodiments of the present application, the camera and shooting and recording parameters corresponding to the above-mentioned first element may be a camera resource determined by the electronic device according to the first script template file, which automatically switches the corresponding camera (portrait, macro, telephoto, etc.) when the first element appears, or parses the shooting parameters to automatically adjust the camera and shooting and recording parameters.

[0115] It should be noted that the above-mentioned camera resources can be prepared in advance according to the script template file.

[0116] For example, in combination with the above Figure 2 , assuming that the first element is animal A, the shooting parameters corresponding to animal A in the first script template file are to use a wide-angle lens to shoot and adjust the focal length to a specific value. During the recording process, the electronic device switches the currently used macro camera to a wide-angle camera according to the shooting parameters of animal A, and then adjusts the focal length to a specific value. Thereafter, the wide-angle camera is used to capture the image of animal A, and the third preview image is obtained and displayed.

[0117] For example, when the third preview screen is displayed, after the user confirms that the third preview screen meets the requirements, the user clicks the "record" button. The electronic device starts recording the video, controls the camera to capture the action of animal A according to the first shooting information, and automatically adjusts the focus, exposure, white balance and other parameters according to the first shooting information. After the recording is completed, the electronic device processes and encodes the video stream, converts it into a standard video format file, such as MP4, and saves it in the memory of the device.

[0118] In an embodiment of the present application, the electronic device can capture a third preview screen of the first element based on the first shooting information, and record the third preview screen to obtain a target video that meets the user's requirements, without the user having to manually adjust the camera and shooting and recording parameters of the first element in the preview screen, thereby simplifying the steps of the video recording process and improving video recording efficiency.

[0119] In some embodiments of the present application, before determining the first shooting information of at least one first element in the video recording interface according to the first script template file in the above step 201, the video recording method provided in the embodiment of the present application may further include the following steps 204 and 205:

[0120] Step 204: The electronic device loads a first script template file, where the first script template file includes M element types, where M is a positive integer.

[0121] Step 205: The electronic device determines at least one first element whose element type matches the M element types from at least one element in the preview screen of the video recording interface.

[0122] In some embodiments of the present application, the M element types may be people, animals, plants, buildings, and the like.

[0123] For example, assuming that the first script template file is designed for a diversified scene, such as an outdoor video recording project including people, animals, plants and buildings, then in this project, the M element types may include: people, animals, plants and buildings.

[0124] In some embodiments of the present application, the electronic device loads the information contained in the first script template file into the memory of the electronic device.

[0125] In some embodiments of the present application, the electronic device may match the M element types in the first script template file with the element type of at least one element in the preview screen to determine at least one first element whose element type matches the M element types.

[0126] It should be noted that determining the at least one first element whose element type matches the M element types may be performed by matching using techniques such as image recognition or AI recognition.

[0127] Exemplarily, a user wants to record a scene of an outdoor concert, which includes performers (characters), specific characters in the audience (characters), decorative plants around the stage (plants), and the stage itself (building). The electronic device loads the first script template file containing the following element types: plants and buildings. Then, the electronic device controls the camera to shoot the scene, displays a preview screen on the video recording interface, analyzes the content in the preview screen through image recognition or AI recognition technology, and identifies the three element types of people, plants, and buildings in the screen. Next, the electronic device matches the element type in the identified video preview screen with the element type contained in the first script template file, and determines the decorative plants (plants) around the stage and the stage itself (building) as the first element.

[0128] In an embodiment of the present application, the electronic device can automatically determine at least one first element in the preview screen that matches M element types, and can determine the first shooting information corresponding to the first element according to the script template file, thereby automatically performing video recording according to the first shooting information to obtain a target video that meets user requirements, thereby ensuring the smoothness of subsequent video recording and improving shooting efficiency.

[0129] In some embodiments of the present application, the first script template file further includes element description information corresponding to the M element types; the target element type is at least one of the M element types; after loading the first script template file in step 204, the video recording method provided in the embodiment of the present application may further include the following steps 204a:

[0130] Step 204a: When the preview screen of the video recording interface does not include an element matching the target element type, the electronic device generates and displays a second element in the video preview screen according to the element description information corresponding to the target element type.

[0131] In some embodiments of the present application, the situation in which the preview screen of the video recording interface does not include elements matching the target element type may be that the preview screen lacks elements corresponding to all element types or elements corresponding to some element types contained in the first script template file.

[0132] For example, suppose that the user plans to record a video containing potted plants indoors, and selects the first script template file containing the element type "potted plants", but there are no real potted plants in the indoor environment. In this case, the preview screen of the video recording interface does not include potted plants matching the element type "plants".

[0133] In some embodiments of the present application, the element description information corresponding to the above-mentioned target element type may be a detailed text describing the characteristics and attributes of the element.

[0134] Exemplarily, the first script template file includes description information of an element of the element type "plant": "an evergreen tree decorated with colorful lights and gifts, about 2 meters high".

[0135] In some embodiments of the present application, the second element may be a virtual element generated by an electronic device through artificial intelligence (AI) technology based on element description information corresponding to the target element type to simulate the existence of the element in actual shooting.

[0136] For example, in combination with the above Figure 2 , the video preview interface 21 of the electronic device includes images of animal A, person B and plant C. Assuming that the script template file includes the element type of "sports equipment" and its corresponding element description information is "a football", since there is no element of the element type of "sports equipment" in the preview screen, the electronic device can generate and display a football D, i.e., the second element, in the preview screen using AI technology according to the element description information, such as Figure 4 shown.

[0137] As another example, the electronic device generates the potted plant in the description information "Potted plant: green succulent plants planted in brown pots" in the preview screen of the video recording interface through AI technology based on the description information in the first script template file, and displays it in the preview screen.

[0138] In an embodiment of the present application, the electronic device can determine the type of element that is missing in the video preview screen based on the element type in the first script template file, and then generate and display the element in the video preview screen based on its corresponding element description information, so that the user can see a more complete scene layout in the preview, thereby being able to conveniently and efficiently record videos that meet user needs, thereby improving shooting efficiency.

[0139] In some embodiments of the present application, the video recording method provided in the embodiment of the present application may further include the following steps 203e to 203g:

[0140] Step 203e: The electronic device records the video according to the first shooting information.

[0141] Step 203f: During the video recording process of the electronic device, if it is detected that the first script template file is updated, the second shooting information of at least one third element is determined according to the updated first script template file.

[0142] Among them, at least one third element is an element in the video recording interface that matches the third element type in the updated first script file.

[0143] Step 203g: The electronic device records a video according to the second shooting information to generate a target video.

[0144] In some embodiments of the present application, when a new script template file is pushed by the server, or a user receives a new script template file sent by other contacts, the electronic device can use the updated script template file.

[0145] Exemplarily, assuming that the electronic device is in a video recording state, and the server pushes a new script template file to the user's electronic device, the electronic device replaces the updated script template file in real time.

[0146] In some embodiments of the present application, the third element may be an element corresponding to a new element type added to the updated script template file, or an element that requires readjustment of shooting parameters.

[0147] Exemplarily, the updated script template file includes a new element type, or the shooting information corresponding to the original element type is updated.

[0148] In some embodiments of the present application, the second shooting information may be shooting information such as new position, action, shooting parameters, etc. specified for the third element in the updated script template file.

[0149] For example, in combination with the above Figure 2 As shown, assuming that the updated script template file contains updated shooting information, if the element "animal A" is required to appear in the upper right corner of the screen at a new specific time point and is required to move to the lower left corner at a specific speed, then the second shooting information will include the appearance time, movement path, speed and other updated shooting information of "animal A". The electronic device will automatically adjust the tracking settings and recording parameters of the camera based on the new shooting information to ensure that "animal A" is recorded in the video according to the shooting information in the updated script template file.

[0150] The video recording method is exemplarily described below in combination with the above embodiment.

[0151] For example, during the recording process of the electronic device, assuming that the script template file comes from the server or from other contacts, when the script template file is updated, for example, the server re-sends new content or the contact sends a new script template content file, the electronic device detects it and passes it to the camera system. The camera system re-parses the content (basic information such as element type parameters), and can dynamically adjust the element position layout, adjust the camera parameter resources, etc. during the recording process.

[0152] In an embodiment of the present application, when an electronic device uses a script template file to shoot during a video recording process, even if the script template file is updated, the electronic device can respond to the update in real time and complete the video recording process according to the updated script template file, without the user having to manually re-select the updated script template file, thereby simplifying the steps of the video recording process and improving shooting efficiency.

[0153] In some embodiments of the present application, after the electronic device determines the first shooting information of at least one first element according to the first script template file in the above step 201, the video recording method provided by the embodiment of the present application may also include the following steps 201a to 201c.

[0154] Step 201a: The electronic device receives a second input from a user on a target element in at least one first element.

[0155] Step 201b: the electronic device determines third shooting information of the target element in response to the second input.

[0156] The third shooting information includes at least one of the following: an appearance position of the target element, an appearance time of the target element, a motion parameter of the target element, and a shooting parameter of the target element.

[0157] Step 201c: The electronic device updates the shooting information corresponding to the element type matching the target element in the first script template file according to the third shooting information, and generates a second script template file.

[0158] In some embodiments of the present application, the target element may be one or more elements in the video recording interface whose shooting information the user wants to manually adjust.

[0159] In some embodiments of the present application, the second input may be an instruction provided by a user through a touch screen, a physical button, a voice command, or gesture recognition.

[0160] For example, when the user wants to adjust the shooting information of the target element, he can, for example, drag the target element to adjust its display position in the video preview interface, or manually enter various parameters in the corresponding control of the target element to adjust the shooting information of the target element.

[0161] In some embodiments of the present application, the third shooting information may be shooting information of the target element after being adjusted by the user.

[0162] In some embodiments of the present application, the appearance position of the target element may be determined according to the user's dragging input on the target element.

[0163] In some embodiments of the present application, the appearance time of the target element may be determined according to time information input by the user into a time control corresponding to the target element.

[0164] In some embodiments of the present application, the shooting parameters of the target element may be determined according to the shooting information manually input by the user for the target element.

[0165] Exemplarily, the user clicks on the image of "cake" in the video recording interface to trigger the electronic device to select "cake" (i.e., the target element). Then, the user manually enters time information (i.e., the second input), and the electronic device determines the appearance time of the "cake" (i.e., the third shooting information) based on the time information entered by the user.

[0166] As another example, the user clicks on the image of "cake" in the video recording interface, triggering the electronic device to select the "cake" (i.e., the target element). Then, the user drags the "cake" from position A to position B (i.e., the second input), and the electronic device determines that position B of the "cake" is the appearance position (i.e., the third shooting information) based on the user's dragging input.

[0167] As another example, the user clicks on the image of "cake" in the video recording interface to trigger the electronic device to select the "cake" (i.e., the target element). Then, the user long presses the "cake", and the electronic device controls the camera to adjust the focal length of the "cake" (i.e., the second input). The electronic device determines the focal length of the "cake" (the third shooting information) based on the user's long press input.

[0168] In some embodiments of the present application, the electronic device may match at least one element type in the first script template file with the element type of the target element, and based on the third shooting information of the target element, update the shooting information corresponding to the target element type that matches the element type of the target element to obtain a second script template file.

[0169] For example, suppose that the user manually adjusts the position of the cake and the focal length of the camera when recording a birthday party video. After the recording is finished, the shooting information of each element modified by the electronic device user generates a new script template file, i.e., the second script template file. The second script template file includes the new position of the cake and the adjusted focal length setting.

[0170] Again illustratively, in combination with the above Figure 2 ,During the video recording process of the electronic device, if the user is not satisfied with the ,effect of the script template, the user can manually adjust the position of the ,element, or adjust the shooting and recording parameters, and ,finally, after the shooting and recording is completed, ,such as Figure 5 As shown, the electronic device displays a "Generate New Element Template" option on the video recording interface. The user can click the "Generate New Element Template" option to trigger the electronic device to control the camera system to record the third shooting information of the target element adjusted by the user, and update the shooting information of the corresponding element type in the first script template file according to the third shooting information, that is, re-write the third shooting information into the first script template file to obtain the second script template file.

[0171] In some embodiments of the present application, the electronic device may save the second script template file locally, or upload it to a server or share it with other users so that other users can also use the script template file.

[0172] In the embodiment of the present application, when the user is not satisfied with the shooting effect of the element in the video preview interface, the user can manually adjust the shooting information of the target element, and the electronic device can update the shooting information of the corresponding element type in the first script template file according to the adjusted shooting information of the target element, thereby generating a second script template file that meets the user's shooting requirements. In this way, when the user wants to record a similar scene next time, the second script template file can be directly used to quickly achieve the same shooting effect.

[0173] The above-mentioned method embodiments, or various possible implementation methods in each method embodiment, can be executed separately, or, under the premise that there is no contradiction, can also be executed in combination with each other. The specific implementation can be determined according to actual usage requirements, and the embodiments of the present application do not limit this.

[0174] The video recording method provided in the embodiment of the present application can be executed by a video recording device. In the embodiment of the present application, a video recording device executing the video recording method is taken as an example to illustrate the video recording device provided in the embodiment of the present application.

[0175] Figure 6 A schematic diagram of the structure of a video recording device 600 provided in an embodiment of the present application is shown in FIG. Figure 6 As shown, the video recording device may include: a determination module 601; the determination module 601 is used to determine the first shooting information according to the first script template file when displaying the video recording interface, and the first shooting information includes at least one of the following: the appearance position of the first element, the appearance time of the first element, the motion parameter of the first element, and the shooting parameter of the first element; a receiving module 602; the receiving module 602 is used to receive the first input of the user to the video recording interface, and the first input is used to trigger video recording; a processing module 603; the processing module 603 is used to respond to the first input received by the receiving module, and perform video recording according to the first shooting information determined by the determination module to generate a target video.

[0176] In some embodiments of the present application, the above-mentioned first shooting information includes: the appearance position of the first element, the appearance time of the first element, and at least one of the motion parameters of the first element; the above-mentioned processing module is specifically used to generate and display the second preview screen of the above-mentioned first element in the video recording interface according to the above-mentioned first shooting information; the above-mentioned processing module is specifically used to record the video according to the second preview screen to generate the target video.

[0177] In some embodiments of the present application, the above-mentioned first shooting information includes: shooting parameters of the first element, the shooting parameters including the camera and shooting and recording parameters corresponding to the first element; the above-mentioned device also includes: an acquisition module; the above-mentioned acquisition module is used to acquire the third preview picture of the above-mentioned first element according to the camera corresponding to the above-mentioned first element and the above-mentioned shooting and recording parameters; the above-mentioned processing module is specifically used to record video according to the above-mentioned third preview picture acquired by the above-mentioned acquisition module to generate a target video.

[0178] In some embodiments of the present application, the above-mentioned processing module is also used to load the first script template file before determining the first shooting information according to the first script template file, and the above-mentioned first script template file includes M element types, M is a positive integer; the above-mentioned determination module is also used to determine, from at least one element in the preview screen of the above-mentioned video recording interface, at least one first element whose element type matches the M element types in the above-mentioned first script template file loaded by the processing module.

[0179] In some embodiments of the present application, the first script template file further includes element description information corresponding to the M element types;

[0180] The above-mentioned processing module is specifically used to generate and display a second element in the above-mentioned video preview screen according to the element description information corresponding to the above-mentioned target element type after the above-mentioned first script template file is loaded, when the preview screen of the video recording interface does not include an element matching the target element type, and the above-mentioned target element type is at least one of the above-mentioned M element types.

[0181] In some embodiments of the present application, the above-mentioned processing module is specifically used to record video according to the above-mentioned first shooting information; the above-mentioned determination module is specifically used to determine the second shooting information of at least one third element according to the updated first script template file if an update of the first script template file is detected during the video recording process, and the at least one third element is an element in the video recording interface that matches the third element type in the updated first script file; the above-mentioned processing module is specifically used to record video according to the above-mentioned second shooting information to generate a target video.

[0182] In some embodiments of the present application, the above-mentioned receiving module is also used to receive a second input from the user for a target element in at least one first element after the first shooting information is determined according to the first script template file; the determination module is also used to determine third shooting information of the target element in response to the second input received by the receiving module, and the third shooting information includes at least one of the following: the appearance position of the target element, the appearance time of the target element, the motion parameters of the target element, and the shooting parameters of the target element; the processing module is also used to update the shooting information corresponding to the element type matching the target element in the first script template file according to the third shooting information, and generate a second script template file.

[0183] The video recording device provided in the embodiment of the present application, when displaying the video recording interface, determines the first shooting information according to the first script template file, the first shooting information includes at least one of the following: the appearance position of the first element, the appearance time of the first element, the motion parameters of the first element, and the shooting parameters of the first element; receives a first input from the user to the video recording interface, the first input is used to trigger video recording; in response to the first input, performs video recording according to the first shooting information to generate a target video. Through this method, the video recording device can determine the appearance position, appearance time, motion parameters, shooting parameters and other shooting information of at least one first element in the video recording interface through the script template file to perform video recording, without the user having to manually adjust the shooting information of the first element, reducing the user's manual operation, and realizing the automatic adjustment of the shooting information of the element during the video recording process, thereby simplifying the steps of the video recording process and improving the shooting efficiency.

[0184] The video recording device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0185] The video recording device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0186] The video recording device provided in the embodiment of the present application can implement each process implemented in the above-mentioned video recording method embodiment, and will not be described again here to avoid repetition.

[0187] Alternatively, if Figure 7As shown, an embodiment of the present application also provides an electronic device 700, including a processor 701 and a memory 702, wherein the memory 702 stores programs or instructions that can be executed on the processor 701, and when the program or instructions are executed by the processor 701, the various steps of the above-mentioned video recording method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.

[0188] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0189] Figure 8 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0190] The electronic device 100 includes but is not limited to components such as a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.

[0191] Those skilled in the art will appreciate that the electronic device 100 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 8 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0192] Among them, the processor 110 is used to determine the first shooting information according to the first script template file when displaying the video recording interface, and the first shooting information includes at least one of the following: the appearance position of the first element, the appearance time of the first element, the motion parameters of the first element, and the shooting parameters of the first element; the user input unit 107 is used to receive the first input of the user to the video recording interface, and the first input is used to trigger video recording; the above-mentioned processor 110 is also used to respond to the first input received by the receiving module, perform video recording according to the first shooting information determined by the determination module, and generate a target video.

[0193] In some embodiments of the present application, the above-mentioned first shooting information includes: the appearance position of the first element, the appearance time of the first element, and at least one of the motion parameters of the first element; the processor 110 is specifically used to generate and display a second preview screen of the first element in the video recording interface according to the first shooting information; the processor 110 is specifically used to record the video according to the second preview screen to generate a target video.

[0194] In some embodiments of the present application, the above-mentioned first shooting information includes: shooting parameters of the first element, the shooting parameters including the camera and shooting and recording parameters corresponding to the first element; the processor 110 is used to capture the third preview screen of the first element according to the camera and shooting and recording parameters corresponding to the first element; the processor 110 is specifically used to record the video according to the third preview screen captured by the processor 110 to generate a target video.

[0195] In some embodiments of the present application, the above-mentioned processor 110 is also used to load a first script template file before determining the first shooting information according to the first script template file, and the first script template file includes M element types, where M is a positive integer; the processor 110 is also used to determine at least one first element whose element type matches the M element types in the first script template file loaded by the processor 110 from at least one element in the preview screen of the video recording interface.

[0196] In some embodiments of the present application, the first script template file also includes element description information corresponding to the M element types; the processor 110 is specifically used to generate and display a second element in the video preview screen according to the element description information corresponding to the target element type after loading the first script template file, when the preview screen of the video recording interface does not include an element matching the target element type, and the target element type is at least one of the M element types.

[0197] In some embodiments of the present application, the above-mentioned processor 110 is specifically used to record video according to the above-mentioned first shooting information; the processor 110 is specifically used to determine the second shooting information of at least one third element according to the updated first script template file if it is detected that the first script template file is updated during the video recording process, and the at least one third element is an element in the video recording interface that matches the third element type in the updated first script file; the processor 110 is specifically used to record video according to the second shooting information to generate a target video.

[0198] In some embodiments of the present application, the user input unit 107 is further used to receive a second input from the user for a target element in at least one first element after determining the first shooting information of the at least one first element according to the first script template file; the processor 110 is further used to determine third shooting information of the target element in response to the second input received by the user input unit 107, the third shooting information including at least one of the following: the appearance position of the target element, the appearance time of the target element, the motion parameters of the target element, and the shooting parameters of the target element; the processor 110 is further used to update the shooting information corresponding to the element type matching the target element in the first script template file according to the third shooting information, and generate a second script template file.

[0199] The electronic device provided by the embodiment of the present application, when displaying the video recording interface, the video recording device determines the first shooting information according to the first script template file, the first shooting information includes at least one of the following: the appearance position of the first element, the appearance time of the first element, the motion parameters of the first element, and the shooting parameters of the first element; receives the first input of the user to the video recording interface, the first input is used to trigger the video recording; in response to the first input, performs video recording according to the first shooting information to generate the target video. Through this method, the video recording device can determine the shooting information such as the appearance position, appearance time, motion parameters, and shooting parameters through the script template file to perform video recording, without the user having to manually adjust the shooting information of the first element, reducing the user's manual operation, and realizing the automatic adjustment of the shooting information of the element during the video recording process, thereby simplifying the steps of the video recording process and improving the shooting efficiency.

[0200] It should be understood that in the embodiment of the present application, the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 107 includes a touch panel 1071 and at least one of other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

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

[0202] The processor 110 may include one or more processing units; optionally, the processor 110 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 110.

[0203] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned video recording method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0204] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0205] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned video recording method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0206] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0207] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned video recording method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0208] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0209] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0210] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A video recording method, characterized in that: The method comprises: In the case of displaying the video recording interface, determining first shooting information according to the first script template file, the first shooting information including at least one of the following: an appearance position of a first element, an appearance time of the first element, a motion parameter of the first element, and a shooting parameter of the first element; Receiving a first input from a user on the video recording interface, where the first input is used to trigger video recording; In response to the first input, video recording is performed according to the first shooting information to generate a target video.

2. The method according to claim 1, characterized in that The first shooting information includes: at least one of: an appearance position of the first element, an appearance time of the first element, and a motion parameter of the first element; The step of recording a video according to the first shooting information and generating a target video includes: Generate, according to the first shooting information, and display a second preview picture of the first element in the video recording interface; Video recording is performed according to the second preview picture to generate the target video.

3. The method according to claim 1, characterized in that The first shooting information includes: shooting parameters of the first element, and the shooting parameters include a camera and shooting and recording parameters corresponding to the first element; The step of recording a video according to the first shooting information and generating a target video includes: According to the camera corresponding to the first element and the shooting and recording parameters, a third preview image of the first element is acquired; Video recording is performed according to the third preview picture to generate a target video.

4. The method according to any one of claims 1 to 3, characterized in that Before determining the first shooting information according to the first script template file, the method further includes: Loading the first script template file, wherein the first script template file includes M element types, where M is a positive integer; Determine, from at least one element in the preview screen of the video recording interface, at least one first element whose element type matches the M element types; The first script template file also includes element description information corresponding to the M element types; After loading the first script template file, the method further includes: When the preview screen of the video recording interface does not include an element matching the target element type, a second element is generated and displayed in the video preview screen according to the element description information corresponding to the target element type, and the target element type is at least one of the M element types.

5. The method according to claim 1, characterized in that The step of recording a video according to the first shooting information to generate a target video includes: Recording a video according to the first shooting information; During the video recording process, if it is detected that the first script template file is updated, the second shooting information of at least one third element is determined according to the updated first script template file, and the at least one third element is an element in the video recording interface that matches the third element type in the updated first script file; Video recording is performed according to the second shooting information to generate a target video.

6. A video recording device, characterized in that: The device comprises: a determination module, a receiving module and a processing module; The determination module is used to determine first shooting information according to the first script template file when displaying the video recording interface, where the first shooting information includes at least one of the following: an appearance position of the first element, an appearance time of the first element, a motion parameter of the first element, and a shooting parameter of the first element; The receiving module is used to receive a first input from a user on the video recording interface, where the first input is used to trigger video recording; The processing module is used to respond to the first input received by the receiving module and perform video recording according to the first shooting information determined by the determining module to generate a target video.

7. The device according to claim 6, characterized in that The first shooting information includes: at least one of: an appearance position of the first element, an appearance time of the first element, and a motion parameter of the first element; The processing module is specifically configured to generate and display a second preview screen of the first element in the video recording interface according to the first shooting information; The processing module is specifically used to perform video recording according to the second preview picture to generate the target video.

8. The device according to claim 6, characterized in that The first shooting information includes: shooting parameters of the first element, and the shooting parameters include a camera and shooting and recording parameters corresponding to the first element; The device also includes: a collection module; The acquisition module is used to acquire a third preview image of the first element according to the camera corresponding to the first element and the shooting and recording parameters; The processing module is specifically used to record the video according to the third preview picture captured by the acquisition module to generate a target video.

9. The device according to any one of claims 6 to 8, characterized in that The processing module is further configured to load the first script template file before determining the first shooting information according to the first script template file, wherein the first script template file includes M element types, where M is a positive integer; The determination module is further used to determine, from at least one element in the preview screen of the video recording interface, at least one first element whose element type matches the M element types in the first script template file loaded by the processing module; The first script template file also includes element description information corresponding to the M element types; The processing module is specifically used to generate and display a second element in the video preview screen according to element description information corresponding to the target element type after the first script template file is loaded, when the preview screen of the video recording interface does not include an element matching the target element type, and the target element type is at least one of the M element types.

10. The device according to claim 6, characterized in that The processing module is specifically configured to perform video recording according to the first shooting information; The determination module is specifically used to determine, during the process of video recording, if it is detected that the first script template file is updated, the second shooting information of at least one third element according to the updated first script template file, wherein the at least one third element is an element in the video recording interface that matches the third element type in the updated first script file; The processing module is specifically used to record the video according to the second shooting information to generate the target video.

11. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the video recording method according to any one of claims 1 to 5 are implemented.

12. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the video recording method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Video shooting method and apparatus, device, and storage medium

    CN109451245A

  • Video shooting method and device, electronic device and readable medium

    CN109495684A

  • Video editing method and electronic equipment

    CN111654755A

  • Information recommendation method and device and electronic equipment

    CN112069358A

  • Pet video shooting device, video generation method, device and system

    CN113891001A