CN111246104A - Video recording method and electronic equipment - Google Patents

Video recording method and electronic equipment Download PDF

Info

Publication number
CN111246104A
CN111246104A CN202010075576.XA CN202010075576A CN111246104A CN 111246104 A CN111246104 A CN 111246104A CN 202010075576 A CN202010075576 A CN 202010075576A CN 111246104 A CN111246104 A CN 111246104A
Authority
CN
China
Prior art keywords
video
electronic device
electronic equipment
video recording
camera
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010075576.XA
Other languages
Chinese (zh)
Inventor
李陈
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202010075576.XA priority Critical patent/CN111246104A/en
Publication of CN111246104A publication Critical patent/CN111246104A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/64Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/765Interface circuits between an apparatus for recording and another apparatus
    • H04N5/77Interface circuits between an apparatus for recording and another apparatus between a recording apparatus and a television camera

Abstract

The invention relates to the technical field of image processing, and provides a video recording method and electronic equipment, which are used for solving the problem that the scene coverage of recorded contents is small in the video recording process. The method comprises the following steps: receiving a first input of a user under the condition that a first electronic device is connected with a second electronic device; responding to the first input, controlling the first electronic equipment and the second electronic equipment to record videos, and outputting a target video; the target video comprises at least one frame of video picture of a first video recording interface of the first electronic equipment and at least one frame of video picture of a second video recording interface of the second electronic equipment. The obtained target video not only comprises the video picture of the first video recording interface of the first electronic equipment, but also comprises the video picture of the second video recording interface of the second electronic equipment, so that the limitation of scenes or positions can be reduced, the scene range covered by the recorded content is expanded, and the scene range covered by the recorded target video can be expanded.

Description

Video recording method and electronic equipment
Technical Field
The invention relates to the technical field of image processing, in particular to a video recording method and electronic equipment.
Background
With the rapid development of computer technology, electronic devices have more and more powerful functions, can provide services in various aspects, and provide convenience for life, work and the like of people. For example, video recording is a common service provided by electronic equipment, and a user can record video through the electronic equipment to obtain recorded video.
However, in the recording process of the electronic device at present, the electronic device records the preview content of the current scene or position, that is, in the recording process, the scene range covered by the recorded content is easily small due to the limitation of the scene or position.
Disclosure of Invention
The embodiment of the invention provides a video recording method and electronic equipment, which can solve the problem that the scene range covered by recorded content is small easily due to the limitation of scenes or positions in the video recording process.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a video recording method, which is applied to a first electronic device, and the method includes:
receiving a first input of a user under the condition that the first electronic equipment is connected with second electronic equipment;
responding to the first input, controlling the first electronic equipment and the second electronic equipment to record videos, and outputting a target video;
the target video comprises at least one frame of video picture of a first video recording interface of the first electronic equipment and at least one frame of video picture of a second video recording interface of the second electronic equipment.
In a second aspect, an embodiment of the present invention further provides a first electronic device, including:
the first receiving module is used for receiving a first input of a user under the condition that the first electronic equipment is connected with the second electronic equipment;
the output module is used for responding to the first input, controlling the first electronic equipment and the second electronic equipment to record videos and outputting target videos;
the target video comprises at least one frame of video picture of a first video recording interface of the first electronic equipment and at least one frame of video picture of a second video recording interface of the second electronic equipment.
In a third aspect, an embodiment of the present invention further provides an electronic device, including: the video recording method comprises a memory and a processor, wherein the memory stores a computer program, and the processor realizes the steps of the video recording method of each embodiment of the invention when executing the computer program.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the steps in the video recording method according to the embodiments of the present invention.
In the video recording method of the embodiment of the application, after receiving the first input in the video recording process, the first electronic device and the second electronic device are controlled to record the video to obtain the target video, so that the video recording is realized. In other words, in the recording process, only the first electronic device records in the current scene or position, but the first electronic device and the second electronic device are controlled to record videos, and the obtained target video not only includes the video picture of the first video recording interface of the first electronic device, but also includes the video picture of the second video recording interface of the second electronic device, so that the limitation of the scene or position can be reduced, the scene range covered by the recorded content is expanded, and the scene range covered by the recorded target video can be expanded.
Drawings
Fig. 1 is a flowchart of a video recording method according to an embodiment of the present invention;
fig. 2 is a second flowchart of a video recording method according to an embodiment of the present invention;
FIG. 3 is one of the interface diagrams of the first electronic device provided by the embodiment of the invention;
fig. 4 is a second interface diagram of the first electronic device according to the embodiment of the invention;
FIG. 5 is one of the interface diagrams of a second electronic device provided by the embodiments of the present invention;
fig. 6 is a third interface diagram of the first electronic device according to the embodiment of the invention;
FIG. 7 is a fourth diagram of an interface of a first electronic device according to an embodiment of the present invention;
fig. 8 is a second interface diagram of a second electronic device according to the embodiment of the invention;
FIG. 9 is a fifth diagram of an interface of a first electronic device according to an embodiment of the present invention;
FIG. 10 is a block diagram of a recorded video provided by an embodiment of the present invention;
FIG. 11 is a sixth illustration of an interface diagram of a first electronic device according to an embodiment of the invention;
fig. 12 is a seventh interface diagram of the first electronic device according to the embodiment of the present invention;
FIG. 13 is a third interface diagram of a second electronic device according to the embodiment of the invention;
fig. 14 is an eighth interface diagram of a first electronic device according to an embodiment of the invention;
FIG. 15 is a ninth illustration of an interface diagram of a first electronic device, in accordance with an embodiment of the present invention;
FIG. 16 is a tenth drawing of an interface diagram of a first electronic device provided by an embodiment of the invention;
FIG. 17 is an eleventh illustration of an interface diagram of a first electronic device, in accordance with an embodiment of the present invention;
FIG. 18 is a fourth illustration of an interface diagram of a second electronic device according to an embodiment of the invention;
FIG. 19 is one of the schematic diagrams of an electronic device provided by embodiments of the invention;
fig. 20 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, in one embodiment, a video recording method is provided and applied to a first electronic device, and the method includes:
step 101: in a case where a first electronic device is connected with a second electronic device, a first input of a user is received.
The first electronic equipment is connected with the second electronic equipment, information transmission can be carried out between the first electronic equipment and the second electronic equipment, a user can carry out first input on the first electronic equipment, and the first electronic equipment receives the first input of the user. In one example, the first input may be a click input, a slide input, or the like.
Step 102: and responding to the first input, controlling the first electronic equipment and the second electronic equipment to record videos, and outputting the target videos.
The target video comprises at least one frame of video picture of a first video recording interface of the first electronic equipment and at least one frame of video picture of a second video recording interface of the second electronic equipment.
After receiving the first input, the first electronic device can control the first electronic device and the second electronic device to record videos. In the video recording process, a video picture corresponding to the first electronic device is displayed in a first video recording interface of the first electronic device, a video picture corresponding to the second electronic device is displayed in a second video recording interface of the second electronic device, and the first electronic device and the second electronic device are controlled to perform video recording to obtain a target video in response to a first input, wherein the target video comprises at least one frame of video picture of the first video recording interface of the first electronic device and at least one frame of video picture of the second video recording interface of the second electronic device. It can be understood that at least one frame of video image of the first video recording interface of the first electronic device in the target video is obtained by video recording of the first electronic device, and at least one frame of video image of the second video recording interface of the second electronic device in the target video is obtained by video recording of the second electronic device.
In the video recording method, after receiving the first input, the first electronic device and the second electronic device are controlled to record the video to obtain the target video, so that the video recording is realized. In other words, in the recording process, only the first electronic device records in the current scene or position, but the first electronic device and the second electronic device are controlled to record videos, and the obtained target video not only includes the video picture of the first video recording interface of the first electronic device, but also includes the video picture of the second video recording interface of the second electronic device, so that the limitation of the scene or position can be reduced, the scene range covered by the recorded content is expanded, and the scene range covered by the recorded target video can be expanded.
In one example, the electronic Device may be, but is not limited to, a Mobile phone, a tablet Computer (tablet Personal Computer), a Laptop Computer (Laptop Computer), a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), a Wearable Device (Wearable Device), or the like.
In one embodiment, controlling the first electronic device and the second electronic device to perform video recording and output a target video in response to the first input includes: and responding to the first input, controlling the first electronic equipment and the second electronic equipment to alternately record the video and output the target video. That is, in this embodiment, as shown in fig. 2, a video recording method is provided, which is applied to a first electronic device, and the method includes:
step 201: receiving a first input of a user under the condition that a first electronic device is connected with a second electronic device;
step 202: responding to the first input, controlling the first electronic equipment and the second electronic equipment to record videos alternately, and outputting a target video;
the target video comprises at least one frame of video picture of a first video recording interface of the first electronic equipment and at least one frame of video picture of a second video recording interface of the second electronic equipment.
Step 201 corresponds to step 101, and is not described again. In this embodiment, the first electronic device and the second electronic device record videos alternately, and it can be understood that, in the process of recording by the first electronic device, the camera of the second electronic device stops recording, and in the process of recording by the second electronic device, the camera of the first electronic device stops recording.
It can be understood that the first electronic device and the second electronic device respectively perform video recording at different times to obtain a target video, and the target video includes a video picture recorded by the first electronic device and a video picture recorded by the second electronic device, that is, recording time is staggered, and only one electronic device performs video recording on pictures acquired by respective cameras at the same time by the first electronic device and the second electronic device.
For example, the first electronic device is a device a, the second electronic device includes a device B, the device a performs video recording, in the process of performing video recording by the device a, the device B does not perform video recording, but the device B can receive a video frame recorded by the device a, then stops the video recording by the device a, starts the video recording by the device B, stops the video recording by the device B, and starts the video recording by the device a, so that the device a and the device B are controlled to alternately record to obtain a target video, which realizes video recording, and the obtained target video includes a video frame of a first video recording interface of the first electronic device and a video frame of a second video recording interface of the second electronic device, that is, the target video includes not only a video frame of a scene where the first electronic device is located, but also a video frame of a scene where the second electronic device is located, thereby improving the scene coverage of the recorded content.
In one embodiment, controlling the first electronic device and the second electronic device to alternately record videos and output a target video includes: controlling a first camera of the first electronic equipment to carry out ith video recording, and sending at least one frame of first video image recorded by the first camera to the second electronic equipment; under the condition that a first camera of first electronic equipment stops video recording, sending a first message to second electronic equipment, wherein the first message is used for indicating the second electronic equipment to start recording videos; receiving at least one frame of second video picture sent by second electronic equipment, wherein the at least one frame of second video picture is obtained by recording a second camera of the second electronic equipment after the second electronic equipment receives the first message; receiving a second message sent by a second electronic device under the condition that a second camera stops video recording, wherein the second message is used for indicating the first electronic device to start video recording; controlling a first camera of first electronic equipment to record the (i + 1) th video; and outputting the target video based on N video segments obtained by recording the N times of videos of the first camera and M video segments obtained by recording the M times of videos of the second camera. Wherein N and M are positive integers; i is a positive integer, and i is less than N.
The N video segments comprise at least one frame of video image of a first video recording interface of the first electronic equipment, the at least one frame of video image of the first video recording interface of the first electronic equipment comprises the sum of the first video images of the first camera for N times of video recording, the M video segments comprise at least one frame of video image of a second video recording interface of the second electronic equipment, and the at least one frame of video image of the second video recording interface of the second electronic equipment comprises the sum of the second video images of the second camera for M times of video recording.
Firstly, a first camera of first electronic equipment records a video for the ith time, and can send at least one frame of first video image recorded by the first camera for the ith time to second electronic equipment, the first camera of the first electronic equipment sends a first message to the second electronic equipment under the condition of stopping video recording, after the second electronic equipment receives the first message, a second camera of the second electronic equipment can start recording the video, the second electronic equipment can send at least one frame of second video image recorded by the second camera to the first electronic equipment, under the condition of stopping video recording, the second camera sends a second message to the first electronic equipment, after the first electronic equipment receives the second message, the video recording for the (i + 1) th time is started, it can be understood that the second electronic equipment controls the first camera of the first electronic equipment to record the (i + 1) th time under the condition of receiving the second message, and sending at least one frame of first video picture recorded by the first camera for the (i + 1) th time to the second electronic equipment, repeating the alternate recording process for the ith time, and cyclically alternating in such a way until the first electronic equipment and the second electronic equipment are controlled to stop video recording, at the moment, obtaining N video segments obtained by recording N times of videos of the first camera and M video segments obtained by recording M times of videos of the second camera, and outputting the target video based on the N video segments obtained by recording N times of videos of the first camera and the M video segments obtained by recording M times of videos of the second camera. The obtained target video comprises N video segments and M video segments. It should be noted that, if the first electronic device and the second electronic device respectively perform video recording only once, that is, the first electronic device performs video recording for the 1 st time, at least one frame of the first video image recorded for the first time by the first camera is sent to the second electronic device, the first camera stops video recording, a first message is sent to the second electronic device, the second electronic device starts video recording, at least one frame of the second video image recorded for the first time is sent to the first electronic device, the first electronic device receives at least one frame of the second video image sent by the second electronic device, the subsequent first electronic device receives the stop message, controls the first electronic device and the second electronic device to stop recording, and outputs the target video based on one video segment obtained by the video recording of the first camera and one video segment obtained by the video recording of the second camera, in this case, i is 1 and is equal to N.
In one example, the first electronic device stops video recording when receiving the second input, and sends a first stop message to the second electronic device, where the first stop message is used to instruct the second electronic device to stop video recording, and the second electronic device stops video recording after receiving the first stop message, so that both the first electronic device and the second electronic device stop video recording, at this time, N video segments obtained by N times of video recording of the first camera and M video segments obtained by M times of video recording of the second camera can be obtained, and the target video is output based on the N video segments and the M video segments. In an example, the second electronic device stops video recording and sends a second stop message to the first electronic device when receiving the third input, where the second stop message is used to instruct the first electronic device to stop video recording, and the first electronic device stops video recording after receiving the second stop message, so that both the first electronic device and the second electronic device stop video recording, that is, the first electronic device can stop video recording by receiving the second stop message of the second electronic device, and at this time, N video segments obtained by N-time video recording of the first camera and M video segments obtained by M-time video recording of the second camera can also be obtained, and the target video is output based on the N video segments and the M video segments.
For example, in each video recording, the device a may send at least one first video frame recorded each time to the device B, and the device a may also receive at least one second video frame recorded in each video recording performed by the device B, so that the device a may obtain the target video based on the video segment obtained by each video recording and the video segment obtained by each video recording performed by the device B. Similarly, during the recording process of the device B, the device B may not only send the recorded second video frame to the device a, but also receive at least one frame of the first video frame recorded by the device a, which is sent by the device a, so that after multiple times of alternate recording, the device B may obtain N video segments of the device a and M video segments of the device B, and the device B may also generate the target video based on the N video segments and the M video segments, that is, the target video obtained by the device a and the target video obtained by the device B are unified, thereby achieving synchronization of the recorded videos of the device a and the device B.
In one example, in a case where the first camera of the first electronic device stops video recording, sending the first message to the second electronic device may be to include: under the condition of receiving a fourth input of the user, stopping video recording of the first camera and sending a first message to the second electronic equipment; or comprises the following steps: and under the condition that the time length of the first camera recorded at this time is greater than the preset time length, stopping video recording of the first camera and sending a first message to the second electronic equipment. The recording can be stopped by the input of the user or automatically stopped according to the recording time length.
In one embodiment, controlling the first electronic device and the second electronic device to perform video recording and output a target video in response to the first input includes: and responding to the first input, controlling a second camera of the second electronic equipment to record the video and outputting the target video in the process of controlling the first camera of the first electronic equipment to record the video.
In the process of recording by the first electronic device, the second electronic device also records, that is, the first electronic device and the second electronic device synchronously record videos. For example, when the first electronic device performs video recording, the second electronic device performs video recording, and the first electronic device and the second electronic device realize synchronous video recording in different scenes or positions, so that the requirement of a user on video recording is met.
In one embodiment, in response to a first input, controlling a second camera of a second electronic device to record a video and output a target video in a process of controlling a first camera of a first electronic device to record the video includes: responding to the first input, controlling a first camera of the first electronic equipment to record a video, sending at least one frame of first video image recorded by the first camera to the second electronic equipment, and sending a third message to the second electronic equipment, wherein the third message is used for indicating the second electronic equipment to start video recording through the second camera; receiving at least one frame of second video image sent by the second electronic equipment, wherein the at least one frame of second video image is obtained by recording a second camera of the second electronic equipment after the second electronic equipment receives the third message; under the condition that the fourth message is received, acquiring a first video recorded by the first electronic equipment and a second video of the second electronic equipment; and outputting the target video based on the first video and the second video, wherein the video picture of the first video recording interface of the first electronic equipment comprises the video picture in the first video, and the video picture of the second video recording interface of the second electronic equipment comprises the video picture in the second video.
First, the first electronic device responds to a first input, controls the first camera to record a video, and can send at least one frame of first video image recorded by the first camera to the second electronic device, and sends a third message to the second electronic device, after the second electronic device receives the third message, the second camera of the second electronic device can start recording the video, the second electronic device can send at least one frame of second video image recorded by the second camera to the first electronic device, so that the second electronic device can also record the video under the condition of recording, the first electronic device can stop recording the video under the condition of receiving a fourth message, and sends a notification message to the second electronic device, the notification message is used for indicating the second electronic device to stop recording the video, so that the first electronic device and the second electronic device are controlled to stop recording, at this time, the first electronic device may obtain a first video recorded by the first electronic device and a second video of the second electronic device, and the first electronic device may output the target video based on the obtained first video recorded by the first electronic device and the obtained second video of the second electronic device. It can be understood that the first video includes at least one frame of video image of the first video recording interface of the first electronic device, the at least one frame of video image of the first video recording interface of the first electronic device includes at least one frame of first video image recorded by the first camera, the second video includes at least one frame of video image of the second video recording interface of the second electronic device, and the at least two frames of video image of the second video recording interface of the second electronic device includes at least one frame of second video image recorded by the second camera.
In one embodiment, before receiving the first input of the user, the method further comprises:
and displaying a first video recording interface of the first electronic equipment and a second video recording interface of the second electronic equipment.
Therefore, a user can check the recording condition of the electronic equipment, for example, in the process of recording by the first electronic equipment, the video picture recorded on the recording interface of the first electronic equipment is the video picture recorded by the first electronic equipment, at this time, if the second electronic equipment stops video recording, that is, the second electronic equipment does not record the picture acquired by itself, the second electronic equipment receives the video picture recorded by the first electronic equipment and sent by the first electronic equipment, the video picture recorded on the recording interface of the second electronic equipment is the preview picture acquired by the second camera of the second electronic equipment, and thus, the user can check the video picture recorded by the first electronic equipment and the preview picture acquired by the second electronic equipment. And in the process of recording by the second electronic equipment, displaying a video picture recorded by the second electronic equipment in a recording interface of the second electronic equipment. If the second electronic device also performs video recording in the process of recording by the first electronic device, the picture of the second video recording interface is a preview picture recorded by a second camera of the second electronic device, so that the user can view the video picture recorded by the first electronic device and the preview picture recorded by the second electronic device. It can be understood that under the condition that the first electronic device records, the video picture recorded by the first electronic device is displayed, otherwise, the preview picture acquired by the first camera is displayed, under the condition that the second electronic device records, the video picture recorded by the second electronic device is displayed, and otherwise, the preview picture acquired by the second camera is displayed.
In one embodiment, displaying a first interface of a first electronic device and a second interface of a second electronic device includes:
displaying a first video recording interface, and displaying a second video recording interface on the first video recording interface in an overlapping manner;
or displaying a second video recording interface, and overlaying and displaying a first video recording interface on the second video recording interface;
or displaying the first video recording interface and the second video recording interface in a split screen mode according to the target screen dividing mode.
In the display process, there are various display modes, for example, a first video recording interface may be displayed, and a second video recording interface is displayed on the first video recording interface in an overlapping manner, which may be understood as that the second video recording interface is embedded and displayed on the first video recording interface, and the area of the displayed first video recording interface is larger than that of the displayed second video recording interface. Or the second video recording interface may be displayed, and the first video recording interface is displayed in an overlapping manner on the second video recording interface, which may be understood as that the first video recording interface is embedded and displayed on the second video recording interface, and the area of the displayed second video recording interface is larger than that of the displayed first video recording interface. Or the first video recording interface and the second video recording interface may be displayed in a split screen manner according to a target screen dividing manner, for example, the first video recording interface may be displayed in a first display area of the first electronic device, the second video recording interface may be displayed in a second display area, and the first display area and the second display area of the first electronic device are not overlapped, so that split screen display is realized, the second video recording interface is prevented from shielding the first video recording interface, and viewing is facilitated. In an example, the display modes may be switched between the different display modes, for example, a fifth input is received (for example, a sliding input or a click input may be used), and in response to the fifth input, the current display mode is switched to the target display mode corresponding to the fifth input, so that not only different requirements of the user on the display can be met, but also the display can be flexibly performed.
The target screen division mode may be a division mode designated by a user, or may be a default division mode, for example, multiple division modes (for example, screen symmetric division modes, and the like, and there are multiple symmetric modes) are preset, and according to the target screen division mode, before the first video recording interface and the second video recording interface are displayed in a split screen mode, a selection input of the user for a target screen division mode in the multiple division modes may be received, and in response to the selection input, the target screen division mode may be determined. For another example, a plurality of division modes are preset, wherein a default division mode is preset from the plurality of division modes, that is, if the first video recording interface and the second video recording interface need to be displayed in a split screen manner, the split screen display can be performed according to the default division mode. In an example, the different dividing manners may be switched, for example, a sixth input is received, and in response to the sixth input, the current screen dividing manner is switched to the target dividing manner corresponding to the sixth input, the target screen dividing manner is updated to the target dividing manner corresponding to the switching instruction, and the first video recording interface and the second video recording interface of the second electronic device are displayed in a split screen manner according to the updated target screen dividing manner. In one example, the sixth input may be a slide input on the display screen of the first electronic device.
In one embodiment, before displaying the first video recording interface of the first electronic device and the second video recording interface of the second electronic device, the method further includes: receiving a sliding input of a user on a display screen;
displaying a first video recording interface of a first electronic device and a second video recording interface of a second electronic device, comprising: acquiring a sliding track of sliding input; determining a target separation line based on the sliding track; displaying a first video recording interface of the first electronic equipment and a second video recording interface of the second electronic equipment based on the target separation line; the first video recording interface and the second video recording interface are separated through a target separation line.
That is, in this embodiment, the first video recording interface and the second video recording interface can be displayed separately according to the target dividing line determined by the sliding track of the sliding input through the sliding input of the user on the display screen of the first electronic device, so as to meet the display requirement of the user. In addition, after the first video recording interface of the first electronic device and the second video recording interface of the second electronic device are displayed, the sliding input of a user on a display screen can be received, the display areas of the first video recording interface of the first electronic device and the second video recording interface of the second electronic device are updated, and after the updating, the first video recording interface of the first electronic device and the second video recording interface of the second electronic device are separated through the sliding track of the second sliding input.
In one embodiment, outputting the target video comprises:
performing video coding on the S-frame video pictures every time the S-frame video pictures are obtained, wherein the S-frame video pictures comprise at least one video picture recorded by a first camera of first electronic equipment or at least one video picture recorded by a second camera of second electronic equipment; wherein S is a positive integer.
It can be understood that the S-frame video picture is from at least one frame of video picture recorded by the first camera of the first electronic device or at least one frame of video picture recorded by the second camera of the second electronic device, and the S-frame video picture can be subjected to video coding as long as the S-frame video picture in the at least one frame of video picture recorded by the first camera of the first electronic device or the S-frame video picture in the at least one frame of video picture recorded by the second camera of the second electronic device is obtained. In one example, when video coding is completed on at least one frame of video picture recorded by a first camera of a first electronic device and at least one frame of video picture recorded by a second camera of a second electronic device, a target video can be obtained and output.
That is, in this embodiment, encoding can be performed every time S frames of video pictures are acquired, and it is not necessary to encode all video pictures after all video pictures are acquired, so that the time for recording the whole video to obtain the target video can be reduced, and the recording efficiency can be improved.
The following describes the process of the above video recording method in a specific embodiment.
First, take the first electronic device as device a, N as 1, the second electronic device as device B, and device a and device B perform alternate recording as an example.
Device a and device B establish a connection, for example: the connection may be made through buddy or IP address access. Thus, data can be more conveniently transferred between the device A and the device B. It should be noted that the first electronic device may share the recorded first video frame with the second electronic device, and the second electronic device may also share the recorded second video frame with the first electronic device.
After the connection is established, in device a, the camera is opened and a preview interface of the camera is displayed, as shown in fig. 3. The camera is also turned on in device B, and a preview interface of the camera is displayed. At this time, the first video recording interface of the device a is the preview interface of the device a, and the second video recording interface of the device B is the preview interface of the device a. The preview interface of the device A comprises a first preview picture of the device A, the preview interface of the device B comprises a second preview picture of the device B, and the second preview picture of the device B is displayed on the first preview picture in an overlapped mode. The method comprises the steps that a video recording button is displayed on a preview interface of equipment A, the video recording button on the equipment A is clicked, the equipment A is switched to a recording state, video recording can be conducted, at the moment, a first video recording interface is displayed, a first video picture recorded by the equipment A is displayed in the first video recording interface, the equipment A can send a first notice to the equipment B due to the fact that the equipment A is connected with the equipment B, the first notice is used for informing the equipment B that the equipment A starts recording, the equipment B can be switched to a coding state after receiving the first notice, the equipment A can send the first video picture which is recorded to the equipment B, the equipment B is in a coding state, and the first video picture can be coded after receiving the first video picture. As shown in fig. 4, in the video recording process of the device a, a first video picture of the device a may be displayed on a first video recording interface of the device a, and a second preview picture of the device B is superimposed on the first video picture, where in fig. 4, the recorded data of the device a is the first video picture, and the preview data of the device B is the second preview picture of the device B. And displaying a prompt message of 'current equipment recording' on a first video recording interface of the equipment A so as to prompt that the user equipment of the equipment A is recording. As shown in fig. 5, on the device B, a preview interface of the device B is displayed, a second preview screen of the device B is displayed on the preview interface of the device B, the first video screen received from the device a is displayed in a superimposed manner on the second preview screen, and a prompt message "device a is recording" is also displayed on the preview interface of the device B to prompt a user of the device B that the device a is recording. As can be seen from fig. 4 and 5, the display contents of the device a and the device B are different from each other, which may prompt which device is currently in recording, and when the device a is in the recording process, the recording button of the device B may not be clicked, and the video recording of the device a may not be interrupted.
The terminal A is in a recording state, and the terminal B is in a coding state at the moment, coding can be carried out, but pictures collected by a camera of the terminal B are not recorded, namely the terminal B cannot cut off the recording of the equipment A at the moment unless the equipment A actively triggers to finish the recording. As shown in fig. 6, device a may stop recording by clicking the record button on the first video recording interface of device a again, and send a first message to device B, the first message being used to notify device B that video recording may be started. Or the device a may stop recording by clicking a second preview picture of the device B on a first video recording interface of the device a, and send a first message to the device B, where the first message is used to instruct the device B to start video recording. That is, the user may click the record button or click the second preview screen of device B to stop recording of the current device a. In addition, as shown in fig. 7, a control may be further laid out on the first video recording interface of the device, where the name of the control may be a name of a device connected to the current device, for example, the name of the first control on the first video recording interface of device a is a name of device B, the first control may be operated, device a receives an operation on the first control, for example, a click operation, may stop video recording of device a, and sends a first message to device B, and the first message is used to notify that device B may start video recording.
The device a stops recording, a first message may be sent to the device B, after receiving the first message, the device B may display a prompt message that "the device a stops recording and the current device may start recording" on the device B to prompt a user of the device B to start recording, after receiving the first message, the device B may start video recording, and at this time, the device B displays a second video recording interface. Or, as shown in fig. 8, after receiving the first message, the device B may switch to a recordable state, that is, may record a video, the user may click a video button on a preview interface of the device B to start recording the video, and the device B displays a second video recording interface. A second control may be displayed on device B, similar in function to the first control. The name of the second control on the device B is the name of the device a, and the second control can be used to control the current device B to interrupt recording and notify the device a that recording can be started. And the device B can send the recorded second video picture to the device A in the recording process, the device A is in a coding state after stopping recording, and coding can be continuously carried out on the result of the original coding of the first video picture after receiving the second video picture. Under the condition that the equipment B is in the recording process, the video recording button of the equipment A cannot be clicked, and the video recording of the equipment B cannot be interrupted urgently.
The device B may stop recording by clicking a record button on a second video recording interface of the device B, and send a second message to the device a, where the second message is used to instruct the device a to start video recording. Or the device B may stop recording the video by clicking the first preview screen of the device a on the second video recording interface of the device B, and send the second message to the device a. That is, the user may click the record button or click the first preview screen of device a to stop recording of device B. In addition, as shown in fig. 8, the name of the second control on the second video recording interface of the device B is the name of the device a, the second control may be operated, and the device B may stop the video recording of the device B and send a second message to the device a when receiving an operation on the second control, for example, a click operation. The subsequent user may click the record button on device B to cause device a to start recording. After the recording of the device A is stopped, the recording of the device B can be carried out again. By the circulation, the cross recording of the equipment A and the equipment B can be realized, and the recording time of the first video picture recorded by the equipment A is different from that of the second video picture recorded by the equipment B.
In this embodiment, both the device a and the device B may stop recording through a special approach, as shown in fig. 9, taking the device a as an example, an end button may be laid out on the device a, and by clicking the end button, recording of the device a may be stopped, and a stop instruction may be sent to the device B, and after receiving the stop instruction, the device B stops recording, that is, the device a and the device B may be notified to stop recording through the end button, so that a recorded video generated by encoding may be obtained on the device a, and a recorded video generated by encoding may also be obtained on the device B. Or, the recording of the device a may be stopped by pressing a recording button of the device a for a long time (for example, pressing the time longer than the preset time), and sending a stop instruction to the device B, and the device B stops recording after receiving the stop instruction. Or the recording of the device a can also be stopped by closing a second preview screen of the device B on the preview interface of the device a, and sending a stop instruction to the device B, and the device B stops recording after receiving the stop instruction.
And the terminal A and the terminal B both finish recording, the equipment A generates a video file and a recorded video, and a first recorded picture of the equipment A and a second recorded picture transmitted when the equipment B records are continuously received in the recording process of the video file and are sequentially coded. For example, in the process of recording by the device a, the first recording picture of the device a is encoded, and after the device a stops recording, the device B is in the recording state, and at this time, the device a receives the second recording picture of the device B, continues to encode the second recording data of the device B in the current video file, and sequentially switches recording. And ending video recording until the user finishes recording the video to obtain the video file. Device B also generates a video file. After the plurality of electronic devices are connected, the plurality of electronic devices can record videos in sequence, and pictures recorded by the plurality of electronic devices can be encoded on each electronic device to generate a recorded video. The video file is in the form shown in fig. 10, and the video file is generated such that the recorded pictures of the device a and the device B intersect. Can understand promptly for providing the video is recorded to connect the dragon form, increase and record the video interest, reduced simultaneously and recorded the video and to the restriction of equipment, can record the video in different places on equipment, break through the restriction of equipment to the region, increased the interest that the video was recorded, enlarged the scope of recording the video coverage.
Then, taking the first electronic device as device a, N as 1, the second electronic device as device B, and performing video recording by synchronizing device a and device B (it can be understood that device B also performs video recording during the video recording process performed by device a).
As shown in fig. 11, a preview interface is displayed on the device a, and a first preview screen of the device a and a second preview screen of the device B are displayed on the preview interface in a split screen mode, that is, the first preview screen of the device a and the second preview screen of the device B are displayed in different areas of the preview interface.
And clicking a video recording button on the equipment A, wherein the equipment A starts recording and sends a third message to the equipment B as the equipment A and the equipment B are connected, the third message is used for indicating the equipment B to start video recording through a second camera, and the equipment B can record videos in response to the third message. Device a is in a recording state and will send the first video picture recorded to device B. Device B is also in a recording state and will send a recorded second video picture to device a.
The first video picture and the second video picture can be displayed in a split screen mode on the preview interface of the device a, as shown in fig. 12, and the first video picture and the second video picture can also be displayed in a split screen mode on the preview interface of the device B, as shown in fig. 13. In the recording process of the device a and the device B, taking the device a as an example, a sliding operation may be performed on a preview interface of the device a to switch the first video image of the device a and the second video image of the device B, that is, to switch the display positions, as shown in fig. 14. The first video screen and the second video screen may also be switched to a nested display, and as shown in fig. 15, the second video screen may be displayed superimposed on the first video screen, with the display area of the second video screen overlapping a portion of the display area of the first video screen. The video screen of any one of the first electronic device and the second electronic device may be cut and displayed, and as shown in fig. 16, the second video screen of the device B may be cut and displayed, that is, only a partial screen of the second video screen of the device B may be displayed. In addition, the screen division mode has multiple, can realize the split screen display. Fig. 12 shows a screen division manner, and fig. 17 shows another screen division manner, in fig. 12, a first display region displaying a first video image and a second display region displaying a second video image are axisymmetric, and in fig. 17, the first display region and the second display region are centrosymmetric. One screen division manner of fig. 12 is switched to another screen division manner as shown in fig. 17, for example, the current screen division manner is the division manner of fig. 12, that is, the target screen division manner is the screen division manner of fig. 12, a sixth input of the user input is received, and in response to the sixth input, the target screen division manner is switched to the screen division manner in fig. 17, so that the display areas of the first video picture of the device a and the second video picture of the device B can be updated.
As shown in fig. 18, for example, by pressing the record button for a long time, the device B stops recording, and sends a fourth message to the device a, where the fourth message is used to instruct the first electronic device to stop recording, instruct the second bag device to stop recording, and stop recording after the device a receives the fourth message. Or the device a may press the record button for a long time, and receive a fourth message (that is, the fourth message is generated in response to the operation of pressing the record button for a long time), so that the device a stops recording, and sends the fourth message to the device B, and the device B stops recording after receiving the fourth message. In the embodiment, the equipment in different places can be recorded simultaneously, the limitation of the equipment to regions is broken through, the interestingness of video recording is increased, and the scene range covered by the recorded video content can be expanded.
As shown in fig. 19, the present invention also provides a first electronic device 1900 of an embodiment, including:
a first receiving module 1901, configured to receive a first input of a user when a first electronic device is connected to a second electronic device;
an output module 1902, configured to, in response to a first input, control the first electronic device and the second electronic device to perform video recording, and output a target video;
the target video comprises at least one frame of video picture of a first video recording interface of the first electronic equipment and at least one frame of video picture of a second video recording interface of the second electronic equipment.
In one embodiment, controlling the first electronic device and the second electronic device to perform video recording and output a target video in response to the first input includes:
and responding to the first input, controlling the first electronic equipment and the second electronic equipment to alternately record the video and output the target video.
In one embodiment, an output module includes:
the first control module is used for controlling a first camera of the first electronic equipment to record the ith video and sending at least one frame of first video image recorded by the first camera to the second electronic equipment;
the first sending module is used for sending a first message to the second electronic equipment under the condition that the first camera of the first electronic equipment stops video recording, wherein the first message is used for indicating the second electronic equipment to start recording videos;
the second receiving module is used for receiving at least one frame of second video image sent by the second electronic equipment, wherein the at least one frame of second video image is obtained by recording a second camera of the second electronic equipment after the second electronic equipment receives the first message;
the third receiving module is used for receiving a second message sent by the second electronic equipment under the condition that the second camera stops video recording, and the second message is used for indicating the first electronic equipment to start video recording;
the first control module is used for controlling a first camera of the first electronic equipment to record the (i + 1) th video;
the first video output module is used for outputting a target video based on N video segments obtained by recording N times of videos of the first camera and M video segments obtained by recording M times of videos of the second camera;
wherein N and M are positive integers; i is a positive integer, and i is less than N.
In one embodiment, controlling the first electronic device and the second electronic device to perform video recording and output a target video in response to the first input includes:
and responding to the first input, controlling a second camera of the second electronic equipment to record the video and outputting the target video in the process of controlling the first camera of the first electronic equipment to record the video.
In one embodiment, an output module includes:
the second control module is used for responding to the first input, controlling a first camera of the first electronic equipment to record a video, sending at least one frame of first video image recorded by the first camera to the second electronic equipment, and sending a third message to the second electronic equipment, wherein the third message is used for indicating the second electronic equipment to start video recording through the second camera;
the third receiving module is used for receiving at least one frame of second video image sent by the second electronic equipment, wherein the at least one frame of second video image is obtained by recording a second camera of the second electronic equipment after the second electronic equipment receives the third message;
the video acquisition module is used for acquiring a first video recorded by the first electronic equipment and a second video of the second electronic equipment under the condition of receiving the fourth message;
and the second video output module is used for outputting the target video based on the first video and the second video.
In one embodiment, before receiving the first input of the user, the method further comprises:
the display module is used for displaying a first video recording interface of the first electronic device and a second video recording interface of the second electronic device.
In one embodiment, displaying a first video recording interface of a first electronic device and a second video recording interface of a second electronic device includes:
displaying a first video recording interface, and displaying a second video recording interface on the first video recording interface in an overlapping manner;
or displaying a second video recording interface, and overlaying and displaying a first video recording interface on the second video recording interface;
or displaying the first video recording interface and the second video recording interface in a split screen mode according to the target screen dividing mode.
In one embodiment, the first electronic device 1900 further includes:
the fourth receiving module is used for receiving sliding input of a user on the display screen before the display module executes and displays the first video recording interface of the first electronic equipment and the second video recording interface of the second electronic equipment;
the display module includes:
the track acquisition module is used for acquiring the sliding track of the sliding input;
a target separation line determining module for determining a target separation line based on the sliding track;
the display sub-module is used for displaying a first video recording interface of the first electronic equipment and a second video recording interface of the second electronic equipment based on the target separation line; wherein the first video recording interface and the second video recording interface are separated by the target separation line.
In other words, in this embodiment, the first video recording interface and the second video recording interface can be separately displayed according to the target dividing line determined by the sliding track of the sliding input through the sliding input of the user on the display screen of the first electronic device, so as to meet the display requirement of the user. In addition, after the first video recording interface of the first electronic device and the second video recording interface of the second electronic device are displayed, a sliding input of a user on a display screen can be received, the display areas of the first video recording interface of the first electronic device and the second video recording interface of the second electronic device are updated, and after the updating, the first video recording interface of the first electronic device and the second video recording interface of the second electronic device are separated through a sliding track of the second sliding input.
In one embodiment, an output module includes:
the encoding module is used for carrying out video encoding on the S-frame video pictures every time the S-frame video pictures are obtained, wherein the S-frame video pictures comprise at least one video picture recorded by a first camera of first electronic equipment or at least one video picture recorded by a second camera of second electronic equipment; wherein S is a positive integer.
Technical features in the electronic device provided by the embodiment of the present invention correspond to technical features in the video recording method, and each process of the video recording method is implemented by the electronic device, and the same effect can be obtained.
Fig. 20 is a schematic diagram of a hardware structure of an electronic device 2000 for implementing various embodiments of the present invention, where the electronic device 2000 includes, but is not limited to: a radio frequency unit 2001, a network module 2002, an audio output unit 2003, an input unit 2004, a sensor 2005, a display unit 2006, a user input unit 2007, an interface unit 2008, a memory 2009, a processor 2010, and a power source 2011. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 20 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or combine certain components, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted mobile terminal, a wearable device, a pedometer, and the like.
The system comprises a user input unit 2007 for receiving a first input of a user when a first electronic device is connected with a second electronic device, and a processor 2010 for controlling the first electronic device and the second electronic device to record videos and output a target video in response to the first input. The target video comprises at least one frame of video picture of a first video recording interface of the first electronic equipment and at least one frame of video picture of a second video recording interface of the second electronic equipment.
In the video recording process, after the first input is received, the first electronic equipment and the second electronic equipment are controlled to record the video, a target video is obtained, and the video recording is realized. In other words, in the recording process, only the first electronic device records in the current scene or position, but the first electronic device and the second electronic device are controlled to record videos, and the obtained target video not only includes the video picture of the first video recording interface of the first electronic device, but also includes the video picture of the second video recording interface of the second electronic device, so that the limitation of the scene or position can be reduced, the scene range covered by the recorded content is expanded, and the scene range covered by the recorded target video can be expanded.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 2001 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 2010; in addition, the uplink data is transmitted to the base station. Generally, the radio frequency unit 2001 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio frequency unit 2001 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 2002, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 2003 may convert audio data received by the radio frequency unit 2001 or the network module 2002 or stored in the memory 2009 into an audio signal and output as sound. Also, the audio output unit 2003 may also provide audio output related to a specific function performed by the electronic apparatus 500 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 2003 includes a speaker, a buzzer, a receiver, and the like.
The input unit 2004 is for receiving an audio or video signal. The input Unit 2004 may include a Graphics Processing Unit (GPU) 20041 and a microphone 20042, and the Graphics processor 20041 processes picture data of still pictures or video obtained by a picture capture electronic device (such as a camera) in a video capture mode or a picture capture mode. The processed picture frame may be displayed on the display unit 2006. The picture frame processed by the graphic processor 20041 may be stored in the memory 2009 (or other storage medium) or transmitted via the radio frequency unit 2001 or the network module 2002. The microphone 20042 can receive sounds and can process such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 2001 in the case of the phone call mode.
The electronic device 600 also includes at least one sensor 2005, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 20091 according to the brightness of ambient light and a proximity sensor that can turn off the display panel 20091 and/or the backlight when the electronic device 600 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 2005 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be described in detail herein.
The display unit 2006 is used to display information input by a user or information provided to the user. The Display unit 2006 may include a Display panel 20061, and the Display panel 20061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 2007 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 2007 includes a touch panel 20071 and other input devices 20072. Touch panel 20071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on touch panel 20071 or near touch panel 20071 using a finger, stylus, or any other suitable object or attachment). Touch panel 20071 may include two parts, a touch detection electronics and a touch controller. The touch detection electronic equipment detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing electronics, converts it to touch point coordinates, sends the touch point coordinates to processor 2010, receives commands from processor 2010, and executes the commands. In addition, the touch panel 20071 can be implemented by various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 20071, the user input unit 2007 may include other input devices 20072. In particular, other input devices 20072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, touch panel 20071 can be overlaid on display panel 20061, and when touch panel 20071 detects a touch operation on or near the touch panel, the touch panel can be transmitted to processor 2010 for determining the type of touch event, and then processor 2010 can provide a corresponding visual output on display panel 20061 according to the type of touch event. Although in fig. 20, the touch panel 20071 and the display panel 20061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 20071 may be integrated with the display panel 20061 to implement the input and output functions of the electronic device, and is not limited herein.
The interface unit 2008 is an interface for connecting an external electronic device to the electronic device 500. For example, the external electronic device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting an electronic device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 2008 may be used to receive input (e.g., data information, power, etc.) from an external electronic device and transmit the received input to one or more elements within the electronic device 500 or may be used to transmit data between the electronic device 500 and the external electronic device.
The memory 2009 may be used to store software programs as well as various data. The memory 2009 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program (such as a sound playing function, a picture playing function, etc.) required by at least one function, and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 2009 may comprise high speed random access memory, and may also comprise non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 2010 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 2009 and calling data stored in the memory 2009, thereby monitoring the electronic device as a whole. Processor 2010 may include one or more processing units; preferably, the processor 2010 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 2010.
The electronic device 500 may further include a power source 2011 (e.g., a battery) for providing power to various components, and preferably, the power source 2011 may be logically connected to the processor 2010 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the electronic device 600 includes some functional modules that are not shown, and are not described in detail herein.
An embodiment of the present invention further provides an electronic device, which includes a processor 2010 and a memory 2009, where the memory 2009 stores a computer program that can be executed on the processor 2010, and when the computer program is executed by the processor 2010, the computer program implements each process in the video recording method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the video recording method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or electronic device that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or electronic device. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or electronic device that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling an electronic device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (12)

1. A video recording method is applied to a first electronic device, and is characterized by comprising the following steps:
receiving a first input of a user under the condition that the first electronic equipment is connected with second electronic equipment;
responding to the first input, controlling the first electronic equipment and the second electronic equipment to record videos, and outputting a target video;
the target video comprises at least one frame of video picture of a first video recording interface of the first electronic equipment and at least one frame of video picture of a second video recording interface of the second electronic equipment.
2. The method of claim 1, wherein said controlling the first electronic device and the second electronic device to perform video recording and output a target video in response to the first input comprises:
and responding to the first input, controlling the first electronic equipment and the second electronic equipment to alternately record videos, and outputting the target videos.
3. The method of claim 2, wherein the controlling the first electronic device and the second electronic device to alternate video recording and output the target video comprises:
controlling a first camera of the first electronic equipment to carry out ith video recording, and sending at least one frame of first video image recorded by the first camera to the second electronic equipment;
under the condition that a first camera of the first electronic equipment stops video recording, sending a first message to the second electronic equipment, wherein the first message is used for indicating the second electronic equipment to start recording videos;
receiving at least one frame of second video picture sent by the second electronic device, wherein the at least one frame of second video picture is obtained by recording a second camera of the second electronic device after the second electronic device receives the first message;
receiving a second message sent by the second electronic device under the condition that the second camera stops video recording, wherein the second message is used for indicating the first electronic device to start video recording;
controlling a first camera of the first electronic equipment to record the (i + 1) th video;
outputting the target video based on N video segments obtained by recording N times of videos of the first camera and M video segments obtained by recording M times of videos of the second camera;
wherein N and M are positive integers; i is a positive integer, and i is less than N.
4. The method of claim 1, wherein said controlling the first electronic device and the second electronic device to perform video recording and output a target video in response to the first input comprises:
and responding to the first input, controlling a second camera of the second electronic equipment to record a video and outputting the target video in the process of controlling the first camera of the first electronic equipment to record the video.
5. The method of claim 4, wherein controlling a second camera of the second electronic device to record video and output the target video during the controlling of the first camera of the first electronic device to record video in response to the first input comprises:
responding to the first input, controlling a first camera of the first electronic equipment to record a video, sending at least one frame of first video image recorded by the first camera to the second electronic equipment, and sending a third message to the second electronic equipment, wherein the third message is used for indicating the second electronic equipment to start video recording through the second camera;
receiving at least one frame of second video picture sent by the second electronic device, wherein the at least one frame of second video picture is obtained by recording a second camera of the second electronic device after the second electronic device receives the third message;
under the condition that a fourth message is received, acquiring a first video recorded by the first electronic device and a second video of the second electronic device;
outputting the target video based on the first video and the second video.
6. The method of any of claims 1-5, wherein prior to receiving the first input from the user, further comprising:
and displaying a first video recording interface of the first electronic equipment and a second video recording interface of the second electronic equipment.
7. The method of claim 6, wherein displaying the first video recording interface of the first electronic device and the second video recording interface of the second electronic device comprises:
displaying the first video recording interface, and displaying the second video recording interface on the first video recording interface in an overlapping manner;
or displaying the second video recording interface, and overlaying and displaying the first video recording interface on the second video recording interface;
or, according to a target screen dividing mode, displaying the first video recording interface and the second video recording interface in a split screen mode.
8. The method of claim 6, wherein prior to displaying the first video recording interface of the first electronic device and the second video recording interface of the second electronic device, further comprising:
receiving a sliding input of a user on a display screen;
the displaying of the first video recording interface of the first electronic device and the second video recording interface of the second electronic device includes:
acquiring a sliding track of the sliding input;
determining a target separation line based on the sliding track;
displaying a first video recording interface of the first electronic equipment and a second video recording interface of the second electronic equipment based on the target separation line;
wherein the first video recording interface and the second video recording interface are separated by the target separation line.
9. The method of claim 1, wherein outputting the target video comprises:
performing video coding on the S-frame video pictures every time the S-frame video pictures are obtained, wherein the S-frame video pictures comprise at least one video picture recorded by a first camera of the first electronic equipment or at least one video picture recorded by a second camera of the second electronic equipment; wherein S is a positive integer.
10. A first electronic device, comprising:
the first receiving module is used for receiving a first input of a user under the condition that the first electronic equipment is connected with the second electronic equipment;
the output module is used for responding to the first input, controlling the first electronic equipment and the second electronic equipment to record videos and outputting target videos;
the target video comprises at least one frame of video picture of a first video recording interface of the first electronic equipment and at least one frame of video picture of a second video recording interface of the second electronic equipment.
11. An electronic device, comprising: memory and processor, characterized in that the memory stores a computer program which when executed by the processor performs the steps of the video recording method according to any of claims 1-9.
12. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the video recording method according to any one of claims 1 to 9.
CN202010075576.XA 2020-01-22 2020-01-22 Video recording method and electronic equipment Pending CN111246104A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010075576.XA CN111246104A (en) 2020-01-22 2020-01-22 Video recording method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010075576.XA CN111246104A (en) 2020-01-22 2020-01-22 Video recording method and electronic equipment

Publications (1)

Publication Number Publication Date
CN111246104A true CN111246104A (en) 2020-06-05

Family

ID=70871958

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010075576.XA Pending CN111246104A (en) 2020-01-22 2020-01-22 Video recording method and electronic equipment

Country Status (1)

Country Link
CN (1) CN111246104A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112529778A (en) * 2020-11-24 2021-03-19 展讯通信(上海)有限公司 Image splicing method and device for multi-camera equipment, storage medium and terminal
CN113784012A (en) * 2021-08-31 2021-12-10 维沃移动通信有限公司 Video recording method and device and electronic equipment
WO2023216993A1 (en) * 2022-05-09 2023-11-16 维沃移动通信有限公司 Recording data processing method and apparatus, and electronic device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101685373A (en) * 2008-09-26 2010-03-31 宏达国际电子股份有限公司 Method for generating multiple windows frames and electronic device thereof
CN103391403A (en) * 2013-08-23 2013-11-13 北京奇艺世纪科技有限公司 Method and device for realizing multi-lens video shooting real-time editing
CN105472241A (en) * 2015-11-20 2016-04-06 努比亚技术有限公司 Image splicing method and mobile terminals
CN106657774A (en) * 2016-11-25 2017-05-10 杭州联络互动信息科技股份有限公司 Method and device for recording video
CN107205130A (en) * 2017-06-29 2017-09-26 努比亚技术有限公司 A kind of kinescope method based on dual camera, terminal and computer-readable medium
CN107332818A (en) * 2017-05-18 2017-11-07 西安万像电子科技有限公司 Processing method, device and system, storage medium and the processor of media data
CN110475086A (en) * 2019-07-23 2019-11-19 咪咕动漫有限公司 Video recording method and system, server and terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101685373A (en) * 2008-09-26 2010-03-31 宏达国际电子股份有限公司 Method for generating multiple windows frames and electronic device thereof
CN103391403A (en) * 2013-08-23 2013-11-13 北京奇艺世纪科技有限公司 Method and device for realizing multi-lens video shooting real-time editing
CN105472241A (en) * 2015-11-20 2016-04-06 努比亚技术有限公司 Image splicing method and mobile terminals
CN106657774A (en) * 2016-11-25 2017-05-10 杭州联络互动信息科技股份有限公司 Method and device for recording video
CN107332818A (en) * 2017-05-18 2017-11-07 西安万像电子科技有限公司 Processing method, device and system, storage medium and the processor of media data
CN107205130A (en) * 2017-06-29 2017-09-26 努比亚技术有限公司 A kind of kinescope method based on dual camera, terminal and computer-readable medium
CN110475086A (en) * 2019-07-23 2019-11-19 咪咕动漫有限公司 Video recording method and system, server and terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112529778A (en) * 2020-11-24 2021-03-19 展讯通信(上海)有限公司 Image splicing method and device for multi-camera equipment, storage medium and terminal
CN113784012A (en) * 2021-08-31 2021-12-10 维沃移动通信有限公司 Video recording method and device and electronic equipment
WO2023216993A1 (en) * 2022-05-09 2023-11-16 维沃移动通信有限公司 Recording data processing method and apparatus, and electronic device

Similar Documents

Publication Publication Date Title
CN110446097B (en) Screen recording method and mobile terminal
CN109495711B (en) Video call processing method, sending terminal, receiving terminal and electronic equipment
CN108513070B (en) Image processing method, mobile terminal and computer readable storage medium
CN108495029B (en) Photographing method and mobile terminal
CN109407921B (en) Application processing method and terminal device
CN109525874B (en) Screen capturing method and terminal equipment
CN110096326B (en) Screen capturing method, terminal equipment and computer readable storage medium
CN109240577B (en) Screen capturing method and terminal
CN109379484B (en) Information processing method and terminal
CN111666009B (en) Interface display method and electronic equipment
CN110865745A (en) Screen capturing method and terminal equipment
CN109922294B (en) Video processing method and mobile terminal
CN111246104A (en) Video recording method and electronic equipment
CN109618218B (en) Video processing method and mobile terminal
CN110990172A (en) Application sharing method, first electronic device and computer-readable storage medium
CN108174109B (en) Photographing method and mobile terminal
CN109889756B (en) Video call method and terminal equipment
CN110321449B (en) Picture display method and terminal
CN110086998B (en) Shooting method and terminal
CN109782970B (en) Display method and terminal
CN111050214A (en) Video playing method and electronic equipment
CN109491964B (en) File sharing method and terminal
CN110830747A (en) Video call method, wearable device and storage medium
JP7467667B2 (en) Detection result output method, electronic device and medium
CN111694975B (en) Image display method, device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200605