Video recording method and device, and electronic device
Patent Information
- Application Number
- CN202411496796.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-25
- Publication Date
- 2026-09-22
- Estimated Expiration
- 2044-10-25
AI Technical Summary
[0012]在本申请实施例提供的视频录制方法中,在录制视频的过程中,在满足重录条件的情况下,根据已录制的第一视频确定重录时间点;以重录时间点为起始时间点录制第二视频;根据第一视频和第二视频生成第三视频,第三视频包括第一视频中位于重录时间点之前的第一视频段和第二视频。通过上述视频录制方法,在录制视频的过程中,在满足重录条件的情况下,电子设备可根据已录制视频的内容,自动跳转到已录制视频中合适的时间点处进行重录,并根据重录操作前后录制的视频,自动生成没有错误的完整视频。这样,无需用户重新录制整段视频,也无需用户进行视频编辑,减少了用户录制视频的耗时,提高了视频录制的效率。
Smart Images

Figure CN119402692B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of video recording technology, specifically relating to a video recording method, apparatus, and electronic device. Background Technology
[0002] Currently, as users use mobile devices more and more frequently, they are also using cameras to record their daily lives and videos more and more often.
[0003] During video recording, especially when recording long videos, users often encounter recording errors. In order to achieve the best final video quality, users often re-record the entire video or use video editing to replace the erroneous video to obtain a complete video without errors.
[0004] However, deleting the erroneous original video and re-recording the entire video would consume the user's time. Replacing the erroneous video with video editing requires the user to have some basic video editing skills and involves repeated editing and reviewing. This reduces the efficiency of video recording. Summary of the Invention
[0005] The purpose of this application is to provide a video recording method, apparatus, and electronic device that can improve the efficiency of video recording.
[0006] In a first aspect, embodiments of this application provide a video recording method, which is executed by an electronic device. The video recording method includes: during the recording process, under the condition of meeting the re-recording conditions, determining a re-recording time point based on a first video that has already been recorded; recording a second video with the re-recording time point as the starting time point; and generating a third video based on the first video and the second video, wherein the third video includes a first video segment and a second video that are located before the re-recording time point in the first video.
[0007] Secondly, embodiments of this application provide a video recording apparatus applied to an electronic device. The video recording apparatus includes: a processing unit, configured to determine a re-recording time point based on a first video already recorded, provided that re-recording conditions are met during video recording; a recording unit, configured to record a second video starting from the re-recording time point; and a generation unit, configured to generate a third video based on the first video and the second video, wherein the third video includes a first video segment and the second video located before the re-recording time point in the first video.
[0008] Thirdly, embodiments of this application provide an electronic device including a processor and a memory. The memory stores programs or instructions that can run on the processor, and when the programs or instructions are executed by the processor, they implement the steps of the video recording method as described in the first aspect.
[0009] Fourthly, embodiments of this application provide a readable storage medium storing a program or instructions that, when executed by a processor, implement the steps of the video recording method as described in the first aspect.
[0010] Fifthly, embodiments of this application provide a chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the steps of the video recording method as described in the first aspect.
[0011] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the steps of the video recording method as described in the first aspect.
[0012] In the video recording method provided in this application embodiment, during the video recording process, if the re-recording conditions are met, a re-recording time point is determined based on the already recorded first video; a second video is recorded starting from the re-recording time point; a third video is generated based on the first and second videos, the third video including the first video segment located before the re-recording time point and the second video. Through this video recording method, during the video recording process, if the re-recording conditions are met, the electronic device can automatically jump to a suitable time point in the already recorded video for re-recording based on the content of the already recorded video, and automatically generate a complete video without errors based on the videos recorded before and after the re-recording operation. This eliminates the need for the user to re-record the entire video or perform video editing, reducing the time spent recording videos and improving the efficiency of video recording. Attached Figure Description
[0013] Figure 1 This is one of the flowcharts illustrating the video recording method provided in the embodiments of this application;
[0014] Figure 2 This is one of the schematic diagrams of the operation interface of the video recording method provided in the embodiments of this application;
[0015] Figure 3 This is a second schematic diagram of the operation interface of the video recording method provided in the embodiments of this application;
[0016] Figure 4 The third schematic diagram of the operation interface of the video recording method provided in the embodiments of this application;
[0017] Figure 5 Fourth schematic diagram of the operation interface of the video recording method provided in the embodiments of this application;
[0018] Figure 6A second schematic flowchart illustrating the video recording method provided in this application embodiment;
[0019] Figure 7 This is a structural block diagram of the video recording device provided in the embodiments of this application;
[0020] Figure 8 A structural block diagram of the electronic device provided in the embodiments of this application;
[0021] Figure 9 This is a schematic diagram of the hardware structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0022] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0023] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0024] The video recording method provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.
[0025] like Figure 1 As shown, this application provides a video recording method, which may include the following steps S102 to S106:
[0026] S102: During the video recording process, if the re-recording conditions are met, determine the re-recording time point based on the first recorded video.
[0027] The video recording method proposed in this application is executed by an electronic device, which may be a smart electronic device with video recording function, such as a smartphone, tablet computer, laptop computer, or smartwatch, and is not specifically limited to these devices.
[0028] The electronic device can automatically determine whether a recorded video meets the conditions for re-recording based on its content. For example, if it detects abnormalities such as incorrect user facial expressions, voice, or gestures in the recorded video, it will determine that the video meets the re-recording conditions and automatically begin the re-recording process. Users can also initiate the re-recording operation through interactive operations with the electronic device, allowing it to re-record previously recorded portions of the video.
[0029] Furthermore, the first video is the video already recorded by the electronic device before the re-recording operation was initiated.
[0030] Furthermore, the aforementioned re-recording time point is a certain intermediate time point of the first video, and the specific re-recording time point can be determined based on the video content of the first video.
[0031] Specifically, in the video recording method provided in this application embodiment, when the user is recording a video through an electronic device, if the electronic device recognizes that the first video that has been recorded meets the re-recording conditions or receives input from the user to start the re-recording operation, the electronic device will stop recording the video and select an appropriate 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 first video.
[0032] S104: Record the second video starting from the re-recording time point.
[0033] The second video is the video recorded by the electronic device after the re-recording operation is started, and the starting time of the second video is the aforementioned re-recording time.
[0034] Furthermore, some video segments in the second video correspond and overlap with some video segments in the first video. Specifically, the beginning segment of the second video corresponds and 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 this application embodiment, after the electronic device selects a suitable time point from the first video that has been recorded as the re-recording time point to start re-recording 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 based on the first and second videos.
[0037] The third video includes the first video segment and the second video, which are located before the re-recording time point in the first video.
[0038] Specifically, in the video recording method provided in this application embodiment, after the electronic device records the second video, it automatically encodes the second video and the first video segment in the first video that is located before the re-recording time point into the same video file, thereby generating a complete third video. In this way, during the video recording process, if the re-recording conditions are met, the electronic device can automatically jump to an appropriate time point in the already recorded video to re-record, and automatically generate a complete video without errors based on the videos recorded before and after the re-recording operation. This eliminates the need for the user to re-record the entire video or perform video editing, reducing the time spent recording videos and improving the efficiency of video recording.
[0039] The video recording method provided in this application, during the video recording process, determines a re-recording time point based on the already recorded first video when the re-recording conditions are met; records a second video starting from the re-recording time point; and generates a third video based on the first and second videos. The third video includes the first video segment preceding the re-recording time point and the second video segment from the first video. Through this video recording method, during the video recording process, when the re-recording conditions are met, the electronic device can automatically jump to a suitable time point in the already recorded video for re-recording based on its content, and automatically generate a complete, error-free video based on the videos recorded before and after the re-recording operation. This eliminates the need for the user to re-record the entire video or perform video editing, reducing the time spent recording and improving the efficiency of video recording.
[0040] In this embodiment of the application, the video recording method further includes the following steps S108 to S112:
[0041] S108: During video recording, detect the user feature information of at least one user in the recording interface.
[0042] The user feature information includes at least one or a combination of the following: voice feature information, action feature information, and facial expression feature information.
[0043] Specifically, in the video recording method provided in this application embodiment, during the process of a user recording video through an electronic device, the electronic device can automatically detect user feature information such as voice feature information, action feature information, and facial expression feature information of at least one user in the recording interface, so as to detect whether at least one user has made a recording error.
[0044] S110: If the user's characteristic information indicates that the first recorded video is abnormal, display the first prompt message.
[0045] The first prompt message is used to notify the user that the first video they have recorded has an error and to ask the user whether they want to re-record the video.
[0046] Specifically, in the video recording method provided in this application embodiment, the electronic device identifies and analyzes the user feature information of at least one detected user, and when the user feature information of any user indicates that the first recorded video is abnormal, it provides a UI (User Interface) prompt, displays a first prompt message to the user, prompting the user that the first recorded video is abnormal, and asks the user whether to re-record the video.
[0047] For example, when any user is detected uttering a voice message such as "Oops, I made a mistake," the system determines that the first recorded video is abnormal and displays the first prompt message to the user; or, when any user is detected showing an embarrassed smile, the system determines that the first recorded video is abnormal and displays the first prompt message to the user; or, when any user is detected making a gesture such as covering their mouth, the system determines that the first recorded video is abnormal and displays the first prompt message to the user.
[0048] In practical applications, the initial prompt message can be displayed to the user via a pop-up window, a bottom banner, or a top banner. This ensures that the user is prompted to re-record the video without obstructing the recording interface, thus not affecting the recording process. Furthermore, if no user feedback is received within a certain period, such as 1 or 2 seconds, the initial prompt message should be automatically hidden to avoid interrupting video recording.
[0049] S112: Upon receiving confirmation input from the user regarding the first prompt message, determine that the user has initiated a re-encoding operation.
[0050] Specifically, in the video recording method provided in this application embodiment, after displaying the first prompt information to the user, if the electronic device receives confirmation input from the user regarding the first prompt information, such as the user clicking the "OK" button in the first prompt information, the electronic device determines that the user has initiated a re-recording operation and selects a suitable re-recording time point from the already recorded first video to begin re-recording. In this way, during the video recording process, the system automatically detects whether there are errors in the recording screen and promptly prompts the user to re-record the video when errors occur, avoiding the user wasting time continuing to record problematic videos. Furthermore, re-recording can be done only after obtaining the user's consent, avoiding unnecessary re-recording operations and improving the efficiency of video recording.
[0051] For example, a user wants to record a speech or lecture video, such as Figure 2As shown, the user turns on the camera of the electronic device and enters the camera's recording mode, opening the recording interface 202 to begin recording. If the user has prepared a script, they can activate the camera's teleprompter function to display the first content 204 (the script) on the recording interface 202 of the electronic device to assist in recording. Furthermore, during video recording, the electronic device can automatically detect the user's voice features, motion features, and facial expressions on the recording interface. Further, such as... Figure 3 As shown, when the electronic device recognizes the user's voice uttering "Oops, wrong," the electronic device determines that the recorded video is abnormal and displays the first prompt message 206 to the user in the recording interface 202 via a pop-up window or bottom banner, indicating that the recorded video is abnormal and asking the user whether to re-record the video. Further, the electronic device receives the user's click input of the "OK" button in the first prompt message 206, confirming that the user has initiated the re-recording operation, and selects a suitable re-recording time point from the already recorded video to begin re-recording the video.
[0052] The embodiments provided in this application detect user feature information of at least one user in the recording interface during video recording. If the user feature information indicates an error in the first recorded video, a first prompt is displayed to prompt the user to re-record the video. Upon receiving confirmation input from the user regarding the first prompt, it is determined that the user has initiated a re-recording operation. The user feature information includes at least one or a combination of the following: voice feature information, action feature information, and facial expression feature information. This automatically detects errors in the recording screen during video recording and promptly prompts the user to re-record when errors occur, preventing the user from wasting time recording problematic videos. Furthermore, re-recording can be done only after obtaining the user's consent, avoiding unnecessary re-recording operations and improving video recording efficiency.
[0053] In this embodiment of the application, after S108, the video recording method further includes S114 as follows:
[0054] S114: If the user's characteristic information is consistent with the preset characteristic information, determine that the user has started the re-enrollment operation.
[0055] The user feature information includes at least one or a combination of the following: voice feature information, action feature information, and facial expression feature information.
[0056] Furthermore, the preset feature information includes at least one of the following: preset voice information, preset action information, and preset facial expression information.
[0057] Specifically, in the video recording method provided in this application embodiment, the user can pre-define preset feature information such as preset voice information, preset action information, and preset facial expression information for initiating the re-recording operation. Based on this, during the process of the user recording video through the electronic device, the electronic device can automatically detect user feature information such as voice feature information, action feature information, and facial expression feature information of at least one user in the recording interface, and compare the detected user feature information with the preset feature information pre-set by the user. Further, if the electronic device detects that the user feature information matches the preset feature information pre-set by the user, the electronic device determines that the user has initiated the re-recording operation and selects a suitable re-recording time point from the already recorded first video to start re-recording. 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, actions, or facial expressions, without the user needing to manually stop recording and re-record, thus improving the efficiency of video recording.
[0058] The embodiments provided in this application detect user feature information of at least one user in the recording interface. If the user feature information matches preset feature information, the system determines that the user has initiated a re-recording operation. The preset feature information includes at least one of the following: preset voice information, preset action information, and preset facial expression information. Thus, during video recording, the user can control the electronic device to re-record the video at any time through specific voice, actions, or facial expressions, without requiring the user to manually stop recording and re-record, thereby improving the efficiency of video recording.
[0059] In this embodiment of the application, the electronic device includes a foldable screen, and the video recording method further includes the following step S116:
[0060] S116: Upon receiving user input to fold the foldable screen, determine that the user has initiated a re-recording operation.
[0061] Specifically, in the video recording method provided in this application embodiment, when a user is recording video using an electronic device, if the electronic device has a foldable screen, the user can control the electronic device to initiate a re-recording operation by folding the foldable screen. In this way, during video recording, the user can control the electronic device to re-record the video at any time by folding the foldable screen, realizing a one-click video re-recording interaction method and improving the efficiency of video recording.
[0062] The embodiments provided in this application include an electronic device with a foldable screen. Upon receiving a user's input to fold the screen, the device determines that the user has initiated a re-recording operation. Thus, during video recording, the user can control the electronic device to re-record the video at any time by inputting to fold the screen, achieving a one-click video re-recording interaction and improving video recording efficiency.
[0063] In this embodiment of the application, the step of determining the re-recording time point based on the first recorded video may specifically include the following steps S118 to S122:
[0064] S118: Detect the second video segment located at the end of the first video segment.
[0065] The end time of the first video segment is the same as the end time of the second video segment.
[0066] Furthermore, users can set the duration of the second video segment according to their actual situation. For example, the second video segment can be the last 5 or 10 seconds of the first video segment, without any specific restrictions.
[0067] Furthermore, the second video segment is a video clip recorded before the re-recording operation was initiated, and includes video content before and after the re-recording time point; the second video is a video clip recorded after the re-recording operation was initiated, and 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 this application embodiment, when a user is recording a video through an electronic device, if the electronic device recognizes that the first video that has been recorded meets the re-recording conditions or the electronic device receives input from the user to enable the re-recording operation, the electronic device will stop recording the video, obtain a second video segment located at the end of the first video, and identify and detect the continuity of the user's voice and actions in the second video segment in order to detect whether there are pauses in the user's voice and actions in the second video segment.
[0069] S120: If a pause point is detected in the second video segment, the pause point will be determined as the re-recording time point.
[0070] The aforementioned pauses can be user speech pauses, such as the pause after a user finishes a speech or after a user finishes singing a lyric. The aforementioned pauses can also be user action pauses, such as the pause when a user completes a single movement in a dance. No specific restrictions are imposed here.
[0071] Specifically, in the video recording method provided in this application embodiment, when the electronic device detects that there is a user's voice pause point or action pause point in the second video segment, the electronic device determines the voice pause point or action pause point as the re-recording time point.
[0072] S122: If 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.
[0073] The first time point mentioned above is close to the end time point of the second video segment. Specifically, the first time point can be a time point that is 1 second or 2 seconds apart from the end time point of the second video segment, without any specific restrictions.
[0074] Specifically, in the video recording method provided in this application embodiment, when the electronic device detects that there are no pause points in the second video segment, the electronic device directly determines the first time point near the end time point of the second video segment as the re-recording time point. Thus, during video recording, if the re-recording conditions are met, the electronic device can select a suitable re-recording time point from the already recorded video to begin re-recording, ensuring the accuracy of the determined re-recording time point, avoiding excessively long re-recordings by the user, reducing the time spent recording videos, and improving the efficiency of video recording.
[0075] The embodiments provided in this application, during the process of determining the re-recording time point based on the first recorded video, detect the second video segment located at the end of the first video segment; if a pause point is detected in the second video segment, the pause point is determined as the re-recording time point; if 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. Thus, during video recording, if the re-recording conditions are met, the electronic device can select a suitable re-recording time point from the already recorded video to begin re-recording, ensuring the accuracy of the determined re-recording time point, avoiding users re-recording excessively long videos, reducing the time spent recording videos, and improving the efficiency of video recording.
[0076] In this embodiment of the application, before S104, the video recording method may further include S124 to S128 as follows:
[0077] S124: Play the third video segment located at the end of the first video segment on the recording interface.
[0078] The first video segment is the video segment in the first video that is located before the re-recording time point.
[0079] Furthermore, the end time of the first video segment coincides with the end time of the third video segment.
[0080] Furthermore, the second video segment includes video content before and after the re-recording time point, while the third video segment only includes video content before the re-recording time point; the second video segment includes at least a portion of the third video segment.
[0081] In practical applications, users can set the duration of the third video segment according to the actual situation. For example, the third video segment can be the last 3 or 5 seconds of the first video segment, without specific restrictions.
[0082] Specifically, in the video recording method provided in this application embodiment, after the electronic device selects a suitable time point from the first video that has already been recorded as the re-recording time point, 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, so as to inform the user of the previously recorded screen content, so that the user can prepare in advance for the screen content that will be recorded next, thereby ensuring the smoothness of video recording and improving the smoothness of the final third video.
[0083] S126: If the first content is displayed in the recording interface, adjust the first content to the second content corresponding to the re-recording time point.
[0084] The first content and the second content are the display content that assists users in recording videos, and the first content and the second content are the display status of the content in the recording interface at different points in time.
[0085] In practical applications, the first and second contents mentioned above can specifically refer to speech drafts, lyric books, etc., used for prompting, without specific limitations.
[0086] Specifically, in the video recording method provided in this application embodiment, after the electronic device selects a suitable time point from the first video that has been recorded as the re-recording time point to start re-recording the video, if 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, in order to prepare for the user to re-record the video.
[0087] For example, such as Figure 4 As shown, after the electronic device selects a suitable time point from the already recorded first video as the re-recording time point, it plays the last 3 seconds of the first video segment before the re-recording time point. The teleprompter in the recording interface 202 is then switched from the first content to the second content 208 corresponding to the re-recording time point. This returns the recording interface 202 to the display screen before the re-recording time point, informing the user from which content to start the re-recording.
[0088] S128: Display the second prompt message on the recording interface.
[0089] The second prompt message is used to remind the user to start preparing to re-record.
[0090] Specifically, in the video recording method provided in this application embodiment, after the electronic device selects a suitable time point from the first video that has already been recorded as the re-recording time point, the electronic device will display a second prompt message on the recording interface to prompt the user to start preparing to re-record.
[0091] In practical applications, the aforementioned second prompt information may include countdown screens, countdown animations, progress bar animations, etc., to prompt the user when the electronic device will resume recording video, enabling the user to accurately perform actions when the electronic device starts re-recording video, thereby improving the smoothness of video recording.
[0092] For example, such as Figure 4 As shown, after the electronic device selects a suitable time point from the already recorded first video as the re-recording time point, a second prompt message 210 is displayed on the recording interface 202. The second prompt message 210 includes a countdown animation of three small dots to indicate to the user the start time of the electronic device's re-recording, enabling the user to accurately perform actions when the electronic device begins re-recording, thus improving the smoothness of the recorded video.
[0093] The embodiments provided in this application, before recording the second video starting from the re-recording time point, play a third video segment located at the end of the first video segment on the recording interface; if the first content is displayed on the recording interface, the first content is adjusted to the second content corresponding to the re-recording time point; a second prompt message is displayed on the recording interface to prompt the user to start preparing for re-recording. In this way, before re-recording the video, playing the previously recorded content, adjusting the display content used to assist recording on the recording interface back to the display state at the re-recording time point, and displaying the second prompt message to prompt the user to start preparing for re-recording facilitates the user's preparation for subsequent video recording, ensuring the smoothness of video recording and improving the fluency of the recorded video.
[0094] In this embodiment of the application, before S104 above, the video recording method may further include S130 as follows:
[0095] S130: 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.
[0096] Specifically, in the video recording method provided in this application embodiment, when the electronic device detects that there is no pause point in the second video segment, and thus directly determines the first time point near the end time point in the second video segment as the re-recording time point, the electronic device will add a transition animation for transition at the re-recording time point before starting to re-record the video, so as to ensure the smoothness of the video recording.
[0097] In the embodiments provided in this application, before recording the second video with the re-recording time point as the starting time point, if 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. This addition of transition animation for transitions ensures the smoothness of the video recording.
[0098] In this embodiment of the application, after S106, the video recording method may further include S132 and S134 as follows:
[0099] S132: 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.
[0100] The first video is one that was recorded by the electronic device before the re-recording operation was initiated.
[0101] Furthermore, the fourth video segment is the video segment in the first video that is located after the re-recording time point, that is, the fourth video segment is the video segment containing errors that needs to be re-recorded.
[0102] Furthermore, the third video is the final, error-free, complete video recording.
[0103] Furthermore, the fifth video segment is the video segment in the third video that corresponds to the fourth video segment. The start time points of both the fourth and fifth video segments are the re-recording time points, and the durations of the fourth and fifth video segments are the same. That is, the fifth video segment is the beginning segment of the second video, and the fifth video segment is the video segment obtained after re-recording the fourth video segment, which contained errors.
[0104] Specifically, in the video recording method provided in this application embodiment, after recording is completed, the fourth video segment containing the error after the re-recorded time point and the re-recorded fifth video segment are packaged into the same video file for saving, 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, the fourth video segment is played simultaneously.
[0106] Specifically, in the video recording method provided in this application embodiment, after recording is completed, the user can view and share the recorded third video in the album. While the user is viewing the third video, when the user slides the progress bar of the third video to the fifth video segment, the electronic device simultaneously plays the fourth video segment while playing the fifth video segment, allowing the user to compare the content of the fourth and fifth video segments.
[0107] In the embodiments provided in this application, after generating a third video based on the first and second videos, 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 playing the fifth video segment in the third video, the fourth video segment is played synchronously. This facilitates users in comparing and viewing the content of the original video segments and the new video segments before and after re-recording, and allows users to select appropriate video segments for the final generated video.
[0108] In this embodiment of the application, the number of the fourth video segment and the fifth video segment is at least one, and the above-mentioned S134 may specifically include the following S134a and S134b:
[0109] S134a: In the case where the electronic device has only a single display screen, at least one fourth video segment and at least one fifth video segment are played synchronously in separate areas within the display screen.
[0110] Among them, there is at least one fourth video segment and at least one fifth video segment, that is, there is at least one re-recorded time point, and there is a one-to-one correspondence between at least one re-recorded time point, at least one fourth video segment and at least one fifth video segment.
[0111] Specifically, in the video recording method provided in this application embodiment, during the synchronous playback of the fifth video segment and the fourth video segment by the electronic device, 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 content of the fourth video segment and the fifth video segment.
[0112] S134b: When an 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 this application embodiment, during the synchronous playback of the fifth video segment and the fourth video segment on the electronic device, if 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 synchronously on the second screen, so that the user can compare and view the content of the fourth video segment and the fifth video segment.
[0114] In cases where there are multiple fourth and fifth video segments, multiple fourth video segments are played in separate areas on the first screen, and multiple fifth video segments are played in separate areas on the second screen.
[0115] For example, while a user is watching a third video, if the user slides the progress bar of the third video to the fifth video segment, such as... 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 simultaneously plays the fifth video segment on the second screen 214, so that the user can compare and view the content of the fourth video segment and the fifth video segment.
[0116] In the embodiments provided in this application, the number of fourth and fifth video segments is at least one. While playing the fifth video segment of the third video, the fourth video segment is played synchronously. If the electronic device has only a single display screen, at least one fourth video segment and at least one fifth video segment are played synchronously in separate areas within the display screen. If 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. This allows for simultaneous playback of the original and new video segments before and after re-recording, either on separate screens or in separate areas. This facilitates user comparison and viewing of the content of the original and new video segments before and after re-recording, and allows users to select the appropriate video segment for the final generated video.
[0117] In this embodiment of the application, after S134, the video recording method may further include the following S136 and S138:
[0118] S136: Receive the first input from the user to the electronic device.
[0119] The first input is the user's touch input to the electronic device. Specifically, the touch input can be a single click, a long press, a double click, a swipe, or an input along a preset trajectory. Those skilled in the art can set the specific form of the first input according to the actual situation, and no specific restrictions are 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 this application embodiment, after generating the third video, the electronic device can receive and respond to the user's first input 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 user's second input to replace the fourth video segment in the third video back with the fifth video segment. In this way, the user can arbitrarily choose to re-record the video segment or the original video segment as the video segment of the generated third video, thus meeting the user's needs.
[0122] In the embodiments provided in this 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 add to the final generated video, thus meeting the user's needs.
[0123] In summary, such as Figure 6 As shown, the video recording method provided in this application embodiment may specifically include the following S302 to S316:
[0124] S302: Enter the camera's video recording mode and start recording video.
[0125] S304: Judgment: An error was detected in the video recording. If yes, proceed to S306; otherwise, proceed to S314.
[0126] S306: Determine if the user has enabled the re-encoding operation. If yes, proceed to S308; otherwise, proceed to S314.
[0127] S308: Judgment: If a pause point is found at the end of the recorded video, execute S312 if yes, otherwise execute S310.
[0128] S310: Add transition animations after a recorded video.
[0129] S312: Using the pause point as the re-recording time point, play the third video segment before the re-recording time point and display the second prompt message.
[0130] S314: Continue recording.
[0131] S316: Outputs a third video for users to view and share.
[0132] If recording is not completed, after executing S314, S304 will continue to be executed to continuously detect whether errors occur during the recording process, and remind the user to re-record if an error occurs.
[0133] Thus, this application provides an innovative and convenient video re-recording interaction method. During video recording, the electronic device automatically detects the user's actions, expressions, and language. Once an error is detected in the video recording, a UI prompt will be displayed to encourage the user to re-record the video, allowing the user to enter the re-recording mode with one click. Simultaneously, the electronic device intelligently searches for a suitable re-recording time point in the already recorded video and prompts the user to prepare to start re-recording via the UI before starting. Furthermore, after recording is completed, the electronic device automatically generates an error-free complete video based on the recorded video for the user to view and share. In other words, the video recording method provided in this application automatically detects recording errors based on user behavior during video recording. After detecting an error, it automatically jumps to a more reasonable time point before the error and directly re-records, ultimately recording an error-free complete video. This provides a user-friendly video re-recording interaction method, achieving one-click video re-recording interaction, saving users time costs associated with recording, re-recording, and editing videos, improving video recording efficiency, and helping users correct errors, thereby improving video quality.
[0134] The video recording method provided in this application can be executed by a video recording device. This application uses a video recording device executing the above-described video recording method as an example to illustrate the video recording device provided in this application.
[0135] like Figure 7 As shown, this application embodiment provides a video recording device 500, which may include the processing unit 502, the recording unit 504 and the generation unit 506 described below.
[0136] The processing unit 502 is used to determine the re-recording time point based on the first recorded video when the re-recording conditions are met during the video recording process.
[0137] Recording unit 504 is used to record a second video starting from the re-recording time point;
[0138] The generation unit 506 is used to generate a third video based on the first video and the second video. The third video includes the first video segment located before the re-recording time point in the first video and the second video.
[0139] The video recording device 500 provided in this application embodiment, during video recording, determines a re-recording time point based on the already recorded first video when re-recording conditions are met; records a second video starting from the re-recording time point; and generates a third video based on the first and second videos. The third video includes a first video segment and a second video segment from the first video that occur before the re-recording time point. Through the video recording device 500, during video recording, when re-recording conditions are met, the electronic device can automatically jump to a suitable time point in the already recorded video for re-recording based on its content, and automatically generate a complete, error-free video based on the videos recorded before and after the re-recording operation. This eliminates the need for the user to re-record the entire video or perform video editing, reducing the time spent recording and improving recording efficiency.
[0140] In this embodiment of the application, the processing unit 502 is further configured to: detect user feature information of at least one user in the recording interface during the video recording process; the video recording device 500 further includes: a display unit 508, configured to display a first prompt message when the user feature information indicates that the first recorded video is abnormal, the first prompt message being used to prompt the user to re-record the video; the processing unit 502 is further configured to: determine that the user has started the re-recording operation when receiving confirmation input from the user for the first prompt message; wherein, the user feature information includes at least one of the following or a combination thereof: voice feature information, action feature information, and facial expression feature information.
[0141] The embodiments provided in this application detect user feature information of at least one user in the recording interface during video recording. If the user feature information indicates an error in the first recorded video, a first prompt is displayed to prompt the user to re-record the video. Upon receiving confirmation input from the user regarding the first prompt, it is determined that the user has initiated a re-recording operation. The user feature information includes at least one or a combination of the following: voice feature information, action feature information, and facial expression feature information. This automatically detects errors in the recording screen during video recording and promptly prompts the user to re-record when errors occur, preventing the user from wasting time recording problematic videos. Furthermore, re-recording can be done only after obtaining the user's consent, avoiding unnecessary re-recording operations and improving video recording efficiency.
[0142] In this embodiment of the application, after detecting the user feature information of at least one user in the recording interface, the processing unit 502 is further configured to: determine that the user has started a re-recording operation if the user feature information is consistent with the preset feature information; wherein, the preset feature information includes at least one of the following: preset voice information, preset action information and preset facial expression information.
[0143] The embodiments provided in this application detect user feature information of at least one user in the recording interface. If the user feature information matches preset feature information, the system determines that the user has initiated a re-recording operation. The preset feature information includes at least one of the following: preset voice information, preset action information, and preset facial expression information. Thus, during video recording, the user can control the electronic device to re-record the video at any time through specific voice, actions, or facial expressions, without requiring the user to manually stop recording and re-record, thereby improving the efficiency of video recording.
[0144] In this embodiment of the application, the electronic device includes a foldable screen, and the processing unit 502 is further configured to: determine that the user has initiated a re-recording operation when the user inputs folding input to the foldable screen.
[0145] The embodiments provided in this application include an electronic device with a foldable screen. Upon receiving a user's input to fold the screen, the device determines that the user has initiated a re-recording operation. Thus, during video recording, the user can control the electronic device to re-record the video at any time by inputting to fold the screen, achieving a one-click video re-recording interaction and improving video recording efficiency.
[0146] In this embodiment of the application, the processing unit 502 is specifically used to: detect a second video segment located at the end of the first video segment; if a pause point is detected in the second video segment, determine the pause point as a re-recording time point; if no pause point is detected in the second video segment, determine a first time point in the second video segment as a re-recording time point; wherein, the pause point includes at least one of the following: voice pause point, action pause point.
[0147] The embodiments provided in this application, during the process of determining the re-recording time point based on the first recorded video, detect the second video segment located at the end of the first video segment; if a pause point is detected in the second video segment, the pause point is determined as the re-recording time point; if 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. Thus, during video recording, if the re-recording conditions are met, the electronic device can select a suitable re-recording time point from the already recorded video to begin re-recording, ensuring the accuracy of the determined re-recording time point, avoiding users re-recording excessively long videos, reducing the time spent recording videos, and improving the efficiency of video recording.
[0148] In this embodiment of the application, the video recording device 500 further includes: a playback unit 510, configured to play a third video segment located at the end of the first video segment on the recording interface; and a display unit 508, configured to: adjust the first content to the second content corresponding to the re-recording time point when the first content is displayed on the recording interface; and display a second prompt message on the recording interface, the second prompt message being used to prompt the user to start preparing for re-recording.
[0149] The embodiments provided in this application, before recording the second video starting from the re-recording time point, play a third video segment located at the end of the first video segment on the recording interface; if the first content is displayed on the recording interface, the first content is adjusted to the second content corresponding to the re-recording time point; a second prompt message is displayed on the recording interface to prompt the user to start preparing for re-recording. In this way, before re-recording the video, playing the previously recorded content, adjusting the display content used to assist recording on the recording interface back to the display state at the re-recording time point, and displaying the second prompt message to prompt the user to start preparing for re-recording facilitates the user's preparation for subsequent video recording, ensuring the smoothness of video recording and improving the fluency of the recorded video.
[0150] In this embodiment of the application, the processing unit 502 is further configured to: add a transition animation at the re-recording time point when the re-recording time point is the first time point in the second video segment.
[0151] In the embodiments provided in this application, before recording the second video with the re-recording time point as the starting time point, if 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. This addition of transition animation for transitions ensures the smoothness of the video recording.
[0152] In this embodiment of the application, the video recording device 500 further includes: a storage unit 512, used to package and save the fourth video segment located after the re-recording time point in the first video and the fifth video segment corresponding to the fourth video segment in the third video into the same video file; the playback unit 510 is further used to: synchronously play the fourth video segment when playing the fifth video segment in the third video.
[0153] In the embodiments provided in this application, after generating a third video based on the first and second videos, 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 playing the fifth video segment in the third video, the fourth video segment is played synchronously. This facilitates users in comparing and viewing the content of the original video segments and the new video segments before and after re-recording, and allows users to select appropriate video segments for the final generated video.
[0154] In this embodiment of the 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, to 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, to play at least one fourth video segment on the first screen and at least one fifth video segment on the second screen.
[0155] In the embodiments provided in this application, the number of fourth and fifth video segments is at least one. While playing the fifth video segment of the third video, the fourth video segment is played synchronously. If the electronic device has only a single display screen, at least one fourth video segment and at least one fifth video segment are played synchronously in separate areas within the display screen. If 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. This allows for simultaneous playback of the original and new video segments before and after re-recording, either on separate screens or in separate areas. This facilitates user comparison and viewing of the content of the original and new video segments before and after re-recording, and allows users to select the appropriate video segment for the final generated video.
[0156] In this embodiment of the application, the video recording device 500 further includes: a receiving unit 514, configured to receive a first input from a user to the electronic device; and a processing unit 502, configured to: in response to the first input, replace a fifth video segment in a third video with a fourth video segment.
[0157] In the embodiments provided in this 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 add to the final generated video, thus meeting the user's needs.
[0158] The video recording device 500 in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the specific type of device.
[0159] The video recording device 500 in this embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this embodiment does not specifically limit its use.
[0160] The video recording device 500 provided in this application embodiment can achieve... Figure 1 and Figure 6 The various processes implemented in the method implementation examples will not be described again here to avoid repetition.
[0161] Optionally, such as Figure 8 As shown, this application embodiment also provides an electronic device 600, including a processor 602 and a memory 604. The memory 604 stores a program or instructions that can run on the processor 602. When the program or instructions are executed by the processor 602, they implement the various steps of the above-described video recording method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0162] It should be noted that the electronic devices in the embodiments of this application include the aforementioned mobile electronic devices and non-mobile electronic devices.
[0163] Figure 9 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.
[0164] The electronic device 700 includes, but is not limited to, components such as: radio frequency unit 701, network module 702, audio output unit 703, input unit 704, sensor 705, display unit 706, user input unit 707, interface unit 708, memory 709, and processor 710.
[0165] Those skilled in the art will understand that the electronic device 700 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 710 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 9 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0166] The processor 710 is used to determine the re-recording time point based on the first recorded video when the re-recording conditions are met during the video recording process.
[0167] Input unit 704 is used to record a second video starting from the re-recording time point.
[0168] The audio output unit 703 is used to generate a third video based on the first video and the second video. The third video includes the first video segment located before the re-recording time point in the first video and the second video.
[0169] In this embodiment, during video recording, if the re-recording conditions are met, a re-recording time point is determined based on the already recorded first video; a second video is recorded starting from the re-recording time point; a third video is generated based on the first and second videos, the third video including the first video segment preceding the re-recording time point and the second video. In this embodiment, during video recording, if the re-recording conditions are met, the electronic device can automatically jump to a suitable time point in the already recorded video for re-recording, and automatically generate a complete, error-free video based on the videos recorded before and after the re-recording operation. This eliminates the need for the user to re-record the entire video or perform video editing, reducing the time spent recording and improving recording efficiency.
[0170] Optionally, the processor 710 is further configured to: detect user feature information of at least one user in the recording interface during the video recording process; the display unit 706 is configured to display a first prompt message when the user feature information indicates that the first recorded video is abnormal, the first prompt message being used to prompt the user to re-record the video; the processor 710 is further configured to: determine that the user has started the re-recording operation upon receiving confirmation input from the user for the first prompt message; wherein the user feature information includes at least one or a combination of the following: voice feature information, action feature information, and facial expression feature information.
[0171] The embodiments provided in this application detect user feature information of at least one user in the recording interface during video recording. If the user feature information indicates an error in the first recorded video, a first prompt is displayed to prompt the user to re-record the video. Upon receiving confirmation input from the user regarding the first prompt, it is determined that the user has initiated a re-recording operation. The user feature information includes at least one or a combination of the following: voice feature information, action feature information, and facial expression feature information. This automatically detects errors in the recording screen during video recording and promptly prompts the user to re-record when errors occur, preventing the user from wasting time recording problematic videos. Furthermore, re-recording can be done only after obtaining the user's consent, avoiding unnecessary re-recording operations and improving video recording efficiency.
[0172] Optionally, after detecting the user feature information of at least one user in the recording interface, the processor 710 is further configured to: determine that the user has started a re-recording operation if the user feature information is consistent with the preset feature information; wherein the preset feature information includes at least one of the following: preset voice information, preset action information, and preset facial expression information.
[0173] The embodiments provided in this application detect user feature information of at least one user in the recording interface. If the user feature information matches preset feature information, the system determines that the user has initiated a re-recording operation. The preset feature information includes at least one of the following: preset voice information, preset action information, and preset facial expression information. Thus, during video recording, the user can control the electronic device to re-record the video at any time through specific voice, actions, or facial expressions, without requiring the user to manually stop recording and re-record, thereby improving the efficiency of video recording.
[0174] Optionally, the electronic device includes a foldable screen, and the processor 710 is further configured to: determine that the user has initiated a re-recording operation upon receiving user input to fold the foldable screen.
[0175] The embodiments provided in this application include an electronic device with a foldable screen. Upon receiving a user's input to fold the screen, the device determines that the user has initiated a re-recording operation. Thus, during video recording, the user can control the electronic device to re-record the video at any time by inputting to fold the screen, achieving a one-click video re-recording interaction and improving video recording efficiency.
[0176] Optionally, the processor 710 is specifically configured to: detect a second video segment located at the end of the first video segment; if a pause point is detected in the second video segment, determine the pause point as a re-recording time point; if no pause point is detected in the second video segment, determine a first time point in the second video segment as a 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] The embodiments provided in this application, during the process of determining the re-recording time point based on the first recorded video, detect the second video segment located at the end of the first video segment; if a pause point is detected in the second video segment, the pause point is determined as the re-recording time point; if 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. Thus, during video recording, if the re-recording conditions are met, the electronic device can select a suitable re-recording time point from the already recorded video to begin re-recording, ensuring the accuracy of the determined re-recording time point, avoiding users re-recording excessively long videos, reducing the time spent recording videos, and improving the efficiency of video recording.
[0178] Optionally, the audio output unit 703 is further configured to play a third video segment located at the end of the first video segment on the recording interface; the display unit 706 is further configured to: adjust the first content to the second content corresponding to the re-recording time point when the first content is displayed on the recording interface; and display a second prompt message on the recording interface, the second prompt message being used to prompt the user to start preparing for re-recording.
[0179] The embodiments provided in this application, before recording the second video starting from the re-recording time point, play a third video segment located at the end of the first video segment on the recording interface; if the first content is displayed on the recording interface, the first content is adjusted to the second content corresponding to the re-recording time point; a second prompt message is displayed on the recording interface to prompt the user to start preparing for re-recording. In this way, before re-recording the video, playing the previously recorded content, adjusting the display content used to assist recording on the recording interface back to the display state at the re-recording time point, and displaying the second prompt message to prompt the user to start preparing for re-recording facilitates the user's preparation for subsequent video recording, ensuring the smoothness of video recording and improving the fluency of the recorded video.
[0180] Optionally, the processor 710 is also configured to: add a transition animation at the re-recording time point when the re-recording time point is the first time point in the second video segment.
[0181] In the embodiments provided in this application, before recording the second video with the re-recording time point as the starting time point, if 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. This addition of transition animation for transitions ensures the smoothness of the video recording.
[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: synchronously play the fourth video segment when playing the fifth video segment in the third video.
[0183] In the embodiments provided in this application, after generating a third video based on the first and second videos, 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 playing the fifth video segment in the third video, the fourth video segment is played synchronously. This facilitates users in comparing and viewing the content of the original video segments and the new video segments before and after re-recording, and allows users to select appropriate video segments for the final 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 for: when the electronic device has only a single display screen, to 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, to play at least one fourth video segment on the first screen and at least one fifth video segment on the second screen.
[0185] In the embodiments provided in this application, the number of fourth and fifth video segments is at least one. While playing the fifth video segment of the third video, the fourth video segment is played synchronously. If the electronic device has only a single display screen, at least one fourth video segment and at least one fifth video segment are played synchronously in separate areas within the display screen. If 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. This allows for simultaneous playback of the original and new video segments before and after re-recording, either on separate screens or in separate areas. This facilitates user comparison and viewing of the content of the original and new video segments before and after re-recording, and allows users to select the appropriate video segment for the final generated video.
[0186] Optionally, the user input unit 707 is configured to receive a first input from a user to the electronic device; the processor 710 is further configured to: in response to the first input, replace the fifth video segment in the third video with the fourth video segment.
[0187] In the embodiments provided in this 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 add to the final generated video, thus meeting the user's needs.
[0188] It should be understood that, in this embodiment, the input unit 704 may include a graphics processing unit (GPU) 7041 and a microphone 7042. The GPU 7041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 706 may include a display panel 7061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 707 includes at least one of a touch panel 7071 and other input devices 7072. The touch panel 7071 is also called a touch screen. The touch panel 7071 may include a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.
[0189] The memory 709 can be used to store software programs and various data. The memory 709 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 709 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 709 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.
[0190] Processor 710 may include one or more processing units; optionally, processor 710 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 710.
[0191] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described video recording method embodiments and achieve the same technical effects. To avoid repetition, they will not be described again here.
[0192] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0193] This application also provides a chip, which includes a processor and a communication interface. The communication interface and the processor are coupled. The processor is used to run programs or instructions to implement the various processes of the above-described video recording method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0194] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0195] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the video recording method embodiments described above, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0196] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0197] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of this application.
[0198] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A video recording method, characterized in that, The video recording method, performed by an electronic device, includes: During the video recording process, if the re-recording conditions are met or the user initiates the re-recording operation, the re-recording time point is determined based on the first recorded video. Record a second video starting from the re-recording time point; A third video is generated based on the first video and the second video, the third video including a first video segment in the first video located before the re-recording time point and the second video; The step of determining the re-recording time point based on the already recorded first video includes: The second video segment located at the end of the first video period is detected; If a pause point is detected in the second video segment, the pause point is determined as the re-recording time point; If 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 first time point is close to the end time point of the second video segment, and the pause point includes at least one of the following: voice pause point, action pause point.
2. The video recording method according to claim 1, characterized in that, The video recording method also includes: During the video recording process, user feature information of at least one of the users in the recording interface is detected; If the user's characteristic information indicates that the first recorded video is abnormal, a first prompt message is displayed, which prompts the user to re-record the video. Upon receiving confirmation input from the user regarding the first prompt message, it is determined that the user has initiated a re-encoding operation; The user feature information includes at least one or a combination of the following: voice feature information, action feature information, and facial expression feature information.
3. The video recording method according to claim 2, characterized in that, After detecting the user feature information of at least one user in the recording interface, the video recording method further includes: If the user's characteristic information matches the preset characteristic information, it is determined that the user has initiated a re-enrollment operation; The preset feature information includes at least one of the following: preset voice information, preset action information, and preset facial expression information.
4. The video recording method according to claim 1, characterized in that, The electronic device includes a foldable screen, and the video recording method further includes: Upon receiving the user's input to fold the foldable screen, it is determined that the user has initiated a re-recording operation.
5. The video recording method according to claim 1, characterized in that, Before recording the second video starting from the re-recording time point, the video recording method further includes: Play the third video segment located at the end of the first video segment on the recording interface; If the first content is displayed in the recording interface, the first content will be adjusted to the second content corresponding to the re-recording time point; A second prompt message is displayed on the recording interface, which prompts the user to start preparing to re-record.
6. The video recording method according to claim 1, characterized in that, Before recording the second video starting from the re-recording time point, the video recording method further includes: If the re-recording time point is the first time point in the second video segment, a transition animation is added to the re-recording time point.
7. The video recording method according to any one of claims 1 to 6, characterized in that, After generating the third video based on the first video and the second video, the video recording method further includes: 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 are packaged and saved into the same video file; When the fifth video segment of the third video is played, the fourth video segment is played simultaneously.
8. The video recording method according to claim 7, characterized in that, The number of the fourth video segment and the fifth video segment is at least one, and the step of synchronously playing the fourth video segment while playing the fifth video segment in the third video includes: In the case where the electronic device has only a single display screen, at least one of the fourth video segments and at least one of the fifth video segments are played synchronously in different areas within the display screen; When 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.
9. The video recording method according to claim 7, characterized in that, After synchronously playing the fourth video segment, the video recording method further includes: Receive the user's first input to the electronic device; In response to the first input, the fifth video segment in the third video is replaced with the fourth video segment.
10. A video recording device, characterized in that, The video recording device, used in electronic devices, includes: The processing unit is used to determine the re-recording time point based on the first recorded video during the video recording process, when the re-recording conditions are met or the user initiates the re-recording operation. The recording unit is used to record a second video starting from the re-recording time point; A generation unit is configured to generate a third video based on the first video and the second video, wherein the third video includes a first video segment located before the re-recording time point in the first video and the second video; The processing unit is specifically used to detect a second video segment located at the end of the first video segment; if a pause point is detected in the second video segment, the pause point is determined as the re-recording time point; if no pause point is detected in the second video segment, a first time point in the second video segment is determined as the re-recording time point; wherein, the first time point is close to the end time point of the second video segment, and the pause point includes at least one of the following: a voice pause point and an action pause point.
11. An electronic device, characterized in that, It includes a processor and a memory, the memory storing a program or instructions that can run on the processor, the program or instructions being executed by the processor to implement the steps of the video recording method as described in any one of claims 1 to 9.
Citation Information
Patent Citations
Video recording method, device and equipment and readable storage medium
CN109120877A
Video recording method and electronic equipment
CN110602386A
Video acquisition method and device, storage medium and electronic device
CN112218154A
Text-based audio / video rerecording method and system
CN113438434A