Video recording method and device
By synchronously recording the main video and the secondary video in the electronic device and storing them in association, the problem of single video recording function is solved and a diversified video recording and playback experience is achieved.
Patent Information
- Application Number
- CN202211199084.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-29
- Publication Date
- 2025-09-09
- Estimated Expiration
- 2042-09-29
AI Technical Summary
In the prior art, the video recording function of electronic devices is single and cannot meet the diverse needs of users.
Provided are a video recording method and device thereof, which record a main video by receiving input from a video control, and simultaneously record a secondary video with any object in the video recording interface as the shooting angle while recording the main video, and store the main video and the secondary video in association.
It realizes a variety of video recording formats to meet the diverse needs of users, and supports multi-view switching during video playback, improving the user's video recording and playback experience.
Smart Images

Figure CN115589459B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of electronic equipment, and specifically relates to a video recording method and device thereof. Background Art
[0002] In recent years, with the continuous development of electronic technology, electronic devices such as mobile phones and tablets have become indispensable tools in people's daily lives. At the same time, people's requirements for electronic devices are getting higher and higher, especially the video recording function of electronic devices.
[0003] However, in the related art, when users use electronic devices to record videos, the recorded videos are in a relatively simple format and cannot meet the diverse needs of users. Summary of the Invention
[0004] The purpose of the embodiments of the present application is to provide a video recording method and device thereof, which can solve the problem of single video recording function existing in the related art.
[0005] In a first aspect, an embodiment of the present application provides a video recording method, the method comprising:
[0006] receiving a first input to a video recording control, recording a first video in response to the first input, and displaying a video recording interface;
[0007] receiving a second input on a first object in the video recording interface, and in response to the second input, synchronously recording a second video with the first object as a shooting perspective;
[0008] The first video and the second video are stored in association with each other.
[0009] In a second aspect, an embodiment of the present application provides a video recording device, the device comprising:
[0010] A first receiving module, configured to receive a first input to a video recording control;
[0011] a first recording module, configured to record a first video in response to the first input and display a video recording interface;
[0012] A second receiving module is configured to receive a second input of the first object in the video recording interface;
[0013] a second recording module, configured to synchronously record a second video with the first object as a shooting perspective in response to the second input;
[0014] A storage module is used to store the first video and the second video in association with each other.
[0015] In a third aspect, an embodiment of the present application provides an electronic device comprising 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 method described in the first aspect.
[0016] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0017] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the method described in the first aspect.
[0018] In an embodiment of the present application, a first input to a video recording control is received, and in response to the first input, a first video is recorded and a video recording interface is displayed. A second input to a first object in the video recording interface is received, and in response to the second input, a second video with the first object as the shooting angle is synchronously recorded, and the first video and the second video are stored in association. It can be seen that in an embodiment of the present application, when an electronic device is used to record a video of a target scene, in addition to recording a main video with the target scene as the shooting angle, a sub-video with any object in the main video as the shooting angle can also be recorded simultaneously with the main video, and the recorded main video and sub-video are stored in association. The recorded video formats are relatively rich and can meet the diverse needs of users. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 This is a flow chart of a video recording method provided by an embodiment of the present application;
[0020] Figure 2 is a schematic diagram of a video preview interface provided in an embodiment of the present application;
[0021] Figure 3 is a schematic diagram of a video recording method provided in an embodiment of the present application;
[0022] Figure 4 This is a flow chart of a video playback method provided by an embodiment of the present application;
[0023] Figure 5 is a schematic diagram of a video playback method provided in an embodiment of the present application;
[0024] Figure 6 This is a structural block diagram of a video recording device provided in an embodiment of the present application;
[0025] Figure 7This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0026] Figure 8 A schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application. DETAILED DESCRIPTION
[0027] The following will be combined with the accompanying drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described 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 are within the scope of protection of this application.
[0028] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects; for example, the first object can be one or more. In addition, the term "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.
[0029] In the related art, when a user uses an electronic device to record a target scene, the user can only record a video with the target scene as the shooting angle. The recorded video format is relatively simple and cannot meet the diverse needs of users.
[0030] The embodiments of the present application provide a video recording method and apparatus thereof to enrich video recording formats and meet the diverse needs of users.
[0031] 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.
[0032] It should be noted that the video recording method provided in the embodiment of the present application is applicable to electronic devices. In practical applications, the electronic devices may include: mobile terminals such as smart phones, tablet computers, personal digital assistants, etc., and the embodiment of the present application does not limit this.
[0033] Figure 1 This is a flow chart of a video recording method provided by an embodiment of the present application. Figure 1 As shown, the method may include the following steps: step 101, step 102 and step 103;
[0034] In step 101, a first input to a video recording control is received, a first video is recorded in response to the first input, and a video recording interface is displayed.
[0035] In an embodiment of the present application, when a user wants to record a video of a target scene, the user can operate a video control of the electronic device to trigger the camera of the electronic device to record the target scene.
[0036] In the embodiment of the present application, the first video is a video recorded with the target scene as the shooting perspective.
[0037] In an embodiment of the present application, for ease of understanding and description, the first video recorded with the target scene as the shooting perspective can be called the "main video", and the video recorded with any object in the video recording interface of the main video as the shooting perspective can be called the "sub-video".
[0038] In the embodiment of the present application, the first input can be: a click input of the user on the recording control, or a voice command input by the user, or a specific gesture input by the user. The specific input can be determined according to actual usage requirements, and the embodiment of the present application does not limit this.
[0039] In an embodiment of the present application, the specific gesture can be any one of a single-click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double-press gesture, and a double-click gesture.
[0040] In the embodiment of the present application, the click input can be a single-click input, a double-click input, or any number of click inputs, etc. It can also be a long press input or a short press input.
[0041] In one example, the user can open the camera application in the electronic device and enter the Figure 2 In the video preview interface 20 shown, click the setting control 21 to select the multi-view video mode. In addition to supporting the recording of the main video with the target scene as the shooting perspective, the multi-view video mode can also support the simultaneous recording of a sub-video with any object in the main video as the shooting perspective while recording the main video.
[0042] In step 102, a second input to a first object in a video recording interface is received, and in response to the second input, a second video with the first object as a shooting perspective is synchronously recorded.
[0043] In the embodiment of the present application, the object in the video recording interface is the image of the actual object in the target scene in the video recording interface.
[0044] In this embodiment of the present application, the first object may be any object displayed in the video recording interface of the first video.
[0045] In an embodiment of the present application, the second input can be: a click input of the user on the first object, or a voice command input by the user, or a specific gesture input by the user. The specific input can be determined according to actual usage requirements, and the embodiment of the present application does not limit this.
[0046] In the embodiment of the present application, the second video is a video recorded with the first object as the shooting perspective. For example, the video recording interface of the first video is similar to the video recording interface of the first video. Figure 2 The screen content of the video preview interface shown is the same as that of Figure 2 The second video is a video recorded from the perspective of the car, which can be understood as simulating a user sitting in a car and shooting the video. Figure 2 Video generated by other objects in the displayed frame.
[0047] In an embodiment of the present application, while recording the secondary video, the main video is also recorded throughout the process. Optionally, the main video can be recorded by a camera in the electronic device, and the secondary video can be synchronously synthesized through image synthesis technology to simulate the secondary video recording process; or, for an electronic device with multiple cameras, the main video can be recorded by some cameras, and the secondary video can be recorded by other cameras. This embodiment of the present application does not limit this.
[0048] In some embodiments, when the secondary video is synthesized by image synthesis technology, the above step 102 includes the following steps: step 1021 and step 1022;
[0049] In step 1021, a target video frame at the same time as each video frame of the second video and N forward video frames adjacent to the target video frame are obtained from the first video, where N is an integer greater than 1.
[0050] In an embodiment of the present application, when synthesizing the second video, it can be synthesized frame by frame, that is, for each video frame in the second video, first obtain from the first video the target video frames at the same time as each video frame of the second video, as well as the forward N video frames adjacent to each target video frame.
[0051] In one example, N is 10. When the main video is recorded to the 10th second, the recording of the secondary video is started. Taking the first video frame in the synthesized secondary video as an example, the target video frame at the 10th second in the main video and its 10 previous video frames are first obtained. Similarly, the acquisition process of the target video frames of the second video frame, ..., the Mth video frame in the secondary video is similar to the acquisition process of the target video frame of the first video frame.
[0052] In an embodiment of the present application, in order to improve the synthesis efficiency of the secondary video, during the recording of the main video, the previous N video frames of the current video frame can be synchronously cached so that the required video frames can be directly used when the secondary video needs to be generated.
[0053] In step 1022, for each target video frame of the first video, with the first object as the shooting perspective, image fusion processing is performed on the target video frame and the previous N video frames adjacent to the target video frame to obtain each video frame of the second video.
[0054] In the embodiment of the present application, the image fusion processing may include: cropping and splicing processing.
[0055] Continuing with the previous example, for the first video frame in the secondary video, after obtaining the target video frame at the 10th second in the main video and its 10 previous video frames, image fusion processing is performed based on the above 11 video frames in the main video to generate the first video frame in the secondary video. Similarly, the generation process of the second video frame, ..., Mth video frame in the secondary video is similar to the generation process of the first video frame, and finally the secondary video is synthesized.
[0056] It can be seen that in the embodiment of the present application, a secondary video can be generated through image synthesis technology, and videos from multiple perspectives can be recorded without the user having to change the shooting posture, and the operation is relatively simple.
[0057] In some embodiments, the user can be supported to manually pause the recording of the main video and the sub-video. The recording function of the electronic device is highly flexible. Accordingly, after the above step 102, the following steps can be added: receiving a fifth input to the first object, and stopping recording the second video in response to the fifth input; receiving a sixth input to the recording control, and stopping recording the first video in response to the sixth input.
[0058] In an embodiment of the present application, during the recording of the second video, a second control can be displayed on the first object, wherein the second control is used to trigger the stop of the recording of the second video. In actual applications, the second input can be: a click input of the user on the second control on the first object, or a voice command input by the user, or a specific gesture input by the user. The specific input can be determined according to actual usage requirements, and the embodiment of the present application does not limit this.
[0059] In an embodiment of the present application, during the recording of the first video, the user can stop the recording of the first video by operating the recording control. In actual applications, the fourth input can be: a click input of the user on the recording control, or a voice command input by the user, or a specific gesture input by the user. The specific input can be determined according to actual usage requirements, and the embodiment of the present application does not limit this.
[0060] In step 103, the first video and the second video are associated and stored.
[0061] In an embodiment of the present application, the secondary video can be saved to the album as an attachment to the main video, so that when the main video is played, the secondary video related to the main video can also be played, meeting the user's expectation of dynamically switching video playback from multiple perspectives.
[0062] In some embodiments, it is possible to support the synchronous recording of multiple sub-videos with different shooting angles during the main video recording process. Accordingly, the above-mentioned video recording method can also add the following steps: receiving a seventh input to the second object in the video recording interface, and in response to the seventh input, synchronously recording a third video with the second object as the shooting angle.
[0063] Accordingly, the above step 103 includes the following steps: step 1031;
[0064] In step 1031, the first video, the second video, and the third video are stored in association with each other.
[0065] In an embodiment of the present application, the second video and the third video can be saved in the album as attachments to the first video.
[0066] It can be seen that in the embodiment of the present application, during the main video recording process, it can support the simultaneous recording of multiple sub-videos with different shooting angles, enrich the form of video recording, increase the diversity and fun of video recording, and improve the user's video recording experience.
[0067] For ease of understanding, the video recording solution of the embodiment of the present application is described with an example, for example, N is 10, such as Figure 3 As shown, when the camera of the electronic device is recording in multi-angle recording mode, the letter "M" is displayed in the upper right corner of the screen as a reminder. In multi-angle recording mode, the 10 frames of images before the current moment will be automatically cached.
[0068] During the recording of the main video, the video recording interface of the main video is as follows Figure 3 As shown in interface 30, the video recording interface includes multiple objects: a house, a tree, a car, and a little girl. At the sixth second of recording, click the car in the image. While recording the main video, the system generates a secondary video 1 shot from the car's perspective, using the current preview frame and the previously cached 10 frames as a database. During the recording of secondary video 1, a control appears on the car to trigger the stop of recording. Clicking this control stops recording of secondary video 1.
[0069] like Figure 3As shown in interface 31, at the 12th second of recording, click the little girl in the picture, and the same as the sub-video 1, sub-video 2 with the little girl as the shooting angle begins to be generated. During the recording of sub-video 2, a control for triggering the stop of sub-video 2 recording appears on the little girl. Clicking this control stops the recording of sub-video 2.
[0070] like Figure 3 As shown in the interface 32, while recording the main video, the sub-video 1 and sub-video 2 are recorded.
[0071] like Figure 3 As shown in the interface 33, when recording to the 22nd second, click the stop video recording control on the little girl to stop the recording of the secondary video 2 and generate a complete secondary video 2. After the main video recording is completed, it is saved to the album together with the main video.
[0072] like Figure 3 As shown in the interface 34, when recording to the 48th second, click the control to stop video recording on the car to stop recording of the secondary video 1 and generate a complete secondary video 1. After the main video recording is completed, it is saved to the album together with the main video.
[0073] After the video recording is completed, three videos can be generated: main video, sub-video 1 and sub-video 2. Among them, sub-video 1 and sub-video 2 are saved as attachments to the main video.
[0074] As can be seen from the above embodiment, in this embodiment, a first input to the video recording control is received, and in response to the first input, a first video is recorded and a video recording interface is displayed. A second input to the first object in the video recording interface is received, and in response to the second input, a second video with the first object as the shooting angle is synchronously recorded, and the first video and the second video are stored in association. It can be seen that in the embodiment of the present application, when using an electronic device to record a video of a target scene, in addition to recording a main video with the target scene as the shooting angle, a sub-video with any object in the main video as the shooting angle can also be recorded simultaneously with the main video, and the recorded main video and sub-video are stored in association. The recorded video formats are relatively rich and can meet the diverse needs of users.
[0075] Currently, after an electronic device finishes recording a video, the video content is fixed. Video playback can only be based on the target scene as the shooting perspective when the video was recorded. The video playback format is relatively simple, and the only operations provided to users are options such as fast forward, fast rewind, and pause, which cannot meet the diverse needs of users.
[0076] In order to solve the above technical problems, the embodiments of the present application are Figure 1Based on the video recording method shown, a video playback method is also provided to enable users to switch video playback perspectives after video recording is completed and watch the recorded video from multiple perspectives, thereby improving the interactive experience during video playback.
[0077] Figure 4 This is a flow chart of a video playback method provided by an embodiment of the present application. Figure 4 As shown, the method may include the following steps: step 401, step 402 and step 403;
[0078] In step 401, a third input of a first video is received, and the first video is played in response to the third input.
[0079] In the embodiment of the present application, after receiving the third input, the video playback interface of the first video is displayed, and the first video is played on the video playback interface. In actual applications, the third input can be: a user click input on the first video, a voice command input by the user, or a specific gesture input by the user. The specific input can be determined according to actual usage requirements and is not limited in the embodiment of the present application.
[0080] In step 402, a first control is displayed on a first object of a video playback interface of a first video, wherein the first control is used to trigger playback of a second video.
[0081] In an embodiment of the present application, a first control can be displayed on a first object in a video playback interface of the first video when the first video starts playing; or, when the playback progress of the first video reaches the starting recording position of the second video, a first control can be displayed on a first object in the video playback interface of the first video.
[0082] For example, if the main video is 60 seconds long and the secondary video starts recording at the 20th second of the main video, a control for triggering the secondary video playback can be displayed on the main video's video playback interface when the main video starts playing. Alternatively, during the main video playback process, at the 20th second, a control for triggering the secondary video playback can be displayed on the main video's video playback interface.
[0083] In step 403, a fourth input to the first control is received, and in response to the fourth input, the first video is paused and the second video is played.
[0084] In an embodiment of the present application, the fourth input can be: a click input of the user on the first control, or a voice command input by the user, or a specific gesture input by the user. The specific input can be determined according to actual usage requirements, and the embodiment of the present application does not limit this.
[0085] In the embodiment of the present application, the second video may be played starting from the first video frame of the second video. Alternatively, the second video may be played starting from the Tth video frame of the second video, where the Tth video frame is the video frame corresponding to the input moment of the fourth input.
[0086] Continuing with the previous example, during playback of the main video, if the fourth input is received at the 24th second, playback can start from the first video frame of the secondary video, or can start from the 4th second video frame of the secondary video.
[0087] It can be seen that in the embodiment of the present application, users can choose a variety of playback methods to play the secondary video, which can meet the diverse needs of users.
[0088] In some embodiments, the user may be supported to manually switch from the secondary video back to the primary video to continue playing, or the secondary video may be supported to automatically switch back to the primary video to continue playing after the secondary video is finished playing.
[0089] In an embodiment of the present application, after switching back to the video playback interface of the first video, the main video can be continued from the position where the main video was last paused, or the main video can be played from the position where the secondary video stopped playing.
[0090] For ease of understanding, combined Figure 3 Recorded multi-view video and Figure 5 The playback process shown describes the video playback solution of an embodiment of the present application.
[0091] First, the user opens the album, such as Figure 5 As shown in the interface 50, select Figure 3 Record the main video and click Play.
[0092] like Figure 5 As shown in the interface 51, when the main video is played to the 6th second, the play control of the secondary video 1 appears on the car in the picture. The user clicks the play control to switch to the video play interface of the secondary video 1 and play the secondary video 1.
[0093] like Figure 5 As shown in the interface 52, when the main video is played to the 12th second, the play control of the secondary video 2 appears on the little girl in the picture. The user clicks the play control to switch to the video play interface of the secondary video 2 and play the secondary video 2.
[0094] like Figure 5 As shown in the interface 53, when the main video plays to the 16th second, click the sub-video play control on the little girl, and the video playback screen will switch to the sub-video 2 shot from the little girl's perspective, that is, the screen of the sub-video 2 at the 16th second will start to play. When the sub-video is playing, a control to stop playing the sub-video appears in the upper right corner of the video.
[0095] like Figure 5 As shown in the interface 54, clicking the cancel play sub-video control can switch back to the main video to continue playing, or automatically switch back to the main video after the sub-video is finished playing. When the sub-video 2 is played to the 22nd second, the sub-video 2 is finished playing and automatically switches to the main video at the 22nd second and continues playing.
[0096] like Figure 5 As shown in interface 55, when the main video plays to the 30th second, click the sub-video playback control on the car, and the video playback screen will switch to sub-video 1 with the car as the shooting angle, that is, the screen of sub-video 1 at the 30th second will start to play, and a control to stop playing the sub-video will appear in the upper right corner of the video.
[0097] like Figure 5 As shown in interface 56, when the secondary video 1 plays for 40 seconds, click the stop secondary video playback control in the upper right corner of the video, and the video will automatically switch to the main video at the 40th second and continue playing until the main video finishes playing and returns to the album.
[0098] As can be seen from the above embodiments, in this embodiment, a multi-perspective sub-video is synthesized during video recording. After the video recording is completed, the video recording perspective can be dynamically switched for video playback, which is convenient for users to watch video content from multiple perspectives, obtain more video information, enrich the video playback function, meet the diverse needs of users, and enhance the interactive experience during video playback.
[0099] Figure 6 This is a structural block diagram of a video recording device provided in an embodiment of the present application. Figure 6 As shown, the video recording device 600 may include: a first receiving module 601, a first recording module 602, a second receiving module 603, a second recording module 604 and a storage module 605;
[0100] A first receiving module 601 is configured to receive a first input to a video recording control;
[0101] A first recording module 602 is configured to record a first video in response to the first input and display a video recording interface;
[0102] A second receiving module 603 is configured to receive a second input of the first object in the video recording interface;
[0103] A second recording module 604 is configured to synchronously record a second video with the first object as the shooting perspective in response to the second input;
[0104] The storage module 605 is used to store the first video and the second video in association with each other.
[0105] As can be seen from the above embodiment, in this embodiment, a first input to the video recording control is received, and in response to the first input, a first video is recorded and a video recording interface is displayed. A second input to the first object in the video recording interface is received, and in response to the second input, a second video with the first object as the shooting angle is synchronously recorded, and the first video and the second video are stored in association. It can be seen that in the embodiment of the present application, when using an electronic device to record a video of a target scene, in addition to recording a main video with the target scene as the shooting angle, a sub-video with any object in the main video as the shooting angle can also be recorded simultaneously with the main video, and the recorded main video and sub-video are stored in association. The recorded video formats are relatively rich and can meet the diverse needs of users.
[0106] Optionally, as an embodiment, the second recording module 604 may include:
[0107] an acquisition submodule, configured to acquire, in response to the second input, from the first video a target video frame at the same time as each video frame of the second video, and N forward video frames adjacent to the target video frame, where N is an integer greater than 1;
[0108] A generation submodule is used to perform image fusion processing on each target video frame of the first video and the previous N video frames adjacent to the target video frame, with the first object as the shooting perspective, to obtain each video frame of the second video.
[0109] Optionally, as an embodiment, the video recording device 600 may further include:
[0110] A third receiving module, configured to receive a third input of the first video;
[0111] A first playing module, configured to play the first video in response to the third input;
[0112] A display module, configured to display a first control on the first object of the video playback interface of the first video, wherein the first control is used to trigger playback of the second video;
[0113] a fourth receiving module, configured to receive a fourth input to the first control;
[0114] The second playing module is used to pause playing the first video and play the second video in response to the fourth input.
[0115] Optionally, as an embodiment, the video recording device 600 may further include:
[0116] a fifth receiving module, configured to receive a fifth input of the first object;
[0117] a first stopping module, configured to stop recording the second video in response to the fifth input;
[0118] a sixth receiving module, configured to receive a sixth input to the video recording control;
[0119] The second stopping module is configured to stop recording the first video in response to the sixth input.
[0120] Optionally, as an embodiment, the video recording device 600 may further include:
[0121] a seventh receiving module, configured to receive a seventh input of a second object in the video recording interface;
[0122] a third recording module, configured to synchronously record a third video with the second object as a shooting perspective in response to the seventh input;
[0123] The storage module 605 may include:
[0124] The storage submodule is used to store the first video, the second video and the third video in an associated manner.
[0125] The video recording device in the embodiments of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. For example, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc., and the embodiments of the present application do not specifically limit this.
[0126] 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.
[0127] The video recording device provided in the embodiment of the present application can achieve Figure 1 To avoid repetition, the various processes implemented in the method embodiment will not be described again here.
[0128] Alternatively, as Figure 7 As shown, an embodiment of the present application also provides an electronic device 700, including a processor 701, a memory 702, and a program or instruction stored in the memory 702 and executable on the processor 701. When the program or instruction is executed by the processor 701, each process of the above-mentioned video recording method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0129] 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.
[0130] Figure 8 A schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.
[0131] The electronic device 800 includes but is not limited to components such as a radio frequency unit 801 , a network module 802 , an audio output unit 803 , an input unit 804 , a sensor 805 , a display unit 806 , a user input unit 807 , an interface unit 808 , a memory 809 , and a processor 810 .
[0132] Those skilled in the art will understand that the electronic device 800 may also include a power source (such as a battery) to power each component, and the power source may be logically connected to the processor 810 through a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system. Figure 8 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 repeated here.
[0133] The user input unit 807 is configured to receive a first input to the video recording control;
[0134] The processor 810 is configured to record a first video in response to the first input, and instruct the display unit 806 to display a video recording interface;
[0135] The user input unit 807 is further configured to receive a second input to the first object in the video recording interface;
[0136] The processor 810 is further configured to, in response to the second input, synchronously record a second video with the first object as the shooting perspective, and store the first video and the second video in association with each other.
[0137] It can be seen that in the embodiment of the present application, when using an electronic device to record a video of a target scene, in addition to recording a main video with the target scene as the shooting perspective, it is also possible to synchronously record a sub-video with any object in the main video as the shooting perspective while recording the main video. The recorded main video and sub-video are stored in association with each other, and the recorded video formats are relatively rich, which can meet the diverse needs of users.
[0138] Optionally, as an embodiment, the processor 810 is further used to obtain, in response to the second input, a target video frame at the same time as each video frame of the second video, and the forward N video frames adjacent to the target video frame from the first video, where N is an integer greater than 1; for each target video frame of the first video, with the first object as the shooting perspective, image fusion processing is performed on the target video frame and the forward N video frames adjacent to the target video frame to obtain each video frame of the second video.
[0139] Optionally, as an embodiment, the user input unit 807 is further configured to receive a third input of the first video;
[0140] The processor 810 is further configured to, in response to the third input, play the first video and instruct the display unit 806 to display a first control on the first object of the video playback interface of the first video, wherein the first control is configured to trigger playback of the second video;
[0141] The user input unit 807 is further configured to receive a fourth input to the first control;
[0142] The processor 810 is further configured to, in response to the fourth input, pause playing the first video and play the second video.
[0143] Optionally, as an embodiment, the user input unit 807 is further configured to receive a fifth input on the first object;
[0144] The processor 810 is further configured to stop recording the second video in response to the fifth input;
[0145] The user input unit 807 is further configured to receive a sixth input to the video recording control;
[0146] The processor 810 is further configured to stop recording the first video in response to the sixth input.
[0147] Optionally, as an embodiment, the user input unit 807 is further configured to receive a seventh input for a second object in the video recording interface;
[0148] The processor 810 is further configured to, in response to the seventh input, synchronously record a third video with the second object as the shooting perspective; and store the first video, the second video, and the third video in association with each other.
[0149] It should be understood that in the embodiment of the present application, the input unit 804 may include a graphics processing unit (GPU) 8041 and a microphone 8042. The graphics processor 8041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 806 may include a display panel 8061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, etc. The user input unit 807 includes a touch panel 8071 and other input devices 8072. The touch panel 8071 is also called a touch screen. The touch panel 8071 may include two parts: a touch detection device and a touch controller. Other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, power keys, etc.), a trackball, a mouse, and a joystick, which will not be described in detail here. The memory 809 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 810 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and applications, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 810.
[0150] 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 video recording method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0151] 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), random access memory (RAM), a magnetic disk, or an optical disk.
[0152] 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 video recording method embodiment and achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0153] 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.
[0154] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be noted 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 the opposite 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.
[0155] 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 the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application is essentially 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, magnetic disk, optical disk), including a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0156] 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 this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.
Claims
1. A video recording method, characterized in that: The method comprises: receiving a first input to a video recording control, recording a first video in response to the first input, and displaying a video recording interface; Receiving a second input regarding a first object in the video recording interface, and in response to the second input, simultaneously recording a second video with the first object as a shooting perspective while recording the first video; wherein the second video is a video generated by shooting other objects in the video recording interface from the position of the first object; The first video and the second video are stored in association with each other.
2. The method according to claim 1, characterized in that The synchronously recording a second video with the first object as the shooting perspective includes: Obtaining, from the first video, a target video frame at the same time as each video frame of the second video, and N preceding video frames adjacent to the target video frame, where N is an integer greater than 1; For each target video frame of the first video, the first object is used as the shooting perspective, and image fusion processing is performed on the target video frame and the previous N video frames adjacent to the target video frame to obtain each video frame of the second video.
3. The method according to claim 1, characterized in that After the first video and the second video are stored in association with each other, the method further includes: receiving a third input of the first video, and playing the first video in response to the third input; Displaying a first control on the first object of the video playback interface of the first video, wherein the first control is used to trigger playback of the second video; A fourth input to the first control is received, and in response to the fourth input, the first video is paused and the second video is played.
4. The method according to claim 1, wherein Before associating and storing the first video and the second video, the method further includes: receiving a fifth input on the first object, and stopping recording the second video in response to the fifth input; A sixth input to the video recording control is received, and in response to the sixth input, recording of the first video is stopped.
5. The method according to claim 1, wherein Before associating and storing the first video and the second video, the method further includes: receiving a seventh input on a second object in the video recording interface, and in response to the seventh input, synchronously recording a third video with the second object as a shooting perspective; The associating and storing the first video and the second video includes: The first video, the second video, and the third video are stored in association with each other.
6. A video recording device, characterized in that: The device comprises: A first receiving module, configured to receive a first input to a video recording control; a first recording module, configured to record a first video in response to the first input and display a video recording interface; A second receiving module is configured to receive a second input of the first object in the video recording interface; a second recording module configured to, in response to the second input, simultaneously record a second video with the first object as the shooting perspective while recording the first video; wherein the second video is a video generated by shooting other objects in the video recording interface from the position of the first object; A storage module is used to store the first video and the second video in association with each other.
7. The device according to claim 6, characterized in that The second recording module includes: an acquisition submodule, configured to acquire, in response to the second input, from the first video a target video frame at the same time as each video frame of the second video, and N forward video frames adjacent to the target video frame, where N is an integer greater than 1; A generation submodule is used to perform image fusion processing on each target video frame of the first video and the previous N video frames adjacent to the target video frame, with the first object as the shooting perspective, to obtain each video frame of the second video.
8. The device according to claim 6, characterized in that The device further comprises: A third receiving module, configured to receive a third input of the first video; A first playing module, configured to play the first video in response to the third input; A display module, configured to display a first control on the first object of the video playback interface of the first video, wherein the first control is used to trigger playback of the second video; a fourth receiving module, configured to receive a fourth input to the first control; The second playing module is used to pause playing the first video and play the second video in response to the fourth input.
9. The device according to claim 6, characterized in that The device further comprises: a fifth receiving module, configured to receive a fifth input of the first object; a first stopping module, configured to stop recording the second video in response to the fifth input; a sixth receiving module, configured to receive a sixth input to the video recording control; The second stopping module is configured to stop recording the first video in response to the sixth input.
10. The device according to claim 6, characterized in that The device further comprises: a seventh receiving module, configured to receive a seventh input of a second object in the video recording interface; a third recording module, configured to synchronously record a third video with the second object as a shooting perspective in response to the seventh input; The storage module includes: The storage submodule is used to store the first video, the second video and the third video in an associated manner.
Citation Information
Patent Citations
Video control method, video control device, electronic equipment and readable storage medium
CN112261218A
Image processing method, mobile terminal and storage medium
CN114040183A