Video recording method and device and electronic equipment

By automatically detecting whether the recording screen is wrong and re-recording automatically in electronic devices, the efficiency reduction problem caused by errors during video recording is solved, and the generation and efficient recording of error-free complete videos are achieved.

CN119402692AActive Publication Date: 2025-02-07VIVO MOBILE COMM CO LTD

Patent Information

Application Number
CN202411496796.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-25
Publication Date
2025-02-07
Estimated Expiration
2044-10-25

AI Technical Summary

Technical Problem

During the video recording process, especially when recording videos with a longer duration, users often experience recording errors, which leads to users who need to re-record the entire video or edit the video to correct the error, which reduces the efficiency of video recording.

Method used

By automatically detecting whether the recording screen is in an electronic device, and automatically jumping to the appropriate time point before the error occurs and re-recording is generated to generate a complete video without errors.

Benefits of technology

There is no need for users to re-record the entire video, nor does it require users to edit videos, which reduces the time-consuming process of recording videos and improves the efficiency of video recording.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119402692A_ABST
    Figure CN119402692A_ABST
Patent Text Reader

Abstract

The invention discloses a video recording method and device and electronic equipment, and belongs to the technical field of video recording. The video recording method is executed by the electronic equipment, and comprises the following steps: in a video recording process, determining a rerecording time point according to a recorded first video under the condition that a rerecording condition is met; recording a second video by taking the rerecording time point as a starting time point; and generating a third video according to the first video and the second video, wherein the third video comprises the first video segment before the rerecording time point in the first video and the second video.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] Currently, as users use mobile terminals more and more frequently, users use cameras to record their daily lives and record videos more and more frequently.

[0003] In the process of video recording, especially when recording long videos, users often make recording errors. In order to achieve the best effect for the final generated video, after a recording error, users often re-record the entire video or use video editing to replace the erroneous video to obtain a complete video without error content.

[0004] However, deleting the original video with errors and re-recording the entire video will cost the user time, and using video editing to replace the erroneous video requires the user to have a certain video editing foundation and requires the user to spend time repeatedly editing and viewing, thus reducing the efficiency of video recording. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide a video recording method and device, and an electronic device, which can improve the efficiency of video recording.

[0006] In a first aspect, an embodiment of the present application provides a video recording method, which is executed by an electronic device. The video recording method includes: during video recording, when a re-recording condition is met, determining a re-recording time point based on a first video that has been recorded; recording a second video with the re-recording time point as a starting time point; generating a third video based on the first video and the second video, the third video including a first video segment in the first video that is located before the re-recording time point and the second video.

[0007] In a second aspect, an embodiment of the present application provides a video recording device, which is applied to an electronic device, and the video recording device includes: a processing unit, which is used to determine a re-recording time point according to a recorded first video when a re-recording condition is met during video recording; a recording unit, which is used to record a second video with the re-recording time point as a starting time point; and a generation unit, which is used to generate a third video based on the first video and the second video, the third video including a first video segment in the first video that is located before the re-recording time point and the second video.

[0008] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the video recording method of 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. When the program or instruction is executed by a processor, the steps of the video recording method of the first aspect are implemented.

[0010] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, wherein the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the steps of the video recording method of 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 steps of the video recording method of the first aspect.

[0012] In the video recording method provided in the embodiment of the present application, during the process of recording a video, if the re-recording condition is met, the re-recording time point is determined according to the first video that has been recorded; the second video is recorded with the re-recording time point as the starting time point; the third video is generated according to the first video and the second video, and the third video includes the first video segment and the second video in the first video that are located before the re-recording time point. Through the above-mentioned video recording method, during the process of recording a video, if the re-recording condition is met, the electronic device can automatically jump to the appropriate time point in the recorded video for re-recording according to the content of the recorded video, and automatically generate a complete video without errors according to the videos recorded before and after the re-recording operation. In this way, the user does not need to re-record the entire video, nor does the user need to perform video editing, which reduces the time spent by the user in recording the video and improves the efficiency of video recording. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 One of the flowcharts of the video recording method provided in the embodiment of the present application;

[0014] Figure 2 One of the schematic diagrams of the operation interface of the video recording method provided in the embodiment of the present application;

[0015] Figure 3 The second schematic diagram of the operation interface of the video recording method provided in the embodiment of the present application;

[0016] Figure 4 The third schematic diagram of the operation interface of the video recording method provided in the embodiment of the present application;

[0017] Figure 5 A fourth schematic diagram of the operation interface of the video recording method provided in an embodiment of the present application;

[0018] Figure 6The second flowchart of the video recording method provided in the embodiment of the present application;

[0019] Figure 7 A structural block diagram of a video recording device provided in an embodiment of the present application;

[0020] Figure 8 A structural block diagram of an electronic device provided in an embodiment of the present application;

[0021] Fig. 9 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

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

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

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

[0025] like Figure 1 As shown, the embodiment of the present application provides a video recording method, which may include the following S102 to S106:

[0026] S102: During video recording, when a re-recording condition is met, a re-recording time point is determined according to the first video that has been recorded.

[0027] The video recording method proposed in the embodiment of the present application is executed by an electronic device, which may specifically be a smart electronic device with a video recording function, such as a smart phone, a tablet computer, a laptop computer, and a smart watch, and is not specifically limited here.

[0028] The electronic device can automatically determine whether the recorded video meets the re-recording conditions based on the content of the recorded video. For example, if it is identified that the recorded video has abnormal problems such as incorrect user expressions, incorrect user voices, and incorrect user actions, it is determined that the recorded video meets the re-recording conditions and automatically starts the re-recording operation. The user can also start the re-recording operation of the electronic device through interactive operations with the electronic device, so that the electronic device re-records part of the previously recorded video.

[0029] Furthermore, the first video is a video that has been recorded by the electronic device before the re-recording operation is started.

[0030] Furthermore, the above-mentioned re-recording time point is a certain middle time point of the first video, and the re-recording time point can be specifically determined according to the video content of the first video.

[0031] Specifically, in the video recording method provided in the embodiment of the present application, when a user is recording a video through an electronic device, when the electronic device recognizes that the recorded first video meets the re-recording conditions or the electronic device receives input from the user to start a re-recording operation, the electronic device stops recording the video and selects a suitable time point from the first video as the re-recording time point to start re-recording the video based on the video content of the recorded first video.

[0032] S104: Recording a second video with the re-recording time point as the starting time point.

[0033] The second video is a video recorded by the electronic device after the re-recording operation is started, and the starting time point of the second video is the above-mentioned re-recording time point.

[0034] Furthermore, some video segments in the second video overlap with some video segments in the first video. Specifically, the start segment of the second video overlaps with the end segment of the first video, and the overlap duration is the duration between the re-recording time point and the end time point of the first video.

[0035] Specifically, in the video recording method provided in an embodiment of the present application, after the electronic device selects a suitable time point from the recorded first video as the re-recording time point for starting to re-record the video, the electronic device continues to record the second video with the re-recording time point as the starting time point.

[0036] S106: Generate a third video according to the first video and the second video.

[0037] The third video includes the first video segment and the second video before the re-recording time point in the first video.

[0038] Specifically, in the video recording method provided in the embodiment of the present application, after recording the second video, the electronic device automatically encodes the second video and the first video segment in the first video before the re-recording time point into the same video file, thereby generating a complete third video. In this way, in the process of recording a video, if the re-recording condition is met, the electronic device can automatically jump to the appropriate time point in the recorded video for re-recording based on the content of the recorded video, and automatically generate a complete video without errors based on the videos recorded before and after the re-recording operation, without the user having to re-record the entire video or perform video editing, thereby reducing the time spent by the user in recording the video and improving the efficiency of video recording.

[0039] The above-mentioned video recording method provided in the embodiment of the present application, during the process of recording a video, when the re-recording condition is met, determines the re-recording time point according to the recorded first video; records the second video with the re-recording time point as the starting time point; generates a third video according to the first video and the second video, and the third video includes the first video segment and the second video in the first video that are located before the re-recording time point. Through the above-mentioned video recording method, during the process of recording a video, when the re-recording condition is met, the electronic device can automatically jump to the appropriate time point in the recorded video for re-recording according to the content of the recorded video, and automatically generate a complete video without errors according to the videos recorded before and after the re-recording operation. In this way, the user does not need to re-record the entire video, nor does the user need to perform video editing, which reduces the time spent by the user in recording the video and improves the efficiency of video recording.

[0040] In the embodiment of the present application, the video recording method further includes the following S108 to S112:

[0041] S108: During the video recording process, user characteristic information of at least one user in the recording interface is detected.

[0042] The user characteristic information includes at least one of the following or a combination thereof: voice characteristic information, action characteristic information and expression characteristic information.

[0043] Specifically, in the video recording method provided in an embodiment of the present application, when a user is recording a video through an electronic device, the electronic device can automatically detect user feature information such as voice feature information, action feature information, and expression feature information of at least one user in the recording interface to detect whether a recording error occurs for at least one user.

[0044] S110: When the user characteristic information indicates that an abnormality occurs in the first recorded video, display a first prompt message.

[0045] The first prompt information is used to prompt the user that an abnormality has occurred in the first video that has been recorded, and to ask the user whether to re-record the video.

[0046] Specifically, in the video recording method provided in the embodiment of the present application, the electronic device identifies and analyzes user characteristic information of at least one detected user, and when it is identified that the user characteristic information of any one user indicates that an abnormality has occurred in a first recorded video, a UI (User Interface) prompt is performed, and a first prompt information is displayed to the user to prompt the user that an abnormality has occurred in the first recorded video, and the user is asked whether to re-record the video.

[0047] For example, when any user is identified to utter a voice such as "Oops, that's wrong", it is determined that there is an abnormality in the first recorded video, and a first prompt message is displayed to the user; or, when any user is identified to show an embarrassed smile, it is determined that there is an abnormality in the first recorded video, and a first prompt message is displayed to the user; or, when any user is identified to perform actions such as covering his mouth, it is determined that there is an abnormality in the first recorded video, and a first prompt message is displayed to the user.

[0048] In actual application, when displaying the first prompt information to the user, the first prompt information can be displayed to the user through a pop-up window, or through a bottom banner or a top banner, so as to avoid blocking the recording interface while prompting the user to re-record the video, thereby not affecting the user's video recording. In addition, if no feedback on the first prompt information from the user is received within a period of time, such as 1 second or 2 seconds, the first prompt information is automatically hidden so as not to affect the user's video recording.

[0049] S112: When receiving a confirmation input of the user to the first prompt information, determining that the user starts a re-recording operation.

[0050] Specifically, in the video recording method provided in the embodiment of the present application, after displaying the first prompt information to the user, if the electronic device receives the user's confirmation input for the first prompt information, such as the electronic device receives the user's single-click input for the "OK" button in the first prompt information, the electronic device determines that the user has started the re-recording operation, and selects a suitable re-recording time point from the recorded first video to start the video re-recording. In this way, during the video recording process, it automatically detects whether the recording screen is wrong, and prompts the user to re-record the video in time when the recording screen is wrong, so as to avoid the user wasting time to continue recording the problematic video, and can also re-record the video after obtaining the user's consent, so as to avoid unnecessary re-recording operations, thereby improving the efficiency of video recording.

[0051] For example, a user wants to record a lecture or teaching video. Figure 2As shown, the user turns on the camera of the electronic device, enters the recording mode of the camera, and opens the recording interface 202 to start recording. If the user has prepared a speech, the user can turn on the teleprompter function of the camera to display the first content 204, i.e., the speech, in the recording interface 202 of the electronic device to assist the user in recording. Furthermore, during the video recording process, the electronic device can automatically detect the user's voice feature information, action feature information, and expression feature information in the recording interface. Further, as Figure 3 As shown, when the electronic device recognizes that the user has uttered the voice "Oops, that's wrong", the electronic device determines that the recorded video is abnormal, and displays the first prompt information 206 to the user in the form of a pop-up window or a bottom banner in the recording interface 202 to prompt the user that the recorded video is abnormal, and asks the user whether to re-record the video. Further, the electronic device receives the user's single-click input of the "OK" button in the first prompt information 206, determines that the user has started the re-recording operation, and selects a suitable re-recording time point from the recorded video to start re-recording the video.

[0052] In the above-mentioned embodiment provided by the present application, during the process of recording a video, the user characteristic information of at least one user in the recording interface is detected; when the user characteristic information indicates that the first video that has been recorded is abnormal, a first prompt information is displayed, and the first prompt information is used to prompt the user to re-record the video; when the user confirms the first prompt information, it is determined that the user starts the re-recording operation; wherein the user characteristic information includes at least one of the following or a combination thereof: voice characteristic information, action characteristic information, and expression characteristic information. In this way, during the process of recording a video, it is automatically detected whether the recording screen is wrong, and when the recording screen is wrong, the user is promptly prompted to re-record the video, so as to avoid the user wasting time to continue recording the problematic video, and the video can be re-recorded after obtaining the user's consent, so as to avoid unnecessary re-recording operations, thereby improving the efficiency of video recording.

[0053] In the embodiment of the present application, after the above S108, the above video recording method further includes the following S114:

[0054] S114: When the user characteristic information is consistent with the preset characteristic information, it is determined that the user starts the re-recording operation.

[0055] The user characteristic information includes at least one of the following or a combination thereof: voice characteristic information, action characteristic information and expression characteristic information.

[0056] Furthermore, the preset characteristic information includes at least one of the following: preset voice information, preset action information and preset expression information.

[0057] Specifically, in the video recording method provided in the embodiment of the present application, the user can customize in advance the preset feature information such as preset voice information, preset action information, and preset expression information used to start the re-recording operation. On this basis, in the process of the user recording a video through an electronic device, the electronic device can automatically detect the user feature information such as voice feature information, action feature information, and expression feature information of at least one user in the recording interface, and compare the detected user feature information with the preset feature information set in advance by the user. Further, in the case where the electronic device detects that the user feature information is consistent with the preset feature information set in advance by the user, the electronic device determines that the user has started the re-recording operation, and selects a suitable re-recording time point from the first video that has been recorded to start the video re-recording. In this way, in the process of recording a video, the user can control the electronic device to re-record the video at any time through specific voice, action or expression, without the user having to manually stop recording and re-record, thereby improving the efficiency of video recording.

[0058] In the above embodiment provided by the present application, after detecting the user characteristic information of at least one user in the recording interface, if the user characteristic information is consistent with the preset characteristic information, it is determined that the user has started the re-recording operation; wherein the preset characteristic information includes at least one of the following: preset voice information, preset action information, and preset expression information. In this way, during the video recording process, the user can control the electronic device to re-record the video at any time through specific voice, action or expression, without the user having to manually stop recording and re-record, thereby improving the efficiency of video recording.

[0059] In the embodiment of the present application, the electronic device includes a foldable screen, and the video recording method further includes the following S116:

[0060] S116: When receiving a folding input of the folding screen from the user, determining whether the user starts a re-recording operation.

[0061] Specifically, in the video recording method provided in the embodiment of the present application, when a user is recording a video through an electronic device, if the electronic device has a folding screen, the user can control the electronic device to start a re-recording operation to re-record the video by folding the folding screen. In this way, during the video recording process, the user can control the electronic device to re-record the video at any time by folding the folding screen, realizing a one-button video re-recording interaction mode and improving the efficiency of video recording.

[0062] In the above embodiment provided by the present application, the electronic device includes a folding screen, and when receiving a folding input of the folding screen from the user, it is determined that the user has started a re-recording operation. In this way, during the video recording process, the user can control the electronic device to re-record the video at any time by folding the folding screen, realizing a one-button video re-recording interaction mode and improving the efficiency of video recording.

[0063] In the embodiment of the present application, the step of determining the re-recording time point according to the recorded first video may specifically include the following S118 to S122:

[0064] S118: Detect the second video segment located at the end of the first video.

[0065] The end time point of the first video segment is consistent with the end time point of the second video segment.

[0066] Furthermore, the user can set the duration of the second video segment according to actual conditions. For example, the second video segment can be the last 5 seconds or 10 seconds of the first video. There is no specific limitation here.

[0067] Further, the second video segment is a video clip recorded before the re-recording operation is started, and the second video segment includes video content before and after the re-recording time point; the second video is a video clip recorded after the re-recording operation is started, and the second video only includes video content after the re-recording time point. The second video segment is different from the second video.

[0068] Specifically, in the video recording method provided in the embodiment of the present application, when a user is recording a video through an electronic device, when the electronic device recognizes that the recorded first video meets the re-recording conditions or the electronic device receives input from the user to start a re-recording operation, the electronic device stops recording the video, obtains a second video segment at the end of the first video, and identifies and detects the continuity of the user's voice and actions in the second video segment to detect whether there are pauses in the user's voice and actions in the second video segment.

[0069] S120: When a pause point is detected in the second video segment, the pause point is determined as a re-recording time point.

[0070] Among them, the above-mentioned pause point can be the user's voice pause point, for example, the pause point after the user finishes a speech, or the pause point after the user finishes singing a line of lyrics. The above-mentioned pause point can also be the user's action pause point, for example, the pause point when the user completes a single movement of a dance move, and no specific limitation is made here.

[0071] Specifically, in the video recording method provided in the embodiment of the present application, when the electronic device detects a voice pause point or an action pause point of the user in the second video segment, the electronic device determines the voice pause point or the action pause point as the re-recording time point.

[0072] S122: When it is detected that there is no pause point in the second video segment, determine the first time point in the second video segment as the re-recording time point.

[0073] The first time point is close to the end time point of the second video segment. The first time point may be a time point 1 second or 2 seconds apart from the end time point of the second video segment, and is not specifically limited here.

[0074] Specifically, in the video recording method provided in the embodiment of the present application, when the electronic device detects that there is no pause point in the second video segment, the electronic device directly determines the first time point in the second video segment that is close to the end time point as the re-recording time point. In this way, during the video recording process, when the re-recording condition is met, the electronic device can select a suitable re-recording time point from the recorded video to start video re-recording based on the content of the recorded video, thereby ensuring the accuracy of the determined re-recording time point, avoiding the user from re-recording too long a video, reducing the time consumed by the user in recording the video, and improving the efficiency of video recording.

[0075] In the above-mentioned embodiment provided by the present application, in the process of determining the re-recording time point according to the recorded first video, the second video segment located at the end of the first video is detected; when a pause point is detected in the second video segment, the pause point is determined as the re-recording time point; when no pause point is detected in the second video segment, the first time point in the second video segment is determined as the re-recording time point; wherein the pause point includes at least one of the following: a voice pause point, an action pause point. In this way, in the process of recording a video, when the re-recording conditions are met, the electronic device can select a suitable re-recording time point from the recorded video to start re-recording the video according to the content of the recorded video, thereby ensuring the accuracy of the determined re-recording time point, avoiding users from re-recording too long videos, reducing the time spent by users in recording videos, and improving the efficiency of video recording.

[0076] In the embodiment of the present application, before the above S104, the above video recording method may further include the following S124 to S128:

[0077] S124: Playing a third video segment located at the end of the first video segment in the recording interface.

[0078] The first video segment is a video segment in the first video that is located before the re-recording time point.

[0079] Furthermore, the end time point of the first video segment is consistent with the end time point of the third video segment.

[0080] Furthermore, the second video segment includes video content before and after the re-recording time point, and the third video segment includes only video content before the re-recording time point; the second video segment includes at least part of the third video segment.

[0081] In actual application, the user can set the length of the third video segment according to actual conditions. For example, the third video segment can be the last 3 seconds or 5 seconds of the first video segment, and no specific limitation is made here.

[0082] Specifically, in the video recording method provided in the embodiment of the present application, after the electronic device selects a suitable time point from the recorded first video as the re-recording time point for starting to re-record the video, the electronic device plays the third video segment located at the end of the first video segment on the recording interface, that is, plays the last video segment recorded before the re-recording time point, to inform the user of the previously recorded picture content, so that the user can prepare in advance for the subsequent picture content to be recorded, thereby ensuring the smoothness of the video recording and improving the picture smoothness of the third video finally obtained.

[0083] S126: When the first content is displayed in the recording interface, the first content is adjusted to the second content corresponding to the re-recording time point.

[0084] Among them, the first content and the second content are display contents that assist the user in recording videos, and the first content and the second content are display states of the display contents in the recording interface at different time points.

[0085] In actual application, the first content and the second content may specifically be speech manuscripts, lyrics books, etc. used for prompting, and no specific limitation is made here.

[0086] Specifically, in the video recording method provided in the embodiment of the present application, after the electronic device selects a suitable time point from the recorded first video as the re-recording time point for starting to re-record the video, when the first content is displayed in the recording interface, the electronic device will adjust the first content to the second content corresponding to the re-recording time point, such as adjusting the speech back to the display state at the re-recording time point, to prepare for the user to re-record the video.

[0087] For example, Figure 4 As shown, after the electronic device selects a suitable time point from the recorded first video as the re-recording time point for starting to re-record the video, the last 3 seconds of the video segment before the re-recording time point in the first video is played, and the teleprompter in the recording interface 202 is adjusted from the first content back to the second content 208 corresponding to the re-recording time point. In this way, the recording interface 202 is returned to the display screen before the re-recording time point to inform the user which content to start re-recording from.

[0088] S128: Displaying a second prompt message on the recording interface.

[0089] The second prompt information is used to prompt the user to start preparing for re-recording.

[0090] Specifically, in the video recording method provided in an embodiment of the present application, after the electronic device selects a suitable time point from the recorded first video as the re-recording time point for starting to re-record the video, the electronic device will display a second prompt message on the recording interface to prompt the user to start preparing for re-recording.

[0091] In actual application, the second prompt information may include a countdown screen, a countdown animation, a progress bar animation, etc., to prompt the user of the start time of the electronic device re-recording the video, so that the user can perform actions accurately when the electronic device starts to re-record the video, thereby improving the smoothness of the recorded video.

[0092] For example, Figure 4 As shown, after the electronic device selects a suitable time point from the recorded first video as the re-recording time point for starting to re-record the video, the second prompt information 210 is displayed in the recording interface 202. The second prompt information 210 includes a countdown animation of three small dots to prompt the user of the start time of the electronic device to re-record the video, so that the user can perform actions accurately when the electronic device starts to re-record the video, thereby improving the fluency of the recorded video.

[0093] In the above-mentioned embodiment provided by the present application, before recording the second video with the re-recording time point as the starting time point, the third video segment at the end of the first video segment is played in the recording interface; when the first content is displayed in the recording interface, the first content is adjusted to the second content corresponding to the re-recording time point; and the second prompt information is displayed in the recording interface, and the second prompt information is used to prompt the user to start preparing for re-recording. In this way, before re-recording the video, the previously recorded screen content is played, the display content used for auxiliary recording in the recording interface is adjusted back to the display state at the re-recording time point, and the second prompt information for prompting the user to start preparing for re-recording is displayed, so that the user can prepare for the subsequent recording of the video, ensure the smoothness of the video recording, and improve the smoothness of the recorded video.

[0094] In the embodiment of the present application, before the above S104, the above video recording method may further include the following S130:

[0095] S130: When the re-recording time point is the first time point in the second video segment, adding a transition animation at the re-recording time point.

[0096] Specifically, in the video recording method provided in an embodiment of the present application, when the electronic device detects that there is no pause point in the second video segment, and thus directly determines the first time point close to the end time point in the second video segment as the re-recording time point, before the electronic device starts re-recording the video, the electronic device will add a transition animation for transition at the re-recording time point to ensure the smoothness of the video recording picture.

[0097] In the above embodiment provided by the present application, before recording the second video with the re-recording time point as the starting time point, a transition animation is added at the re-recording time point when the re-recording time point is the first time point in the second video segment. In this way, adding the transition animation for transition ensures the smoothness of the video recording screen.

[0098] In the embodiment of the present application, after the above S106, the above video recording method may further include the following S132 and S134:

[0099] S132: Pack and save a fourth video segment in the first video that is located after the re-recording time point and a fifth video segment in the third video that corresponds to the fourth video segment into a same video file.

[0100] The first video is a video that has been recorded by the electronic device before the re-recording operation is started.

[0101] Furthermore, the fourth video segment is a video segment in the first video that is located after the re-recording time point, that is, the fourth video segment is a video segment that contains errors and needs to be re-recorded.

[0102] Furthermore, the third video is a complete video without errors obtained by final recording.

[0103] Furthermore, the fifth video segment is a video segment in the third video corresponding to the fourth video segment, the start time points of the fourth video segment and the fifth video segment are both re-recording time points, and the fourth video segment and the fifth video segment have the same duration. That is, the fifth video segment is the start segment of the second video, and the fifth video segment is a video segment obtained by re-recording the fourth video segment containing an error.

[0104] Specifically, in the video recording method provided in the embodiment of the present application, after the recording is completed, the fourth video segment containing errors after the re-recording time point and the re-recorded fifth video segment are packaged into the same video file for storage, so as to facilitate the subsequent comparison and display of the fourth video segment and the fifth video segment.

[0105] S134: When playing the fifth video segment in the third video, synchronously play the fourth video segment.

[0106] Specifically, in the video recording method provided in the embodiment of the present application, after recording is completed, the user can view and share the recorded third video in the album. In the process of viewing the third video, when the user slides the progress bar of the third video to the fifth video segment, the electronic device will play the fourth video segment synchronously while playing the fifth video segment, so that the user can compare and view the contents of the fourth video segment and the fifth video segment.

[0107] In the above embodiment provided by the present application, after the third video is generated according to the first video and the second video, the fourth video segment in the first video located after the re-recording time point and the fifth video segment in the third video corresponding to the fourth video segment are packaged and saved into the same video file; when the fifth video segment in the third video is played, the fourth video segment is played synchronously. In this way, it is convenient for the user to compare and view the contents of the original video segment and the new video segment before and after the re-recording, and it is convenient for the user to select the appropriate video segment to be included in the finally generated video.

[0108] In the embodiment of the present application, the number of the fourth video segment and the fifth video segment is at least one, and the above S134 may specifically include the following S134a and S134b:

[0109] S134a: When the electronic device has only a single display screen, synchronously play at least one fourth video segment and at least one fifth video segment in different areas on the display screen.

[0110] There is at least one fourth video segment and at least one fifth video segment, that is, there is at least one re-recording time point, and there is a one-to-one correspondence between at least one re-recording time point, at least one fourth video segment, and at least one fifth video segment.

[0111] Specifically, in the video recording method provided in the embodiment of the present application, during the process of the electronic device synchronously playing the fifth video segment and the fourth video segment, when the electronic device has only a single display screen, the electronic device synchronously plays at least one fourth video segment and at least one fifth video segment in different areas within its display screen, so that the user can compare and view the contents of the fourth video segment and the fifth video segment.

[0112] S134b: When the electronic device has a first screen and a second screen, at least one fourth video segment is played on the first screen, and at least one fifth video segment is played on the second screen.

[0113] Specifically, in the video recording method provided in the embodiment of the present application, during the process of synchronously playing the fifth video segment and the fourth video segment by the electronic device, when the electronic device has a first screen and a second screen, at least one fourth video segment is played on the first screen, and at least one fifth video segment is synchronously played on the second screen, so that the user can compare and view the contents of the fourth video segment and the fifth video segment.

[0114] In the case where there are multiple fourth video segments and multiple fifth video segments, multiple fourth video segments are played in different areas in the first screen, and multiple fifth video segments are played in different areas in the second screen.

[0115] For example, when the user is viewing the third video, if the user slides the progress bar of the third video to the fifth video segment, Figure 5As shown, when the electronic device has a first screen 212 and a second screen 214, the electronic device plays the fourth video segment on the first screen 212 and synchronously plays the fifth video segment on the second screen 214, so that the user can compare and view the contents of the fourth video segment and the fifth video segment.

[0116] In the above-mentioned embodiment provided by the present application, the number of the fourth video segment and the fifth video segment is at least one. When playing the fifth video segment in the third video, in the process of synchronously playing the fourth video segment, when the electronic device has only a single display screen, at least one fourth video segment and at least one fifth video segment are synchronously played in different regions within the display screen; when the electronic device has a first screen and a second screen, at least one fourth video segment is played on the first screen, and at least one fifth video segment is played on the second screen. In this way, the original video segment and the new video segment before and after the re-recording are synchronously played in different screens or regions, which is convenient for users to compare and view the contents of the original video segment and the new video segment before and after the re-recording, and convenient for users to select appropriate video segments to be included in the final generated video.

[0117] In the embodiment of the present application, after the above S134, the above video recording method may further include the following S136 and S138:

[0118] S136: Receive a first input from a user to the electronic device.

[0119] Among them, the first input is the user's touch input to the electronic device, and the touch input can specifically be a single-click input, a long press input, a double-click input, a sliding input, an input along a preset trajectory, etc. Technical personnel in this field can set the specific form of the above-mentioned first input according to actual conditions, and no specific limitation is made here.

[0120] S138: In response to the first input, replace the fifth video segment in the third video with the fourth video segment.

[0121] Specifically, in the video recording method provided in the embodiment of the present application, after generating the third video, the electronic device can receive and respond to the first input of the user to replace the fifth video segment in the third video with the fourth video segment. Correspondingly, the electronic device can also receive and respond to the second input of the user to replace the fourth video segment in the third video back to the fifth video segment. In this way, the user can arbitrarily select the re-recorded video segment or the original video segment as the video segment of the generated third video, which meets the user's needs.

[0122] In the above embodiment provided by the present application, after synchronously playing the fourth video segment, a first input from the user to the electronic device is received; in response to the first input, the fifth video segment in the third video is replaced with the fourth video segment. In this way, the user can select a suitable video segment to be added to the final generated video, thereby satisfying the user's needs.

[0123] In summary, if Figure 6 As shown, the video recording method provided in the embodiment of the present application may specifically include the following S302 to S316:

[0124] S302: Enter the video recording mode of the camera and start recording a video.

[0125] S304: Determine: An error in video recording is detected. If so, execute S306; if not, execute S314.

[0126] S306: Determine whether the user has started the re-recording operation. If so, execute S308; if not, execute S314.

[0127] S308: Determine: Find a pause point at the end of the recorded video. If so, execute S312; if not, execute S310.

[0128] S310: Adding a transition animation after the recorded video.

[0129] S312: Taking the pause point as the re-recording time point, playing the third video segment before the re-recording time point, and displaying the second prompt information.

[0130] S314: Continue recording.

[0131] S316: Output the third video for users to view and share.

[0132] Wherein, in the case where the recording is not completed, after executing S314, S304 will continue to be executed to continuously detect whether an error occurs in the recording process, and remind the user to re-record if an error occurs.

[0133] Thus, the embodiment of the present application provides an innovative and convenient interactive method for video re-recording. During the video recording process, the electronic device automatically detects the user's actions, expressions, language and other information. Once an error is detected in the video recording, a UI prompt will be given to prompt the user to re-record the video, and the user is allowed to enter the re-recording mode with one click. At the same time, the electronic device will also intelligently find a suitable re-recording time point in the recorded video for re-recording, and prompt the user to prepare to start re-recording through the UI before starting re-recording. Further, after the recording is completed, the electronic device will also automatically generate a correct complete video based on the recorded video for the user to view and share. That is, the video recording method provided by the embodiment of the present application, when the user is recording the video, the electronic device automatically detects the recording error based on the user's behavior, and after detecting the recording error, automatically jumps to a more reasonable time point before the error to directly re-record, and finally records a complete video without error. In this way, a friendly video re-recording interactive method is provided, which realizes a one-click video re-recording interaction, saves the time cost of users recording, re-recording and editing videos, improves the efficiency of video recording, and helps users correct errors, thereby improving video quality.

[0134] 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 provided in the embodiment of the present application is described by taking the video recording device executing the above-mentioned video recording method as an example.

[0135] like Figure 7 As shown, an embodiment of the present application provides a video recording device 500, which may include the following processing unit 502, recording unit 504 and generating unit 506.

[0136] The processing unit 502 is used to determine a re-recording time point according to the recorded first video when a re-recording condition is met during the video recording process;

[0137] A recording unit 504, configured to record a second video with the re-recording time point as a starting time point;

[0138] The generating unit 506 is configured to generate a third video according to the first video and the second video, wherein the third video includes the first video segment before the re-recording time point in the first video and the second video.

[0139] The video recording device 500 provided in the embodiment of the present application, during the process of recording a video, when the re-recording condition is met, determines the re-recording time point according to the recorded first video; records the second video with the re-recording time point as the starting time point; generates a third video according to the first video and the second video, and the third video includes the first video segment and the second video in the first video that are located before the re-recording time point. Through the above-mentioned video recording device 500, during the process of recording a video, when the re-recording condition is met, the electronic device can automatically jump to the appropriate time point in the recorded video for re-recording according to the content of the recorded video, and automatically generate a complete video without errors according to the videos recorded before and after the re-recording operation. In this way, the user does not need to re-record the entire video, nor does the user need to perform video editing, which reduces the time spent by the user in recording the video and improves the efficiency of video recording.

[0140] In an embodiment of the present application, the processing unit 502 is also used to: during the process of recording a video, detect user characteristic information of at least one user in the recording interface; the video recording device 500 also includes: a display unit 508, which is used to display a first prompt information when the user characteristic information indicates that an abnormality has occurred in the first recorded video, and the first prompt information is used to prompt the user to re-record the video; the processing unit 502 is also used to: when receiving a confirmation input from the user to the first prompt information, determine that the user has started the re-recording operation; wherein the user characteristic information includes at least one of the following items or a combination thereof: voice characteristic information, action characteristic information, and expression characteristic information.

[0141] In the above-mentioned embodiment provided by the present application, during the process of recording a video, the user characteristic information of at least one user in the recording interface is detected; when the user characteristic information indicates that the first video that has been recorded is abnormal, a first prompt information is displayed, and the first prompt information is used to prompt the user to re-record the video; when the user confirms the first prompt information, it is determined that the user starts the re-recording operation; wherein the user characteristic information includes at least one of the following or a combination thereof: voice characteristic information, action characteristic information, and expression characteristic information. In this way, during the process of recording a video, it is automatically detected whether the recording screen is wrong, and when the recording screen is wrong, the user is promptly prompted to re-record the video, so as to avoid the user wasting time to continue recording the problematic video, and the video can be re-recorded after obtaining the user's consent, so as to avoid unnecessary re-recording operations, thereby improving the efficiency of video recording.

[0142] In an embodiment of the present application, after detecting the user characteristic information of at least one user in the recording interface, the processing unit 502 is also used to: when the user characteristic information is consistent with preset characteristic information, determine that the user starts the re-recording operation; wherein the preset characteristic information includes at least one of the following: preset voice information, preset action information and preset expression information.

[0143] In the above embodiment provided by the present application, after detecting the user characteristic information of at least one user in the recording interface, if the user characteristic information is consistent with the preset characteristic information, it is determined that the user has started the re-recording operation; wherein the preset characteristic information includes at least one of the following: preset voice information, preset action information, and preset expression information. In this way, during the video recording process, the user can control the electronic device to re-record the video at any time through specific voice, action or expression, without the user having to manually stop recording and re-record, thereby improving the efficiency of video recording.

[0144] In an embodiment of the present application, the electronic device includes a folding screen, and the processing unit 502 is further used to: upon receiving a folding input from the user on the folding screen, determine whether the user has started a re-recording operation.

[0145] In the above embodiment provided by the present application, the electronic device includes a folding screen, and when receiving a folding input of the folding screen from the user, it is determined that the user has started a re-recording operation. In this way, during the video recording process, the user can control the electronic device to re-record the video at any time by folding the folding screen, realizing a one-button video re-recording interaction mode and improving the efficiency of video recording.

[0146] In an embodiment of the present application, the processing unit 502 is specifically used to: detect a second video segment located at the end time period of the first video; when a pause point is detected in the second video segment, the pause point is determined as the re-recording time point; when no pause point is detected in the second video segment, the first time point in the second video segment is determined as the re-recording time point; wherein the pause point includes at least one of the following: a voice pause point and an action pause point.

[0147] In the above-mentioned embodiment provided by the present application, in the process of determining the re-recording time point according to the recorded first video, the second video segment located at the end of the first video is detected; when a pause point is detected in the second video segment, the pause point is determined as the re-recording time point; when no pause point is detected in the second video segment, the first time point in the second video segment is determined as the re-recording time point; wherein the pause point includes at least one of the following: a voice pause point, an action pause point. In this way, in the process of recording a video, when the re-recording conditions are met, the electronic device can select a suitable re-recording time point from the recorded video to start re-recording the video according to the content of the recorded video, thereby ensuring the accuracy of the determined re-recording time point, avoiding users from re-recording too long videos, reducing the time spent by users in recording videos, and improving the efficiency of video recording.

[0148] In an embodiment of the present application, the video recording device 500 also includes: a playback unit 510, which is used to play a third video segment located at the end time period of the first video segment in the recording interface; the display unit 508 is also used to: when the first content is displayed in the recording interface, adjust the first content to the second content corresponding to the re-recording time point; display a second prompt message in the recording interface, and the second prompt message is used to prompt the user to start preparing for re-recording.

[0149] In the above-mentioned embodiment provided by the present application, before recording the second video with the re-recording time point as the starting time point, the third video segment at the end of the first video segment is played in the recording interface; when the first content is displayed in the recording interface, the first content is adjusted to the second content corresponding to the re-recording time point; and the second prompt information is displayed in the recording interface, and the second prompt information is used to prompt the user to start preparing for re-recording. In this way, before re-recording the video, the previously recorded screen content is played, the display content used for auxiliary recording in the recording interface is adjusted back to the display state at the re-recording time point, and the second prompt information for prompting the user to start preparing for re-recording is displayed, so that the user can prepare for the subsequent recording of the video, ensure the smoothness of the video recording, and improve the smoothness of the recorded video.

[0150] In the embodiment of the present application, the processing unit 502 is further configured to: when the re-recording time point is the first time point in the second video segment, add a transition animation at the re-recording time point.

[0151] In the above embodiment provided by the present application, before recording the second video with the re-recording time point as the starting time point, a transition animation is added at the re-recording time point when the re-recording time point is the first time point in the second video segment. In this way, adding the transition animation for transition ensures the smoothness of the video recording screen.

[0152] In an embodiment of the present application, the video recording device 500 also includes: a storage unit 512, which is used to package and save the fourth video segment in the first video that is located after the re-recording time point and the fifth video segment in the third video that corresponds to the fourth video segment into the same video file; the playback unit 510 is also used to: when playing the fifth video segment in the third video, synchronously play the fourth video segment.

[0153] In the above embodiment provided by the present application, after the third video is generated according to the first video and the second video, the fourth video segment in the first video located after the re-recording time point and the fifth video segment in the third video corresponding to the fourth video segment are packaged and saved into the same video file; when the fifth video segment in the third video is played, the fourth video segment is played synchronously. In this way, it is convenient for the user to compare and view the contents of the original video segment and the new video segment before and after the re-recording, and it is convenient for the user to select the appropriate video segment to be included in the finally generated video.

[0154] In the embodiment of the present application, the number of the fourth video segment and the fifth video segment is at least one, and the playback unit 510 is specifically used to: when the electronic device has only a single display screen, synchronously play at least one fourth video segment and at least one fifth video segment in different areas within the display screen; when the electronic device has a first screen and a second screen, play at least one fourth video segment on the first screen and play at least one fifth video segment on the second screen.

[0155] In the above-mentioned embodiment provided by the present application, the number of the fourth video segment and the fifth video segment is at least one. When playing the fifth video segment in the third video, in the process of synchronously playing the fourth video segment, when the electronic device has only a single display screen, at least one fourth video segment and at least one fifth video segment are synchronously played in different regions within the display screen; when the electronic device has a first screen and a second screen, at least one fourth video segment is played on the first screen, and at least one fifth video segment is played on the second screen. In this way, the original video segment and the new video segment before and after the re-recording are synchronously played in different screens or regions, which is convenient for users to compare and view the contents of the original video segment and the new video segment before and after the re-recording, and convenient for users to select appropriate video segments to be included in the final generated video.

[0156] In the embodiment of the present application, the video recording device 500 also includes: a receiving unit 514, which is used to receive a first input from a user to the electronic device; the processing unit 502 is also used to: in response to the first input, replace the fifth video segment in the third video with the fourth video segment.

[0157] In the above embodiment provided by the present application, after synchronously playing the fourth video segment, a first input from the user to the electronic device is received; in response to the first input, the fifth video segment in the third video is replaced with the fourth video segment. In this way, the user can select a suitable video segment to be added to the final generated video, thereby satisfying the user's needs.

[0158] The video recording device 500 in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc. It 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., and the embodiment of the present application does not make specific limitations.

[0159] The video recording device 500 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.

[0160] The video recording device 500 provided in the embodiment of the present application can achieve Figure 1 and Figure 6 To avoid repetition, the various processes implemented by the method embodiment are not described here.

[0161] Alternatively, if Figure 8 As shown, an embodiment of the present application also provides an electronic device 600, including a processor 602 and a memory 604, wherein the memory 604 stores programs or instructions that can be executed on the processor 602, and when the program or instructions are executed by the processor 602, 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.

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

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

[0164] The electronic device 700 includes but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, a processor 710 and other components.

[0165] Those skilled in the art will appreciate that the electronic device 700 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 710 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig. 9 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.

[0166] The processor 710 is used to determine a re-recording time point according to the recorded first video when a re-recording condition is met during the video recording process.

[0167] The input unit 704 is used to record the second video with the re-recording time point as the starting time point.

[0168] The audio output unit 703 is used to generate a third video according to the first video and the second video, where the third video includes the first video segment before the re-recording time point in the first video and the second video.

[0169] In an embodiment of the present application, during the process of recording a video, if the re-recording condition is met, the re-recording time point is determined based on the recorded first video; the second video is recorded with the re-recording time point as the starting time point; a third video is generated based on the first video and the second video, and the third video includes the first video segment and the second video in the first video that are located before the re-recording time point. In an embodiment of the present application, during the process of recording a video, if the re-recording condition is met, the electronic device can automatically jump to the appropriate time point in the recorded video for re-recording based on the content of the recorded video, and automatically generate a complete video without errors based on the videos recorded before and after the re-recording operation. In this way, the user does not need to re-record the entire video, nor does the user need to edit the video, which reduces the time spent by the user in recording the video and improves the efficiency of video recording.

[0170] Optionally, the processor 710 is also used to: during the process of recording a video, detect user characteristic information of at least one user in the recording interface; the display unit 706 is used to display a first prompt message when the user characteristic information indicates that an abnormality has occurred in the first recorded video, and the first prompt message is used to prompt the user to re-record the video; the processor 710 is also used to: upon receiving a confirmation input from the user to the first prompt message, determine that the user has started the re-recording operation; wherein the user characteristic information includes at least one of the following items or a combination thereof: voice characteristic information, action characteristic information, and expression characteristic information.

[0171] In the above-mentioned embodiment provided by the present application, during the process of recording a video, the user characteristic information of at least one user in the recording interface is detected; when the user characteristic information indicates that the first video that has been recorded is abnormal, a first prompt information is displayed, and the first prompt information is used to prompt the user to re-record the video; when the user confirms the first prompt information, it is determined that the user starts the re-recording operation; wherein the user characteristic information includes at least one of the following or a combination thereof: voice characteristic information, action characteristic information, and expression characteristic information. In this way, during the process of recording a video, it is automatically detected whether the recording screen is wrong, and when the recording screen is wrong, the user is promptly prompted to re-record the video, so as to avoid the user wasting time to continue recording the problematic video, and the video can be re-recorded after obtaining the user's consent, so as to avoid unnecessary re-recording operations, thereby improving the efficiency of video recording.

[0172] Optionally, after detecting user characteristic information of at least one user in the recording interface, the processor 710 is also used to: when the user characteristic information is consistent with preset characteristic information, determine that the user starts a re-recording operation; wherein the preset characteristic information includes at least one of the following: preset voice information, preset action information and preset expression information.

[0173] In the above embodiment provided by the present application, after detecting the user characteristic information of at least one user in the recording interface, if the user characteristic information is consistent with the preset characteristic information, it is determined that the user has started the re-recording operation; wherein the preset characteristic information includes at least one of the following: preset voice information, preset action information, and preset expression information. In this way, during the video recording process, the user can control the electronic device to re-record the video at any time through specific voice, action or expression, without the user having to manually stop recording and re-record, thereby improving the efficiency of video recording.

[0174] Optionally, the electronic device includes a folding screen, and the processor 710 is further used to: upon receiving a folding input from the user on the folding screen, determine whether the user has started a re-recording operation.

[0175] In the above embodiment provided by the present application, the electronic device includes a folding screen, and when receiving a folding input of the folding screen from the user, it is determined that the user has started a re-recording operation. In this way, during the video recording process, the user can control the electronic device to re-record the video at any time by folding the folding screen, realizing a one-button video re-recording interaction mode and improving the efficiency of video recording.

[0176] Optionally, the processor 710 is specifically used to: detect a second video segment located at the end time period of the first video; when a pause point is detected in the second video segment, determine the pause point as the re-recording time point; when no pause point is detected in the second video segment, determine the first time point in the second video segment as the re-recording time point; wherein the pause point includes at least one of the following: a voice pause point and an action pause point.

[0177] In the above-mentioned embodiment provided by the present application, in the process of determining the re-recording time point according to the recorded first video, the second video segment located at the end of the first video is detected; when a pause point is detected in the second video segment, the pause point is determined as the re-recording time point; when no pause point is detected in the second video segment, the first time point in the second video segment is determined as the re-recording time point; wherein the pause point includes at least one of the following: a voice pause point, an action pause point. In this way, in the process of recording a video, when the re-recording conditions are met, the electronic device can select a suitable re-recording time point from the recorded video to start re-recording the video according to the content of the recorded video, thereby ensuring the accuracy of the determined re-recording time point, avoiding users from re-recording too long videos, reducing the time spent by users in recording videos, and improving the efficiency of video recording.

[0178] Optionally, the audio output unit 703 is also used to play a third video segment located at the end of the first video segment in the recording interface; the display unit 706 is also used to: when the first content is displayed in the recording interface, adjust the first content to the second content corresponding to the re-recording time point; display a second prompt message in the recording interface, and the second prompt message is used to prompt the user to start preparing for re-recording.

[0179] In the above-mentioned embodiment provided by the present application, before recording the second video with the re-recording time point as the starting time point, the third video segment at the end of the first video segment is played in the recording interface; when the first content is displayed in the recording interface, the first content is adjusted to the second content corresponding to the re-recording time point; and the second prompt information is displayed in the recording interface, and the second prompt information is used to prompt the user to start preparing for re-recording. In this way, before re-recording the video, the previously recorded screen content is played, the display content used for auxiliary recording in the recording interface is adjusted back to the display state at the re-recording time point, and the second prompt information for prompting the user to start preparing for re-recording is displayed, so that the user can prepare for the subsequent recording of the video, ensure the smoothness of the video recording, and improve the smoothness of the recorded video.

[0180] Optionally, the processor 710 is further configured to: when the re-recording time point is the first time point in the second video segment, add a transition animation at the re-recording time point.

[0181] In the above embodiment provided by the present application, before recording the second video with the re-recording time point as the starting time point, a transition animation is added at the re-recording time point when the re-recording time point is the first time point in the second video segment. In this way, adding the transition animation for transition ensures the smoothness of the video recording screen.

[0182] Optionally, the memory 709 is used to package and save the fourth video segment in the first video that is located after the re-recording time point and the fifth video segment in the third video that corresponds to the fourth video segment into the same video file; the audio output unit 703 is also used to: when playing the fifth video segment in the third video, synchronously play the fourth video segment.

[0183] In the above embodiment provided by the present application, after the third video is generated according to the first video and the second video, the fourth video segment in the first video located after the re-recording time point and the fifth video segment in the third video corresponding to the fourth video segment are packaged and saved into the same video file; when the fifth video segment in the third video is played, the fourth video segment is played synchronously. In this way, it is convenient for the user to compare and view the contents of the original video segment and the new video segment before and after the re-recording, and it is convenient for the user to select the appropriate video segment to be included in the finally generated video.

[0184] Optionally, the number of the fourth video segment and the fifth video segment is at least one, and the audio output unit 703 is specifically used to: when the electronic device has only a single display screen, synchronously play at least one fourth video segment and at least one fifth video segment in different areas within the display screen; when the electronic device has a first screen and a second screen, play at least one fourth video segment on the first screen and play at least one fifth video segment on the second screen.

[0185] In the above-mentioned embodiment provided by the present application, the number of the fourth video segment and the fifth video segment is at least one. When playing the fifth video segment in the third video, in the process of synchronously playing the fourth video segment, when the electronic device has only a single display screen, at least one fourth video segment and at least one fifth video segment are synchronously played in different regions within the display screen; when the electronic device has a first screen and a second screen, at least one fourth video segment is played on the first screen, and at least one fifth video segment is played on the second screen. In this way, the original video segment and the new video segment before and after the re-recording are synchronously played in different screens or regions, which is convenient for users to compare and view the contents of the original video segment and the new video segment before and after the re-recording, and convenient for users to select appropriate video segments to be included in the final generated video.

[0186] Optionally, the user input unit 707 is used to receive a first input from a user to the electronic device; the processor 710 is further used to: in response to the first input, replace the fifth video segment in the third video with the fourth video segment.

[0187] In the above embodiment provided by the present application, after synchronously playing the fourth video segment, a first input from the user to the electronic device is received; in response to the first input, the fifth video segment in the third video is replaced with the fourth video segment. In this way, the user can select a suitable video segment to be added to the final generated video, thereby satisfying the user's needs.

[0188] It should be understood that in the embodiment of the present application, the input unit 704 may include a graphics processor (Graphics Processing Unit, GPU) 7041 and a microphone 7042, and the graphics processor 7041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 707 includes a touch panel 7071 and at least one of other input devices 7072. The touch panel 7071 is also called a touch screen. The touch panel 7071 may include two parts: a touch detection device and a touch controller. Other input devices 7072 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.

[0189] The memory 709 can be used to store software programs and various data. The memory 709 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 709 may include a volatile memory or a non-volatile memory, or the memory 709 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 709 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0190] The processor 710 may include one or more processing units; optionally, the processor 710 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 710.

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

[0192] The processor is the processor in the electronic device 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.

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

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

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

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

[0197] 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 of each embodiment of the present application.

[0198] 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: Executed by an electronic device, the video recording method includes: During the video recording process, when a re-recording condition is met, a re-recording time point is determined according to the first video that has been recorded; Recording a second video with the re-recording time point as the starting time point; A third video is generated according to the first video and the second video, wherein the third video includes a first video segment in the first video before the re-recording time point and the second video.

2. The video recording method according to claim 1, characterized in that: The video recording method further includes: During the video recording process, detecting user characteristic information of at least one user in the recording interface; When the user characteristic information indicates that an abnormality occurs in the first recorded video, displaying first prompt information, wherein the first prompt information is used to prompt the user to re-record the video; Upon receiving a confirmation input from the user in response to the first prompt information, determining that the user starts a re-recording operation; The user characteristic information includes at least one of the following or a combination thereof: voice characteristic information, action characteristic information and expression characteristic information.

3. The video recording method according to claim 2, characterized in that: After detecting the user characteristic information of at least one user in the recording interface, the video recording method further includes: When the user characteristic information is consistent with the preset characteristic information, determining that the user starts the re-recording operation; The preset feature information includes at least one of the following: preset voice information, preset action information and preset expression information.

4. The video recording method according to claim 1, characterized in that: The electronic device includes a folding screen, and the video recording method further includes: When a folding input of the folding screen by the user is received, it is determined that the user starts a re-recording operation.

5. The video recording method according to claim 1, characterized in that: The step of determining the re-recording time point according to the recorded first video includes: Detecting a second video segment located at the end time period of the first video; In the case where a pause point is detected in the second video segment, determining the pause point as the re-recording time point; In the case where it is detected that there is no pause point in the second video segment, determining a first time point in the second video segment as the re-recording time point; The pause point includes at least one of the following: a voice pause point and an action pause point.

6. The video recording method according to claim 1, characterized in that: Before recording the second video with the re-recording time point as the starting time point, the video recording method further includes: Playing a third video segment at the end of the first video segment on the recording interface; When the first content is displayed in the recording interface, adjusting the first content to the second content corresponding to the re-recording time point; A second prompt message is displayed on the recording interface, where the second prompt message is used to prompt the user to start preparing for re-recording.

7. The video recording method according to claim 5, characterized in that: Before recording the second video with the re-recording time point as the starting time point, the video recording method further includes: In a case where the re-recording time point is the first time point in the second video segment, a transition animation is added at the re-recording time point.

8. The video recording method according to any one of claims 1 to 7, characterized in that: After the third video is generated according to the first video and the second video, the video recording method further includes: Packing a fourth video segment in the first video that is located after the re-recording time point and a fifth video segment in the third video that corresponds to the fourth video segment into a same video file; When playing the fifth video segment in the third video, the fourth video segment is played synchronously.

9. The video recording method according to claim 8, characterized in that: The number of the fourth video segment and the fifth video segment is at least one, and when playing the fifth video segment in the third video, the fourth video segment is played synchronously, including: In the case where the electronic device has only a single display screen, synchronously playing at least one of the fourth video segment and at least one of the fifth video segment in different areas on the display screen; In the case that the electronic device has a first screen and a second screen, at least one of the fourth video segments is played on the first screen, and at least one of the fifth video segments is played on the second screen.

10. The video recording method according to claim 8, characterized in that: After synchronously playing the fourth video segment, the video recording method further includes: Receiving a first input from a user to the electronic device; In response to the first input, the fifth video segment in the third video is replaced by the fourth video segment.

11. A video recording device, characterized in that: Applied to electronic equipment, the video recording device comprises: A processing unit, configured to determine a re-recording time point according to the recorded first video when a re-recording condition is met during the video recording process; A recording unit, configured to record a second video with the re-recording time point as a starting time point; A generating unit is used to generate a third video according to the first video and the second video, wherein the third video includes a first video segment in the first video before the re-recording time point and the second video.

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

Citation Information

Patent Citations

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

    CN109120877A

  • Method and device for recording video

    CN109600661A

  • Video editing method and system for artificial intelligence education based on speech recognition

    CN110166816A

  • Video recording method and electronic equipment

    CN110602386A

  • Video acquisition method and device, storage medium and electronic device

    CN112218154A

Cited By

  • Remote interaction system based on artificial intelligence

    CN119886963A