Video recording method, device, electronic device and storage medium

By receiving user input during the video recording of electronic devices and encrypting video clips, the problem of single and low security recording of electronic devices is solved, and diverse and high-security video recording is achieved.

CN115348405BActive Publication Date: 2025-04-18VIVO MOBILE COMM CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211019182.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-24
Publication Date
2025-04-18
Estimated Expiration
2042-08-24

AI Technical Summary

Technical Problem

Videos recorded by electronic devices are relatively simple and have low security, and user privacy is easily leaked.

Method used

By receiving the user's input during the video recording process, stop recording of the video, obtaining the video clip, and encrypting the video clip based on the recording object selected by the user to synthesize the target video.

Benefits of technology

The diversity and security of video recording are realized. User privacy can only unlock the next video clip when playing videos, avoiding privacy leakage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115348405B_ABST
    Figure CN115348405B_ABST
Patent Text Reader

Abstract

The present application discloses a video recording method, device, electronic device and storage medium, belonging to the field of video recording technology. The method comprises: when recording a video and displaying a video recording interface, receiving a first input, the video recording interface comprising at least one recording object, the first input being a user's input to a first recording object among the at least one recording object; in response to the first input, stopping the video recording, obtaining a first video clip, and continuing to start recording the next video clip; receiving a second input to the first recording object; in response to the second input, stopping the video recording, obtaining a second video clip, and encrypting the second video clip based on the first recording object; and obtaining a target video based on the first video clip and the encrypted second video clip.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] With the continuous development of electronic devices, using electronic devices to record videos has become a common operation in our daily lives. However, when users record videos, they all use conventional operations: click the shooting button to record, and when the desired content is recorded, click the shooting button again to end the recording; therefore, when users view the video, they view the original video of the entire period; or when users share the video with other users, they also share the original recorded video in its entirety, so that the video that other users click to view is also the original video of the entire period, and users can view all the contents of the video by clicking the play button, which will also cause the leakage of user privacy. In this way, the videos recorded by electronic devices are relatively simple and less secure. Summary of the invention

[0003] The purpose of the embodiments of the present application is to provide a video recording method, device, electronic device and storage medium, which can solve the problem that the videos recorded by electronic devices are relatively simple and have low security.

[0004] In order to solve the above technical problems, this application is implemented as follows:

[0005] In a first aspect, an embodiment of the present application provides a video recording method, which includes: when recording a video and displaying a video recording interface, receiving a first input from a user, the video recording interface including at least one recording object, the first input being an input by the user to a first recording object among the at least one recording object; in response to the first input, stopping the video recording, obtaining a first video clip, and continuing to record the next video clip; receiving a second input to the first recording object; in response to the second input, stopping the video recording, obtaining a second video clip, and encrypting the second video clip based on the first recording object; and obtaining a target video based on the first video clip and the encrypted second video clip.

[0006] In a second aspect, an embodiment of the present application provides a video recording device, which includes: a receiving module and a processing module. The receiving module is used to receive a first input when recording a video and displaying a video recording interface, the video recording interface including at least one recording object, and the first input is a user's input of a first recording object in the at least one recording object. The processing module is used to stop recording the video in response to the first input received by the receiving module, obtain a first video clip, and continue to record the next video clip. The receiving module is also used to receive a second input to the first recording object. The processing module is also used to stop recording the video in response to the second input received by the receiving module, obtain a second video clip, and encrypt the second video clip based on the first recording object; and obtain a target video based on the first video clip and the encrypted second video clip.

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

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

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

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

[0011] In an embodiment of the present application, when the electronic device is recording a video and a video recording interface is displayed, the user can input a first recording object in the video recording interface to cause the electronic device to stop recording the video, obtain a first video clip, and continue to record the next video clip. The user can then input the first recording object again to cause the electronic device to stop recording the video, obtain a second video clip, and encrypt the second video clip based on the first recording object, thereby obtaining the target video based on the first video clip and the encrypted second video clip. In this solution, when the electronic device is recording a video, the user can input any recording object (for example, the target recording object) so that the electronic device obtains the first video (i.e., the first video clip), and then the electronic device can continue to record the video until the user inputs the target recording object again, then stops recording the video to obtain the second video (i.e., the second video clip), and then the electronic device can encrypt the second video clip based on the recording object selected by the user (i.e., the target recording object), so that the electronic device can obtain the target video based on the first video clip and the encrypted second video clip, that is, the target video is a video obtained by synthesizing multiple video clips in the recording process, so the target video recorded by the electronic device is diverse; and some video clips in the target video are video clips encrypted according to the recording object input by the user, rather than the originally recorded video, that is, after playing the first video clip of the target video, the user needs to select the correct recording object (i.e., the target recording object), and the electronic device will unlock the second video clip to play the second video clip, thereby avoiding the leakage of user privacy; in this way, the videos recorded by the electronic device are diverse and have high security. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 is a schematic diagram of a video recording method provided in an embodiment of the present application;

[0013] Figure 2 This is one of the example schematic diagrams of a mobile phone interface provided in an embodiment of the present application;

[0014] Figure 3 This is a second example schematic diagram of an interface of a mobile phone provided in an embodiment of the present application;

[0015] Figure 4 This is a third example schematic diagram of an interface of a mobile phone provided in an embodiment of the present application;

[0016] Figure 5 This is a fourth example schematic diagram of an interface of a mobile phone provided in an embodiment of the present application;

[0017] Figure 6 This is a fifth example schematic diagram of an interface of a mobile phone provided in an embodiment of the present application;

[0018] Figure 7 This is a sixth example schematic diagram of an interface of a mobile phone provided in an embodiment of the present application;

[0019] Figure 8 This is the seventh example schematic diagram of an interface of a mobile phone provided in an embodiment of the present application;

[0020] Fig. 9 This is an eighth example schematic diagram of an interface of a mobile phone provided in an embodiment of the present application;

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

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

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

[0024] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0025] 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 data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, 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.

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

[0027] The video recording method in the embodiment of the present application can be applied to the scenario of video recording and sharing.

[0028] At present, creating videos and sharing them with friends or on social networks has become a common operation in our daily life. Currently, almost all video creation and sharing requires users to record complete videos and then share them with other users. The videos that other users click to view are also the original videos of the complete period. That is, the videos seen by all users are the same, and it is impossible to view the different effects given to the videos by the users who created the videos through some specific operations, which lacks fun and creativity.

[0029] In this solution, during the video recording process, after the user clicks to select a certain recording object or connects multiple recording objects in sequence, the electronic device starts recording the video of the hidden period. When the user clicks the selected recording object again, the recording of the video of the hidden period ends and is encrypted. And when the user is viewing the video, the electronic device will stop playing the video when it plays to the hidden period. The user who is viewing the video can only see the encrypted hidden recording video after selecting the correct recording object or connecting the recording objects in the correct order, otherwise the video of the hidden period is directly skipped. In this way, the user can freely select the video period that he wants to hide during the video recording process, and encrypt the video of the hidden period using objects in the actual scene. The user who is viewing the video can only watch the video of the hidden period after clicking to select the correct recording object, which increases the fun and playability of users when creating and sharing videos.

[0030] In the solution provided in the embodiment of the present application, when the electronic device is recording a video and a video recording interface is displayed, the user can input the first recording object in the video recording interface to make the electronic device stop recording the video, obtain the first video clip, and continue to record the next video clip. Then the user can input the first recording object again to make the electronic device stop recording the video, obtain the second video clip, and encrypt the second video clip based on the first recording object, so as to obtain the target video based on the first video clip and the encrypted second video clip. In this solution, when the electronic device is recording a video, the user can input any recording object (for example, the target recording object) so that the electronic device obtains the first video (i.e., the first video clip), and then the electronic device can continue to record the video until the user inputs the target recording object again, then stops recording the video to obtain the second video (i.e., the second video clip), and then the electronic device can encrypt the second video clip based on the recording object selected by the user (i.e., the target recording object), so that the electronic device can obtain the target video based on the first video clip and the encrypted second video clip, that is, the target video is a video obtained by synthesizing multiple video clips in the recording process, so the target video recorded by the electronic device is diverse; and some video clips in the target video are video clips encrypted according to the recording object input by the user, rather than the originally recorded video, that is, after playing the first video clip of the target video, the user needs to select the correct recording object (i.e., the target recording object), and the electronic device will unlock the second video clip to play the second video clip, thereby avoiding the leakage of user privacy; in this way, the videos recorded by the electronic device are diverse and have high security.

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

[0032] Step 201: When recording a video and displaying a video recording interface, the electronic device receives a first input.

[0033] In the embodiment of the present application, the video recording interface includes at least one recording object, and the first input is the user's input to the first recording object among the at least one recording object.

[0034] In an embodiment of the present application, when an electronic device is recording a video and a video recording interface is displayed, the electronic device can input a first recording object among at least one recording object included in the video recording interface, triggering the electronic device to stop recording the video, obtain a first video clip, and continue to start recording the next video clip. Then the user can input the first recording object again, triggering the electronic device to stop recording the video, obtain a second video clip, and encrypt the second video clip based on the first recording object. Finally, the electronic device can obtain the target video based on the first video clip and the encrypted second video clip.

[0035] Optionally, in an embodiment of the present application, the above-mentioned first input can be a user's selection input for the first recording object; or, when the first recording object is multiple recording objects, the first input can be a user's sliding input, clicking input, long pressing input, circle selection input, etc. for multiple recording objects.

[0036] Step 202: In response to the first input, the electronic device stops recording the video, obtains the first video segment, and continues to record the next video segment.

[0037] In the embodiment of the present application, the user can input a first recording object among at least one recording object, so that the electronic device stops recording the video, obtains the first video clip, and continues to start recording the next video clip.

[0038] For example, the electronic device is a mobile phone. When the mobile phone is recording a video, Figure 2 As shown in (A), the user can click on the first recording object (eg, book 11) to trigger the mobile phone to stop recording the video and obtain the first video clip; Figure 2 As shown in (B) in the figure, the mobile phone continues to start recording the video, that is, starts recording the second video clip.

[0039] As another example, when the mobile phone is recording a video, Figure 2 As shown in (C) in FIG. 1 , the user can input a first recording object (for example, book 11, chair 12, table 13, desk lamp 14), and slide input multiple recording objects in the order of book 11-chair 12-table 13-desk lamp 14, triggering the mobile phone to stop recording the video, and obtain a first video clip; Figure 2 As shown in (D) in the figure, the phone continues to record the video.

[0040] Optionally, in an embodiment of the present application, when the first input is the user's input of multiple recording objects, the electronic device may remind the user to input the multiple recording objects again after the user inputs the multiple recording objects, and when the recording objects input twice and the input order of the recording objects are consistent, the electronic device is triggered to stop recording the video, obtain the first video clip, and continue to start recording the next video clip.

[0041] Optionally, in an embodiment of the present application, when the electronic device continues to start recording the next video clip, the recording interface displays the recording time of the video clip.

[0042] Optionally, in an embodiment of the present application, after the user inputs a first recording object, the electronic device may recommend a video recording template based on the recording object input by the user, so that the user continues to record the video using the video recording template.

[0043] Optionally, in an embodiment of the present application, the above-mentioned video recording interface also includes at least one object mark, each object mark corresponds to a recording object; the first input is specifically the user's input of the first object mark corresponding to the first recording object; before "the electronic device continues to start recording the next video clip" in the above-mentioned step 202, the video recording method provided in the embodiment of the present application also includes the following step 301.

[0044] Step 301: The electronic device cancels display of other object marks in the video recording interface.

[0045] In the embodiment of the present application, the other object tags are object tags other than the first object tag in the at least one object tag.

[0046] In an embodiment of the present application, the video recording interface displayed by the electronic device includes at least one recording object. The electronic device can display at least one object mark in the video recording interface for the at least one recording object, so that the user can input a first object mark among the at least one object mark, triggering the electronic device to stop recording the video, obtain the first video clip, and cancel the display of other object marks in the video recording interface, that is, only the first object mark is displayed in the video recording interface, and then the electronic device continues to start recording the next video clip.

[0047] Optionally, in an embodiment of the present application, after a user opens a video recording application (for example, a camera application or a chat application), the electronic device displays a video recording preview interface. The electronic device can identify the recording object in the current video recording preview interface through artificial intelligence (AI) recognition technology, and display the object mark corresponding to each recording object in at least one recording object in real time in the video recording preview interface and during the video recording process.

[0048] Optionally, in the embodiment of the present application, the object mark may be the name of the recording object, the serial number of the recording object, or other custom marks, such as “1, desk”.

[0049] For example, Figure 3 As shown, during the video recording process, the mobile phone displays object marks of multiple recording objects on the video recording interface: 1. book, 2. desk lamp, 3. table, 4. chair, 5. drawer.

[0050] Optionally, in the embodiment of the present application, the mark position of the object mark can be any of the following: displayed above, below, upper right, lower left, etc. of the recorded object, as long as the display of the recorded object is not blocked.

[0051] Optionally, in an embodiment of the present application, the above-mentioned first input can be a user's selection input for the first object mark; or, when the first object mark includes multiple object marks, the first input can be a user's sliding input, clicking input, long pressing input, circle selection input, etc. for multiple object marks.

[0052] For example, in combination Figure 3 ,like Figure 4 As shown in (A), the user can click on the first object mark (for example, "1. Book") to trigger the mobile phone to stop recording the video and obtain the first video clip; Figure 4 As shown in (B) in the figure, the mobile phone cancels displaying other object tags in the video recording interface, that is, only the object tag "1. Book" is displayed in the video recording interface, and then the mobile phone continues to start recording the video.

[0053] Again illustratively, in combination Figure 3 ,like Figure 4 As shown in (C) in FIG. 1 , the user inputs a first object tag (for example, “1. book”, “4. chair”, “3. table”, and “2. desk lamp”) to trigger the mobile phone to stop recording the video, thereby obtaining a first video clip; Figure 4 As shown in (D) in the figure, the mobile phone cancels the display of other object tags in the video recording interface, that is, only the object tags "1. Book", "4. Chair", "3. Table" and "2. Desk lamp" are displayed in the video recording interface, and then the mobile phone continues to start recording the video.

[0054] In an embodiment of the present application, since the user inputs the first object mark among at least one object mark, triggering the electronic device to stop recording the video, after obtaining the first video clip, it will also trigger the electronic device to cancel the display of other object marks in the video recording interface (that is, only the first object mark is displayed in the video recording interface), and then the electronic device continues to start recording the video, so that the user can be reminded in real time during the process of continuing to record the video that the video corresponding to the first object mark is being recorded.

[0055] Step 203: The electronic device receives a second input to the first recording object.

[0056] Optionally, in an embodiment of the present application, the second input may be any possible form of input such as a click input, a long press input, a re-press input or a double-click input of the first recording object by the user; or, when the first recording object includes multiple recording objects, the second input may be any possible form of input such as a click input, a long press input, a re-press input or a double-click input of the user to any one of the multiple recording objects, and the input may be any possible form of input such as a click input, a long press input, a re-press input or a double-click input of the user to any one of the first recording objects.

[0057] For example, in combination Figure 2 In (B), such as Figure 5 As shown in (A), while the mobile phone continues to record the video, the user can click on the first recording object (for example, book 11) again to trigger the mobile phone to stop recording the video, obtain the second video clip, and encrypt the second video clip based on the first recording object "book".

[0058] Again illustratively, in combination Figure 2 In (D), such as Figure 5 As shown in (B), while the mobile phone continues to start recording the video, the user can click on any recording object in the first recording object (for example, "chair 12") to trigger the mobile phone to stop recording the video, obtain the second video clip, and encrypt the second video clip based on the first recording object.

[0059] Step 204: The electronic device stops recording the video in response to the second input, obtains a second video segment, and encrypts the second video segment based on the first recording object.

[0060] Optionally, in an embodiment of the present application, the electronic device may start recording a video using a system default filter. When a user inputs a first recording object during video recording, the electronic device may be triggered to stop recording the video, thereby obtaining a first video clip recorded using the system default filter, and continuing to record the next video clip using the first filter. The first filter is obtained by the electronic device through recognition and analysis of the first recording object input by the user, so that when the user inputs the first recording object again, the electronic device may be triggered to stop recording the video, thereby obtaining a second video clip recorded using the first filter.

[0061] Optionally, in an embodiment of the present application, after the user inputs the first recording object and triggers the electronic device to use the first filter to record a second video clip of the target time period, the user can input at least one recording object other than the first recording object to trigger the electronic device to use a filter different from the first filter (for example, the second filter) to record the second video clip of the target time period again. That is, the user's input to different recording objects can be used to trigger the electronic device to use different filters to record multiple video clips of the same time period. When the electronic device plays the recorded complete video and finishes playing the first video clip, the user can trigger the electronic device to play the second video clip recorded using a different filter by inputting different recording objects. In this way, the diversity of video recording by the electronic device is improved.

[0062] For example, when an electronic device is recording a video using a system default filter, a user can input a first recording object (e.g., a table) at 1 minute and 10 seconds, triggering the electronic device to stop recording the video, obtaining a first video clip recorded using the system default filter, and using a first filter (e.g., a movie filter) to start recording the next video clip from 1 minute and 10 seconds. Then, when the user inputs the first recording object again at 2 minutes and 20 seconds, the electronic device can be triggered to stop recording the video, obtaining a second video clip recorded using the first filter and having a time period of 1 minute and 10 seconds to 2 minutes and 20 seconds. Afterwards, the user can select at least one of the recording objects except the first recording object. By inputting a recording object other than the one in the video clip (for example, a chair), the electronic device is triggered to use a second filter (for example, a bubble filter) to record a video clip with a time period of 1 minute 10 seconds to 2 minutes 20 seconds again. In this way, when the electronic device is playing a video and finishes playing the first video clip, if the user inputs the recording object (for example, a table), the electronic device can be triggered to play the second video clip with a time period of 1 minute 10 seconds to 2 minutes 20 seconds recorded using the first filter; or, if the user inputs the recording object (for example, a chair), the electronic device can be triggered to play the second video clip with a time period of 1 minute 10 seconds to 2 minutes 20 seconds recorded using the second filter.

[0063] Optionally, in an embodiment of the present application, the filter used by the electronic device during video recording is obtained based on the recognition and analysis of the recording object input by the user.

[0064] Optionally, in an embodiment of the present application, when the above-mentioned first input is the user's input of a first object mark corresponding to a first recording object, the user inputs the first recording object again (i.e., the second input), triggering the electronic device to stop recording the video, and after obtaining the second video clip, the video recording preview interface displays at least one object mark, i.e., restores the display of other object marks, so that the user can select at least one object mark again, triggering the electronic device to continue recording the video.

[0065] Optionally, in the embodiment of the present application, "the electronic device encrypts the second video clip based on the first recording object" in the above step 204 can be specifically implemented through the following step 204a.

[0066] Step 204a: The electronic device uses the first recording object or target information to encrypt the second video segment to obtain an encrypted second video segment.

[0067] In the embodiment of the present application, the target information includes input feature information of the first recording object and the first input.

[0068] Optionally, in the embodiment of the present application, the target information may include a first object mark corresponding to the first recording object.

[0069] Optionally, in an embodiment of the present application, the input feature information of the above-mentioned first input includes at least one of the following: input form (such as click input, sliding input, long press input, etc.), input starting position, input ending position, input trajectory, etc.

[0070] Optionally, in an embodiment of the present application, the electronic device may synthesize the input feature information of the first recording object and the first input to encrypt the second video clip.

[0071] It can be understood that after the electronic device completes recording of all video clips, plays the video, and ends playing the first video clip, only by inputting the correct recording object (i.e., the first recording object) can the second video clip be unlocked, thereby starting to play the second video clip;

[0072] Alternatively, the second video clip can be unlocked and playback of the second video clip can begin only when the correct recording object is input and the input feature information of the input matches the input feature information of the first input (for example: the input form of the input, the starting position of the input, the ending position of the input, the input trajectory and the input form of the first input, the starting position of the first input, the ending position of the first input, the input trajectory of the first input).

[0073] For example, Figure 2 As shown in (A), the first recording object is "Book 11"; or Figure 2 As shown in (C), the first recording objects are "Book 11", "Desk Lamp 14", "Table 13" and "Chair 12", and the input feature information of the user's first input includes: sliding input, the starting position of the input is "Book 11", the ending position of the input is "Desk Lamp 14", and the input trajectory is a connection trajectory of "Book 11-Chair 12-Table 13-Desk Lamp 14".

[0074] Optionally, in an embodiment of the present application, when a user inputs a first object tag corresponding to a first recording object, the electronic device may use the first object tag to encrypt the second video clip to obtain an encrypted second video clip, or may use the first object tag and input feature information of the first input to encrypt the second video clip to obtain an encrypted second video clip.

[0075] It can be understood that when the user inputs the first object marker corresponding to the first recording object, the input feature information of the above-mentioned first input can be at least one of the following: the input form when inputting the first object marker, the starting position when inputting the first object marker, the ending position when inputting the first object marker, and the input trajectory when inputting the first object marker.

[0076] Step 205: The electronic device obtains a target video based on the first video segment and the encrypted second video segment.

[0077] In the embodiment of the present application, after the electronic device obtains the encrypted second video segment, it can synthesize the first video segment and the encrypted second video segment to obtain the target video.

[0078] Optionally, in an embodiment of the present application, after obtaining the target video, the electronic device may send the target video to another electronic device (e.g., a second electronic device); or, after the electronic device completes recording the video, it may display a user identifier, a device identifier, or an account identifier, and the user may select any identifier to trigger the electronic device to share the target video with the device corresponding to the identifier (e.g., a second electronic device); or, after the electronic device completes recording the video, that is, after obtaining the target video, the electronic device may display at least one social platform identifier, and the user may select any social platform identifier to trigger the electronic device to publish the target video on the social platform corresponding to the social platform identifier, so that other electronic devices (e.g., a second electronic device) can view the target video through the same social platform.

[0079] Optionally, in the embodiment of the present application, the above step 205 can be specifically implemented by the following step 205a.

[0080] Step 205a: The electronic device synthesizes the first video segment, the encrypted second video segment, and recording-related parameters of the second video segment to obtain a target video.

[0081] In an embodiment of the present application, the recording-related parameters of the above-mentioned second video clip include at least one of the following: start recording time, end recording time, recording duration, input feature information of the first input, and at least one recording object.

[0082] Optionally, in an embodiment of the present application, the recording-related parameters of the second video clip include a start recording time. When the electronic device plays the target video, the start recording time of the second video clip can be obtained, and thus, during the process of playing the target video, the video can be stopped according to the start recording time of the second video clip.

[0083] Optionally, in an embodiment of the present application, the recording-related parameters of the second video clip include input feature information of the first input and at least one recording object. When the electronic device plays the target video, it can obtain the recording-related parameters of the second video clip, so that when playing the target video and stopping the video according to the start recording time of the second video clip, the user can input at least one recording object. When the input recording object is the correct recording object (i.e., the first recording object) and the input feature information matches the input feature information of the first input, the electronic device is triggered to unlock the second video clip, thereby starting to play the second video clip.

[0084] Optionally, in the embodiment of the present application, the recording-related parameters of the second video segment include an end recording time, and when the electronic device plays the target video, the end recording time of the second video segment can be known, and the second video segment can be stopped during the playing of the target video; or,

[0085] When the electronic device stops playing the video according to the start recording time of the second video segment and the user chooses to directly skip playing the second video segment, the electronic device directly plays other subsequent video segments according to the end recording time of the second video segment; or

[0086] When the next video segment of the second video segment is an encrypted video segment, the electronic device stops playing the video at the end of the second video segment based on the end recording time of the second video segment and at least one recording object, and the user can input at least one recording object to unlock the next video segment.

[0087] Optionally, in the embodiment of the present application, the recording-related parameters of the second video segment include the recording duration. When the electronic device plays the target video, the recording duration of the second video segment can be known, and the end recording time of the second video segment can be obtained according to the start recording time of the second video segment and the recording duration of the second video segment, so that after the first video segment ends playing, other subsequent video segments can be directly played (i.e., the second video segment can be directly skipped); or,

[0088] In the case that the next video clip of the second video clip is an encrypted video clip, the electronic device can derive the end recording time of the second video clip based on the start recording time of the second video clip and the recording duration of the second video clip, so that when the second video clip ends playing according to the end recording time of the second video clip and at least one recording object, the user can input at least one recording object to unlock the next video clip.

[0089] An embodiment of the present application provides a video recording method. When an electronic device is recording a video and a video recording interface is displayed, a user can input a first recording object in the video recording interface to cause the electronic device to stop recording the video, obtain a first video clip, and continue to record the next video clip. Then the user can input the first recording object again to cause the electronic device to stop recording the video, obtain a second video clip, and encrypt the second video clip based on the first recording object, so as to obtain the target video based on the first video clip and the encrypted second video clip. In this solution, when the electronic device is recording a video, the user can input any recording object (for example, the target recording object) so that the electronic device obtains the first video (i.e., the first video clip), and then the electronic device can continue to record the video until the user inputs the target recording object again, then stops recording the video to obtain the second video (i.e., the second video clip), and then the electronic device can encrypt the second video clip based on the recording object selected by the user (i.e., the target recording object), so that the electronic device can obtain the target video based on the first video clip and the encrypted second video clip, that is, the target video is a video obtained by synthesizing multiple video clips in the recording process, so the target video recorded by the electronic device is diverse; and some video clips in the target video are video clips encrypted according to the recording object input by the user, rather than the originally recorded video, that is, after playing the first video clip of the target video, the user needs to select the correct recording object (i.e., the target recording object), and the electronic device will unlock the second video clip to play the second video clip, thereby avoiding the leakage of user privacy; in this way, the videos recorded by the electronic device are diverse and have high security.

[0090] Optionally, in the embodiment of the present application, after the above step 204, the video recording method provided in the embodiment of the present application further includes the following steps 401 to 403, and step 205 can be specifically implemented by step 205b.

[0091] Step 401: The electronic device displays the encrypted second video clip on the video recording interface.

[0092] In an embodiment of the present application, after the electronic device encrypts the second video clip based on the first recording object, the encrypted second video clip can be displayed on the video recording interface, and then the user can input the second video clip to trigger the electronic device to edit the second video clip to obtain the edited second video clip (i.e., the third video clip).

[0093] Optionally, in an embodiment of the present application, the electronic device may display a thumbnail of the second video clip at the bottom of the video preview interface, and then the user inputs the thumbnail to trigger the electronic device to display the second video clip; or, the electronic device directly displays the second video clip in a paused state on the video preview interface; or, the electronic device directly plays the second video clip.

[0094] Optionally, in an embodiment of the present application, when the electronic device displays the encrypted second video clip, it can also simultaneously display a first control, where the first control includes at least one of the following: a deletion control, a re-recording control, and a recording object replacement control. The user can input the first control to trigger the electronic device to edit the second video clip.

[0095] For example, Figure 6 As shown in (A) in FIG. 1 , the mobile phone may display a thumbnail 15 of the second video clip at the bottom of the video preview interface, and the user may click on the thumbnail 15. Figure 6 As shown in (B) in FIG. 1 , the mobile phone displays the second video clip, and simultaneously displays a delete control 16, a re-recording control 17, and a recording object replacement control 18 (ie, a first control), so that the user can select any one of the controls to edit the second video clip.

[0096] Step 402: The electronic device receives a third input of a second video clip.

[0097] Optionally, in an embodiment of the present application, the third input may be an editing input of the second video clip by the user, such as a cropping input, a deletion input, an input for adding a filter, an input for re-recording, an input for replacing a recording object control, so as to trigger the electronic device to perform editing processing on the second video clip corresponding to the third input.

[0098] Optionally, in an embodiment of the present application, the third input may include a first sub-input and a second sub-input, the first sub-input being any possible form of input such as a click input, a long press input, a re-press input or a double-click input by the user on the second video clip, so as to trigger the first electronic device to display a first control (for example, a delete control, a re-recording control, and a recording object replacement control); the second sub-input is a click input by the user on a control (for example, a delete control), so as to trigger the first electronic device to edit the second video clip using the editing method corresponding to the one control.

[0099] Step 403: The electronic device edits the second video segment in response to the third input to obtain a third video segment.

[0100] Optionally, in the embodiment of the present application, the user may input a deletion control to trigger the electronic device to delete the second video clip.

[0101] Optionally, in an embodiment of the present application, the user can input a re-recording control to trigger the electronic device to automatically re-record the second video clip from the start recording time of the second video clip, thereby obtaining a re-recorded second video clip (ie, the third video clip).

[0102] Optionally, in an embodiment of the present application, a user may input a recording object replacement control to trigger the electronic device to replace the first recording object (for example, replacing "book" with "desk lamp"), thereby obtaining an edited second video clip (ie, the third video clip).

[0103] In an embodiment of the present application, after the electronic device encrypts the second video clip based on the first recording object, the electronic device can display the encrypted second video clip, so that the user can input the second video clip, triggering the electronic device to edit the second video clip, and obtain the edited second video clip (i.e., the third video clip), thereby improving the flexibility and diversity of recording the second video clip.

[0104] Step 205b: The electronic device obtains a target video based on the first video segment and the third video segment.

[0105] In an embodiment of the present application, after the electronic device obtains the encrypted second video clip, the user can edit the second video clip to trigger the electronic device to obtain the third video clip, so that the electronic device can obtain the target video based on the first video clip and the third video clip.

[0106] Optionally, in an embodiment of the present application, the user inputs a recording object replacement control to trigger the electronic device to replace the first recording object. After obtaining the third video clip, the third video clip can be encrypted using the replaced first recording object and input feature information of the first input to obtain an encrypted third video clip. The first video clip, the encrypted third video clip, and the recording-related parameters of the third video clip are then synthesized to obtain the target video.

[0107] Optionally, in an embodiment of the present application, before the above-mentioned step 205, the video recording method provided in the embodiment of the present application further includes the following steps 501 to 504, and step 205 can be specifically implemented by step 205c.

[0108] Step 501: The electronic device receives a fourth input on a second recording object;

[0109] In an embodiment of the present application, after the electronic device obtains a second video clip and encrypts the second video clip based on the first recording object, the user can input a second recording object (for example, a chair) among at least one recording object to trigger the electronic device to continue recording the video. Then, the user can input the second recording object again during the video recording process to trigger the electronic device to stop recording the video and obtain a fourth video clip. The fourth video clip is encrypt-processed based on the second recording object, thereby obtaining the encrypted fourth video clip.

[0110] Step 502: The electronic device continues to record the next video segment in response to the fourth input.

[0111] Step 503: The electronic device receives a fifth input to the second recording object.

[0112] Step 504: In response to the fifth input, the electronic device stops recording the video, obtains a fourth video segment, and encrypts the fourth video segment based on the second recording object.

[0113] It should be noted that, for the fourth input and the fifth input of the second recording object, reference may be made to the description of the first input and the second input of the first recording object in the above embodiment, and for the encryption processing of the fourth video clip by the electronic device based on the second recording object, reference may be made to the description of the encryption processing of the second video clip by the electronic device based on the first recording object in the above embodiment, which will not be repeated here.

[0114] Step 205c: The electronic device obtains a target video based on the first video segment, the encrypted second video segment, and the encrypted fourth video segment.

[0115] In an embodiment of the present application, after the electronic device obtains the encrypted second video segment and the encrypted fourth video segment, it can synthesize the first video segment, the encrypted second video segment and the encrypted fourth video segment to obtain the target video.

[0116] Optionally, in an embodiment of the present application, the electronic device may synthesize the first video clip, the encrypted second video clip, the encrypted fourth video clip, the recording-related parameters of the second video clip, and the recording-related parameters of the fourth video clip to obtain a target video.

[0117] It should be noted that, for the recording related parameters of the fourth video segment, reference may be made to the description of the recording related parameters of the second video segment in the above embodiment, which will not be repeated here.

[0118] Optionally, in an embodiment of the present application, before the above-mentioned step 205, the video recording method provided in the embodiment of the present application further includes the following steps 601 to 604, and step 205 can be specifically implemented by step 205d.

[0119] Step 601: The electronic device receives a sixth input to a recording control.

[0120] In an embodiment of the present application, after the electronic device obtains the second video clip and encrypts the second video clip based on the first recording object, the user can input the recording control to trigger the electronic device to continue recording the video, and then the user can input the recording control again during the video recording process to trigger the electronic device to stop recording the video and obtain the fifth video clip (i.e., the unencrypted video clip).

[0121] Optionally, in the embodiment of the present application, the sixth input may be any possible form of input such as a click input, a long press input, a re-press input, or a double-click input of the recording control by the user to trigger the electronic device to continue recording the next video clip. The specific input may be determined according to actual use requirements and is not limited in the embodiment of the present invention.

[0122] Step 602: The electronic device continues to record the next video segment in response to the sixth input.

[0123] Step 603: The electronic device receives a seventh input to the recording control.

[0124] Optionally, in the embodiment of the present application, the seventh input may be any possible form of input such as a click input, a long press input, a heavy press input, or a double-click input of the recording control by the user to trigger the electronic device to stop recording the video and obtain the fifth video clip. The specific input may be determined according to actual use requirements and is not limited in the embodiment of the present invention.

[0125] Step 604: The electronic device stops recording the video in response to the seventh input, thereby obtaining a fifth video clip.

[0126] It can be understood that the fifth video clip mentioned above is an unencrypted video clip.

[0127] Step 205d: The electronic device obtains a target video based on the first video segment, the encrypted second video segment, and the fifth video segment.

[0128] In the embodiment of the present application, after the electronic device obtains the encrypted second video segment and the fifth video segment, it can synthesize the first video segment, the encrypted second video segment and the fifth video segment to obtain the target video.

[0129] Optionally, in an embodiment of the present application, the electronic device may synthesize the first video segment, the encrypted second video segment, recording-related parameters of the second video segment, and the fifth video segment to obtain a target video.

[0130] Optionally, in the embodiment of the present application, after the above step 205, the video recording method provided in the embodiment of the present application further includes the following steps 701 to 704.

[0131] Step 701: The electronic device starts playing the target video.

[0132] In an embodiment of the present application, when the electronic device is playing a target video and the first video segment in the target video ends playing, the electronic device can display a first message to remind the user to unlock the second video segment, and then the user can make an input, and when the input feature information meets a preset condition, the second video segment is unlocked and starts playing.

[0133] Step 702: When the first video clip is finished playing, the electronic device displays first information.

[0134] In the embodiment of the present application, the first information is used to prompt the user to unlock the second video clip.

[0135] Optionally, in an embodiment of the present application, the electronic device may display the first information in text form (for example, the content of the first information is: please unlock the next video clip).

[0136] For example, Figure 7 As shown, the electronic device displays a first message (eg, “Please unlock the next video clip”) when the first video clip finishes playing.

[0137] Optionally, in an embodiment of the present application, when the electronic device displays the first information, the user can directly input the video play button to trigger the electronic device to skip the second video clip, that is, directly play the next video clip after the second video clip; if the second video clip is the last video clip of the target video, then after the user inputs the video play button, the electronic device ends playing the target video.

[0138] Step 703: The electronic device receives an eighth input.

[0139] Optionally, in an embodiment of the present application, the eighth input is a touch input of a recording object in at least one recording object (for example, a click input, a drag input, or a slide input, etc., which is not limited in the embodiment of the present application.

[0140] Optionally, in the embodiment of the present application, the eighth input may be a touch input of an object mark corresponding to a recording object in at least one recording object.

[0141] Step 704: In response to the eighth input, the electronic device unlocks the second video clip and starts playing the second video clip when the input feature information of the eighth input meets a preset condition.

[0142] Optionally, in an embodiment of the present application, when the input feature information of the eighth input meets a preset condition, the electronic device may display a prompt message to remind the user that the input is correct, and unlock the second video clip to start playing the second video clip.

[0143] Optionally, in the embodiment of the present application, the first information includes at least one recording object. The step 704 of "when the input feature information of the eighth input meets a preset condition, the electronic device unlocks the second video clip" can be implemented by the following step 704a.

[0144] Step 704a: When the eighth input is an input to the first recorded object, or when the eighth input is an input to the first recorded object and the input feature information of the eighth input matches the input feature information of the first input, the electronic device unlocks the second video clip.

[0145] In an embodiment of the present application, when the first video clip finishes playing and the first information is displayed, the user can input a recording object in at least one recording object. If the input recording object is the first recording object, or if the input recording object is the first recording object and the input feature information of the input matches the input feature information of the first input, the electronic device unlocks the second video clip, thereby playing the second video clip.

[0146] For example, in combination Figure 7 ,like Figure 8 As shown in (A), when the first video clip finishes playing and the first information is displayed, the user can click on "Book 11" in at least one recording object, and the recording object input by the user is the first recording object. Therefore, the mobile phone superimposes a check mark (i.e., prompt information) on the recording object "Book" to prompt the user that the input is correct, and unlocks the second video clip, thereby starting to play the second video clip.

[0147] Again illustratively, in combination Figure 7 ,like Figure 8As shown in (B), when the first video clip finishes playing and the first information is displayed, the user can slide and input the multiple recording objects in the order of "book 11-chair 12-table 13-desk lamp 14", then the recording object input by the user is the first recording object, and the input feature information of the input (i.e., input form: sliding input, starting position of input: "book 11", ending position of input: "desk lamp 14", input trajectory: "book 11-chair 12-table 13-desk lamp 14") matches the input feature information of the first input, so the mobile phone superimposes and displays check marks (i.e., prompt information) on the multiple recording objects, prompting the user that the input is correct, and unlocks the second video clip, thereby playing the second video clip.

[0148] Optionally, in an embodiment of the present application, the first information may include at least one object tag, and each object tag in the at least one object tag corresponds to a recording object.

[0149] Optionally, in an embodiment of the present application, when the electronic device starts playing the target video and the first video clip ends playing, the electronic device may display at least one object mark to prompt the user to input the at least one object mark to unlock the second video clip.

[0150] Optionally, in the embodiment of the present application, when the eighth input is an input of at least one object mark, if the eighth input is an input of a first object mark corresponding to the first recorded object, the electronic device may be triggered to unlock the second video clip;

[0151] Alternatively, when the eighth input is an input to mark the first object and the input feature information of the eighth input matches the input feature information of the first input (for example: the input form, starting position, ending position, and input trajectory of the eighth input match the input form, starting position, ending position, and input trajectory of the first input), the electronic device is triggered to unlock the second video clip.

[0152] Optionally, in an embodiment of the present application, when the first recording object is a recording object, if the user inputs incorrectly, that is, the input recording object is not the first recording object, the electronic device displays a prompt message to remind the user of the input error, and skips the second video segment and continues to play the next video segment; when the second video segment is the last video segment of the target video, if the user inputs incorrectly, the electronic device ends playing the target video; if the user wants to re-enter at least one recording object (that is, the user wants to re-unlock the second video segment), the progress bar of the target video can be manually dragged to the moment when the first video segment ends playback, thereby re-entering at least one recording object.

[0153] For example, in combination Figure 7 ,like Fig. 9 As shown in (A), when the first video clip ends and the first information is displayed, the user can click on "Table Lamp 14" in at least one recording object. When the recording object input by the user is not the first recording object, the mobile phone superimposes an error number (i.e., prompt information) on the recording object "Table Lamp 14" to prompt the user that the input is wrong, and skips the second video clip and continues to play the next video clip.

[0154] Optionally, in an embodiment of the present application, when the target recording object is multiple recording objects, if the user inputs incorrectly, that is, the input recording object is not the first recording object, and / or the input feature information input does not match the input feature information of the first input, the electronic device displays a prompt message at the place where the input is incorrect to remind the user of the input error, so that the user can re-enter based on the partially correct input, until the recording object input by the user is the first recording object, and the input feature information input matches the input feature information of the first input, the electronic device unlocks the second video clip, and thus plays the second video clip; or, when the user inputs incorrectly, and / or the input feature information input does not match the input feature information of the first input, the electronic device skips the second video clip and continues to play the next video clip. When the second video clip is the last video clip of the target video, the electronic device ends playing the target video. If the user wants to re-enter at least one recording object (that is, the user wants to re-unlock the second video clip), the progress bar of the target video can be manually dragged to the moment when the first video clip ends playing, so that the user can re-enter at least one recording object.

[0155] For example, in combination Figure 7 ,like Fig. 9 As shown in (B) in FIG. 1 , when the first video clip ends playing and the first information is displayed, the user can slide and input the multiple recording objects in the order of the recording objects "book 11-chair 12-table 13-book 11". When the recording object input by the user is not the first recording object, and part of the input feature information of the input (i.e., the end position of the input: "book 11", the input track: "book 11-chair 12-table 13-book 11") does not match the input feature information of the first input, the mobile phone superimposes an error number (i.e., a prompt message) on the wrong input track to prompt the user that part of the input is wrong, so that the user can re-enter based on the prompt of the correct input; as shown in FIG. Figure 8 As shown in (B) in the figure, until the user inputs all correctly, the electronic device is triggered to unlock the second video clip, thereby playing the second video clip.

[0156] It should be noted that the video recording method provided in the embodiment of the present application can be executed by an electronic device, a video recording device, or a control module in a video recording device. In the embodiment of the present application, an electronic device executing the video recording method is taken as an example to illustrate the video recording device provided in the embodiment of the present application.

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

[0158] Among them, the receiving module 71 is used to receive a first input when recording a video and displaying a video recording interface, the video recording interface includes at least one recording object, and the first input is a user's input to a first recording object among the at least one recording object. The processing module 72 is used to stop recording the video in response to the first input received by the receiving module, obtain a first video clip, and continue to record the next video clip. The receiving module 71 is also used to receive a second input to the first recording object. The processing module 72 is also used to stop recording the video in response to the second input received by the receiving module, obtain a second video clip, and encrypt the second video clip based on the first recording object; and obtain the target video based on the first video clip and the encrypted second video clip.

[0159] An embodiment of the present application provides a video recording device. When an electronic device is recording a video, a user can input any recording object (for example, a target recording object) so that the electronic device obtains a first video (i.e., a first video clip). Then, the electronic device can continue to record the video until the user inputs the target recording object again, then stops recording the video to obtain a second video (i.e., a second video clip). Then, the electronic device can encrypt the second video clip based on the recording object selected by the user (i.e., the target recording object), so that the electronic device can obtain the target video based on the first video clip and the encrypted second video clip, that is, the target video is a video obtained by synthesizing multiple video clips in the recording process, so the target video recorded by the electronic device has diversity; and some video clips in the target video are video clips encrypted according to the recording object input by the user, rather than the originally recorded video, that is, after playing the first video clip of the target video, the user needs to select the correct recording object (i.e., the target recording object) before the electronic device unlocks the second video clip to play the second video clip, thereby avoiding leakage of user privacy; in this way, the videos recorded by the electronic device have diversity and high security.

[0160] In a possible implementation, the video recording interface further includes at least one object mark, each object mark corresponding to a recording object; the first input is specifically the user's input of the first object mark corresponding to the first recording object; the video recording device 70 provided in the embodiment of the present application also includes: a cancellation module. The cancellation module is used to cancel the display of other object marks in the video recording interface before the processing module 72 continues to start recording the next video clip, and the other object marks are object marks other than the first object mark in the at least one object mark.

[0161] In a possible implementation, the processing module 72 is specifically used to encrypt the second video segment using the first recording object or target information to obtain the encrypted second video segment, and the target information includes the first recording object and input feature information of the first input.

[0162] In a possible implementation, the processing module 72 is specifically used to synthesize the first video segment, the encrypted second video segment, and the recording-related parameters of the second video segment to obtain the target video, and the recording-related parameters of the second video segment include at least one of the following: start recording time, end recording time, recording duration, input feature information of the first input, and at least one recording object.

[0163] In a possible implementation, the video recording device 70 provided in the embodiment of the present application further includes: a display module. The display module is used to display the encrypted second video segment on the video recording interface after the processing module 72 encrypts the second video segment based on the first recording object. The receiving module 71 is also used to receive a third input to the second video segment. The processing module 72 is also used to edit the second video segment in response to the third input received by the receiving module to obtain a third video segment. The processing module 72 is specifically used to obtain a target video based on the first video segment and the third video segment.

[0164] In a possible implementation, the receiving module 71 is further used to receive a fourth input on the second recording object before the processing module 72 obtains the target video based on the first video segment and the encrypted second video segment. The processing module 72 is further used to continue recording the next video segment in response to the fourth input received by the receiving module 71. The receiving module 71 is further used to receive a fifth input on the second recording object. The processing module 72 is further used to stop recording the video in response to the fifth input received by the receiving module 71, obtain the fourth video segment, and encrypt the fourth video segment based on the second recording object. The processing module 72 is specifically used to obtain the target video based on the first video segment, the encrypted second video segment and the encrypted fourth video segment.

[0165] In a possible implementation, the receiving module 71 is further used to receive a sixth input to the recording control before the processing module 72 obtains the target video based on the first video segment and the encrypted second video segment. The processing module 72 is further used to continue recording the next video segment in response to the sixth input received by the receiving module 71. The receiving module 71 is further used to receive a seventh input to the recording control. The processing module 72 is further used to stop recording the video and obtain the fifth video segment in response to the seventh input received by the receiving module 71. The processing module 72 is specifically used to obtain the target video based on the first video segment, the encrypted second video segment and the fifth video segment.

[0166] In a possible implementation, the video recording device 70 provided in the embodiment of the present application further includes: a playback module and a display module. The playback module is used to start playing the target video. The display module is used to display a first message when the playback of the first video segment ends, and the first message is used to prompt the user to unlock the second video segment. The above-mentioned receiving module 71 is also used to receive an eighth input. The above-mentioned processing module 72 is used to respond to the eighth input received by the above-mentioned receiving module 71, and when the input feature information of the eighth input meets a preset condition, unlock the second video segment and start playing the second video segment.

[0167] In one possible implementation, the first information includes at least one recording object; the above-mentioned processing module 72 is specifically used to unlock the second video clip when the eighth input is an input to the first recording object, or when the eighth input is an input to the first recording object and the input feature information of the eighth input matches the input feature information of the first input.

[0168] The video recording device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in an electronic device. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle 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 is not specifically limited.

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

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

[0171] Alternatively, if Fig.11 As shown, an embodiment of the present application also provides an electronic device 900, including a processor 901 and a memory 902, wherein the memory 902 stores programs or instructions that can be executed on the processor 901, and when the program or instructions are executed by the processor 901, the various steps of the above-mentioned method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.

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

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

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

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

[0176] Among them, the user input unit 107 is used to receive a first input when recording a video and displaying a video recording interface. The video recording interface includes at least one recording object, and the first input is an input by the user to mark a first recording object in the at least one recording object.

[0177] The processor 110 is used to stop recording the video in response to the first input, obtain the first video segment, and continue to start recording the next video segment.

[0178] The user input unit 107 is further used to receive a second input on the first recording object.

[0179] The processor 110 is also used to stop recording the video in response to the second input, obtain a second video clip, and encrypt the second video clip based on the first recording object; and obtain the target video based on the first video clip and the encrypted second video clip.

[0180] An embodiment of the present application provides a video recording device. When an electronic device is recording a video, a user can input any recording object (for example, a target recording object) so that the electronic device obtains a first video (i.e., a first video clip). Then, the electronic device can continue to record the video until the user inputs the target recording object again, then stops recording the video to obtain a second video (i.e., a second video clip). Then, the electronic device can encrypt the second video clip based on the recording object selected by the user (i.e., the target recording object), so that the electronic device can obtain the target video based on the first video clip and the encrypted second video clip, that is, the target video is a video obtained by synthesizing multiple video clips in the recording process, so the target video recorded by the electronic device has diversity; and some video clips in the target video are video clips encrypted according to the recording object input by the user, rather than the originally recorded video, that is, after playing the first video clip of the target video, the user needs to select the correct recording object (i.e., the target recording object) before the electronic device unlocks the second video clip to play the second video clip, thereby avoiding leakage of user privacy; in this way, the videos recorded by the electronic device have diversity and high security.

[0181] Optionally, the video recording interface also includes at least one object mark, each object mark corresponding to a recording object; the first input is specifically the user's input of a first object mark corresponding to the first recording object; the processor 110 is also used to cancel the display of other object marks in the video recording interface before continuing to record the next video clip, and the other object marks are object marks other than the first object mark in at least one object mark.

[0182] Optionally, the processor 110 is specifically configured to encrypt the second video segment using the first recording object or target information to obtain the encrypted second video segment, wherein the target information includes input feature information of the first recording object and the first input.

[0183] Optionally, the processor 110 is specifically used to synthesize the first video clip, the encrypted second video clip, and the recording-related parameters of the second video clip to obtain a target video, and the recording-related parameters of the second video clip include at least one of the following: start recording time, end recording time, recording duration, input feature information of the first input, and at least one recording object.

[0184] Optionally, the display unit 106 is configured to display the encrypted second video segment on the video recording interface after the processor 110 encrypts the second video segment based on the first recording object.

[0185] The user input unit 107 is further configured to receive a third input for the second video segment.

[0186] The processor 110 is further configured to edit the second video segment in response to a third input to obtain a third video segment.

[0187] The processor 110 is specifically configured to obtain a target video based on the first video segment and the third video segment.

[0188] Optionally, the user input unit 107 is further configured to receive a fourth input on the second recording object before the processor 110 obtains the target video based on the first video segment and the encrypted second video segment.

[0189] The processor 110 is further configured to continue recording a next video segment in response to a fourth input.

[0190] The user input unit 107 is further configured to receive a fifth input on the second recording object.

[0191] The processor 110 is further configured to, in response to a fifth input, stop recording the video, obtain a fourth video segment, and encrypt the fourth video segment based on the second recording object.

[0192] The processor 110 is specifically configured to obtain a target video based on the first video segment, the encrypted second video segment, and the encrypted fourth video segment.

[0193] Optionally, the user input unit 107 is further configured to receive a sixth input to the recording control before the processor 110 obtains the target video based on the first video segment and the encrypted second video segment.

[0194] The processor 110 is further configured to continue recording a next video segment in response to a sixth input.

[0195] The user input unit 107 is further used to receive a seventh input to the recording control.

[0196] The processor 110 is further configured to stop recording the video in response to a seventh input, thereby obtaining a fifth video clip.

[0197] The processor 110 is specifically configured to obtain a target video based on the first video segment, the encrypted second video segment, and the fifth video segment.

[0198] Optionally, the processor 110 is configured to start playing the target video.

[0199] The display unit 106 is further configured to display a first message when the first video segment is finished playing, where the first message is used to prompt the user to unlock the second video segment.

[0200] The user input unit 107 is further configured to receive an eighth input.

[0201] The processor 110 is further configured to, in response to the eighth input, unlock the second video segment and start playing the second video segment when input feature information of the eighth input meets a preset condition.

[0202] Optionally, the first information includes at least one recorded object; the processor 110 is specifically used to unlock the second video clip when the eighth input is an input to the first recorded object, or when the eighth input is an input to the first recorded object and the input feature information of the eighth input matches the input feature information of the first input.

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

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

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

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

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

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

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

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

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

[0212] 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 method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

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

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

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

Claims

1. A video recording method, characterized in that: The method comprises: In a case where a video is being recorded and a video recording interface is displayed, receiving a first input, wherein the video recording interface includes at least one recording object, and the first input is an input of a user to a first recording object among the at least one recording object; In response to the first input, stop recording the video, obtain the first video segment, and continue to start recording the next video segment; receiving a second input of the first recording object; In response to the second input, stop recording the video, obtain a second video segment, and encrypt the second video segment based on the first recording object; A target video is obtained based on the first video segment and the encrypted second video segment.

2. The method according to claim 1, characterized in that The video recording interface also includes at least one object mark, each object mark corresponds to a recording object; the first input is specifically an input of a first object mark corresponding to the first recording object by a user; Before continuing to record the next video segment, the method further includes: The display of other object marks in the video recording interface is cancelled, where the other object marks are object marks other than the first object mark in the at least one object mark.

3. The method according to claim 1 or 2, characterized in that: The encrypting the second video clip based on the first recording object includes: The second video segment is encrypted using the first recording object to obtain the encrypted second video segment.

4. The method according to claim 1 or 2, characterized in that: The encrypting the second video clip based on the first recording object includes: The second video segment is encrypted using the first recording object and the input feature information of the first input to obtain the encrypted second video segment.

5. The method according to claim 1, characterized in that The step of obtaining a target video based on the first video segment and the encrypted second video segment includes: The first video clip, the encrypted second video clip, and the recording-related parameters of the second video clip are synthesized to obtain the target video, wherein the recording-related parameters of the second video clip include at least one of the following: start recording time, end recording time, recording duration, input feature information of the first input, and the at least one recording object.

6. The method according to claim 1, characterized in that After encrypting the second video segment based on the first recording object, the method further includes: Displaying the encrypted second video clip on the video recording interface; receiving a third input of the second video clip; In response to the third input, editing the second video clip to obtain a third video clip; The step of obtaining a target video based on the first video segment and the encrypted second video segment includes: The target video is obtained based on the first video segment and the third video segment.

7. The method according to claim 1, characterized in that Before obtaining the target video based on the first video segment and the encrypted second video segment, the method further includes: receiving a fourth input for a second recording object; In response to the fourth input, continue to start recording the next video segment; receiving a fifth input of the second recording object; In response to the fifth input, stop recording the video, obtain a fourth video segment, and encrypt the fourth video segment based on the second recording object; The step of obtaining a target video based on the first video segment and the encrypted second video segment includes: The target video is obtained based on the first video segment, the encrypted second video segment and the encrypted fourth video segment.

8. The method according to claim 1, characterized in that Before obtaining the target video based on the first video segment and the encrypted second video segment, the method further includes: receiving a sixth input to a recording control; In response to the sixth input, continue to start recording the next video segment; receiving a seventh input to the recording control; In response to the seventh input, stop recording the video to obtain a fifth video clip; The step of obtaining a target video based on the first video segment and the encrypted second video segment includes: The target video is obtained based on the first video segment, the encrypted second video segment, and the fifth video segment.

9. The method according to claim 1, after obtaining the target video based on the first video segment and the encrypted second video segment, the method further comprises: Start playing the target video; When the first video clip is finished playing, displaying a first message, where the first message is used to prompt the user to unlock the second video clip; receiving an eighth input; In response to the eighth input, when the input feature information of the eighth input meets a preset condition, the second video segment is unlocked and the second video segment starts to be played.

10. The method according to claim 9, characterized in that The first information includes the at least one recording object; The step of unlocking the second video clip when the input feature information of the eighth input meets a preset condition includes: When the eighth input is an input to the first recording object, the second video segment is unlocked.

11. The method according to claim 9, characterized in that The first information includes the at least one recording object; The step of unlocking the second video clip when the input feature information of the eighth input meets a preset condition includes: When the eighth input is an input to the first recording object and input feature information of the eighth input matches input feature information of the first input, the second video segment is unlocked.

12. A video recording device, characterized in that: The device comprises: a receiving module and a processing module; The receiving module is used to receive a first input when recording a video and displaying a video recording interface, wherein the video recording interface includes at least one recording object, and the first input is an input of a user to a first recording object among the at least one recording object; The processing module is used to stop recording the video in response to the first input received by the receiving module, obtain the first video segment, and continue to start recording the next video segment; The receiving module is further used to receive a second input of the first recording object; The processing module is also used to stop recording the video in response to the second input received by the receiving module, obtain a second video clip, and encrypt the second video clip based on the first recording object; and obtain the target video based on the first video clip and the encrypted second video clip.

13. The device according to claim 12, characterized in that The video recording interface also includes at least one object mark, each object mark corresponds to a recording object; the first input is specifically the user's input of the first object mark corresponding to the first recording object; the video recording device also includes: a cancellation module; The canceling module is used to cancel the display of other object marks in the video recording interface before the processing module continues to start recording the next video clip. The other object marks are object marks other than the first object mark in the at least one object mark.

14. The device according to claim 12 or 13, characterized in that The processing module is specifically configured to use the first recording object to perform encryption processing on the second video segment to obtain the encrypted second video segment.

15. The device according to claim 12 or 13, characterized in that The processing module is specifically used to encrypt the second video segment using the first recording object and the input feature information of the first input to obtain the encrypted second video segment.

16. The device according to claim 12, characterized in that The processing module is specifically used to synthesize the first video segment, the encrypted second video segment, and the recording-related parameters of the second video segment to obtain the target video. The recording-related parameters of the second video segment include at least one of the following: start recording time, end recording time, recording duration, input feature information of the first input, and at least one recording object.

17. The device according to claim 12, characterized in that The video recording device further includes: a display module; The display module is configured to display the encrypted second video segment on the video recording interface after the processing module encrypts the second video segment based on the first recording object; The receiving module is further configured to receive a third input of the second video segment; The processing module is further configured to edit the second video segment in response to the third input received by the receiving module to obtain a third video segment; The processing module is specifically configured to obtain the target video based on the first video segment and the third video segment.

18. The device according to claim 12, characterized in that The receiving module is further configured to receive a fourth input of a second recording object before the processing module obtains a target video based on the first video segment and the encrypted second video segment; The processing module is further configured to continue recording a next video segment in response to the fourth input received by the receiving module; The receiving module is further used to receive a fifth input of the second recording object; The processing module is further configured to, in response to the fifth input received by the receiving module, stop recording the video, obtain a fourth video segment, and perform encryption processing on the fourth video segment based on the second recording object; The processing module is specifically used to obtain the target video based on the first video segment, the second video segment after encryption, and the fourth video segment after encryption.

19. The device according to claim 12, characterized in that The receiving module is further configured to receive a sixth input to the recording control before the processing module obtains the target video based on the first video segment and the encrypted second video segment; The processing module is further configured to continue recording a next video segment in response to the sixth input received by the receiving module; The receiving module is further used to receive a seventh input to the recording control; The processing module is further configured to stop recording the video in response to the seventh input received by the receiving module to obtain a fifth video clip; The processing module is specifically used to obtain the target video based on the first video segment, the encrypted second video segment and the fifth video segment.

20. The device according to claim 12, characterized in that The video recording device comprises: a playback module and a display module; The playback module is used to start playing the target video; The display module is used to display first information when the first video segment is finished playing, wherein the first information is used to prompt the user to unlock the second video segment; The receiving module is further used to receive an eighth input; The processing module is used to respond to the eighth input received by the receiving module, and when the input feature information of the eighth input meets a preset condition, unlock the second video segment and start playing the second video segment.

21. The device according to claim 20, characterized in that The first information includes the at least one recording object; The processing module is specifically configured to unlock the second video segment when the eighth input is an input to the first recording object.

22. The device according to claim 20, characterized in that The first information includes the at least one recording object; The processing module is specifically configured to unlock the second video clip when the eighth input is an input to the first recording object and input feature information of the eighth input matches input feature information of the first input.

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

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

Citation Information

Patent Citations

  • Method and device for taking a picture

    CN104135605A

  • Shooting method and device

    CN104253933A