CN106657774A - Method and device for recording video - Google Patents

Method and device for recording video Download PDF

Info

Publication number
CN106657774A
CN106657774A CN201611061616.5A CN201611061616A CN106657774A CN 106657774 A CN106657774 A CN 106657774A CN 201611061616 A CN201611061616 A CN 201611061616A CN 106657774 A CN106657774 A CN 106657774A
Authority
CN
China
Prior art keywords
camera
video
record
video file
recorded
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
CN201611061616.5A
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.)
Hangzhou Lianluo Interactive Information Technology Co Ltd
Original Assignee
Hangzhou Lianluo Interactive Information 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 Hangzhou Lianluo Interactive Information Technology Co Ltd filed Critical Hangzhou Lianluo Interactive Information Technology Co Ltd
Priority to CN201611061616.5A priority Critical patent/CN106657774A/en
Publication of CN106657774A publication Critical patent/CN106657774A/en
Pending legal-status Critical Current

Links

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/66Remote control of cameras or camera parts, e.g. by remote control devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4038Image mosaicing, e.g. composing plane images from plane sub-images
    • 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/667Camera operation mode switching, e.g. between still and video, sport and normal or high- and low-resolution modes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/91Television signal processing therefor
    • H04N5/92Transformation of the television signal for recording, e.g. modulation, frequency changing; Inverse transformation for playback

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Studio Devices (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The invention discloses a method and a device for recording a video, which are used for solving a problem of incapability of switching a camera in a process of adopting the existing technology to record the same video file. The method comprises the following steps of starting a first camera corresponding to a recording instruction to carry out video recording according to the received recording instruction; when a camera switching instruction is received, responding to the camera switching instruction and switching the first camera to a second camera corresponding to the camera switching instruction to proceed video recording, and storing a first video file which is recorded by responding to the first recording instruction through the first camera; when a recording stop instruction is received, responding to the recording stop instruction, stopping video recording and storing a second video file which is recorded by the second camera; and splicing the first video file and the second video file to obtain a third video file and taking the third video file as a video file which is obtained by responding to the recording instruction to carry out video recording.

Description

A kind of video recording method and device
Technical field
The application is related to field of computer technology, more particularly to a kind of video recording method and device.
Background technology
With the development of camera manufacturing technology, camera has been made more and more finely, and shooting effect is also more next Better.At present high-pixel camera head is integrated with most of mobile terminals, especially intelligent mobile terminal, can be carried to user For the function such as take pictures, photograph.And general intelligence terminal device may incessantly have a camera, for example, most of intelligence hand Machine all has front-facing camera and post-positioned pick-up head.
By taking smart mobile phone as an example, the front-facing camera of smart mobile phone often can be used for the video communication of user, and intelligent The post-positioned pick-up head of mobile phone often can be used for taking pictures or recorded video.But, although smart mobile phone has front-facing camera And post-positioned pick-up head, but in actual use, user often can only carry out video using a camera on smart mobile phone Record.
Assume that user is currently in use the post-positioned pick-up head of smart mobile phone and carries out video record, when user wants to switch to preposition taking the photograph When being shot as head, user needs the video for stopping currently recording, and clicks on camera switching key, so that intelligence The camera that mobile phone is used switches to front-facing camera by post-positioned pick-up head.In this case, after switching camera, use The video that family is recorded out by front-facing camera, the video recorded by post-positioned pick-up head before the handover with user is respectively two Independent video.I.e. using prior art during recorded video, it is impossible to switch in the case where current recording is not interrupted Camera, carry out also just cannot switching camera followed by switch before camera proceed video record.
However, front-facing camera and post-positioned pick-up head are due to pixel height and the problem at recording visual angle, actually used In, user may need to record same section of video using front-facing camera and post-positioned pick-up head respectively.It is obvious that this is existing Cannot accomplish in technology.
Thus, how in video record, before carrying out remaining to continue after camera switching, and switching camera Video record, becomes prior art problem demanding prompt solution.
The content of the invention
The embodiment of the present application provides a kind of video recording method, to solve recording same video using prior art During file, it is impossible to switch the problem of camera.
The embodiment of the present application also provides a kind of video recording device, to solve recording same regarding using prior art During frequency file, it is impossible to switch the problem of camera.
The embodiment of the present application adopts following technical proposals:
A kind of video recording method, including:
According to the record command for receiving, starting the first camera corresponding with the record command carries out video record;
When camera switching command is received, in response to the camera switching command, first camera is cut It is changed to and proceeds video record with the second camera corresponding to the camera switching command, and to first camera The first video file recorded in response to first record command is preserved;
When receive record halt instruction when, in response to the recording halt instruction, terminate video record, and to described the The second video file that two cameras are recorded is preserved;
Splicing is carried out to first video file and the second video file and obtains the 3rd video file, by the described 3rd Video file carries out video file obtained from video record as in response to the record command.
A kind of video recording device, including:
Record command receiving unit, for according to the record command that receives, starting corresponding with the record command the One camera carries out video record;
Switching command receiving unit, in response to the camera switching command, first camera being switched to Proceed video record with the second camera corresponding to the camera switching command, and first camera is responded The first video file recorded in the record command is preserved;
Halt instruction receiving unit is recorded, in response to the recording halt instruction, terminating video record, and to described The second video file that second camera is recorded is preserved;
Concatenation unit, for carrying out splicing to first video file and the second video file the 3rd video text is obtained Part, video file obtained from video record is carried out using the 3rd video file as in response to the record command.
One kind has video record function mobile terminal, including:
Processor, is regarded for when the record command for receiving, starting camera corresponding with the record command Frequency is recorded;When camera switching command is received, the corresponding camera of the record command is switched to and the camera Camera corresponding to switching command;When recording halt instruction is received, control camera stops video record;And to shooting Head is recorded the video file for obtaining and is spliced;
Front-facing camera, under the control of the processor, carrying out video record;
Post-positioned pick-up head, under the control of the processor, carrying out video record;
Memory, for preserving the front-facing camera and post-positioned pick-up head the video file for obtaining is recorded.
Above-mentioned at least one technical scheme that the embodiment of the present application is adopted can reach following beneficial effect:
During camera of the user in using terminal carries out video record, Shot change can be sent to camera and referred to Order, after camera receives camera switching command, the first camera being being currently used can be switched to and taken the photograph by camera As the corresponding second camera of head switching command, and proceed to record using second camera, while to the first camera institute The first video file recorded is preserved, after terminating to record, the second video text that camera equally records second camera Part is preserved, and by the way that second video file and first video file are spliced, obtains the 3rd video text Part, and the video file that the 3rd video file that obtains of splicing is recorded as this, because the 3rd video file is by the What the video file splicing that one camera is recorded respectively with second camera was obtained, such that it is able to realize during video record Switching camera, can still record out the purpose of one section of complete video.
Description of the drawings
Accompanying drawing described herein is used for providing further understanding of the present application, constitutes the part of the application, this Shen Schematic description and description please does not constitute the improper restriction to the application for explaining the application.In the accompanying drawings:
A kind of idiographic flow schematic diagram of video recording method that Fig. 1 is provided for the embodiment of the present application;
A kind of design sketch at camera operation interface that Fig. 2 is provided for the embodiment of the present application;
A kind of concrete structure schematic diagram of video record showing device that Fig. 3 is provided for the embodiment of the present application.
Specific embodiment
To make purpose, technical scheme and the advantage of the application clearer, below in conjunction with the application specific embodiment and Corresponding accompanying drawing is clearly and completely described to technical scheme.Obviously, described embodiment is only the application one Section Example, rather than the embodiment of whole.Based on the embodiment in the application, those of ordinary skill in the art are not doing Go out the every other embodiment obtained under the premise of creative work, belong to the scope of the application protection.
Below in conjunction with accompanying drawing, the technical scheme that each embodiment of the application is provided is described in detail.
Embodiment 1
The embodiment of the present application provides a kind of video recording method, to solve recording same regarding using prior art During frequency file, it is impossible to switch the problem of camera.
The message prompt method that the embodiment of the present application is provided, the executive agent of the method can be, but not limited to as mobile phone, put down Plate computer, PC (Personal Computer, PC) and any camera be installed and photography software can be run At least one in terminal device.Additionally, the shooting application on the terminal device of the executive agent of the method, or operation (Application, APP) itself.
For ease of description, hereafter executive agent in this way is as a example by the camera APP installed on smart mobile phone, to the party The embodiment of method is introduced.It is appreciated that it is one that the executive agent of the method is the camera APP installed on smart mobile phone Exemplary explanation is planted, the restriction to the method is not construed as.
The method implements flow chart as shown in figure 1, mainly comprising the steps:
Step 11, according to the record command for receiving, starts the first camera corresponding with the record command and is regarded Frequency is recorded;
Wherein, the record command, can be that user is specified by the recording button to showing in mobile phone display screen Operation (e.g., clicking operation or slide) and trigger, for example as shown in Fig. 2 in figure " 1 " represent record button, user By clicking on, you can triggering mobile phone camera starts video record.
It should be noted that the first camera corresponding with record command can be the front-facing camera of mobile phone, it is also possible to For the post-positioned pick-up head of mobile phone.
Usually, when user records button and started before camera carries out video record with triggering camera by clicking on, such as Fruit user have selected and this time record used camera, then camera can start the camera of user's selection carries out video record System, such as, user click on record button before, have selected post-positioned pick-up head, then camera after record command is received, after starting Putting camera carries out video record, and now post-positioned pick-up head is i.e. equivalent to the first described camera.And work as user by clicking on Record button and put with triggering when camera startup camera carries out the camera that non-selected needs start before video record, then camera Default camera head can be started carries out video record, and for example at present the default camera head of major part mobile phone camera is rearmounted shooting Head.
Step 12, when receiving camera switching command, in response to the camera switching command, by the described first shooting Head is switched to and proceeds video record with the second camera corresponding to the camera switching command;
Wherein, the camera switching command can be user by the camera switching to showing in mobile phone display screen What button carried out assigned operation (e.g., clicking operation or slide) and triggered, such as shown in Fig. 2 " 2 " represent and take the photograph in figure As head switching push button, user is by clicking on, you can triggering mobile phone camera switching camera.
Equally, user is by before clicking on camera switching push button to trigger camera switching command, it is also possible to according to The camera for voluntarily selecting to need to start is needed, so that camera is after the camera switching command for receiving user input, can Currently carrying out recording the second camera that the first camera switches to user to select.And work as user and taken the photograph by click As head switching push button to trigger camera switching command before, non-selected when needing the camera for starting, then camera can be according to Default setting is switched over to the first currently used camera.
Usually, current smart mobile phone is respectively provided with two cameras, in this case, when user is by clicking on shooting After head switching push button is to trigger camera switching command, camera according to the camera switching command for receiving, will start current place Proceed video record in the camera of closed mode.
It should be noted that user is except passing through to click on camera switching push button to trigger camera switching command, And then beyond control camera switching camera, user can also trigger camera switching command by other assigned operations.For example, User can switch camera by rocking mobile phone to trigger the camera installed on the mobile phone, or user can also be by input The mode of voice " switching camera ", to mobile phone camera switching command is input into.
During user carries out video record by click recording button triggering mobile phone camera startup camera, user During by clicking on camera switching push button to camera transmission camera switching command, the camera that camera can determine and receive The corresponding second camera of switching command, so start the second camera proceed record, simultaneously close off by performing step Rapid 11 and start the first camera, in order to ensure to carry out after camera switching, using after switching second camera record Video can be spliced into same video with the video recorded using the first camera, so that user is in video record mistake Even if having carried out camera handover operation in journey, one section of complete video can be still obtained, in one embodiment, in camera Second camera is switched to proceed after video record the first camera in response to camera switching command, camera can be right First camera is preserved in response to the first video file that the record command is recorded, subsequently to use.
In actual use, user may the commonly used camera APP on mobile phone, and be not each user It is required for switching camera during video record is carried out using camera APP, and at present the camera APP on mobile phone is being carried out After video record, may by record video file all according to specific store path, (such as, user is voluntarily arranged as needed Store path or system default store path) be stored in the file specified.In this case, when camera APP connects Camera switching command is received, and after preserving the first video file that the first camera is recorded, is used to preserve in mobile phone In the file of the video file that camera APP is recorded, in addition to preserving first video file, it is also possible to which preserving user only makes Other video files recorded with the first camera.
It is video file to distinguish above two, is spliced subsequently to find first video file, one In planting embodiment, user has carried out the switching of camera during video record, and camera is recorded before switching is preserved The first video file when, specific label can be stamped for the first video file, so that subsequently can be according in video file Specific label, determine this section of video file video file required when being splicing.In the embodiment of the present application, to described first Camera is preserved in response to the first video file that first record command is recorded, and specifically can be included:It is determined that First camera stops the time recording;Generate first mark of the time recorded for representing first camera to stop Sign;First video file is associated into preservation with first label.
Using said method, the time recorded by recording the first camera to stop, and according to the stopping of record record Time, generate the specific markers of the video file that the first label carries out being preserved in recording process as switching camera, a side Face conveniently subsequently can carry out that during video-splicing those video files can be found;On the other hand, because the label for generating can To reflect the recording time of video to a certain extent, thus during video-splicing, in that context it may be convenient to by those Label determines the sequencing of each video file.
It should be noted that in actual use, when user is by clicking on camera switching push button, to control camera switching During camera, after camera switching push button is clicked on, camera just may not start and camera switching command pair at once user The camera answered is recorded, and is limited to the performance of different mobile phones, when camera is switched, it may be necessary to during the wait of several seconds Between.In this case, it is assumed that camera APP is after camera switching command is received, at once by the be currently in use first shooting Head is closed, and starts second camera, and because second camera starts certain delay is had, therefore the first camera is recorded Between the picture of the video file that the second camera after the video file for arriving and switching the is recorded it is possible that interval of several seconds, Enter when subsequently splicing to two sections of videos, it is possible that the incoherent problem of video pictures that splicing is obtained.
In order to avoid the problems referred to above, in one embodiment, when camera APP refers in response to the camera switching for receiving When order switches over camera, before camera corresponding with camera switching command is started by camera, camera will be continuing with Camera before switching carries out video record, until camera starts camera corresponding with camera switching command.The application In embodiment, the specific implementation of step 12 can include:Determine the corresponding second camera of the camera switching command; Start the second camera, and after the second camera is activated, close first camera;By described second Camera proceeds video record, and after camera receives camera switching command, it is corresponding with camera switching command Camera be activated before, continuing through first camera carries out video record.
By such mode, when camera receives camera switching command and switches camera, in camera also not Before switching is completed, the camera that camera will be continuing with not switching carries out video record, so as to avoid due to taking the photograph second When picture head is also not actuated, and the first camera is closed, in turn result in first video file and second of the first camera recording There is interval between the second video file that camera is recorded, during so that subsequently being spliced using two ends video file, spell Connect in the video file for obtaining and there are problems that picture is incoherent.
Step 13, when receiving recording halt instruction, in response to the recording halt instruction, terminates video record, and right The second video file that the second camera is recorded is preserved;
Wherein, the recording halt instruction can be user by the recording stop button to showing in mobile phone display screen Carry out assigned operation (e.g., clicking operation or slide) and trigger, button is recorded in current camera and is pressed with stopping is recorded Button is often same button, such as shown in Fig. 2 " 1 " can also represent recording stop button in figure, when camera does not start to regard When frequency is recorded, user clicks on can make camera start recorded video, and during video record, when user's point again The button is hit, recording halt instruction can be triggered, so that camera stops video record.
And during in order to subsequently carry out video-splicing, be easy to find the video file recorded using the camera after switching, In one embodiment, equally can be directed to carry out the second video that second camera after camera switching records stamp it is specific Mark, to show that the video file is to carry out continuing to record the video for obtaining after camera switching.For example, after can be according to switching Camera start time of recorded video, generate specific markers, and by the mark with switch after regarding of being recorded of camera Frequency file association is preserved, and in the embodiment of the present application, the second video file that the second camera is recorded is preserved, specifically Can include:Determine that the second camera starts the time of recorded video;Generate for representing that the second camera starts Second label of the time of recording;Second video file is associated into preservation with second label.
Using said method, the time recorded by recording second camera to start, and according to record start record Time, the second label is generated as the specific markers of the video file recorded after switching camera, after can facilitating on one side Continue and can find those video files when carrying out video-splicing;On the other hand, because the label for generating can be to a certain degree On reflect the recording time of video, thus during video-splicing, in that context it may be convenient to determine each by those labels The sequencing of video file.
Step 14, carries out splicing and obtains the 3rd video file to first video file and the second video file, will 3rd video file carries out video file obtained from video record as in response to the record command.
Usually, camera operation has been carried out during video record, and regarding of obtaining that two cameras record respectively Frequency file, because camera handoff procedure typically will not be consumed a longer time, because obtained between two sections of video files Interval time is often also shorter, interval time mentioned here, generally refers to switch the record of the video file that front camera is recorded The recording starting time of the video file that camera is recorded after end time processed and switching.In such a case, it is possible to according to It is right that the time represented by label that video file association is preserved determines whether several sections of video files belong to same record command institute The video file answered.For example, three sections of videos are saved in mobile video storage file, wherein preservation corresponding with first paragraph video The time of the first tag representation is:" 15: 11 34: ", the time of the second tag representation of preservation corresponding with second segment video For:" 15: 12 34: ", the time of the 3rd tag representation of preservation corresponding with the 3rd section of video is:" 16: 57 56: ", Due to stopping recording time and the starting recording time of second segment video of first paragraph video be spaced it is less, thus can be by first Section video is defined as belonging to two sections of video files of a record command with second segment video, and then two sections of videos are spelled Connect.
It should be noted that in order to ensure to splice the time sequencing that the video for obtaining meets user's recording, in a kind of enforcement In mode, the specific implementation of step 14 can include:According to the first label that preservation is associated with first video file The represented time, and associate with second video file preserve the second label represented by time sequencing, First video file is spliced with second video file.
Also, it should be noted that during with a video record, user can carry out multiple camera handover operation, I.e. step 12 is capable of circulation, can repeatedly be switched different cameras and enter according to the multiple camera switching commands for detecting Row video record, and the mode provided according to step 12 after switching every time preserves the video text that previous camera is recorded Part.When recording halt instruction is received, camera can close the camera being currently up, and obtain in this recording process not The video file for obtaining, and then the mode provided according to step 14 are provided with camera, each video file for getting is entered Row splicing, obtain a complete video file, as with this corresponding video file of recording.Because video-splicing has been More ripe prior art, thus the first video file is repeated no more with the concrete connecting method of the second video file herein.
Meanwhile, in order to reduce the occupancy to phone memory, the first video file and the second video file are being spliced After obtaining the 3rd video file, the first video file for preserving and the second video file can be deleted.
The video recording method provided using the embodiment of the present application 1, camera of the user in using terminal carries out video record During system, Shot change instruction can be sent to camera, after camera receives camera switching command, camera can be by The first camera being being currently used switches to second camera corresponding with camera switching command, and using the second shooting Head proceeds to record, while the first video file recorded to the first camera is preserved, after terminating to record, camera It is same to be preserved the second video file that second camera is recorded, by by second video file and described first Video file is spliced, and obtains the 3rd video file, and the 3rd video file that splicing is obtained is recorded as this Video file, because the 3rd video file is that the video file splicing recorded respectively by the first camera and second camera is obtained , such that it is able to realize switching camera during video record, can still record out the purpose of one section of complete video.
Embodiment 2
The embodiment of the present application provides a kind of video recording device, to solve recording same regarding using prior art During frequency file, it is impossible to switch the problem of camera.The concrete structure diagram schematic diagram of the device as shown in figure 3, including:Record Instruction reception unit processed 21, switching command receiving unit 22, recording halt instruction receiving unit 23 and concatenation unit 24.
Wherein, record command receiving unit 21, for according to the record command for receiving, starting and the record command pair The first camera answered carries out video record;
Switching command receiving unit 22, in response to the camera switching command, by first camera switching It is to proceed video record with the second camera corresponding to the camera switching command, and first camera is rung The first video file that record command described in Ying Yu is recorded is preserved;
Halt instruction receiving unit 23 is recorded, in response to the recording halt instruction, terminating video record, and to institute The second video file for stating second camera recording is preserved;
Concatenation unit 24, for carrying out splicing to first video file and the second video file the 3rd video is obtained File, video file obtained from video record is carried out using the 3rd video file as in response to the record command.
In one embodiment, switching command receiving unit 22, specifically for:Determine the camera switching command pair The second camera answered;Start the second camera, and after the second camera is activated, close first shooting Head;Video record is proceeded by the second camera.
In one embodiment, switching command receiving unit 2 is additionally operable to:Continue through first camera to be regarded Frequency is recorded.
In one embodiment, switching command receiving unit 22, specifically for:Determine that first camera stops record The time of system;Generate first label of the time recorded for representing first camera to stop;By first video text Part is associated preservation with first label.
In one embodiment, halt instruction receiving unit 23 is recorded, specifically for:Determine that the second camera is opened The time of beginning recorded video;Generate second label of the time recorded for representing the second camera to start;By described Two video files are associated preservation with second label.
In one embodiment, concatenation unit 24, specifically for:According to associate with first video file preserve Time represented by first label, and associate with second video file preserve the second label represented by time elder generation Afterwards order, splices to first video file with second video file.
Additionally, the embodiment of the present application additionally provides one kind has video record function mobile terminal, to solve using existing There is technology during same video file is recorded, it is impossible to switch the problem of camera.The mobile terminal includes:Process Device, front-facing camera, post-positioned pick-up head and memory.
Wherein, the processor, for when the record command for receiving, starting shooting corresponding with the record command Head carries out video record;When camera switching command is received, the corresponding camera of the record command is switched to and institute State the camera corresponding to camera switching command;When recording halt instruction is received, control camera stops video record; And the video file that camera recording is obtained is spliced;
The front-facing camera, under the control of the processor, carrying out video record;
The post-positioned pick-up head, under the control of the processor, carrying out video record;
The memory, for preserving the front-facing camera and post-positioned pick-up head the video file for obtaining is recorded.
In one embodiment, the processor, specifically for:Determine that the camera switching command is corresponding preposition Camera;Start the front-facing camera, and after the front-facing camera is activated, close the post-positioned pick-up head;Pass through The front-facing camera proceeds video record.
In one embodiment, the processor, specifically for:It is described after camera switching command is received Before front-facing camera is activated, continuing through the post-positioned pick-up head carries out video record.
In one embodiment, the memory, specifically for:Determine that the post-positioned pick-up head stops recording when Between;Generate first label of the time recorded for representing the post-positioned pick-up head to stop;By first video file and institute State the first label and be associated preservation.
In one embodiment, the memory, specifically for:Determine that the front-facing camera starts recorded video Time;Generate second label of the time recorded for representing the front-facing camera to start;By second video file with Second label is associated preservation.
In one embodiment, the processor, specifically for:According to associate with first video file preserve Time represented by first label, and associate with second video file preserve the second label represented by time elder generation Afterwards order, splices to first video file with second video file.
The video recording device provided using the embodiment of the present application 2, camera of the user in using terminal carries out video record During system, Shot change instruction can be sent to camera, after camera receives camera switching command, camera can be by The first camera being being currently used switches to second camera corresponding with camera switching command, and using the second shooting Head proceeds to record, while the first video file recorded to the first camera is preserved, after terminating to record, camera It is same to be preserved the second video file that second camera is recorded, by by second video file and described first Video file is spliced, and obtains the 3rd video file, and the 3rd video file that splicing is obtained is recorded as this Video file, because the 3rd video file is that the video file splicing recorded respectively by the first camera and second camera is obtained , such that it is able to realize switching camera during video record, can still record out the purpose of one section of complete video.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer program Product.Therefore, the present invention can be using complete hardware embodiment, complete software embodiment or with reference to the reality in terms of software and hardware Apply the form of example.And, the present invention can be adopted and wherein include the computer of computer usable program code at one or more The computer program implemented in usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) is produced The form of product.
The present invention is the flow process with reference to method according to embodiments of the present invention, equipment (system) and computer program Figure and/or block diagram are describing.It should be understood that can be by computer program instructions flowchart and/or each stream in block diagram The combination of journey and/or square frame and flow chart and/or the flow process in block diagram and/or square frame.These computer programs can be provided The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced for reality by the instruction of computer or the computing device of other programmable data processing devices The device of the function of specifying in present one flow process of flow chart or one square frame of multiple flow processs and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in can guide computer or other programmable data processing devices with spy In determining the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory is produced to be included referring to Make the manufacture of device, the command device realize in one flow process of flow chart or one square frame of multiple flow processs and/or block diagram or The function of specifying in multiple square frames.
These computer program instructions also can be loaded into computer or other programmable data processing devices so that in meter Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented process, so as in computer or The instruction performed on other programmable devices is provided for realizing in one flow process of flow chart or multiple flow processs and/or block diagram one The step of function of specifying in individual square frame or multiple square frames.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net Network interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM).Internal memory is computer-readable medium Example.
Computer-readable medium includes that permanent and non-permanent, removable and non-removable media can be by any method Or technology is realizing information Store.Information can be computer-readable instruction, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only storage (ROM), electric erasable Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage (CD-ROM), Digital versatile disc (DVD) or other optical storages, magnetic cassette tape, the storage of tape magnetic rigid disk or other magnetic storage apparatus Or any other non-transmission medium, can be used to store the information that can be accessed by a computing device.Define according to herein, calculate Machine computer-readable recording medium does not include temporary computer readable media (transitory media), the such as data-signal and carrier wave of modulation.
Also, it should be noted that term " including ", "comprising" or its any other variant are intended to nonexcludability Comprising so that a series of process, method, commodity or equipment including key elements not only includes those key elements, but also wrapping Other key elements being not expressly set out are included, or also includes intrinsic for this process, method, commodity or equipment wanting Element.In the absence of more restrictions, the key element for being limited by sentence "including a ...", it is not excluded that wanting including described Also there is other identical element in process, method, commodity or the equipment of element.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer program. Therefore, the application can be using complete hardware embodiment, complete software embodiment or with reference to the embodiment in terms of software and hardware Form.And, the application can be adopted to be can use in one or more computers for wherein including computer usable program code and deposited The shape of the computer program implemented on storage media (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) Formula.
Embodiments herein is the foregoing is only, the application is not limited to.For those skilled in the art For, the application can have various modifications and variations.All any modification, equivalents made within spirit herein and principle Replace, improve etc., within the scope of should be included in claims hereof.

Claims (18)

1. a kind of video recording method, it is characterised in that include:
According to the record command for receiving, starting the first camera corresponding with the record command carries out video record;
When camera switching command is received, in response to the camera switching command, first camera is switched to Proceed video record with the second camera corresponding to the camera switching command, and first camera is responded The first video file recorded in the record command is preserved;
When recording halt instruction is received, in response to the recording halt instruction, terminate video record, and take the photograph to described second As the second video file that head is recorded is preserved;
Splicing is carried out to first video file and the second video file and obtains the 3rd video file, by the 3rd video File carries out video file obtained from video record as in response to the record command.
2. the method for claim 1, it is characterised in that in response to the camera switching command, described first is taken the photograph Second camera as corresponding to head is switched to the camera switching command proceeds video record, specifically includes:
Determine the corresponding second camera of the camera switching command;
Start the second camera, and after the second camera is activated, close first camera;
Video record is proceeded by the second camera.
3. method as claimed in claim 2, it is characterised in that after camera switching command is received, described second takes the photograph Before being activated as head, methods described also includes:
Continuing through first camera carries out video record.
4. the method for claim 1, it is characterised in that to first camera in response to first record command The first video file recorded is preserved, and is specifically included:
Determine that first camera stops the time recording;
Generate first label of the time recorded for representing first camera to stop;
First video file is associated into preservation with first label.
5. the method for claim 1, it is characterised in that the second video file that the second camera is recorded is carried out Preserve, specifically include:
Determine that the second camera starts the time of recorded video;
Generate second label of the time recorded for representing the second camera to start;
Second video file is associated into preservation with second label.
6. the method for claim 1, it is characterised in that the first video file and the second video text to the preservation Part carries out splicing and obtains the 3rd video file, specifically includes:
According to associate with first video file preserve the first label represented by time, and with second video text The sequencing of the time represented by the second label that part association is preserved, to first video file and second video text Part is spliced.
7. a kind of video recording device, it is characterised in that include:
Record command receiving unit, takes the photograph for according to the record command for receiving, starting corresponding with the record command first As head carries out video record;
Switching command receiving unit, in response to the camera switching command, first camera being switched to and institute State the second camera corresponding to camera switching command and proceed video record, and to first camera in response to institute State the first video file that record command recorded to be preserved;
Halt instruction receiving unit is recorded, in response to the recording halt instruction, terminating video record, and to described second The second video file that camera is recorded is preserved;
Concatenation unit, for carrying out splicing to first video file and the second video file the 3rd video file is obtained, 3rd video file is carried out into video file obtained from video record as in response to the record command.
8. device as claimed in claim 7, it is characterised in that switching command receiving unit, specifically for:
Determine the corresponding second camera of the camera switching command;
Start the second camera, and after the second camera is activated, close first camera;
Video record is proceeded by the second camera.
9. device as claimed in claim 8, it is characterised in that switching command receiving unit is additionally operable to:
Continuing through first camera carries out video record.
10. device as claimed in claim 7, it is characterised in that switching command receiving unit, specifically for:
Determine that first camera stops the time recording;
Generate first label of the time recorded for representing first camera to stop;
First video file is associated into preservation with first label.
11. devices as claimed in claim 7, it is characterised in that record halt instruction receiving unit, specifically for:
Determine that the second camera starts the time of recorded video;
Generate second label of the time recorded for representing the second camera to start;
Second video file is associated into preservation with second label.
12. devices as claimed in claim 7, it is characterised in that concatenation unit, specifically for:
According to associate with first video file preserve the first label represented by time, and with second video text The sequencing of the time represented by the second label that part association is preserved, to first video file and second video text Part is spliced.
13. is a kind of with video record function mobile terminal, it is characterised in that includes:
Processor, for when the record command for receiving, starting camera corresponding with the record command video record is carried out System;When camera switching command is received, the corresponding camera of the record command is switched to and camera switching The corresponding camera of instruction;When recording halt instruction is received, control camera stops video record;And camera is recorded The video file being obtained is spliced;
Front-facing camera, under the control of the processor, carrying out video record;
Post-positioned pick-up head, under the control of the processor, carrying out video record;
Memory, for preserving the front-facing camera and post-positioned pick-up head the video file for obtaining is recorded.
14. mobile terminals as claimed in claim 13, it is characterised in that the processor, specifically for:
Determine the corresponding front-facing camera of the camera switching command;
Start the front-facing camera, and after the front-facing camera is activated, close the post-positioned pick-up head;
Video record is proceeded by the front-facing camera.
15. mobile terminals as claimed in claim 14, it is characterised in that the processor, specifically for:
After camera switching command is received, before the front-facing camera is activated, the rearmounted shooting is continued through Head carries out video record.
16. mobile terminals as claimed in claim 13, it is characterised in that the memory, specifically for:
Determine that the post-positioned pick-up head stops the time recording;
Generate first label of the time recorded for representing the post-positioned pick-up head to stop;
First video file is associated into preservation with first label.
17. mobile terminals as claimed in claim 13, it is characterised in that the memory, specifically for:
Determine that the front-facing camera starts the time of recorded video;
Generate second label of the time recorded for representing the front-facing camera to start;
Second video file is associated into preservation with second label.
18. mobile terminals as claimed in claim 13, it is characterised in that the processor, specifically for:
According to associate with first video file preserve the first label represented by time, and with second video text The sequencing of the time represented by the second label that part association is preserved, to first video file and second video text Part is spliced.
CN201611061616.5A 2016-11-25 2016-11-25 Method and device for recording video Pending CN106657774A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611061616.5A CN106657774A (en) 2016-11-25 2016-11-25 Method and device for recording video

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611061616.5A CN106657774A (en) 2016-11-25 2016-11-25 Method and device for recording video

Publications (1)

Publication Number Publication Date
CN106657774A true CN106657774A (en) 2017-05-10

Family

ID=58812282

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611061616.5A Pending CN106657774A (en) 2016-11-25 2016-11-25 Method and device for recording video

Country Status (1)

Country Link
CN (1) CN106657774A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107360400A (en) * 2017-07-27 2017-11-17 上海传英信息技术有限公司 A kind of kinescope method and recording apparatus for smart machine camera
CN107483873A (en) * 2017-08-29 2017-12-15 珠海格力电器股份有限公司 Video sharing method and device and mobile terminal
CN108012101A (en) * 2017-11-30 2018-05-08 广州市百果园信息技术有限公司 Video recording method and video recording terminal
CN108200341A (en) * 2018-01-15 2018-06-22 青岛海信移动通信技术股份有限公司 Seamless handover method, device and the terminal device of camera
CN111246104A (en) * 2020-01-22 2020-06-05 维沃移动通信有限公司 Video recording method and electronic equipment
CN112199016A (en) * 2020-09-30 2021-01-08 北京字节跳动网络技术有限公司 Image processing method, image processing device, electronic equipment and computer readable storage medium
CN112905088A (en) * 2021-02-07 2021-06-04 北京蜂巢世纪科技有限公司 Video shooting control method and device
CN114500835A (en) * 2022-01-20 2022-05-13 深圳市源德盛数码科技有限公司 Video shooting method, system, intelligent terminal and storage medium
CN114584686A (en) * 2020-11-30 2022-06-03 华为技术有限公司 Video shooting method and electronic equipment
CN115379107A (en) * 2021-06-07 2022-11-22 云南力衡医疗技术有限公司 Tool use video processing method and device
WO2022257687A1 (en) * 2021-06-07 2022-12-15 荣耀终端有限公司 Video capturing method and electronic device
WO2024078236A1 (en) * 2022-10-11 2024-04-18 华为技术有限公司 Recording control method, electronic device, and medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103813121A (en) * 2014-02-18 2014-05-21 厦门美图之家科技有限公司 Method and apparatus for recording video
CN105391965A (en) * 2015-11-05 2016-03-09 广东欧珀移动通信有限公司 Multi-camera-based video recording method and apparatus

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103813121A (en) * 2014-02-18 2014-05-21 厦门美图之家科技有限公司 Method and apparatus for recording video
CN105391965A (en) * 2015-11-05 2016-03-09 广东欧珀移动通信有限公司 Multi-camera-based video recording method and apparatus

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107360400A (en) * 2017-07-27 2017-11-17 上海传英信息技术有限公司 A kind of kinescope method and recording apparatus for smart machine camera
CN107483873A (en) * 2017-08-29 2017-12-15 珠海格力电器股份有限公司 Video sharing method and device and mobile terminal
CN108012101A (en) * 2017-11-30 2018-05-08 广州市百果园信息技术有限公司 Video recording method and video recording terminal
CN108200341A (en) * 2018-01-15 2018-06-22 青岛海信移动通信技术股份有限公司 Seamless handover method, device and the terminal device of camera
CN111246104A (en) * 2020-01-22 2020-06-05 维沃移动通信有限公司 Video recording method and electronic equipment
CN112199016A (en) * 2020-09-30 2021-01-08 北京字节跳动网络技术有限公司 Image processing method, image processing device, electronic equipment and computer readable storage medium
CN114584686A (en) * 2020-11-30 2022-06-03 华为技术有限公司 Video shooting method and electronic equipment
CN114584686B (en) * 2020-11-30 2023-11-14 华为技术有限公司 Video shooting method and electronic equipment
CN112905088A (en) * 2021-02-07 2021-06-04 北京蜂巢世纪科技有限公司 Video shooting control method and device
CN112905088B (en) * 2021-02-07 2022-11-04 北京蜂巢世纪科技有限公司 Video shooting control method and device
US11539878B2 (en) 2021-02-07 2022-12-27 Beijing SuperHexa Century Technology CO. Ltd. Method and apparatus for controlling video recording
CN115379107A (en) * 2021-06-07 2022-11-22 云南力衡医疗技术有限公司 Tool use video processing method and device
WO2022257687A1 (en) * 2021-06-07 2022-12-15 荣耀终端有限公司 Video capturing method and electronic device
CN115379107B (en) * 2021-06-07 2023-04-21 云南力衡医疗技术有限公司 Tool use video processing method and device
CN114500835A (en) * 2022-01-20 2022-05-13 深圳市源德盛数码科技有限公司 Video shooting method, system, intelligent terminal and storage medium
WO2024078236A1 (en) * 2022-10-11 2024-04-18 华为技术有限公司 Recording control method, electronic device, and medium

Similar Documents

Publication Publication Date Title
CN106657774A (en) Method and device for recording video
CN110062284B (en) Video playing method and device and electronic equipment
CN110730387B (en) Video playing control method and device, storage medium and electronic device
CN109189682A (en) A kind of script method for recording and device
US20230379280A1 (en) Information interaction method, apparatus, device, storage medium and program product
CN107610695A (en) Driver's voice wakes up the dynamic adjusting method of instruction word weight
US20140189516A1 (en) Video preview display method and terminal device
CN105373587A (en) Picture display method and terminal
US10169053B2 (en) Loading a web page
CN112685121B (en) Method and equipment for presenting session entry
US9451423B2 (en) Method and apparatus for recording information during a call
US20140118576A1 (en) Method and device for acquiring image
CN110780955A (en) Method and equipment for processing emoticon message
US20170161871A1 (en) Method and electronic device for previewing picture on intelligent terminal
US20180107371A1 (en) Time-Correlated Ink
CN108174270B (en) Data processing method, data processing device, storage medium and electronic equipment
CN108108143B (en) Recording playback method, mobile terminal and device with storage function
CN109240678B (en) Code generation method and device
CN112818719A (en) Method and device for identifying two-dimensional code
KR20180122137A (en) Method for giving dynamic effect to video and electronic device thereof
CN116095358A (en) Video generation method, device, electronic equipment and medium
CN111726671A (en) Method, equipment and electronic equipment for playing media information
CN109246468A (en) A kind of list of videos switching method, equipment and storage medium based on educational system
CN113038286B (en) Video playing control method and device and electronic equipment
CN108388463A (en) Icon processing method, device, computer equipment and 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