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

CN119653033BActive Publication Date: 2026-10-27VIVO MOBILE COMM CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411772501.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-04
Publication Date
2026-10-27
Estimated Expiration
2044-12-04

AI Technical Summary

Technical Problem

[0003]在相关技术中,在通过电子设备进行视频录制时,用户需要手动调整预览元素画面里面的元素位置、切换摄像头或者调整焦距等拍摄参数等操作,然而用户在手动进行上述操作时需要耗费一定时长,如此,导致整个视频录制过程步骤繁琐且耗时长

Benefits of technology

[0012]在本申请实施例中,在显示视频录制界面的情况下,电子设备根据第一脚本模板文件确定视频录制界面中的至少一个第一元素的第一拍摄信息,第一拍摄信息包括以下至少一项:第一元素的出现位置、第一元素的出现时间、第一元素的运动参数、第一元素的拍摄参数;接收用户对视频录制界面的第一输入,第一输入用于触发视频录制;响应于第一输入,根据第一拍摄信息进行视频录制,生成目标视频。通过该方法,电子设备可以通过脚本模板文件确定出视频录制界面中的至少一个第一元素的出现位置、出现时间、运动参数、拍摄参数等拍摄信息进行视频录制,而不需要用户去手动调整第一元素的拍摄信息,减少用户的手动操作,实现在视频录制过程中元素的拍摄信息的自动化调整,从而简化了视频录制过程的步骤,进而提高拍摄效率。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119653033B_ABST
    Figure CN119653033B_ABST
Patent Text Reader

Abstract

The application discloses a video recording method and device, electronic equipment and readable storage medium, and belongs to the technical field of camera shooting. The method comprises the following steps: in the case that a video recording interface is displayed, determining first shooting information of at least one first element in the video recording interface according to a first script template file, wherein the first shooting information comprises at least one of the following: an appearance position of the first element, an appearance time of the first element, motion parameters of the first element, and shooting parameters of the first element; receiving first input of a user on 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] This application belongs to the field of camera technology, specifically relating to a video recording method, apparatus, electronic device, and readable storage medium. Background Technology

[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 their lives.

[0003] In related technologies, when recording videos using electronic devices, users need to manually adjust the position of elements in the preview screen, switch cameras, or adjust shooting parameters such as focus. However, manually performing these operations takes a certain amount of time, making the entire video recording process cumbersome and time-consuming. Summary of the Invention

[0004] The purpose of this application is to provide a video recording method, apparatus, electronic device, and readable storage medium that can simplify the steps of the video recording process and thereby improve shooting efficiency.

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

[0006] When a video recording interface is displayed, the system determines the first shooting information of at least one first element in the video recording interface based on 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. The system receives a first input from the user to the video recording interface, which is used to trigger video recording. In response to the first input, the system performs video recording based on the first shooting information to generate a target video.

[0007] Secondly, embodiments of this application provide a video recording apparatus, comprising: a determining module, a receiving module, and a processing module; the determining module is configured to, when a video recording interface is displayed, determine 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 configured to receive a first input from a user to the video recording interface, the first input being used to trigger video recording; the processing module is configured to, in response to the first input, perform video recording according to the first shooting information to generate a target video.

[0008] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, wherein the memory stores programs or instructions executable on the processor, and the programs or instructions, when executed by the processor, implement the steps of the method described in the first aspect.

[0009] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.

[0010] 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 method as described in the first aspect.

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

[0012] In this embodiment, when a video recording interface is displayed, the electronic device determines the 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 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 device receives a first input from the user to the video recording interface, which triggers video recording. In response to the first input, video recording is performed based on the first shooting information to generate a target video. Through this method, the electronic device can determine the appearance position, appearance time, motion parameters, and shooting parameters of at least one first element in the video recording interface using a script template file for video recording, without requiring the user to manually adjust the shooting information of the first element. This reduces manual operation by the user and automates the adjustment of the shooting information of elements during video recording, thereby simplifying the steps of the video recording process and improving shooting efficiency. Attached Figure Description

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

[0014] Figure 2 This is one of the schematic diagrams of the interface used in the video recording method provided in the embodiments of this application;

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

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

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

[0018] Figure 6 This is a schematic diagram of the structure of the video recording device provided in the embodiments of this application;

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

[0020] Figure 8 This is a schematic diagram of the hardware structure of the electronic device provided in the embodiments of this application. Detailed Implementation

[0021] 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.

[0022] 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.

[0023] The terms "at least one," "at least one of," etc., used in the specification and claims of this application refer to any one, any two, or a combination of two or more of the included items. For example, at least one of a, b, and c can mean: "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" refers to two or more items, and its meaning is similar to that of "at least one."

[0024] The video recording method provided in this application can be applied to scenarios where videos are recorded using electronic devices.

[0025] When recording video of a scene including animal A, a person, and a plant using an electronic device, the preview screen of the video recording interface includes preview images of the dog, the person, and the plant. If the user needs to focus on animal A in the scene, they can determine the shooting information of animal A based on the script template file. This includes, for example, the location of animal A in the preview screen, the time of its appearance, the camera used to film it, and the shooting parameters. Then, based on this information, video recording is performed on animal A, generating a target video including animal A. In this way, the electronic device can determine the location, time, motion parameters, and shooting parameters of animal A in the video recording interface using the script template file, and directly record video of animal A based on this information. This eliminates the need for the user to manually adjust the shooting parameters, reducing manual operation and automating the adjustment of shooting information during video recording. This simplifies the video recording process and improves shooting efficiency.

[0026] The video recording method provided in this application can be executed by a video recording device, which can be an electronic device, or a functional module or functional entity within an electronic device. The following description uses an electronic device executing the video recording method as an example to illustrate the video recording method provided in this application.

[0027] The video recording method provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.

[0028] Figure 1 This is a flowchart illustrating the video recording method provided in an embodiment of this application, as shown below. Figure 1 As shown, the video recording method may include the following steps 201 to 203:

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

[0030] The first shooting information may include at least one of the following: the location of the first element, the time of the first element's appearance, the motion parameters of the first element, and the shooting parameters of the first element.

[0031] In some embodiments of this application, the video recording interface described above may be an interface displayed on the screen for displaying preview images captured by the camera.

[0032] In some embodiments of this application, users can preview the recorded video stream and adjust recording parameters through the video recording interface. For example, users can adjust various video recording-related settings, such as focus and exposure, and preview the recording results.

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

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

[0035] In some embodiments of this application, the video recording interface described above can be the 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 with a real-time preview. 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 can preview the real-time footage 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 this application, the first script template file described above may be a predefined configuration file used to guide the shooting of elements during video recording.

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

[0039] For example, a "Script Template File Import" function is provided in the camera screen settings menu. After clicking on this function, users can select a script template file from the local device files 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, such as 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. Suppose a user wants to record a video of animal A's movement. After clicking the "script template" option, the electronic device displays "local import" and "server" options on the shooting preview interface 21. The user can then click the "server" option to trigger the electronic device to download the server-side script template file.

[0041] In some embodiments of this application, the contents of the first script template file include information such as element type, motion parameters, and shooting parameters.

[0042] It should be noted that the first script template file mentioned above is used for element types, motion parameters, and shooting parameters in the automated video recording process.

[0043] In some embodiments of this application, the first script template file may store shooting information corresponding to multiple element types, with each element type corresponding to a set of shooting information.

[0044] For example, the format definition of the first script template file can be as follows:

[0045] {

[0046] elementType:person / / Element type

[0047] elementPos:(100,200) / / Position of the element

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

[0049] elementDes: "A text description of this element" / / A textual description of this element

[0050] cameraParam: / / Camera Parameters

[0051] / / Other defined content

[0052] }

[0053] Specifically, `elementType` specifies the type of the element, such as "person" representing a person. `elementPos` defines the element's position in the video interface, in pixels. `elementTime` specifies the time the element appears, in milliseconds. `elementDes` provides a textual description of the element, which can be used for display in the user interface or as a reference for automated processing. `cameraParam` contains specific camera parameter settings, such as zoom, focus, exposure, and white balance. `motionParam` defines the element's motion parameters, 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 this application, the aforementioned at least one first element may be determined based on user input, or the aforementioned at least one first element may be an element of a preset type, or the aforementioned 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 this application, the first element can be an element of the categories of people, animals, plants, buildings, etc.

[0056] In some embodiments of this application, the electronic device can 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 recording video of a scene including animal A, a person, and a plant using an electronic device and a camera, in conjunction 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 and 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] To reiterate, in conjunction with the above Figure 2 When recording a scene including animal A, person and plant through a camera using an electronic device, the preview screen of the video recording interface 21 includes: animal A, person B, and plant C. The user can input into the preview screen, such as by clicking, long-pressing, or voice input. Assuming the user clicks on animal A in the preview screen of the video recording interface 21, the first element in the preview screen is determined to be animal A (that is, at least one first element can be determined based on the user's input).

[0059] Furthermore, by way of example, in conjunction with the above Figure 2 When recording a scene including animal A, person and plant through a camera using an electronic device, the preview screen of the video recording interface 21 includes: animal A, person B and 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 this application, the position of the first element can be the display position of the first element in the video recording interface during the video recording process.

[0061] For example, the position of animal A in the video recording interface can be the bottom right corner, that is, the position of animal A (the first element) is the bottom right corner.

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

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

[0064] For example, animal A (the first element) begins to appear on the video recording interface at 3 seconds after the start of video recording, that is, the first element appears on the video recording interface at 3 seconds.

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

[0066] In some embodiments of this application, the motion parameters of the first element can be the 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 in a predetermined position in the frame, or moves along a specific trajectory.

[0067] Specifically, the motion parameters of the first element can be other parameter types describing motion, such as the first element's velocity, direction, path, acceleration, rotation angle, starting point, and ending point.

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

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

[0070] In some embodiments of this 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 the actual situation during video recording.

[0071] For example, suppose a user wants to record a video of a pet dog's activities in a park. The user launches a video recording application on their electronic device and selects a script template file of type "Pet Movement" on the server, i.e., the first script template file. This script template file predefines the shooting information of the pet type (as the first element) in the video. The electronic device displays the video recording interface and starts the camera to capture the preview screen. Then, it uses image recognition technology to analyze the preview screen in real time, looking for elements in the preview screen that match the "elementType" (pet type) defined in the script template. When a pet dog is detected in the preview screen, the electronic device identifies it as the first element. Then, based on the pet type's corresponding appearance location, appearance time, movement parameters, shooting parameters, and other parameters in the first script template file, it determines the pet dog's shooting information (i.e., the first shooting information).

[0072] For example, the content of the script template file for the "pet exercise" type mentioned above can be as follows:

[0073] {

[0074] "elementType":"dog", / / Element type is dog

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

[0076] "elementTime": 10000, / / This element should appear within 10 seconds of the video starting, in milliseconds.

[0077] "cameraParam":{

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

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

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

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

[0082] }

[0083] }

[0084] To illustrate further, suppose that during video recording, animal A is the primary element, and that animal A's current shooting parameters are aperture f / 2.8, ISO 200, and shutter speed 1 / 200 second. When animal A's shooting environment changes, such as moving into the shade of a tree, causing the lighting conditions to darken, the electronic device will automatically and dynamically adjust to adapt to the new lighting environment: increasing the ISO from 200 to 400 to increase the camera's sensitivity, thereby maintaining the image brightness of animal A in the dim shade; adjusting the shutter speed from 1 / 200 second to 1 / 100 second to allow more light to enter the camera, ensuring that animal A's movement does not result in excessive motion blur; if animal A moves quickly in the shade, the electronic device will activate continuous autofocus mode to ensure clear focus even when animal A is moving quickly.

[0085] Step 202: The electronic device receives the user's first input to the video recording interface.

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

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

[0088] For example, the first input could be the user's input by clicking the "Record" button on the screen to trigger video recording.

[0089] In some embodiments of this application, the video recording described above can be in fully manual mode, or in semi-automatic or fully automatic mode.

[0090] For example, in fully automatic mode, the electronic device can automatically adjust the recording process according to the preset parameters 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 user selects a first script template file of type "Pet Exercise," and the electronic device identifies animal A as the first element and determines the initial shooting information for 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 to the video recording interface, initiating the video recording function.

[0092] Step 203: The electronic device responds to the first input, records video based on the first shooting information, and generates the target video.

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

[0094] For example, suppose a user uses an electronic device to record a video of animal A exercising in a park based on a first script template file. After recording, the electronic device processes and encodes the recorded video stream to generate an MP4 video file.

[0095] For example, when a user taps the "Start Recording" button, the electronic device automatically adjusts the position of animal A in the video recording interface based on its corresponding position in the script template file, for example, adjusting animal A's position to the center of the frame. The electronic device also automatically adjusts the focus and exposure during shooting based on the shooting parameters in the script template file to ensure image clarity and brightness. When the user wants to stop video recording, they can click the "Stop Recording" button. The electronic device will then stop recording and process and encode the previously recorded video stream, converting it into an MP4 format video file.

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

[0097] For example, in conjunction with the above Figure 2 The electronic device displays a video recording interface 21 on its screen. During recording, the position of character B in the frame is adjusted according to the position parameters corresponding to character B. Figure 3 As shown.

[0098] It should be noted that, Figure 3 The dashed arrow in the image indicates that character B has been moved from its initial position to its corresponding position in the script template file.

[0099] Based on the above embodiments, the following example illustrates the video recording method provided in this application.

[0100] For example, in conjunction with the above Figure 2 and Figure 3Suppose a user wants to record a video of themselves playing in a garden with animal A. The user clicks the video recording application on their electronic device, which displays a live preview of the video recording interface captured by the camera, including animal A, person B, and plant C. The user then imports a script template file from their local storage and uses image recognition technology to identify animal A, person B, and plant C as the primary elements. Next, the user clicks the "Record" button on the screen. Based on the user's input, the electronic device loads the script template file and determines the shooting information for each element according to its contents. During video recording, the electronic device automatically adjusts shooting parameters based on the shooting information, such as the camera's focus and exposure; it also automatically adjusts the position of each element, such as centering animal A in the frame. Finally, the user clicks the "Stop Recording" button on the screen. The electronic device stops recording, processes and encodes the recorded video stream, converting it into a standard video format file, such as MP4, and saves it in the device's memory.

[0101] The video recording method provided in this application embodiment allows an electronic device to 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 for video recording. This eliminates the need for the user to manually adjust the shooting information of the first element, reducing manual operation and enabling automated adjustment of the shooting information of elements during video recording. This simplifies the steps of the video recording process and improves shooting efficiency.

[0102] In some embodiments of this application, the first shooting information includes at least one of the following: the location of the first element, the time of appearance of the first element, and the motion parameters of the first element; exemplarily, the video recording based on the first shooting information in step 203 to generate the target video may further include the following steps 203a and 203b:

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

[0104] Step 203b: The electronic device records video based on the second preview screen and generates the target video.

[0105] In some embodiments of this application, the aforementioned 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 the camera according to the shooting parameters of the first element. The user can view the expected appearance and layout of the first element in the final recorded video through the aforementioned second preview screen.

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

[0107] For another example, suppose a user wants to record a video of animal A chasing a soccer ball on a grassy field. The electronic device identifies animal A as the first element based on a first script template file and determines the first shooting information of animal A. Then, the electronic device processes the real-time image of animal A captured by the camera based on at least one of the following: the appearance position of the first element, the appearance time of the first element, and the motion parameters of the first element. For example, if animal A appears in the lower left corner of the screen at the 3rd second, the electronic device then displays the processed image as a second preview on the video recording interface.

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

[0109] In this embodiment, 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 requiring the user 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 the video recording efficiency.

[0110] In some embodiments of this application, the first shooting information mentioned above includes: shooting parameters of the first element, the shooting parameters including the camera and shooting / recording parameters corresponding to the first element; for example, step 203 may include steps 203c and 203d:

[0111] Step 203c: The electronic device acquires the third preview image of the first element based on the camera and shooting / recording parameters corresponding to the first element.

[0112] Step 203d: The electronic device records video based on the third preview screen and generates the target video.

[0113] In some embodiments of this application, the aforementioned third preview screen may be an image obtained by an electronic device through a designated camera based on the shooting parameters of the first element, such as focal length, exposure, and white balance.

[0114] In some embodiments of this application, the camera and shooting / recording parameters corresponding to the first element can be camera resources determined by the electronic device according to the first script template file, automatically switching the corresponding camera (portrait, macro, telephoto, etc.) when the first element appears, or automatically adjusting the camera and shooting / recording parameters by parsing the shooting parameters.

[0115] It should be noted that the aforementioned camera resources can be prepared in advance based on the script template file.

[0116] For example, in conjunction with the above Figure 2 Assuming the first element is animal A, the shooting parameters for animal A in the first script template file are to use a wide-angle lens 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 based on the shooting parameters of animal A, adjusts the focal length to a specific value, and then uses the wide-angle camera to capture the image of animal A, obtaining and displaying the third preview image.

[0117] For example, when a third preview screen is displayed, the user clicks the "Record" button after confirming that the third preview screen meets the requirements. The electronic device begins recording video, controlling the camera to capture the movements of animal A based on the first shooting information. At the same time, the electronic device automatically adjusts parameters such as focus, exposure, and white balance based on the first shooting information. After recording is complete, the electronic device processes and encodes the video stream, converting it into a standard video format file, such as MP4, and saves it in the device's memory.

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

[0119] In some embodiments of this 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 step 201 above, the video recording method provided in this application embodiment may further include the following steps 204 and 205:

[0120] Step 204: The electronic device loads the first script template file, which 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 this application, the above M element types can be categories such as people, animals, plants, and buildings.

[0123] For example, suppose the first script template file is designed for a diverse scenario, such as an outdoor video recording project that includes people, animals, plants, and buildings. In this project, the M element types could include: people, animals, plants, and buildings.

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

[0125] In some embodiments of this application, the electronic device can match the M element types in the first script template file with the element types 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 at least one first element that matches the element type with the M element types can be done through matching techniques such as image recognition or AI recognition.

[0127] For example, a user wants to record a scene of an outdoor concert, which includes performers (characters), specific audience members (characters), decorative plants around the stage (plants), and the stage itself (building). The electronic device loads the element types contained in the first script template file, which are: plants and buildings. Then, the electronic device controls the camera to capture the scene and displays a preview on the video recording interface. Through image recognition or AI recognition technology, the content in the preview is analyzed to identify the three element types: characters, plants, and buildings. Next, the electronic device matches the element types in the identified video preview with the element types contained in the first script template file, and identifies the decorative plants around the stage (plants) and the stage itself (building) as the first elements.

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

[0129] In some embodiments of this 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 this application embodiment may further include the following step 204a:

[0130] Step 204a: If the electronic device does not have an element matching the target element type in the preview screen of the video recording interface, it 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 this application, the situation where 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 contained in the first script template file or elements corresponding to some element types.

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

[0133] In some embodiments of this 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] For example, the first script template file contains a description of the element type "plant": "An evergreen tree decorated with colored lights and gifts, about 2 meters tall."

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

[0136] For example, in conjunction 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 the script template file includes the element type "sports equipment" and its corresponding element description information as "a soccer ball," since no element of the "sports equipment" element type appears in the preview screen, the electronic device can use AI technology to generate and display a soccer ball D, i.e., the second element, based on the element description information, in the preview screen. Figure 4 As shown.

[0137] As another example, the electronic device generates the potted plant described in the first script template file, "potted plant: green succulents planted in a brown flowerpot," using AI technology in the preview screen of the video recording interface, and displays it in the preview screen.

[0138] In this embodiment, the electronic device can determine the missing element type 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 according to its corresponding element description information, so that the user can see a more complete scene layout in the preview, thereby enabling convenient and efficient recording of videos that meet the user's needs, and thus improving shooting efficiency.

[0139] In some embodiments of this application, the video recording method provided in this application, in which the electronic device records video based on the first shooting information to generate a target video in step 203 above, may further include the following steps 203e to 203g:

[0140] Step 203e: The electronic device records video based on the first captured information.

[0141] Step 203f: During the video recording process of the electronic device, if an update to the first script template file is detected, the second shooting information of at least one third element is determined based on 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 type of the third element in the updated first script file.

[0143] Step 203g: The electronic device records video based on the second shooting information and generates the target video.

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

[0145] For example, suppose the electronic device is recording video. At this time, the server pushes a new script template file to the user's electronic device, and the electronic device replaces the updated script template file in real time.

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

[0147] For example, the updated script template file contains new element types, or the shooting information corresponding to the original element types has been updated.

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

[0149] For example, in conjunction with the above Figure 2 As shown, assuming the updated script template file contains updated shooting information, such as requiring element "Animal A" to appear in the upper right corner of the frame at a new specific time point and 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 camera's tracking settings and recording parameters based on this 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 above video recording method will be described by way of example below with reference to the above embodiments.

[0151] For example, during the recording process, if the script template file comes from the server or from other contacts, when the script template file is updated, such as when the server re-issues new content or when a contact sends a new script template content file, the electronic device will detect it and pass it to the camera system. The camera system will then re-parse the content (element type parameters and other basic information), which can enable dynamic adjustment of element positions and layout, and adjustment of camera parameter resources during the recording process.

[0152] In this embodiment of the application, when the electronic device uses a script template file to shoot during video recording, 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. This eliminates the need for the user to manually select the updated script template file again, thereby simplifying the steps of the video recording process and improving shooting efficiency.

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

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

[0155] Step 201b: The electronic device responds to the second input and determines the third image information of the target element.

[0156] The third shooting information includes at least one of the following: the location of the target element, the time of the target element's appearance, the motion parameters of the target element, and the shooting parameters of the target element.

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

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

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

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

[0161] In some embodiments of this application, the aforementioned third shooting information may be shooting information of the target element after user adjustment.

[0162] In some embodiments of this application, the location of the target element can be determined based on the user's drag input of the target element.

[0163] In some embodiments of this application, the occurrence time of the target element can be determined based on the time information input by the user to the time control corresponding to the target element.

[0164] In some embodiments of this application, the shooting parameters of the target element can be determined based on the shooting information manually input by the user for the target element.

[0165] For example, by clicking on the image of a "cake" in the video recording interface, the user triggers the electronic device to select the "cake" (i.e., the target element). Then, the user manually inputs 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 input by the user.

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

[0167] For example, by clicking on the image of "cake" in the video recording interface, the user triggers the electronic device to select "cake" (i.e., the target element). Then, the user long-presses "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" based on the user's long-press input (the third shooting information).

[0168] In some embodiments of this application, the electronic device can match at least one element type in the first script template file with the element type of the target element, and update the shooting information corresponding to the target element type that matches the element type of the target element according to the third shooting information of the target element, so as to obtain the second script template file.

[0169] For example, suppose a user manually adjusts the cake's position and the camera's focus while recording a birthday party video. After recording, the user-modified shooting information for each element on the electronic device generates a new script template file, i.e., a second script template file. The second script template file contains the cake's new position and the adjusted focus settings.

[0170] To reiterate, in conjunction with the above Figure 2 During video recording, if the user is not satisfied with the effect of the script template, they can manually adjust the position of elements or adjust the shooting and recording parameters, etc. Finally, after the shooting and recording are completed, such as... Figure 5 As shown, the electronic device displays the "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. Based on the third shooting information, the shooting information of the corresponding element type in the first script template file is updated, that is, the third shooting information is rewritten into the first script template file, thereby obtaining the second script template file.

[0171] In some embodiments of this application, the electronic device can 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 this embodiment, when a user is dissatisfied with the shooting effect of an element in the video preview interface, they can manually adjust the shooting information of the target element. The electronic device can then update the shooting information of the corresponding element type in the first script template file based on the adjusted shooting information of the target element, thereby generating a second script template file that meets the user's shooting needs. Thus, when the user wants to record a similar scene again, they can directly use the second script template file to quickly achieve the same shooting effect.

[0173] The above-described method embodiments, or various possible implementations of the method embodiments, can be executed individually, or, provided there are no contradictions, they can be combined with each other. The specific implementation can be determined according to actual usage requirements, and this application embodiment does not impose any restrictions on this.

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

[0175] Figure 6 This is a schematic diagram of the structure of the video recording device 600 provided in the embodiments of this application, as shown below. Figure 6 As shown, the video recording device may include: a determining module 601; the determining module 601 is used to determine first shooting information according to a first script template file when a video recording interface is displayed, the first shooting information including at least one of the following: the appearance position of a first element, the appearance time of the first element, the motion parameters of the first element, and the shooting parameters of the first element; a receiving module 602; the receiving module 602 is used to receive a first input from the user to the video recording interface, the first input being used to trigger video recording; and 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 determining module to generate a target video.

[0176] In some embodiments of this application, the first shooting information includes at least one of the following: the location of the first element, the time of the first element's appearance, and the motion parameters of the first element; the processing module is specifically used to generate and display a second preview image of the first element in the video recording interface based on the first shooting information; the processing module is specifically used to perform video recording based on the second preview image to generate a target video.

[0177] In some embodiments of this application, the first shooting information includes: shooting parameters of the first element, the shooting parameters including the camera and shooting / recording parameters corresponding to the first element; the device further includes: a collection module; the collection module is used to collect a third preview image of the first element according to the camera and shooting / recording parameters corresponding to the first element; the processing module is specifically used to record video according to the third preview image collected by the collection module to generate a target video.

[0178] In some embodiments of this application, the processing module is further configured to load a first script template file before determining the first shooting information based on the first script template file, wherein the first script template file includes M element types, where M is a positive integer; the determining module is further configured to determine at least one first element whose element type matches the M element types in the first script template file loaded by the processing module from at least one element in the preview screen of the video recording interface.

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

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

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

[0182] In some embodiments of this application, the receiving module is further configured to receive a second input from the user for a target element among at least one first element after determining the first shooting information according to the first script template file; the determining module is further configured to determine third shooting information of the target element in response to the second input received by the receiving module, 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 processing module is further configured 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 this application embodiment, when displaying a video recording interface, determines first shooting information based on a first script template file. The first shooting information includes at least one of the following: the appearance position of a first element, the appearance time of the first element, the motion parameters of the first element, and the shooting parameters of the first element. It receives a first input from a user to the video recording interface, which triggers video recording. In response to the first input, it performs video recording based on 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, and shooting parameters of at least one first element in the video recording interface using a script template file for video recording, eliminating the need for the user to manually adjust the shooting information of the first element. This reduces manual operation by the user, automates the adjustment of the shooting information of elements during video recording, simplifies the steps of the video recording process, and improves shooting efficiency.

[0184] The video 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 device.

[0185] The video 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.

[0186] The video recording apparatus provided in this application can implement all the processes implemented in the above video recording method embodiments, and will not be described again here to avoid repetition.

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

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

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

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

[0191] Those skilled in the art will understand that the electronic device 100 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 110 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 8 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.

[0192] The processor 110 is used to determine first shooting information according to a first script template file when the video recording interface is displayed. 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 a first input from the user to the video recording interface, which is used to trigger video recording. The processor 110 is also 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.

[0193] In some embodiments of this application, the first shooting information includes at least one of the following: the location of the first element, the time of the first element's appearance, and the motion parameters of the first element; the processor 110 is specifically used to generate and display a second preview image of the first element in the video recording interface based on the first shooting information; the processor 110 is specifically used to perform video recording based on the second preview image to generate a target video.

[0194] In some embodiments of this application, the first shooting information includes: shooting parameters of the first element, the shooting parameters including the camera and shooting recording parameters corresponding to the first element; processor 110, used to collect a third preview image of the first element according to the camera and shooting recording parameters corresponding to the first element; processor 110, specifically used to perform video recording based on the third preview image collected by processor 110, and generate a target video.

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

[0196] In some embodiments of this application, the first script template file further 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 when the preview screen of the video recording interface does not contain an element matching the target element type after loading the first script template file, wherein the target element type is at least one of the M element types.

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

[0198] In some embodiments of this application, the user input unit 107 is further configured to receive a second input from the user regarding a target element among the 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 configured 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 configured 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 in this application embodiment, when displaying a video recording interface, determines first shooting information based on a first script template file. The first shooting information includes at least one of the following: the appearance position of a first element, the appearance time of the first element, the motion parameters of the first element, and the shooting parameters of the first element. It receives a first input from the user to the video recording interface, which triggers video recording. In response to the first input, it performs video recording based on the first shooting information to generate a target video. Through this method, the video recording device can determine shooting information such as appearance position, appearance time, motion parameters, and shooting parameters from a script template file to perform video recording, without requiring the user to manually adjust the shooting information of the first element. This reduces manual operation by the user, automates the adjustment of the shooting information of elements during video recording, simplifies the steps of the video recording process, and improves shooting efficiency.

[0200] It should be understood that, in this embodiment, the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042. The GPU 1041 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 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 107 includes at least one of a touch panel 1071 and other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include 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 buttons, power buttons, etc.), a trackball, a mouse, and a joystick, which will not be described in detail here.

[0201] The memory 109 can be used to store software programs and various data. The memory 109 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 109 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 109 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.

[0202] Processor 110 may include one or more processing units; optionally, processor 110 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 processor 110.

[0203] 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 above-described video recording method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.

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

[0205] This application embodiment 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 above video recording method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0206] 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.

[0207] This application 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 video recording method embodiments described above, and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0208] 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.

[0209] 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.

[0210] 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: Load the first script template file, which contains M element types, where M is a positive integer; From at least one element in the preview screen of the video recording interface, determine at least one first element whose element type matches the M element types; When the video recording interface is displayed, the first shooting information is determined 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. Receive a first input from the user on the video recording interface, the first input being used to trigger video recording; In response to the first input, during the video recording process based on the first shooting information, if an update to the first script template file is detected, then based on the third element type in the updated first script template file, at least one third element's second shooting information is determined. The at least one third element is an element in the video recording interface that matches the third element type. The third element type is either a newly added element type or an existing element type where the shooting information has been updated. The updated first script template file is either a new script template file pushed by the server or a new script template file received by the electronic device. Based on the second shooting information, video is recorded to generate the target video; Among them, real-time footage collected based on the shooting information is displayed during video recording; 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: If the preview screen of the video recording interface does not contain an element that matches the target element type, a second element is generated based on the element description information corresponding to the target element type using artificial intelligence technology, and the second element is displayed in the preview screen of the video recording interface. The target element type is at least one of the M element types.

2. The method according to claim 1, characterized in that, The first captured information includes at least one of the following: the location of the first element, the time of the first element's appearance, and the motion parameters of the first element; The step of recording video based on the first shooting information and generating a target video includes: Based on the first shooting information, a second preview screen of the first element is generated and displayed on the video recording interface; Based on the second preview screen, video recording is performed 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, wherein the shooting parameters include the camera and shooting / recording parameters corresponding to the first element; The step of recording video based on the first shooting information and generating a target video includes: Based on the camera corresponding to the first element and the shooting and recording parameters, a third preview image of the first element is captured; Based on the third preview screen, video recording is performed to generate the target video.

4. A video recording device, characterized in that, The device includes: a determining module, a receiving module, and a processing module; The processing module is used to load a first script template file, which includes M element types, where M is a positive integer; The determining module is configured to determine at least one first element whose element type matches the M element types in the first script template file loaded by the processing module from at least one element in the preview screen of the video recording interface; and when the video recording interface is displayed, determine first shooting information according to the first script template file, wherein 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 receiving module is used to receive a first input from the user to the video recording interface, and the first input is used to trigger video recording; The processing module is further configured to respond to the first input received by the receiving module, and during video recording based on the first shooting information determined by the determining module, if an update to the first script template file is detected, then based on the third element type in the updated first script template file, determine the second shooting information of at least one third element, wherein the at least one third element is an element in the video recording interface that matches the third element type, and the third element type is a newly added element type or an existing element type where the shooting information has been updated; the updated first script template file is a new script template file pushed by the server or a new script template file received by the electronic device; and perform video recording based on the second shooting information to generate a target video; Among them, real-time footage collected based on the shooting information is displayed during video recording; The first script template file also includes element description information corresponding to the M element types; The processing module is further configured to, after loading the first script template file, generate a second element based on the element description information corresponding to the target element type in the preview screen of the video recording interface if no element matching the target element type is included in the preview screen of the video recording interface, using artificial intelligence technology, and display the second element in the preview screen of the video recording interface, wherein the target element type is at least one of the M element types.

5. The apparatus according to claim 4, characterized in that, The first captured information includes at least one of the following: the location of the first element, the time of the first element's appearance, and the motion parameters of the first element; The processing module is specifically used to generate and display a second preview of the first element in the video recording interface based on the first shooting information; The processing module is specifically used to record video based on the second preview screen and generate the target video.

6. The apparatus according to claim 4, characterized in that, The first shooting information includes: shooting parameters of the first element, wherein the shooting parameters include the camera and shooting / recording parameters corresponding to the first element; The device further includes: a data acquisition module; The acquisition module is used to acquire a third preview image of the first element based on the camera corresponding to the first element and the shooting and recording parameters. The processing module is specifically used to record video based on the third preview screen captured by the acquisition module and generate a target video.

7. An electronic device, characterized in that, It includes a processor and a memory, the memory storing a program or instructions that can run on the processor, the program or instructions being executed by the processor to implement the steps of the video recording method as described in any one of claims 1-3.

8. 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 video recording method as described in any one of claims 1-3.

Citation Information

Patent Citations

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

    CN109451245A

  • Video editing method and electronic equipment

    CN111654755A

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

    CN113891001A