Video recording method and device, electronic equipment, storage medium and program product

By receiving user input and displaying elements during video recording, and generating video in real time, the problem of low video recording efficiency in the prior art is solved, and users can quickly adjust videos during recording, improving efficiency.

CN119697485APending Publication Date: 2025-03-25VIVO MOBILE COMM CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In the prior art, users need to make adjustments through post-production video editing software when recording videos, resulting in low efficiency and being unable to quickly obtain videos that meet user needs.

Method used

During the video recording process, the user receives input from the user in the video screen, displays elements in response to input, and generates video based on the elements and video screen to realize real-time video adjustment.

Benefits of technology

By receiving user input in real time and generating videos, users can adjust videos during recording, avoid post-editing, and improve the efficiency of obtaining videos that meet user needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119697485A_ABST
    Figure CN119697485A_ABST
Patent Text Reader

Abstract

The invention discloses a video recording method and device, electronic equipment, a storage medium and a program product, and belongs to the technical field of image processing. The method comprises the following steps: in a video recording process, receiving a first input of a user in a first video picture; in response to the first input, a first element is displayed, and a first video is generated based on the first element and the first video picture.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] With the development of electronic devices, the functions of electronic devices are becoming more and more. For example, electronic devices provide rich and powerful video recording functions, and users can record the beautiful moments of life through the video recording functions in electronic devices.

[0003] In the related art, a user can trigger an electronic device to run a camera application so that a camera in the electronic device can capture video images, thereby obtaining a video.

[0004] However, since the above method directly captures videos through the camera, the images captured by the camera may not achieve the desired effect. Users can usually only use post-production video editing software to adjust the video, which requires a lot of time and energy, resulting in low efficiency in obtaining videos that meet user needs. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide a video recording method, device, electronic device, storage medium and program product, which can improve the efficiency of the electronic device in obtaining videos that meet the needs of the user.

[0006] In a first aspect, an embodiment of the present application provides a video recording method, which includes: during video recording, receiving a first input from a user in a first video screen; in response to the first input, displaying a first element, and generating a first video based on the first element and the first video screen.

[0007] In a second aspect, an embodiment of the present application provides a video recording device, which includes: a receiving module, a display module, and a generating module. The receiving module is used to receive a first input from a user in a first video screen during video recording. The display module is used to display a first element in response to the first input received by the receiving module. The generating module is used to generate a first video based on the first element and the first video screen.

[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, during the process of recording a video, a first input from a user in a first video screen can be received; then, in response to the first input, a first element is displayed, and a first video is generated based on the first element and the first video screen. In this solution, during the process of recording a video, since the user can directly make a first input in the video recording screen, that is, the above-mentioned first video screen, the first element is displayed based on the first input, that is, the user's adjustment requirements for the video, so that the electronic device can directly generate the first video based on the first element and the first video screen; thereby, the user can adjust the video during video recording without the need to edit the video later, thereby improving the efficiency of obtaining a video that meets the user's needs. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 This is one of the flow charts of a video recording method provided in an embodiment of the present application;

[0014] Figure 2 is a schematic diagram of an example of a video recording interface provided in an embodiment of the present application;

[0015] Figure 3 This is the second flowchart of a video recording method provided in an embodiment of the present application;

[0016] Figure 4 This is the third flowchart of a video recording method provided in an embodiment of the present application;

[0017] Figure 5 This is a schematic diagram of an example of obtaining display timing information provided by an embodiment of the present application;

[0018] Figure 6 It is a schematic diagram of an example of adding elements to a video recording interface provided by an embodiment of the present application;

[0019] Figure 7This is a fourth flowchart of a video recording method provided in an embodiment of the present application;

[0020] Figure 8 is a schematic diagram of an example of a display screen element provided in an embodiment of the present application;

[0021] Fig. 9 This is the fifth flowchart of a video recording method provided in an embodiment of the present application;

[0022] Fig.10 This is the sixth flowchart of a video recording method provided in an embodiment of the present application;

[0023] Fig.11A This is one of the example schematic diagrams of establishing an association relationship between different screen elements provided in an embodiment of the present application;

[0024] Fig. 11B This is a second example schematic diagram of establishing an association relationship between different screen elements provided in an embodiment of the present application;

[0025] Fig.12 is a structural schematic diagram of a video recording device provided in an embodiment of the present application;

[0026] Fig.13 This is one of the hardware structure diagrams of an electronic device provided in an embodiment of the present application;

[0027] Fig.14 This is the second schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

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

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

[0030] 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)".

[0031] The video recording method, device, electronic device, storage medium and program product provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.

[0032] The video recording method, device, electronic device, storage medium and program product provided in the embodiments of the present application can be used in video editing scenarios, for example, adding dynamic effect scenes to a video, updating the expression scenes of the subject in the video, updating the action scenes of the subject in the video, adding new screen elements to a video, etc.

[0033] Scenario 1, taking a video recording screen including a little girl and a puppy as an example, during the video recording process, the user can click and input the little girl so that the electronic device can display the three status identifiers corresponding to the little girl, and the three status identifiers corresponding to the little girl are respectively a laughing status identifier, a smiling status identifier, and a sad status identifier; then, the user can click and input the laughing status identifier so that the electronic device can generate a video screen of the little girl laughing based on the motion effect parameters corresponding to the laughing status identifier, and then superimpose the video screen on the video recording screen. At the end of the shooting, a video screen containing a normal recording and a video containing the little girl laughing are obtained.

[0034] Scenario 2: During the video recording process, the user can click and input on the little girl's eyes so that the electronic device can display the three status identifiers corresponding to the little girl's glasses. The three status identifiers corresponding to the little girl are a blinking expression identifier, a closed eyes expression identifier, and a wide eyes expression identifier; then, the user can click and input on the blinking expression identifier so that the electronic device can use the motion effect parameters corresponding to the blinking expression identifier to generate a video screen of the little girl blinking, and then superimpose the video screen on the video recording screen. At the end of the shooting, a video screen containing a normal recording and a video containing the little girl blinking are obtained.

[0035] It should be noted that the above scenarios are only illustrative examples of some scenarios in which the embodiments of the present application may be applied. In actual implementation, the embodiments of the present application can also be applied to any possible scenarios such as the timing of adding a new screen element to be displayed during video recording, the state of a new screen element to be changed during video recording, and the expression of a new screen element to be changed during video recording. The embodiments of the present application are not limited here.

[0036] In the video recording method, device, electronic device, storage medium and program product provided in the embodiments of the present application, during the process of recording a video, a first input from a user in a first video screen can be received; then, in response to the first input, a first element is displayed, and a first video is generated based on the first element and the first video screen. In this solution, during the process of recording a video, since the user can directly make a first input in the video recording screen, that is, the above-mentioned first video screen, the first element is displayed based on the first input, that is, the user's adjustment requirements for the video, so that the electronic device can directly generate the first video based on the first element and the first video screen; thereby, the user can adjust the video during video recording without the need to edit the video later, thereby improving the efficiency of obtaining a video that meets the user's needs.

[0037] The execution subject of the video recording method provided in the embodiment of the present application may be a video recording device, and the video recording device may be an electronic device, or a functional module in an electronic device. The technical solution provided in the embodiment of the present application is described below using an electronic device as an example.

[0038] The present application embodiment provides a video recording method. Figure 1 FIG. 1 is a flow chart of a video recording method provided by an embodiment of the present application. Figure 1 As shown, the video recording method provided in the embodiment of the present application may include the following steps 201 and 202.

[0039] Step 201: During video recording, the electronic device receives a first input from a user in a first video screen.

[0040] It can be understood that the above-mentioned first video picture is a video picture captured by a camera in the electronic device.

[0041] Optionally, in the embodiment of the present application, the camera may be any of the following: a telephoto camera, a macro camera, a wide-angle camera, or an ultra-wide-angle camera, etc. The specific camera may be determined according to actual use requirements, and the embodiment of the present application does not limit the camera.

[0042] In an embodiment of the present application, the first input is used to select a control in the first video screen; or, the first input is used to select a screen element in the first video screen; or, the first input is used to add a screen element in the first video screen.

[0043] Optionally, in an embodiment of the present application, the above-mentioned first input includes but is not limited to: a click input of the user on the above-mentioned first video screen through a touch device such as a finger or a stylus, or a voice command input by the user, or a specific gesture input by the user, or other feasible input, which can be determined based on actual usage requirements and is not limited in the embodiment of the present application.

[0044] In some embodiments of the present application, the above-mentioned specific gesture can be any one of a single-click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double-press gesture, and a double-click gesture.

[0045] In some embodiments of the present application, the click input may be a single click input, a double click input, or any number of click inputs, etc., and may also be a long press input or a short press input. For example, the first input may be a single click input of a control in the first video screen by the user.

[0046] It can be understood that the above-mentioned first video frame can be a video recording frame in the process of recording a video.

[0047] Optionally, in an embodiment of the present application, before displaying the first video screen, the user can input the camera application icon so that the electronic device can run the camera application corresponding to the camera application icon and display the shooting interface. Then, the user can input the video recording control in the shooting interface so that the electronic device can record the video and display the first video screen.

[0048] Optionally, in an embodiment of the present application, before displaying the first video screen, the user can wake up the voice assistant in the electronic device and collect the "open camera" voice signal input by the user through the microphone in the electronic device, so that the electronic device can automatically run the camera application according to the voice signal and display the shooting interface. Then, the user can input the video controls in the shooting interface so that the electronic device can record the video and display the first video screen.

[0049] Optionally, in the embodiment of the present application, the microphone may be any one of the following: a dynamic microphone, an electromagnetic microphone, a carbon microphone, a semiconductor microphone, etc. The specific microphone may be determined according to actual use requirements, and the embodiment of the present application does not limit the microphone.

[0050] Optionally, in an embodiment of the present application, the electronic device can display a recording preview screen, and then the user can input the artificial intelligence (AI) generated control in the recording preview screen, so that the electronic device can change the video recording mode to the AI ​​generated video recording mode, and then during the video recording process, it can receive the user's first input in the first video screen.

[0051] Step 202: The electronic device displays a first element in response to a first input, and generates a first video based on the first element and a first video frame.

[0052] Optionally, in the embodiment of the present application, the first element may include at least one of the following: a person, an animal, an object, a scene, etc. The first element may be one or more, which may be determined according to actual use requirements and is not limited in the embodiment of the present application.

[0053] Optionally, in the embodiment of the present application, the above-mentioned scenery may be at least one of the following: blue sky, white clouds, mountain peaks, trees, etc. The specific scenery may be determined according to actual use requirements, and the embodiment of the present application does not limit it.

[0054] Optionally, in an embodiment of the present application, when the first element is a screen element existing in the first video screen, the electronic device may mark the screen element; or, when the first element is a screen element not existing in the first video screen, the electronic device may display the first element in the first video screen.

[0055] Optionally, in the embodiment of the present application, the electronic device may mark the first element in a first manner, and the first manner may be any of the following: a frame marking manner, a color marking or a special symbol marking, etc. The specific manner may be determined according to actual use requirements, and the embodiment of the present application does not limit this.

[0056] Optionally, in an embodiment of the present application, the electronic device may display the first element in a preset area in the first video screen; or the electronic device may display the first element at a position corresponding to an input track in the first video screen according to an input track of the user.

[0057] Optionally, in the embodiment of the present application, the above-mentioned motion effect parameters may include at least one of the following: blinking, jumping, rotating, talking, running, display timing, wagging the tail, etc. The specific parameters may be determined according to actual use requirements, and the embodiment of the present application does not limit them.

[0058] Optionally, in an embodiment of the present application, the electronic device may input the first element and the first video screen into a model to integrate the first element into the first video screen through the model; then, upon receiving a user-triggered input to end video recording, the first video is obtained.

[0059] Optionally, in the embodiment of the present application, the above model can be any of the following: Generative Adversarial Networks (GANs), autoregressive model, variational autoencoder (VAE), etc. The specific model can be determined according to actual use requirements and is not limited in the embodiment of the present application.

[0060] Optionally, in an embodiment of the present application, after displaying the first element, the electronic device may display at least one motion effect parameter corresponding to the first element, and then the user may select and input any one of the at least one motion effect parameter, so that the electronic device may generate a first video based on any motion effect parameter selected by the user, the first element and the first video screen.

[0061] For example, Figure 2 As shown, taking the electronic device as a mobile phone as an example, a first video screen 10 shows a little girl and a puppy; the user can click and input the first element "little girl" so that the mobile phone can mark the "little girl" through a dotted frame, and display three dynamic effect parameter identifiers corresponding to the "little girl" through a pop-up window 11 in the upper left corner of the "little girl", and the three dynamic effect parameter identifiers are a blinking expression identifier, a laughing expression identifier, and a pouting expression identifier. Figure 2 The laughing expression logo is represented by a text logo; then the user can click to input the laughing expression logo, so that the mobile phone can input the first element "little girl", "laughing expression logo" and the first video screen into the AI ​​model, and obtain the video screen of "little girl laughing" through the AI ​​model, and then superimpose the video screen of "little girl laughing" on the first video screen; finally, when the user clicks the end video recording control 13, the video of the little girl laughing is obtained.

[0062] In the video recording method provided in the embodiment of the present application, during the process of recording a video, a first input from a user in a first video screen can be received; then, in response to the first input, a first element is displayed, and a first video is generated based on the first element and the first video screen. In this solution, during the process of recording a video, since the user can directly make a first input in the video recording screen, that is, the above-mentioned first video screen, the first element is displayed based on the first input, that is, the user's adjustment requirements for the video, so that the electronic device can directly generate the first video based on the first element and the first video screen; thereby, the user can adjust the video during video recording without the need to edit the video later, thereby improving the efficiency of obtaining a video that meets the user's needs.

[0063] Optionally, in the embodiment of the present application, combined with Figure 1,like Figure 3 As shown, the "generating the first video based on the first element and the first video frame" in the above step 202 can be specifically implemented through the following steps 202a and 202b.

[0064] Step 202a: The electronic device generates a second video picture based on the first element and picture parameters corresponding to the first video picture.

[0065] Optionally, in the embodiment of the present application, the above picture parameters may include at least one of the following: image resolution, image frame rate, image color saturation, image color contrast, image white balance, etc. The specific parameters may be determined according to actual use requirements and are not limited in the embodiment of the present application.

[0066] In an embodiment of the present application, the electronic device may input the picture parameters corresponding to the first element and the first video picture into a model, and perform video generation processing through the model to obtain the above-mentioned second video picture.

[0067] Optionally, in an embodiment of the present application, the electronic device may input the first element, the motion effect parameters corresponding to the first element, and the picture parameters corresponding to the first video picture into a model, and perform video generation processing through the model to obtain the above-mentioned second video picture.

[0068] Optionally, in an embodiment of the present application, after displaying the first element, the electronic device may display a prompt message, where the prompt message is used to prompt the user whether to add text. If the user decides to add text, the electronic device may automatically generate a first text corresponding to the first element through a model, and add the first text to the second video screen.

[0069] Optionally, in an embodiment of the present application, after generating the first text, the electronic device may display it in the first video screen, and the user may edit the first text so that the electronic device adds the edited first text to the second video screen.

[0070] Optionally, in an embodiment of the present application, after displaying the first element, the electronic device may display a prompt message, where the prompt message is used to prompt the user whether to add audio. If the user decides to add audio, the electronic device may automatically generate a second text corresponding to the first screen element through a model, and display the second text in the above-mentioned first video screen. The user may input the second text so that the electronic device can convert the second text into the first audio and add the first audio to the second video screen.

[0071] Optionally, in an embodiment of the present application, after the electronic device displays the second text in the first video screen, the user can edit the second text so that the electronic device can generate a first audio based on the edited second text and add the first audio to the second video screen.

[0072] Step 202b: The electronic device fuses the second video frame with the first video frame to generate a first video.

[0073] In the embodiment of the present application, the electronic device can superimpose the second video picture on the first video picture to obtain the first video.

[0074] Exemplarily, the electronic device may superimpose the second video picture on a position corresponding to the first element in the first video picture to obtain the first video.

[0075] Optionally, in an embodiment of the present application, the electronic device may input the first video picture into a model, and optimize and adjust the picture style of the first video picture through the model so that the picture style of the adjusted first video picture is consistent with the picture style of the second video picture.

[0076] Optionally, in an embodiment of the present application, the electronic device may input the second video picture into a model, and optimize and adjust the picture quality of the second video picture through the model so that the picture quality of the adjusted second video picture is better.

[0077] It should be noted that the video images generated by the model may be delayed, but the model can record the time points of the video images and subsequently insert the generated video into the corresponding time nodes, so that they can be integrated and unified.

[0078] In an embodiment of the present application, during the actual recording process, the electronic device can pass image parameters to the model, so that when the model generates the second video screen, the image parameters of the second video screen can be kept consistent with the image parameters of the first video screen, so that the overall style of the recorded screen can be unified.

[0079] Optionally, in an embodiment of the present application, the first video screen includes a first control.

[0080] In the embodiment of the present application, the first control is used by the user to input the first element and the display timing of the first element.

[0081] For example, in combination Figure 1 ,like Figure 4 As shown, the above step 201 can be specifically implemented through the following step 201a, and the above step 202 can be specifically implemented through the following step 202c and step 202d.

[0082] Step 201a: During video recording, the electronic device receives a first input from a user to a first control.

[0083] In the embodiment of the present application, the first input can be used to select a first control from the first video screen.

[0084] Optionally, in an embodiment of the present application, the first control may be displayed in a blank area of ​​the first video screen; or the first control may be displayed in a pop-up window.

[0085] It should be noted that the blank area refers to an area in the first video screen where no controls or screen elements exist.

[0086] Step 202c: the electronic device displays a first input box in response to the first input, and obtains a first element input by the user in the first input box and display timing information corresponding to the first element.

[0087] In the embodiment of the present application, the above-mentioned display timing information may include display time display or display condition information of the first element.

[0088] In an example, the above display timing information may be: during the recording process, when the little girl moves in the recording picture, "little flower" is added to the first video picture.

[0089] In another example, the above display timing information may be: adding the “little flower” to the first video screen at A minute and B seconds during the recording process.

[0090] Optionally, in the embodiment of the present application, the above-mentioned display timing information may also include at least one of the following: display position information, display style information.

[0091] Optionally, in the embodiment of the present application, the above-mentioned display style information may include at least one of the following: display color information and display size information.

[0092] It can be understood that the above-mentioned display position information is used during the video recording process, and the electronic device can add the above-mentioned first element to the position corresponding to the display position information in the first video screen; when the above-mentioned display style information is used to add the first element in the recording screen, the electronic device can display the first element according to the display style information.

[0093] Exemplarily, the above display timing information may be: during recording, when the little girl moves in the recording screen, a colorful "little flower" and a "little flower" of 5×5 size are added to the middle left side of the little girl in the first video screen.

[0094] Optionally, in an embodiment of the present application, the electronic device may display the first input box in a blank area in the first video screen; or, the electronic device may display the first input box in the first video screen through a pop-up window.

[0095] Optionally, in an embodiment of the present application, the first input box may be a text input box or a voice input box.

[0096] Optionally, in an embodiment of the present application, when the above-mentioned first input box is a text input box, the user can enter a third text in the text input box, and the third text includes the first element and the display timing information corresponding to the first element, so that the electronic device can obtain the first element and the display timing information corresponding to the first element.

[0097] Optionally, in an embodiment of the present application, when the above-mentioned first input box is a voice input box, the user can output a third audio, which includes the first element and the display timing information corresponding to the first element, so that the electronic device can obtain the first element and the display timing information corresponding to the first element.

[0098] It should be noted that the first element included in the third text or the third audio is an element that does not exist in the first video screen.

[0099] For example, in combination Figure 2 ,like Figure 5 As shown, when the first video screen 10 is displayed, the user can click and input on the first control so that the mobile phone can display a text input box 12 in the first video screen 10; then, the user can input "During the recording process, when the little girl moves in the recording screen, add colorful "little flowers" and "little flowers" of size 5×5 to the middle left position of the little girl in the recording screen" in the text input box, so that the mobile phone can obtain the above-mentioned display timing information.

[0100] Step 202d: The electronic device displays the first element, and displays the first element in the first video screen at a time corresponding to the display timing information, thereby generating a first video.

[0101] In an embodiment of the present application, during the process of recording a video, when the time of recording the video reaches the time corresponding to the display timing information, the electronic device can input the first screen element into the model to generate a second video screen through the model, and superimpose the generated second video screen on the first video screen; then, when receiving the input triggered by the user to end the video recording, the first video is obtained.

[0102] Optionally, in an embodiment of the present application, during the process of recording a video, when the time of recording the video reaches the time corresponding to the display timing information, the electronic device can input the first motion effect parameter, display position information, display style information and the first element into the model to generate a second video screen through the model, and superimpose the second video screen on the first video screen; then, when a user-triggered input to end recording is received, the first video is obtained.

[0103] It should be noted that since the present application generates the second video screen in real time during the process of recording the video, the electronic device may have a delay in generating the second video screen; based on this, the electronic device can record the time point corresponding to the display timing information, and then after obtaining the second video screen, add the second video screen to the time point corresponding to the display timing information to obtain the first video that can meet the user's needs.

[0104] For example, in combination Figure 2 ,like Figure 6 As shown, during the video recording process, if the state of the little girl in the video recording screen 20 changes from still to running, a colorful "little flower" 21 and a 5×5-sized "little flower" 21 are added to the middle left position of the little girl in the recording screen, and a colorful "little flower" 21 and a 5×5-sized "little flower" 21 are displayed in the middle left position of the little girl in the video recording screen 20.

[0105] In an embodiment of the present application, the electronic device can set the display timing of the first element added by the user based on the user's input, so that during the video recording process, when the conditions corresponding to the display timing are met, the electronic device can automatically add the second video screen to the first video screen, eliminating the need for the user to edit the video again later, thereby improving the flexibility of the electronic device in editing videos.

[0106] Optionally, in an embodiment of the present application, the first video screen includes a second control.

[0107] For example, in combination Figure 1 ,like Figure 7 As shown, before "receiving the first input of the user in the first video screen" in the above step 201, the video recording method provided in the embodiment of the present application also includes the following steps 301 and 302, and the "receiving the first input of the user in the first video screen" in the above step 201 can be specifically implemented by the following step 201b.

[0108] Step 301: The electronic device receives a second input from a user to a second control.

[0109] Optionally, in an embodiment of the present application, the electronic device may display the second control in a blank area of ​​the first video screen; or, the electronic device may display the second control in the first video screen through a pop-up window.

[0110] In the embodiment of the present application, the second input is used to select a second control from the first video screen.

[0111] Optionally, in an embodiment of the present application, the second input includes but is not limited to: a click input of the second control by a user through a touch device such as a finger or a stylus, or a voice command input by the user, or a specific gesture input by the user, or other feasible input, which can be determined based on actual usage requirements and is not limited in the embodiment of the present application.

[0112] Step 302: The electronic device displays at least one element identifier in response to a second input.

[0113] In the embodiment of the present application, the element indicated by the at least one element identifier is an element recommended based on the screen content of the first video screen.

[0114] Optionally, in the embodiment of the present application, the at least one element identifier mentioned above may be preset for the electronic device.

[0115] It should be noted that the elements corresponding to each element identifier in the at least one element identifier are elements that do not exist in the first video screen.

[0116] Optionally, in an embodiment of the present application, the electronic device may display the at least one element identification in the first video screen through a pop-up window; or, the electronic device may display the at least one element identification in a blank area in the first video screen.

[0117] Optionally, in an embodiment of the present application, the electronic device may input the first video picture into the above-mentioned model, and the model analyzes the picture structure and recording scene of the first video picture to recommend the above-mentioned at least one element identification.

[0118] Exemplarily, after the electronic device inputs the first video screen into the above-mentioned model, the model analyzes the picture content of the first video screen and determines that the recording scene corresponding to the picture content of the first video screen is a landscape theme, but the picture content of the first video screen lacks the sun and white clouds. Then, the model can use the sun and white clouds as recommended elements; then, the sun logo and the white cloud logo, that is, at least one of the above-mentioned element logos, can be displayed.

[0119] Optionally, in an embodiment of the present application, after obtaining the at least one element identifier, the electronic device may classify the at least one element identifier according to an element type of the at least one element identifier, and display the at least one element identifier according to the classification.

[0120] For example, in combination Figure 2 ,like Figure 8 As shown, taking the elements corresponding to at least one element identifier as mountain, water, sun, white cloud, little boy and old man as an example, the electronic device can classify the mountain, water, sun and white cloud as scenery, classify the little boy and old man as people, and then display at least one element identifier in groups according to type through a pop-up window 12 on the first video screen 10. Figure 7 In the middle: scenery: mountains, water, sun, white clouds; characters: a little boy and an old man.

[0121] Step 201b: The electronic device receives a first input of a user for a first element identifier among at least one element identifier.

[0122] In the embodiment of the present application, the element indicated by the above-mentioned first element identifier is the first element.

[0123] In the embodiment of the present application, the first input is used to select a first element identifier from at least one element identifier.

[0124] In an embodiment of the present application, the electronic device can add an element that does not exist in the first video screen through the second control, and then determine the added element as the first element, thereby improving the flexibility of the electronic device in obtaining the first element.

[0125] Optionally, in the embodiment of the present application, combined with Figure 1 ,like Fig. 9 As shown, before the "generating a first video based on the first element and the first video frame" in the above step 202, the video recording method provided in the embodiment of the present application also includes the following steps 401 and 402, and the "generating a first video based on the first element and the first video frame" in the above step 202 can be specifically implemented through the following step 501.

[0126] Step 401: The electronic device receives a third input of a user on a first element.

[0127] In the embodiment of the present application, the third input is used to select the first element from the first video screen.

[0128] Optionally, in an embodiment of the present application, the above-mentioned third input includes but is not limited to: the user's dragging input of the above-mentioned first element through a touch device such as a finger or a stylus, or a voice command input by the user, or a specific gesture input by the user, or other feasible input, which can be determined based on actual usage requirements and is not limited in the embodiment of the present application.

[0129] Step 402: The electronic device determines, in response to a third input, first position information of a first element in a first video frame based on an input trajectory of the third input.

[0130] In the embodiment of the present application, the electronic device may use the end point of the input trajectory of the third input as the first position information of the first element in the first video screen.

[0131] Step 501: Based on the first position information, the electronic device displays the first element at a position corresponding to the first position information in the first video screen to generate a first video.

[0132] In the embodiment of the present application, the electronic device can perform a cut operation on the first element, and then paste the first element at the end point of the input trajectory of the third input to obtain the first video.

[0133] In an embodiment of the present application, during the process of recording a video, the electronic device can change the display position of the first element in the first video screen according to the user's input, thereby generating a first video based on the first element after the position is changed, thereby improving the flexibility of the electronic device in recording videos.

[0134] Optionally, in an embodiment of the present application, the first video screen includes a third control.

[0135] For example, in combination Figure 1 ,like Fig.10 As shown, before the "generating a first video based on the first element and the first video frame" in the above step 202, the video recording method provided in the embodiment of the present application also includes the following steps 601 and 602; and the "generating a first video based on the first element and the first video frame" in the above step 202 can be specifically implemented through the following step 701.

[0136] Step 601: The electronic device receives a fourth input from a user to a third control.

[0137] In the embodiment of the present application, the fourth input is used to select a third control from the first video screen.

[0138] Optionally, in an embodiment of the present application, the above-mentioned third input includes but is not limited to: the user's dragging input of the above-mentioned third control through a touch device such as a finger or a stylus, or a voice command input by the user, or a specific gesture input by the user, or other feasible input, which can be determined based on actual usage requirements and is not limited in the embodiment of the present application.

[0139] Step 601: In response to a fourth input, the electronic device obtains a first association relationship between a first action state and a second action state based on a first element and a second element.

[0140] In an embodiment of the present application, the above-mentioned second element is an element in the first video screen that matches the type of the first element, the above-mentioned first action state is the action state corresponding to the first element, the above-mentioned second action state is the action state that matches the first action state, and the second action state is the action state corresponding to the second element.

[0141] Optionally, in the embodiment of the present application, the second element may be one or more.

[0142] Optionally, in the embodiment of the present application, the second element may be any one of the following: a person, an animal, a scene, or an object, etc. The specific element may be determined according to actual use requirements, and the embodiment of the present application does not limit the element.

[0143] Optionally, in the embodiment of the present application, the above-mentioned action state can be any one of the following: running, jumping, spinning, raising hands or squatting, etc. The specific action state can be determined according to actual use requirements, and the embodiment of the present application does not limit it.

[0144] Optionally, in an embodiment of the present application, the first association relationship may be automatically generated by the electronic device; or the first association relationship may be customized by a user.

[0145] Exemplarily, the above-mentioned first association relationship can be automatically generated by the electronic device and can be understood as follows: the electronic device can obtain the element types of all elements in the first video screen, and according to the preset element type correspondence, determine the screen element that matches the element type of the first element as the second element, and associate the preset action state of the first element with the preset action state of the second element, so as to obtain the above-mentioned first association relationship.

[0146] For example, the electronic device can analyze the types and characteristics of all elements in the first video screen through the model, and then automatically establish a relationship model for the types of all elements and obtain a state association model under the relationship model. For example, elements can be divided into natural scenery, people, pets, etc. according to their major types, and the generated element matching relationship can be scenery <-> (bidirectional relationship) people, people <-> people, people <-> pets, etc. The corresponding action state matching relationship can also be a state relationship model between beautiful scenery and the mood of the person.

[0147] It should be noted that the first association relationship can be customized by the user, which can be detailed in the following embodiments. To avoid repetition, it will not be described here.

[0148] Step 701: Based on a first association relationship, when an action state of a first element changes to a first action state, the electronic device changes an action state of a second element in a first video screen to a second action state, thereby generating a first video.

[0149] In an embodiment of the present application, during the recording process, if it is detected that the action state of the first element is updated to the first action state, the electronic device can input the second element and the second action state into the model, and generate a video picture corresponding to the second element through the model to obtain the first video.

[0150] In one example, the action state of the character element is associated with the action state of the animal element; the expression states of the little girl include "laughing, smiling, sad, calm", etc., and the states of the puppy include "baring teeth, sticking out tongue, wagging tail". Here, if the state of the puppy needs to be referenced according to the state of the character, the "laughing" action state of the little girl can be associated with the "wagging tail" action state of the puppy; in this way, when the little girl appears in the "laughing" action state during the video recording process, if it is detected that the puppy does not appear in the "wagging tail" action state, the electronic device can adjust the action state of the puppy to the "wagging tail" state.

[0151] In another example, the action state of the scenery element is associated with the action state of the character element; assuming that the scenery screen element is the sky, and the character screen element is a little girl, the states of the sky include "sunny and white clouds" and "overcast", and the expression states of the little girl include "laughing, smiling, sad, calm", etc.; if the state of the sky needs to be referenced according to the state of the character, the expression state of the little girl "laughing" is associated with the state of the sky "sunny and white clouds", or the expression state of the little girl "sad" is associated with the state of the sky "overcast"; in this way, when the little girl appears in the "laughing" action state during video recording, if it is detected that the sky does not appear in the "sunny and white clouds" state, the electronic device can adjust the state of the sky to the "sunny and white clouds" state; or, when the little girl appears in the "sad" action state during video recording, if it is detected that the sky does not appear in the "overcast" state, the electronic device can adjust the state of the sky to the "overcast" state.

[0152] In an embodiment of the present application, the electronic device can automatically obtain the above-mentioned first association relationship based on the element types of all elements in the first video screen, so that during the video recording process, the first video can be obtained according to the first association relationship; there is no need for the user to edit it again, which improves the efficiency of the electronic device in editing videos and the flexibility of recording videos.

[0153] Optionally, in the embodiment of the present application, the video recording method provided in the embodiment of the present application further includes the following steps 801 to 804.

[0154] Step 801: The electronic device receives a fifth input of a user on a second element.

[0155] In the embodiment of the present application, the fifth input is used to select the second element from the first video screen.

[0156] Optionally, in an embodiment of the present application, the fifth input includes but is not limited to: a click input of the second element by a user through a touch device such as a finger or a stylus, or a voice command input by the user, or a specific gesture input by the user, or other feasible input, which can be determined based on actual usage requirements and is not limited in the embodiment of the present application.

[0157] Step 802: The electronic device displays at least one first state indicator and at least one second state indicator in response to a fifth input.

[0158] In the embodiment of the present application, the at least one first state identifier is used to indicate the action state corresponding to the first element, and the at least one second state identifier is used to indicate the action state corresponding to the second element.

[0159] Optionally, in an embodiment of the present application, the electronic device may display the at least one first state indicator and the at least one second state indicator in the first video screen through a pop-up window; or, the electronic device may display the at least one first state indicator and the at least one second state indicator in a blank area in the first video screen.

[0160] Preferably, the electronic device may display at least one first state indicator via a pop-up window around the first element, and may display at least one second state indicator via a pop-up window around the second element.

[0161] Optionally, in the embodiment of the present application, the above-mentioned status identification can be any one of the following: a text identification, an image identification, a symbol identification or an expression identification, etc. The specific identification can be determined according to the use requirements, and the embodiment of the present application does not limit it.

[0162] Step 803: The electronic device receives a sixth input of the user regarding the first state identifier and the second state identifier.

[0163] In the embodiment of the present application, the first state identifier is any state identifier among at least one first state identifier, and the second state identifier is any state identifier among at least one second state identifier.

[0164] In the embodiment of the present application, the sixth input is used to select a first state identifier from at least one first state identifier, and to select a second state identifier from at least one second state identifier.

[0165] Optionally, in an embodiment of the present application, the sixth input includes but is not limited to: a click input of the first state identifier and the second state identifier by a user through a touch device such as a finger or a stylus, or a voice command input by the user, or a specific gesture input by the user, or other feasible input, which can be determined based on actual usage requirements and is not limited in the embodiment of the present application.

[0166] Step 804: In response to the sixth input, the electronic device establishes an association relationship between a first action state corresponding to the first state identifier and a second action state corresponding to the second state identifier.

[0167] It can be understood that the above-mentioned association relationship is the above-mentioned first association relationship.

[0168] For example, in combination Figure 2 ,like Fig.11AAs shown, after the mobile phone determines that the first element is "little girl", the user can click and input the second element "puppy", so that the mobile phone can display the three first state identifiers corresponding to the first element "little girl", and the three first state identifiers are respectively: laughing state identifier, smiling state identifier and sad state identifier, and display the three second state identifiers corresponding to the second element "puppy", and the three second state identifiers are respectively the baring teeth state identifier, the sticking out tongue state identifier and the wagging tail state identifier; then, as shown in FIG. Fig. 11B As shown, the user can click and input the laughing state identifier and the wagging tail state identifier, so that the electronic device can associate the laughing state corresponding to the laughing state identifier of the little girl with the wagging tail state corresponding to the wagging tail state identifier of the puppy to obtain the above-mentioned association relationship.

[0169] It can be understood that the electronic device can establish multiple association relationships between the state of the first screen element and the state of the second screen element. The specific process can be found in the above embodiment, and will not be described again here to avoid repetition.

[0170] In an embodiment of the present application, the electronic device can establish an association relationship between the state of the first element and the state of the second element based on the user's manual input, so that the dynamic effect in the obtained video can meet the user's needs, and there is no need to edit the video after obtaining the video, thereby improving the efficiency of video editing and the flexibility of video recording of the electronic device.

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

[0172] It should be noted that 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, the 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.

[0173] Fig.12 A possible structural diagram of a video recording device involved in an embodiment of the present application is shown. Fig.12 As shown, the video recording device 70 may include: a receiving module 71 , a display module 72 and a generating module 73 .

[0174] The receiving module 71 is used to receive a first input from a user in a first video screen during video recording. The display module 72 is used to display a first element in response to the first input received by the receiving module 71. The generating module 73 is used to generate a first video based on the first element and the first video screen.

[0175] In a possible implementation, the generation module 73 is specifically configured to generate a second video picture based on the first element and picture parameters corresponding to the first video picture; and fuse the second video picture with the first video picture to generate the first video.

[0176] In a possible implementation, the first video screen includes a first control. The receiving module 71 is specifically used to receive a first input of the user to the first control. The display module 72 is specifically used to display a first input box in response to the first input, and obtain a first element input by the user in the first input box and display timing information corresponding to the first element; and display the first element. The generating module 73 is used to display the first element in the first video screen at a time corresponding to the display timing information, and generate a first video.

[0177] In a possible implementation, the first video screen includes a second control. The receiving module 71 is further used to receive a second input from the user to the second control before receiving the first input from the user in the first video screen. The display module 72 is used to display at least one element identifier in response to the second input received by the receiving module 71, wherein the element indicated by the at least one element identifier is an element recommended based on the screen content of the first video screen. The receiving module 71 is specifically used to receive a first input from the user to a first element identifier among the at least one element identifier; wherein the element indicated by the first element identifier is the first element.

[0178] In a possible implementation, the video recording device 70 provided in the embodiment of the present application also includes a determination module. The above-mentioned receiving module is also used for the generation module 73 to receive a third input of the user on the first element before generating the first video based on the first element and the first video screen. The determination module is used to determine the first position information of the first element in the first video screen based on the input trajectory of the third input in response to the third input received by the receiving module 71. The above-mentioned receiving module 71 is specifically used to display the first element to the position corresponding to the first position information in the first video screen based on the first position information to generate the first video.

[0179] In a possible implementation, the video recording device 70 provided in the embodiment of the present application also includes an acquisition module; the first video screen includes a third control. The receiving module 71 is also used for the generation module to receive a fourth input of the user to the third control before generating the first video based on the first element and the first video screen. The acquisition module is used to obtain a first association relationship between the first action state and the second action state based on the first element and the second element in response to the fourth input received by the receiving module 71, wherein the second element is an element in the first video screen that matches the type of the first element, the first action state is an action state corresponding to the first element, and the second action state is an action state that matches the first action state, and the second action state is an action state corresponding to the second element. The generation module 73 is specifically used to change the action state of the second element in the first video screen to the second action state based on the first association relationship to generate the first video when the action state of the first element changes to the first action state.

[0180] In a possible implementation, the video recording device 70 provided in the embodiment of the present application also includes a processing module. The above-mentioned receiving module 71 is also used to receive the fifth input of the user to the second element. The above-mentioned display module 72 is also used to display at least one first state identifier and at least one second state identifier in response to the fifth input received by the receiving module 71, wherein the at least one first state identifier is used to indicate the action state corresponding to the first element, and the at least one second state identifier is used to indicate the action state corresponding to the second element. The above-mentioned receiving module 71 is also used to receive the sixth input of the user to the first state identifier and the second state identifier, wherein the first state identifier is any state identifier among the at least one first state identifier, and the second state identifier is any state identifier among the at least one second state identifier. The processing module is used to establish an association relationship between the first action state corresponding to the first state identifier and the second action state corresponding to the second state identifier in response to the sixth input received by the receiving module 71.

[0181] The embodiment of the present application provides a video recording device, which can receive a first input from a user in a first video screen during the process of recording a video; then, in response to the first input, a first element is displayed, and a first video is generated based on the first element and the first video screen. In this solution, during the process of recording a video, since the user can directly make a first input in the video recording screen, that is, the above-mentioned first video screen, the first element is displayed based on the first input, that is, the user's adjustment requirements for the video, so that the electronic device can directly generate the first video based on the first element and the first video screen; thereby, the user can adjust the video during video recording without the need to edit the video later, thereby improving the efficiency of obtaining a video that meets the user's needs.

[0182] 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 mobile 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.

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

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

[0185] Alternatively, if Fig.13 As shown, an embodiment of the present application further provides an electronic device 90, including a processor 91 and a memory 92, wherein the memory 92 stores programs or instructions that can be executed on the processor 91, and when the program or instructions are executed by the processor 91, 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.

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

[0187] Fig.14 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

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

[0189] 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. Fig.14 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.

[0190] The user input unit 107 is used to receive a first input from a user in a first video frame during video recording. The display unit 106 is used to display a first element in response to the first input. The processor 110 is used to generate a first video based on the first element and the first video frame.

[0191] Optionally, in an embodiment of the present application, the processor 110 is specifically used to generate a second video picture based on the first element and the picture parameters corresponding to the first video picture; and fuse the second video picture with the first video picture to generate the first video.

[0192] Optionally, in an embodiment of the present application, the first video screen includes a first control. The user input unit 107 is specifically used to receive a first input of the user to the first control. The processor 110 is specifically used to respond to the first input, display the first input box, and obtain the first element input by the user in the first input box and the display timing information corresponding to the first element; and display the first element, and display the first element in the first video screen at the time corresponding to the display timing information, to generate the first video.

[0193] Optionally, in an embodiment of the present application, the first video screen includes a second control. The user input unit 107 is further used to receive a second input from the user to the second control before receiving the first input from the user in the first video screen. The display unit 106 is further used to display at least one element identifier in response to the second input, and the element indicated by the at least one element identifier is an element recommended based on the screen content of the first video screen. The user input unit 107 is specifically used to receive a first input from the user to a first element identifier in at least one element identifier; wherein the element indicated by the first element identifier is the first element.

[0194] Optionally, in an embodiment of the present application, the user input unit 107 is further used to receive a third input of the user to the first element before generating the first video based on the first element and the first video screen. The processor 110 is also used to determine the first position information of the first element in the first video screen based on the input trajectory of the third input in response to the third input. The processor 110 is specifically used to display the first element at a position corresponding to the first position information in the first video screen based on the first position information to generate the first video.

[0195] Optionally, in an embodiment of the present application, the first video screen includes a third control. The user input unit 107 is also used to receive a fourth input of the user to the third control before generating the first video based on the first element and the first video screen. The processor 110 is also used to obtain a first association relationship between the first action state and the second action state based on the first element and the second element in response to the fourth input, the second element being an element in the first video screen that matches the type of the first element, the first action state being an action state corresponding to the first element, the second action state being an action state that matches the first action state, and the second action state being an action state corresponding to the second element. The processor 110 is specifically used to generate the first video by changing the action state of the second element in the first video screen to the second action state based on the first association relationship when the action state of the first element changes to the first action state.

[0196] Optionally, in an embodiment of the present application, the user input unit 107 is further used to receive a fifth input from the user for the second element. The display unit 106 is further used to display at least one first state identifier and at least one second state identifier in response to the fifth input, wherein the at least one first state identifier is used to indicate the action state corresponding to the first element, and the at least one second state identifier is used to indicate the action state corresponding to the second element. The user input unit 107 is further used to receive a sixth input from the user for the first state identifier and the second state identifier, wherein the first state identifier is any state identifier among the at least one first state identifier, and the second state identifier is any state identifier among the at least one second state identifier. The processor 110 is further used to establish an association relationship between a first action state corresponding to the first state identifier and a second action state corresponding to the second state identifier in response to the sixth input.

[0197] The embodiment of the present application provides an electronic device, which can receive a first input from a user in a first video screen during a video recording process; then, in response to the first input, a first element is displayed, and a first video is generated based on the first element and the first video screen. In this solution, during the video recording process, since the user can directly make a first input in the video recording screen, that is, the above-mentioned first video screen, the first element is displayed based on the first input, that is, the user's adjustment requirements for the video, so that the electronic device can directly generate the first video based on the first element and the first video screen; thereby, the user can adjust the video during the video recording without the need to edit the video later, thereby improving the efficiency of obtaining a video that meets the user's needs.

[0198] The electronic device provided in the embodiment of the present application can implement each process implemented in the above method embodiment and can achieve the same technical effect. To avoid repetition, it will not be described here.

[0199] The beneficial effects of various implementations in this embodiment can be specifically referred to the beneficial effects of the corresponding implementations in the above method embodiment. To avoid repetition, they will not be described again here.

[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, the various processes of the above-mentioned method embodiment are 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 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 variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises one..." does not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be noted that the scope of the method and device in the embodiment 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: During the video recording process, receiving a first input from a user in a first video screen; In response to the first input, a first element is displayed, and a first video is generated based on the first element and the first video frame.

2. The method according to claim 1, characterized in that The generating a first video based on the first element and the first video picture includes: generating a second video picture based on the first element and a picture parameter corresponding to the first video picture; The second video frame and the first video frame are merged to generate the first video.

3. The method according to claim 1, characterized in that The first video screen includes a first control; The receiving a first input from a user in a first video screen includes: receiving the first input of the user to the first control; The step of displaying a first element in response to the first input, and generating a first video based on the first element and the first video frame, comprises: In response to the first input, a first input box is displayed, and the first element input by the user in the first input box and display timing information corresponding to the first element are acquired; The first element is displayed, and the first element is displayed in the first video screen at a time corresponding to the display timing information to generate the first video.

4. The method according to claim 1, characterized in that The first video screen includes a second control; Before receiving a first input from a user in a first video screen, the method further includes: receiving a second input from a user on the second control; In response to the second input, displaying at least one element identifier, wherein the element indicated by the at least one element identifier is an element recommended based on the screen content of the first video screen; The receiving a first input from a user in a first video screen includes: receiving the first input of the user for a first element identifier among the at least one element identifier; The element indicated by the first element identifier is the first element.

5. The method according to claim 1 or 4, characterized in that: Before generating the first video based on the first element and the first video picture, the method further includes: receiving a third input from a user on the first element; In response to the third input, determining first position information of the first element in the first video picture based on an input trajectory of the third input; The generating a first video based on the first element and the first video picture includes: Based on the first position information, the first element is displayed at a position corresponding to the first position information in the first video screen to generate the first video.

6. The method according to claim 1, characterized in that The first video screen includes a third control; Before generating the first video based on the first element and the first video picture, the method further includes: receiving a fourth input from a user to the third control; In response to the fourth input, a first association relationship between a first action state and a second action state is acquired based on the first element and the second element, the second element being an element in the first video screen that matches the type of the first element, the first action state being an action state corresponding to the first element, the second action state being an action state that matches the first action state, and the second action state being an action state corresponding to the second element; The generating a first video based on the first element and the first video picture includes: Based on the first association relationship, when the action state of the first element changes to the first action state, the action state of the second element in the first video screen is changed to the second action state to generate the first video.

7. The method according to claim 6, characterized in that The method further comprises: receiving a fifth input from the user regarding the second element; In response to the fifth input, display at least one first state identifier and at least one second state identifier, wherein the at least one first state identifier is used to indicate an action state corresponding to the first element, and the at least one second state identifier is used to indicate an action state corresponding to the second element; receiving a sixth input of a first state identifier and a second state identifier from a user, wherein the first state identifier is any state identifier among the at least one first state identifier, and the second state identifier is any state identifier among the at least one second state identifier; In response to the sixth input, an association relationship is established between a first action state corresponding to the first state identifier and a second action state corresponding to the second state identifier.

8. A video recording device, characterized in that: The video recording device comprises: a receiving module, a display module and a generating module; The receiving module is used to receive a first input from a user in a first video screen during video recording; The display module is configured to display a first element in response to the first input received by the receiving module; The generating module is used to generate a first video based on the first element and the first video frame.

9. The device according to claim 8, characterized in that The generating module is specifically used to generate a second video picture based on the first element and the picture parameters corresponding to the first video picture; and fuse the second video picture with the first video picture to generate the first video.

10. The device according to claim 8, characterized in that The first video screen includes a first control; The receiving module is specifically configured to receive the first input of the user to the first control; The display module is specifically configured to display a first input box in response to the first input, obtain the first element input by the user in the first input box and the display timing information corresponding to the first element; and display the first element; The generating module is used to display the first element in the first video screen at a time corresponding to the display timing information to generate the first video.

11. The device according to claim 8, characterized in that The first video screen includes a second control; The receiving module is further configured to receive a second input of the user to the second control before receiving the first input of the user in the first video screen; The display module is configured to display at least one element identifier in response to the second input received by the receiving module, wherein the element indicated by the at least one element identifier is an element recommended based on the picture content of the first video picture; The receiving module is specifically configured to receive the first input of the user for a first element identifier among the at least one element identifier; wherein the element indicated by the first element identifier is the first element.

12. The device according to claim 8 or 11, characterized in that The video recording device also includes a determination module; The receiving module is further configured to receive a third input of the user on the first element before the generating module generates the first video based on the first element and the first video picture; The determining module is configured to determine, in response to the third input received by the receiving module, first position information of the first element in the first video picture based on an input track of the third input; The receiving module is specifically configured to display the first element at a position corresponding to the first position information in the first video screen based on the first position information, so as to generate the first video.

13. The device according to claim 8, characterized in that The video recording device further includes an acquisition module; the first video screen includes a third control; The receiving module is further configured to receive a fourth input of the user to the third control before the generating module generates the first video based on the first element and the first video screen; The acquisition module is used for acquiring, in response to the fourth input received by the receiving module, a first association relationship between a first action state and a second action state based on the first element and a second element, wherein the second element is an element in the first video screen that matches the type of the first element, the first action state is an action state corresponding to the first element, the second action state is an action state that matches the first action state, and the second action state is an action state corresponding to the second element; The generation module is specifically used to change the action state of the second element in the first video screen to the second action state based on the first association relationship, when the action state of the first element changes to the first action state, to generate the first video.

14. The device according to claim 13, characterized in that The video recording device also includes a processing module; The receiving module is further configured to receive a fifth input from a user on the second element; The display module is further configured to display at least one first state identifier and at least one second state identifier in response to the fifth input received by the receiving module, wherein the at least one first state identifier is used to indicate an action state corresponding to the first element, and the at least one second state identifier is used to indicate an action state corresponding to the second element; The receiving module is further used to receive a sixth input of a first state identifier and a second state identifier from a user, wherein the first state identifier is any state identifier among the at least one first state identifier, and the second state identifier is any state identifier among the at least one second state identifier; The processing module is used to establish an association relationship between a first action state corresponding to the first state identifier and a second action state corresponding to the second state identifier in response to the sixth input received by the receiving module.

15. An electronic device, characterized in that: The method comprises a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the video recording method as claimed in any one of claims 1 to 7.

16. A readable storage medium, characterized in that: The readable storage medium stores a program or an instruction, and when the program or the instruction is executed by the processor, the steps of the video recording method according to any one of claims 1 to 7 are implemented. 17 . A computer program product, wherein the computer program product is stored in the readable storage medium, and wherein the computer program product is executed by at least one processor to implement the video recording method according to claim 1 .

Citation Information

Patent Citations

  • Video recording method and mobile terminal

    CN106657814A

  • Special effect processing method, computer equipment and computer storage medium

    CN110611776A

  • Video synthesis method and device, and computer readable storage medium

    CN112468728A

  • Makeup special effect drawing method and device, electronic equipment and storage medium

    CN114529445A

  • Special effect video generation method and device, electronic equipment and storage medium

    CN114598823A