CN107592460A - A kind of video recording method, equipment and computer-readable storage medium - Google Patents

A kind of video recording method, equipment and computer-readable storage medium Download PDF

Info

Publication number
CN107592460A
CN107592460A CN201710871858.9A CN201710871858A CN107592460A CN 107592460 A CN107592460 A CN 107592460A CN 201710871858 A CN201710871858 A CN 201710871858A CN 107592460 A CN107592460 A CN 107592460A
Authority
CN
China
Prior art keywords
video
camera
record
frame
moment
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
CN201710871858.9A
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201710871858.9A priority Critical patent/CN107592460A/en
Publication of CN107592460A publication Critical patent/CN107592460A/en
Pending legal-status Critical Current

Links

Landscapes

  • Television Signal Processing For Recording (AREA)

Abstract

The embodiment of the invention discloses a kind of video recording method, methods described is applied to the terminal with dual camera, including:First camera and second camera proceed by video record different at the time of respectively;Obtain the first video that first camera recorded and the second video that the second camera is recorded;Each frame of each frame of first video and second video is synthesized successively according to moment order is recorded, obtains the video after synthesis.The embodiment of the present invention also discloses a kind of video recording device and computer-readable storage medium simultaneously.

Description

A kind of video recording method, equipment and computer-readable storage medium
Technical field
The present invention relates to field of terminal technology, more particularly to a kind of video recording method, equipment and computer-readable storage medium.
Background technology
With the popularization of dual camera terminal, user can shoot more gratifying photo using dual camera. Dual camera generally comprises a main camera and an auxiliary camera, and according to different application demand and emphasis, master takes the photograph As head from auxiliary camera takes different combining forms to be shot, current terminal is double to be taken the photograph technology and is mainly used in lossless change Jiao, portrait virtualization, white-black pattern etc..
In daily life, people usually require to carry out video record by the terminal-pair current scene with camera. The video that is obtained by the shooting of single camera it is possible that interim card, it is fuzzy the problems such as, so as to influence shooting effect.However, mesh The preceding utilization to dual camera is mainly used in terms of shooting single photo, carries out shooting using dual camera and optimizes individual photograph Piece effect, but the scheme optimized using dual camera to photo can not be directly used on video record and be regarded to be lifted The recording result of frequency, therefore, the video of recording is optimized using dual camera and has become urgent problem to be solved.
The content of the invention
It is a primary object of the present invention to propose a kind of video recording method, equipment and computer-readable storage medium, it is intended to profit Video capture is carried out with dual camera, improves video capture frame per second, optimizes shooting effect.
To reach above-mentioned purpose, the technical proposal of the invention is realized in this way:
In a first aspect, the embodiments of the invention provide a kind of video recording method, methods described is applied to have double shootings The terminal of head, methods described include:
First camera and second camera proceed by video record different at the time of respectively;
Obtain the first video that first camera recorded and the second video that the second camera is recorded;
Each frame of each frame of first video and second video is carried out successively according to moment order is recorded Synthesis, obtain the video after synthesis.
Alternatively, first camera and second camera proceed by respectively different at the time of video record it Before, methods described also includes:
Receive video record selection instruction;
Frame per second according to indicated by the video record selection instruction carries out video record.
Alternatively, after the frame per second according to indicated by the video record selection instruction carries out video record, institute Stating method also includes:
According to the frame per second of first camera and the second camera, first camera and described second is calculated Camera records the time needed for each two field picture;Wherein, first camera uses identical with the second camera Frame per second is shot;
According to default time calculative strategy determine first camera start record the first video the first moment with The second camera starts to record the time difference at the second moment of the second video;Wherein, first moment and described second The time difference at moment is less than time of first camera needed for each two field picture of second camera recording.
Alternatively, first camera and second camera proceed by video record different at the time of respectively, wrap Include:
First camera starts to record the first frame of the first video at the first moment;
In the first frame of first video to inserting for the second moment between the second frame;
The second camera starts to record the second video at the second moment.
Alternatively, methods described also includes:
When first camera and the second camera carry out video record, at video record interface according to first Dispaly state shows that the first video captured by first camera regards with second captured by the second camera respectively Frequently.
Alternatively, what the first video and the second camera that acquisition first camera is recorded were recorded Second video, including:
Obtain respectively corresponding to each two field picture and each two field picture of first video and second video The recording moment.
Alternatively, each frame of each frame by first video and second video is suitable according to the moment is recorded Sequence is synthesized successively, including:
Each two field picture of first video and second video is arranged according to moment order is recorded;
Second video is inserted respectively according to recording moment order after each two field picture of first video Each two field picture.
Alternatively, in each frame of each frame by first video and second video according to the recording moment After order is synthesized successively, methods described also includes:
According to the video after the display synthesis of the second dispaly state.
Second aspect, the embodiments of the invention provide a kind of video recording device, the equipment includes processor, memory And camera;
The camera, is configured to recorded video;
The memory, it is configured to store video record program;
The processor, it is configured to perform the video record program stored in memory, to realize the content of first aspect The step of described video recording method.
The third aspect, the embodiment of the present invention additionally provide a kind of computer-readable recording medium, it is characterised in that the meter Video record program is stored with calculation machine readable storage medium storing program for executing, the video record program realizes first party when being executed by processor The step of video recording method described in the content in face.
A kind of video recording method, equipment and the computer-readable storage medium that the embodiment of the present invention is provided, the first camera Video record is proceeded by different at the time of respectively from second camera, and then obtain that the first camera is recorded first regards The second video that frequency and second camera are recorded, each frame of each frame of first video and second video is pressed Synthesized successively according to moment order is recorded, obtain the video after synthesis, improve video capture frame per second, optimize video capture Effect.
Brief description of the drawings
Fig. 1 is a kind of hardware architecture diagram of mobile terminal provided in an embodiment of the present invention;
Fig. 2 is the communication system architecture schematic diagram that mobile terminal provided in an embodiment of the present invention can operate;
Fig. 3 is a kind of video recording method schematic flow sheet one that the embodiment of the present invention one provides;
Fig. 4 is the interface schematic diagram for the frame per second selection that the embodiment of the present invention one provides;
Fig. 5 is that the first camera that the embodiment of the present invention one provides and the time shaft of second camera recorded video are illustrated Figure;
Fig. 6 is a kind of video recording method schematic flow sheet two that the embodiment of the present invention one provides;
Fig. 7 is the interface schematic diagram that the first video that the embodiment of the present invention one provides and the second video subfield are shown;
Fig. 8 is a kind of video recording method schematic flow sheet three that the embodiment of the present invention one provides;
Fig. 9 is the display interface figure of the video after the synthesis that the embodiment of the present invention one provides;
Figure 10 is that a kind of video recording method that the embodiment of the present invention two provides implements schematic flow sheet;
Figure 11 is the video recording device hardware entity structure schematic diagram that the embodiment of the present invention three provides.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is only Be advantageous to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " part " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as mobile phone, flat board Computer, notebook computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable Media Player, PMP), guider, wearable device, Intelligent bracelet, pedometer etc. move Dynamic terminal, and the fixed terminal such as digital TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except special Outside element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, its hardware architecture diagram for a kind of mobile terminal of each embodiment of the realization present invention, the shifting Dynamic terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103rd, A/V (audio/video) input block 104, sensor 105, display unit 106, user input unit 107, interface unit 108th, the part such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not form the restriction to mobile terminal, and mobile terminal can be included than illustrating more or less parts, Either combine some parts or different parts arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station Downlink information receive after, handled to processor 110;In addition, up data are sent to base station.Generally, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrate Frequency unit 101 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, WCDMA), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, FDD Long Term Evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex Long Term Evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal, completely can be according to need To be omitted in the essential scope for do not change invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is receiving or It is sound that the voice data stored in memory 109, which is converted into audio signal and exported,.Moreover, audio output unit 103 The audio output related to the specific function that mobile terminal 100 performs can also be provided (for example, call signal receives sound, disappeared Breath receives sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input blocks 104 are used to receive audio or video signal.A/V input blocks 104 can include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the static images or the view data of video obtained in image capture mode by image capture apparatus (such as camera) are carried out Reason.Picture frame after processing may be displayed on display unit 106.Picture frame after the processing of graphics processor 1041 can be deposited Storage is transmitted in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (voice data), and can be voice data by such acoustic processing.Audio (voice) data after processing can To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model. Microphone 1042 can implement various types of noises and eliminate (or suppression) algorithm to eliminate (or suppression) in reception and send sound Caused noise or interference during frequency signal.
Mobile terminal 100 also includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity transducer can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general For three axles) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Display unit 106 is used for the information for showing the information inputted by user or being supplied to user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal The key signals input that family is set and function control is relevant.Specifically, user input unit 107 may include contact panel 1071 with And other input equipments 1072.Contact panel 1071, also referred to as touch-screen, collect touch operation of the user on or near it (for example user uses any suitable objects or annex such as finger, stylus on contact panel 1071 or in contact panel 1071 Neighbouring operation), and corresponding attachment means are driven according to formula set in advance.Contact panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it Contact coordinate is converted into, then gives processor 110, and the order sent of reception processing device 110 and can be performed.In addition, can To realize contact panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap Include but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc. One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, detect thereon when contact panel 1071 or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, contact panel 1071 and display panel 1061 be the part independent as two to realize the input of mobile terminal and output function, but in certain embodiments, can Input and the output function of mobile terminal are realized so that contact panel 1071 and display panel 1061 is integrated, is not done herein specifically Limit.
Interface unit 108 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 100.For example, External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include storing program area And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as Voice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection Individual part, by running or performing the software program and/or module that are stored in memory 109, and call and be stored in storage Data in device 109, the various functions and processing data of mobile terminal are performed, so as to carry out integral monitoring to mobile terminal.Place Reason device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main Handle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) to all parts power supply, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put The function such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also will not be repeated here including bluetooth module etc..
For the ease of understanding the embodiment of the present invention, the communications network system being based on below to the mobile terminal of the present invention enters Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system Unite as the LTE system of universal mobile communications technology, the UE that the LTE system includes communicating connection successively (User Equipment, is used Family equipment) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, evolved UMTS lands Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned terminal 100, and here is omitted.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connected with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide UE201 to EPC203 access.
EPC203 can include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling between EPC203, there is provided carrying and connection management.HSS2032 is all to manage for providing some registers Such as the function of attaching position register (not shown) etc, and preserve some and used about service features, data rate etc. The special information in family.All customer data can be transmitted by SGW2034, and PGW2035 can provide UE 201 IP Address is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources Point, it selects and provided available strategy and charging control decision-making with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And following new network system etc., do not limit herein.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the inventive method is proposed.
Embodiment one
Referring to Fig. 3, it illustrates a kind of video recording method provided in an embodiment of the present invention, this method is applied to double The terminal of camera, methods described include:
S101, the first camera and second camera proceed by video record different at the time of respectively;
S102, obtain the first video that first camera recorded and second that the second camera is recorded regards Frequently;
S103, by each frame of each frame of first video and second video according to recording moment order successively Synthesized, obtain the video after synthesis.
Before step S101, terminal needs first to obtain the frame per second of recorded video, therefore, in first camera Before proceeding by video record different at the time of respectively from second camera, methods described is further comprising the steps of:
Receive video record selection instruction;
Frame per second according to indicated by video record selection instruction carries out video record.
It should be noted that video record selection instruction, which can be user, is directed to the setting that video record is made, in video Before recording, user can set interface to be configured accordingly, frame per second corresponding to selection.
Referring to Fig. 4, Fig. 4 show the interface of frame per second selection, and user can be at the interface shown in Fig. 4 before video capture Selection needs the video frame rate shot, to obtain corresponding shooting effect.In general, video category of the frame per second in below 60fps In ordinary video, frame per second belongs to high-speed video in more than 60fps and in below 120fps video, and frame per second is more than 120fps's Video belongs to ultrahigh speed video, and user can be selected according to the demand of oneself.Frame per second selected by user is the first shooting Total frame per second of head and the video captured by second camera.By taking frame per second 60fps as an example, when user select frame per second for 60fps when, Frame per second when first camera is shot with second camera is respectively 30fps.
By said process, terminal obtains the frame per second of video record, therefore, described according to video record selection instruction After indicated frame per second carries out video record, methods described is further comprising the steps of:
According to the frame per second of first camera and the second camera, first camera and described second is calculated Camera records the time needed for each two field picture;Wherein, first camera uses identical with the second camera Frame per second is shot;
Determine that the first camera starts to record the first moment and second of the first video according to default time calculative strategy Camera starts to record the time difference at the second moment of the second video;Wherein, the time difference at first moment and the second moment The time needed for each two field picture is recorded less than first camera and the second camera.
It should be noted that above-mentioned steps are mainly used in determining the second moment that second camera shoots the second video.By It is that asynchronous starting works in the first camera and second camera, therefore the first camera starts shooting with second camera and regarded The time of frequency differs.
Specifically, because the first camera is shot with second camera using identical frame per second, therefore, the first shooting The time that head is recorded needed for each two field picture with second camera is identical.Calculate the time needed for each two field picture of recording Afterwards, the time difference at the second moment and the first moment is determined, after the first camera starts recorded video, according to the second moment With the time difference at the first moment, start the second moment that second camera starts recorded video.
Here, default time calculative strategy is:In the first frame of the first video and the intermediate time of the second frame, insertion the Two moment carried out the recording of the second video.It is preferred that the half the time required to the first frame and the second frame of the first video Place carries out the recording of the second video.
For example, the first moment was time point 0, and the second moment was time point t, and the first camera is adopted with second camera Shot with same frame per second, if the first camera frame per second using 30fps same with second camera, this explanation first is taken the photograph As head with second camera is per second collects 30 two field pictures, then the first camera is recorded needed for a two field picture with second camera Time be 1/30s.Referring to Fig. 5, Fig. 5 is the first camera and the time shaft schematic diagram of second camera recorded video.From Fig. 5 It can be seen that the time difference that the first camera carries out video record with second camera is 1/60s.First camera is opened at 0 moment Begin to shoot, then second camera starts to shoot in 1/60s.Such first camera and second camera have a time difference, and two Individual camera asynchronous starting is operated, and same scene is shot.
After the second moment that second camera starts video record is determined by said process, second camera prepares to open Beginning video record.
Referring to Fig. 6, S101 specifically includes S1011 to S1013:
S1011, first camera start the first frame of the video of video record first at the first moment;
S1012, first video the first frame to inserting for the second moment between the second frame;
S1013, the second camera start to record the second video at the second moment.
It should be noted that the first camera and second camera proceed by video record different at the time of respectively. First camera starts to record the first frame of the first video at the first moment, after the first frame of the first camera starts recording, When starting to record the first moment and the second camera of the first video according to the first camera and starting to record the second of the second video The time difference at quarter, in the first frame of the first video to inserting for the second moment between the second frame, then set out second at the second moment Camera starts to record the second video.
By the above method, the first camera completes asynchronous starting and work with second camera, in the first camera After starting shooting, and then second camera is spent Same Scene and shot.So, the first camera is clapped with second camera What is taken the photograph is video at different moments, but the first video for photographing of the first camera and second camera photograph the Two videos have the sufficiently small time difference, therefore will not cause the difference of vision.
For the technical scheme shown in Fig. 3, methods described also includes:
When the first camera and second camera carry out video record, at video record interface according to the first dispaly state The first video captured by the first camera and the second video captured by second camera are shown respectively.
Specifically, the first dispaly state is to be divided to two columns to show the captured by the first camera respectively in the screen of terminal The real-time pictures of one video and the second video captured by second camera.
Referring to Fig. 7, Fig. 7 is the interface schematic diagram that the first video and the second video subfield are shown.User can on the surface To check the picture of the first camera and second camera real-time recording respectively.The first video and that first camera is recorded The video that two cameras are recorded on the time started slightly than first take the photograph by difference, the second moment that second camera starts to record As head starts the first moment recorded a little later, but each frame used time during due to video record is very short, and human eye can not be told Come, therefore, the shown interface when the second moment started recorded video, user would not observe that and the first video area Not.
After the first camera and second camera are shot, terminal obtains first that the first camera is recorded and regarded The second video that frequency and second camera are recorded, therefore, herein below is specifically included for the step S102 shown in Fig. 3:
Obtain respectively corresponding to each two field picture and each two field picture of first video and second video The recording moment.
It should be noted that because the first camera and second camera are shot different at the time of, therefore, first The each frame for the second video that time of each frame for the first video that camera is recorded is recorded with second camera when Between differ.Get each two field picture of the first video and the second video and the shooting time corresponding to each two field picture Afterwards, it is possible to synthesized the first video and the second video, synthesis comprises the following steps that.
For the step S103 shown in Fig. 3, S1031 and S1032 are specifically included referring to Fig. 8, S103:
S1031, each two field picture of first video and second video arranged according to moment order is recorded;
S1032, it is sequentially inserted into second video according to the recording moment after each two field picture of first video Each two field picture.
It should be noted that it is the video of double frame per second after the first video and the second Video Composition.
For example, the first video and the second video are the video of 30fps frequencies, obtain each frame figure of the first video Picture, each two field picture of the first video is arranged according to shooting time order.Got so that the first video is captured within 1s Frame number exemplified by, because the frame per second of the first video is 30fps, therefore the first video have taken 30 two field pictures within the 1s times. 30 two field pictures of first video within 1s are arranged according to the time sequencing of shooting, arrangement obtains the first video in 1s Between within 30 frames:A1、A2、A3、A4……A30.Similarly, since the frame per second of the second video is 30fps, therefore the second video exists 30 two field pictures are equally have taken within the 1s times.30 two field pictures of second video within 1s are entered according to the time sequencing of shooting Row arrangement, arrangement obtain 30 frames of second video within the 1s times:B1、B2、B3、B4……B30.
Specific building-up process is as follows:
The 1st frame B1 of the second video is inserted after the 1st frame A1 of the first video, then in the 2nd frame A2 of the first video The 2nd frame B2 of the second video is inserted afterwards, is regarded according to this rule until inserting second after the 30th frame A1 of the first video 30th frame B30 of frequency.As procedure described above all picture frames of the first video and the second video are all carried out interting just to complete The synthesis of first video and the second video, the video frame rate after synthesis are 60fps so that the video after synthesis has double frame per second.
For the technical scheme shown in Fig. 3, in the every of each frame by first video and second video After one frame is synthesized successively according to recording moment order, methods described also includes:
According to the video after the display synthesis of the second dispaly state.
It should be noted that the second dispaly state is by the first video and the second video shown under the first dispaly state Dispaly state after synthesis.Referring to Fig. 9, Fig. 9 is the display interface figure of the video after synthesis.Due to video record selection instruction The video frame rate of instruction is 60fps, therefore the video frame rate after synthesis is 60fps.
A kind of video recording method that the embodiment of the present invention is provided, the first camera is with second camera respectively in difference At the time of proceed by video record, then obtain the first video that the first camera recorded and second camera recorded Second video, each frame of each frame of first video and second video is carried out successively according to moment order is recorded Synthesis, the video after synthesis is obtained, video capture frame per second is improved, optimizes video capture effect.
Embodiment two
Based on previous embodiment identical technical concept, referring to Figure 10, it illustrates one kind provided in an embodiment of the present invention The specific implementation flow of video recording method, the flow can include:
S201, video record selection instruction is received, the frame per second according to indicated by video record selection instruction carries out video record System.
It should be noted that user can select required frame per second by the option for the frame per second for touching screen display, eventually The frame per second according to selected by user is held to carry out video record.
S202, the frame per second according to the first camera and second camera, calculate the first camera and recorded with second camera Time needed for each two field picture;Wherein, the first camera is shot with second camera using identical frame per second.
It should be noted that the first camera is clapped to record respectively with second camera using two sensors being equal The video image taken the photograph, in addition the first camera shot with second camera using identical frame per second, therefore, first shooting Head is identical with the time needed for each two field picture of second camera recording, and the effect of taken each two field picture is identical.
S203, determined according to default time calculative strategy the first camera start to record the first moment of the first video with Second camera starts to record the time difference at the second moment of the second video;Wherein, the time difference at the first moment and the second moment The time needed for each two field picture is recorded less than the first camera and second camera.
Recorded it should be noted that the time difference at the first moment and the second moment is less than the first camera with second camera Time needed for each two field picture, illustrate that second camera starts the second time of shooting and starts the of shooting in the first camera After one time, and before the second frame of the first video.Regarded this way it is ensured that the first camera is recorded with second camera Frequency having time is poor, but because the time difference is less than the time recorded needed for a two field picture, therefore, what second camera was recorded Second video will not cause visual error compared with the first video that the first camera is recorded.
S204, the first camera start to record the first frame of the first video at the first moment.
S205, the first video the first frame to inserting for the second moment between the second frame.
S206, second camera start to record the second video at the second moment.
It should be noted that above-mentioned steps S204-S206 illustrates that the first camera starts video record at the first moment, Second camera starts video record at the second moment, so, the first camera and the asynchronous shooting of second camera, the first video Video at different moments with the second videograph.
S207, when the first camera and second camera carry out video record, it is aobvious according to first at video record interface Show that state shows the first video captured by the first camera and the second video captured by second camera respectively.
It should be noted that when the first camera and second camera carry out video record, on shooting interface respectively The first video captured by the first camera and the second video captured by second camera are shown, and in the first video and second The frame per second of current shooting is shown on video display interface respectively.
S208, each two field picture for obtaining first video and second video respectively and each two field picture institute The corresponding recording moment.
It should be noted that because each frame of the first video and the second video has a time difference, therefore, regarded first Frequency needs to obtain the first camera and each two field picture taken by second camera after completing with the second video capture, with And the shooting time corresponding to each two field picture, to carry out the conjunction that step S209 and S210 completes the first video and the second video Into.
S209, by each two field picture of the first video and the second video according to record the moment order arrange.
S210, each of the second video is inserted respectively according to recording moment order after each two field picture of the first video Two field picture.
It should be noted that each two field picture of the first video and the second video is arranged according to the time sequencing of recording, The frame sequence of the second video is inserted in the frame sequence of the first video according to the time sequencing of recording.The frame sequence of first video Each frame of the frame sequence of each frame and the second video completes Video Composition by alternately interting.
S211, according to the second dispaly state display synthesis after video.
It should be noted that after the completion of the first video and the second Video Composition, after synthesis is shown in terminal display interface Video, and simultaneously show synthesis after video frame per second.Here, the video frame rate after synthesis is the first video and the second video Twice of frame per second.
A kind of video recording method that the embodiment of the present invention is provided, the first camera is with second camera respectively in difference At the time of proceed by video record, then obtain the first video that the first camera recorded and second camera recorded Second video, each frame of each frame of first video and second video is carried out successively according to moment order is recorded Synthesis, the video after synthesis is obtained, video capture frame per second is improved, optimizes video capture effect.
Embodiment three
Based on previous embodiment identical technical concept, referring to Figure 11, it illustrates one kind provided in an embodiment of the present invention Video recording device 11, the video recording device 11 include processor 1101, memory 1102 and camera 1103;
The camera 1103, is configured to recorded video;
The memory 1102, it is configured to store video record program;
The processor 1101, it is configured to perform the video record program stored in memory 1102, to realize following walk Suddenly:
First camera and second camera proceed by video record different at the time of respectively;
Obtain the first video that first camera recorded and the second video that the second camera is recorded;
Each frame of each frame of first video and second video is carried out successively according to moment order is recorded Synthesis, obtain the video after synthesis.
In actual applications, above-mentioned memory 1102 can be volatile memory (volatile memory), such as with Machine access memory (RAM, Random-Access Memory);Or nonvolatile memory (non-volatile Memory), such as read-only storage (ROM, Read-Only Memory), flash memory (flash memory), hard disk (HDD, Hard Disk Drive) or solid state hard disc (SSD, Solid-State Drive);Or the memory of mentioned kind Combination, and provide instruction and data to processor 1101.
Above-mentioned processor 1101 can be application-specific IC (ASIC, Application Specific Integrated Circuit), DSP, digital signal processing device (DSPD, Digital Signal Processing Device), programmable logic device (PLD, Programmable Logic Device), FPGA, CPU, controller, microcontroller At least one of device, microprocessor.It is to be appreciated that for different equipment, for realizing the electricity of above-mentioned processor function Sub- device can also be other, and the embodiment of the present invention is not especially limited.
Preferably, the processor 1101, specifically can be used for:
Receive video record selection instruction;
Frame per second according to indicated by the video record selection instruction carries out video record.
Preferably, the processor 1101, specifically can be used for:
According to the frame per second of first camera and the second camera, first camera and described second is calculated Camera records the time needed for each two field picture;Wherein, first camera uses identical with the second camera Frame per second is shot;
According to default time calculative strategy determine first camera start record the first video the first moment with The second camera starts to record the time difference at the second moment of the second video;Wherein, first moment and described second The time difference at moment is less than time of first camera needed for each two field picture of second camera recording.
Preferably, the processor 1101, specifically can be used for:
First camera starts to record the first frame of the first video at the first moment;
In the first frame of first video to inserting for the second moment between the second frame;
The second camera starts to record the second video at the second moment.
Preferably, the processor 1101, specifically can be used for:
When first camera and the second camera carry out video record, at video record interface according to first Dispaly state shows that the first video captured by first camera regards with second captured by the second camera respectively Frequently.
Preferably, the processor 1101, specifically can be used for:
Obtain respectively corresponding to each two field picture and each two field picture of first video and second video The recording moment.
Preferably, the processor 1101, specifically can be used for:
Each two field picture of first video and second video is arranged according to moment order is recorded;
The moment is recorded according to shooting insert second video respectively after each two field picture of first video Each two field picture.
Preferably, the processor 1101, specifically can be used for:
According to the video after the display synthesis of the second dispaly state.
A kind of video recording device that the embodiment of the present invention is provided, the first camera is with second camera respectively in difference At the time of proceed by video record, then obtain the first video that the first camera recorded and second camera recorded Second video, each frame of each frame of first video and second video is carried out successively according to moment order is recorded Synthesis, the video after synthesis is obtained, video capture frame per second is improved, optimizes video capture effect.
Example IV
The embodiment of the present invention also provides a kind of computer-readable recording medium, a kind of video recording method in the present embodiment Corresponding computer program instructions can be stored in the storage mediums such as CD, hard disk, USB flash disk, when in storage medium with one When computer program instructions corresponding to kind video recording method are read or are performed by an electronic equipment, comprise the following steps:
First camera and second camera proceed by video record different at the time of respectively;
Obtain the first video that first camera recorded and the second video that the second camera is recorded;
Each frame of each frame of first video and second video is carried out successively according to moment order is recorded Synthesis, obtain the video after synthesis.
Optionally, stored in storage medium and step:In first camera and second camera respectively in difference At the time of proceed by video record before, methods described also includes:
Receive video record selection instruction;
Frame per second according to indicated by the video record selection instruction carries out video record.
Optionally, stored in storage medium and step:Described according to indicated by the video record selection instruction After frame per second carries out video record, methods described also includes:
According to the frame per second of first camera and the second camera, first camera and described second is calculated Camera records the time needed for each two field picture;Wherein, first camera uses identical with the second camera Frame per second is shot;
According to default time calculative strategy determine first camera start record the first video the first moment with The second camera starts to record the time difference at the second moment of the second video;Wherein, first moment and described second The time difference at moment is less than time of first camera needed for each two field picture of second camera recording.
Optionally, stored in storage medium and step:First camera and second camera are respectively different at the time of Video record is proceeded by, including:
First camera starts to record the first frame of the first video at the first moment;
In the first frame of first video to inserting for the second moment between the second frame;
The second camera starts to record the second video at the second moment.
Optionally, what is stored in storage medium also includes with step:
When first camera and the second camera carry out video record, at video record interface according to first Dispaly state shows that the first video captured by first camera regards with second captured by the second camera respectively Frequently.
Optionally, stored in storage medium and step, the first video and institute that first camera is recorded are obtained The second video that second camera is recorded is stated, including:
Obtain respectively corresponding to each two field picture and each two field picture of first video and second video The recording moment.
Optionally, stored in storage medium and step, by each frame of first video and second video Each frame is synthesized successively according to moment order is recorded, including:
Each two field picture of first video and second video is arranged according to moment order is recorded;
Second video is inserted respectively according to recording moment order after each two field picture of first video Each two field picture.
Optionally, stored in storage medium and step, in each frame by first video and described second After each frame of video is synthesized successively according to recording moment order, methods described also includes:
According to the video after the display synthesis of the second dispaly state.
A kind of computer-readable storage medium that the embodiment of the present invention is provided, the first camera is with second camera respectively not With at the time of proceed by video record, then obtain the first video that the first camera recorded and second camera recorded The second video, each frame of each frame of first video and second video is entered successively according to moment order is recorded Row synthesis, obtains the video after synthesis, improves video capture frame per second, optimize video capture effect.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements not only include those key elements, and And also include the other element being not expressly set out, or also include for this process, method, article or device institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Other identical element also be present in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal (can be mobile phone, computer, service Device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific Embodiment, above-mentioned embodiment is only schematical, rather than restricted, one of ordinary skill in the art Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make a lot Form, these are belonged within the protection of the present invention.

Claims (10)

1. a kind of video recording method, it is characterised in that methods described is applied to the terminal with dual camera, methods described bag Include:
First camera and second camera proceed by video record different at the time of respectively;
Obtain the first video that first camera recorded and the second video that the second camera is recorded;
Each frame of each frame of first video and second video is synthesized successively according to moment order is recorded, Obtain the video after synthesis.
2. according to the method for claim 1, it is characterised in that in first camera and second camera respectively not With at the time of proceed by video record before, methods described also includes:
Receive video record selection instruction;
Frame per second according to indicated by the video record selection instruction carries out video record.
3. according to the method for claim 2, it is characterised in that described according to indicated by the video record selection instruction Frame per second carry out video record after, methods described also includes:
According to the frame per second of first camera and the second camera, first camera and the described second shooting are calculated Head records the time needed for each two field picture;Wherein, first camera uses identical frame per second with the second camera Shot;
According to default time calculative strategy determine first camera start record the first video the first moment with it is described Second camera starts to record the time difference at the second moment of the second video;Wherein, first moment and second moment Time difference be less than first camera and the second camera and record time needed for each two field picture.
4. according to the method for claim 3, it is characterised in that first camera is with second camera respectively in difference At the time of proceed by video record, including:
First camera starts to record the first frame of the first video at the first moment;
In the first frame of first video to inserting for the second moment between the second frame;
The second camera starts to record the second video at the second moment.
5. according to the method for claim 1, it is characterised in that methods described also includes:
When first camera and the second camera carry out video record, at video record interface according to the first display State shows the first video captured by first camera and the second video captured by the second camera respectively.
6. according to the method for claim 1, it is characterised in that it is described obtain that first camera is recorded first regard The second video that frequency and the second camera are recorded, including:
Each two field picture of first video and second video and the record corresponding to each two field picture are obtained respectively Moment processed.
7. according to the method for claim 6, it is characterised in that each frame by first video and described second Each frame of video is synthesized successively according to moment order is recorded, including:
Each two field picture of first video and second video is arranged according to moment order is recorded;
The each of second video is inserted respectively according to recording moment order after each two field picture of first video Two field picture.
8. according to the method for claim 1, it is characterised in that in each frame by first video and described the After each frame of two videos is synthesized successively according to recording moment order, methods described also includes:
According to the video after the display synthesis of the second dispaly state.
9. a kind of video recording device, it is characterised in that the equipment includes processor, memory and camera;
The camera, is configured to recorded video;
The memory, it is configured to store video record program;
The processor, it is configured to perform the video record program stored in memory, to realize as in claim 1 to 8 appointed The step of video recording method described in one.
10. a kind of computer-readable recording medium, it is characterised in that video record is stored with the computer-readable recording medium Processing procedure sequence, the video record as any one of claim 1 to 8 is realized when the video record program is executed by processor The step of method.
CN201710871858.9A 2017-09-25 2017-09-25 A kind of video recording method, equipment and computer-readable storage medium Pending CN107592460A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710871858.9A CN107592460A (en) 2017-09-25 2017-09-25 A kind of video recording method, equipment and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710871858.9A CN107592460A (en) 2017-09-25 2017-09-25 A kind of video recording method, equipment and computer-readable storage medium

Publications (1)

Publication Number Publication Date
CN107592460A true CN107592460A (en) 2018-01-16

Family

ID=61047901

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710871858.9A Pending CN107592460A (en) 2017-09-25 2017-09-25 A kind of video recording method, equipment and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN107592460A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108566527A (en) * 2018-03-30 2018-09-21 青岛海信移动通信技术股份有限公司 A kind of kinescope method and device
CN108683852A (en) * 2018-05-23 2018-10-19 努比亚技术有限公司 A kind of video recording method, terminal and computer readable storage medium
CN110650294A (en) * 2019-11-06 2020-01-03 深圳传音控股股份有限公司 Video shooting method, mobile terminal and readable storage medium
CN110868560A (en) * 2018-08-27 2020-03-06 青岛海信移动通信技术股份有限公司 Video recording method based on binocular camera and terminal equipment
CN113938622A (en) * 2021-12-15 2022-01-14 慕思健康睡眠股份有限公司 Blood pressure detection device based on asynchronously recorded video and storage medium
CN114070993A (en) * 2020-07-29 2022-02-18 华为技术有限公司 Image pickup method, image pickup apparatus, and readable storage medium
CN117177080A (en) * 2023-11-03 2023-12-05 荣耀终端有限公司 Video acquisition method, electronic device and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0666936B2 (en) * 1987-12-09 1994-08-24 日本アビオニクス株式会社 High speed VTR device
CN105812651A (en) * 2015-07-27 2016-07-27 维沃移动通信有限公司 Video data processing method and terminal device
CN106161943A (en) * 2016-07-29 2016-11-23 维沃移动通信有限公司 A kind of kinescope method and mobile terminal
CN106210584A (en) * 2016-08-02 2016-12-07 乐视控股(北京)有限公司 A kind of video recording method and device
CN106341592A (en) * 2015-07-08 2017-01-18 宏达国际电子股份有限公司 Electronic device and method for increasing a frame rate of a plurality of pictures photographed by an electronic device
CN106998457A (en) * 2016-01-25 2017-08-01 三星电机株式会社 Stereo photographic device and utilize this image processing method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0666936B2 (en) * 1987-12-09 1994-08-24 日本アビオニクス株式会社 High speed VTR device
CN106341592A (en) * 2015-07-08 2017-01-18 宏达国际电子股份有限公司 Electronic device and method for increasing a frame rate of a plurality of pictures photographed by an electronic device
CN105812651A (en) * 2015-07-27 2016-07-27 维沃移动通信有限公司 Video data processing method and terminal device
CN106998457A (en) * 2016-01-25 2017-08-01 三星电机株式会社 Stereo photographic device and utilize this image processing method
CN106161943A (en) * 2016-07-29 2016-11-23 维沃移动通信有限公司 A kind of kinescope method and mobile terminal
CN106210584A (en) * 2016-08-02 2016-12-07 乐视控股(北京)有限公司 A kind of video recording method and device

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108566527A (en) * 2018-03-30 2018-09-21 青岛海信移动通信技术股份有限公司 A kind of kinescope method and device
CN108683852A (en) * 2018-05-23 2018-10-19 努比亚技术有限公司 A kind of video recording method, terminal and computer readable storage medium
CN110868560A (en) * 2018-08-27 2020-03-06 青岛海信移动通信技术股份有限公司 Video recording method based on binocular camera and terminal equipment
CN110868560B (en) * 2018-08-27 2022-04-15 青岛海信移动通信技术股份有限公司 Video recording method based on binocular camera and terminal equipment
CN110650294A (en) * 2019-11-06 2020-01-03 深圳传音控股股份有限公司 Video shooting method, mobile terminal and readable storage medium
CN114070993A (en) * 2020-07-29 2022-02-18 华为技术有限公司 Image pickup method, image pickup apparatus, and readable storage medium
CN114070993B (en) * 2020-07-29 2023-04-18 华为技术有限公司 Image pickup method, image pickup apparatus, and readable storage medium
CN113938622A (en) * 2021-12-15 2022-01-14 慕思健康睡眠股份有限公司 Blood pressure detection device based on asynchronously recorded video and storage medium
CN113938622B (en) * 2021-12-15 2022-02-15 慕思健康睡眠股份有限公司 Blood pressure detection device based on asynchronously recorded video and storage medium
CN117177080A (en) * 2023-11-03 2023-12-05 荣耀终端有限公司 Video acquisition method, electronic device and computer readable storage medium
CN117177080B (en) * 2023-11-03 2024-04-16 荣耀终端有限公司 Video acquisition method, electronic device and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN107592460A (en) A kind of video recording method, equipment and computer-readable storage medium
CN107094236A (en) Panorama shooting method, mobile terminal and computer-readable recording medium
CN107682627A (en) A kind of acquisition parameters method to set up, mobile terminal and computer-readable recording medium
CN108234295A (en) Display control method, terminal and the computer readable storage medium of group's functionality controls
CN107507007A (en) One kind pays 2 D code verification method, terminal and computer-readable recording medium
CN107948360A (en) Image pickup method, terminal and the computer-readable recording medium of flexible screen terminal
CN107704176A (en) A kind of picture-adjusting method and terminal
CN107194963A (en) A kind of dual camera image processing method and terminal
CN107729115A (en) A kind of display methods, equipment and computer-readable storage medium
CN107197094A (en) One kind shooting display methods, terminal and computer-readable recording medium
CN107333056A (en) Image processing method, device and the computer-readable recording medium of moving object
CN107818459A (en) Red packet sending method, terminal and storage medium based on augmented reality
CN107404618A (en) A kind of image pickup method and terminal
CN107181865A (en) Processing method, terminal and the computer-readable recording medium of unread short messages
CN108184051A (en) A kind of main body image pickup method, equipment and computer readable storage medium
CN107239205A (en) A kind of photographic method, mobile terminal and storage medium
CN107463324A (en) A kind of image display method, mobile terminal and computer-readable recording medium
CN107844230A (en) A kind of advertisement page method of adjustment, mobile terminal and computer-readable recording medium
CN108010106A (en) A kind of method for displaying image, terminal and computer-readable recording medium
CN107483804A (en) A kind of image pickup method, mobile terminal and computer-readable recording medium
CN108540639A (en) Display processing method, equipment and the computer of Mosaic screen can storage mediums
CN110180181A (en) Screenshot method, device and the computer readable storage medium of Wonderful time video
CN107621915A (en) A kind of message prompt method, equipment and computer-readable storage medium
CN107896304A (en) A kind of image capturing method, device and computer-readable recording medium
CN107563316A (en) A kind of image pickup method, terminal and computer-readable recording 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

Application publication date: 20180116

RJ01 Rejection of invention patent application after publication