CN105979138A - Video shooting apparatus and method, and mobile terminal - Google Patents

Video shooting apparatus and method, and mobile terminal Download PDF

Info

Publication number
CN105979138A
CN105979138A CN201610370211.3A CN201610370211A CN105979138A CN 105979138 A CN105979138 A CN 105979138A CN 201610370211 A CN201610370211 A CN 201610370211A CN 105979138 A CN105979138 A CN 105979138A
Authority
CN
China
Prior art keywords
video
video element
time interval
screening
image
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
CN201610370211.3A
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 CN201610370211.3A priority Critical patent/CN105979138A/en
Publication of CN105979138A publication Critical patent/CN105979138A/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/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Studio Devices (AREA)

Abstract

The invention discloses a video shooting apparatus and method, and a mobile terminal. A video recording starting instruction is received; and video elements of a shot object are collected circularly at a set time interval, the collected video elements are screened according to a preset adjusting rule when the number of the video elements reaches a preset value, the set time interval is adjusted, and the video elements after screening are processed based on a video recording closing instruction, thereby obtaining a video file. The number of the video elements does not exceed a preset value by screening, so that the size of the shot video file has an upper limit but the shooting time is not limited; and thus a phenomenon that the shooting is not affected due to the file system size can be avoided. Therefore, more shooting contents can be shot by a user; and the user experience is improved and the resources are saved.

Description

A kind of video capture device, method and mobile terminal
Technical field
The present invention relates to communication technical field, more particularly, it relates to a kind of video capture device, method and mobile terminal.
Background technology
Science and technology development, provide increasing probability to people, the recording means of people from before pass from mouth to mouth, bamboo slip used for writing on during ancient times, cloth and silk, arrived present phonograph, camera, the content not only recorded is more, and more truly, efficiency is the highest.Wherein, photography is the record of a kind of image, and why it is born, it is simply that for the purpose recorded.It is born after shown by powerful vitality out, be also due precisely to its writing function.
And when record by the way of photography, particularly time-lapse photography, common time-lapse photography scheme is all as the elongated of shooting time, the video file generated also can increase down always, and the file size of file system support has the upper limit, if the time long enough of shooting, the video file generated can exceed the restriction of file system, can be only generated multiple video file, or can only stop shooting, the experience bringing user is very poor.
Summary of the invention
The technical problem to be solved in the present invention is, how to make photographs is not limited by file system size and video content needed for shooting, for this technical problem, it is provided that a kind of video capture device, method and mobile terminal.
For solving above-mentioned technical problem, the present invention provides a kind of video capture device, including:
Command reception module, is used for receiving video record sign on;
Image processing module, is carried out for circulation: gather the video element of subject at set time intervals;When the number of described video element reaches preset value, according to default regulation rule, the described video element gathered is screened, the time interval of described setting is adjusted;
Video generation module, for according to video record END instruction, processes the video element after described screening and obtains video file.
Optionally, described default regulation rule includes: the time interval of the video element after screening is the integral multiple of the time interval of the video element before screening, and the time interval of the video element after screening is as the time interval of the described setting after adjustment;Wherein, described integral multiple is not less than twice.
Optionally, it is described when the data of video element reach preset value, according to default regulation rule, the video element gathered is screened, it is adjusted including to the time interval set: after the time interval of described setting being adjusted according to default regulation rule, the more described video element gathered is screened.
Optionally, described video generation module is additionally operable to, and the time interval of the described setting after adjusting for the last time is corresponding with described video file to be preserved.
Additionally, the embodiment of the present invention also provides for a kind of mobile terminal, including above-mentioned video capture device.
Additionally, the embodiment of the present invention also provides for a kind of video capture method, including:
Receive video record sign on;
Circulation is carried out: gather the video element of subject at set time intervals;When the number of described video element reaches preset value, according to default regulation rule, the described video element gathered is screened, the time interval of described setting is adjusted;
According to video record END instruction, process the video element after described screening and obtain video file.
Optionally, described default regulation rule includes: the time interval of the video element after screening is the integral multiple of the time interval of the video element before screening, and the time interval of the video element after screening is as the time interval of the described setting after adjustment;Wherein, described integral multiple is not less than twice.
Optionally, it is described when the data of video element reach preset value, according to default regulation rule, the video element gathered is screened, it is adjusted including to the time interval set: after the time interval of described setting being adjusted according to default regulation rule, the more described video element gathered is screened.
Optionally, described method also includes: the time interval of the described setting after choosing layer for the last time is corresponding with described video file to be preserved.
Optionally, according to default regulation rule, the video element gathered is screened, be adjusted including to the time interval set: delete a video element at interval of a video element gathered, and the time interval of described setting doubled.
Beneficial effects of the present invention
The invention provides a kind of video capture device, method and mobile terminal, first receive video record sign on;Then circulation gathers the video element of subject at set time intervals, when the quantity of video element reaches preset value, according to default regulation rule, the video element gathered is screened, being adjusted the time interval set, the video element after processing screening finally according to video record END instruction obtains video file.Allow the number of video element not over preset value by screening, the size of the video file therefore shot has the upper limit, but shooting duration is not limited, shooting will not be have impact on because of the restriction of file system size, allow users to shoot abundant content, improve the experience of user, save resource.
Accompanying drawing explanation
Below in conjunction with drawings and Examples, the invention will be further described, in accompanying drawing:
Fig. 1 is the hardware architecture diagram realizing each one optional mobile terminal of embodiment of the present invention;
Fig. 2 is the electrical structure block diagram realizing each one optional camera of embodiment of the present invention;
Fig. 3 is the module diagram of the video capture device in one embodiment of the invention;
Fig. 4 is the module diagram of the video capture device in one embodiment of the invention;
Fig. 5 is the module diagram of the video capture device in one embodiment of the invention;
Fig. 6 is the flow chart of the video capture method in one embodiment of the invention;
Fig. 7 is the flow chart of the video capture method in one embodiment of the invention;
Fig. 8 is the flow chart of the video capture method in one embodiment of the invention;
Fig. 9 is that the video element in each embodiment of the present invention preserves schematic diagram;
Figure 10 is that the video element in each embodiment of the present invention preserves schematic diagram.
Detailed description of the invention
Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
The mobile terminal realizing each embodiment of the present invention is described referring now to accompanying drawing.In follow-up description, use the suffix being used for representing " module " of element only for the explanation of the beneficially present invention, itself do not have specific meaning.
Mobile terminal can be implemented in a variety of manners.Such as, the mobile terminal described in the present invention can include mobile terminal and the fixed terminal of such as numeral TV, desk computer etc. of such as mobile phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (panel computer), PMP (portable media player), guider etc..Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that, in addition to being used in particular for the element of mobile purpose, structure according to the embodiment of the present invention can also apply to the terminal of fixed type.Video capture device in the embodiment of the present invention, then can be arranged in any one mobile terminal above-described.
Fig. 1 is the hardware architecture diagram realizing each one optional mobile terminal of embodiment of the present invention.
Mobile terminal 100 can include power subsystem 120, memorizer 130 and A/V (audio/video) input block 140, output unit 150, user input unit 160, controller 170 etc..Fig. 1 shows the mobile terminal with various assembly, it should be understood that be not required for implementing all assemblies illustrated.Can alternatively implement more or less of assembly.Will be discussed in more detail below the element of mobile terminal.
Memorizer 130 can store the process performed by controller 170 and the software program controlling operation etc., or can temporarily store the data (such as, telephone directory, message, still image, video etc.) that oneself maybe will export through output.And, memorizer 130 can be to store vibration and the data of audio signal of the various modes about exporting when touching and being applied to touch screen.
Memorizer 130 can include the storage medium of at least one type, described storage medium includes flash memory, hard disk, multimedia card, card-type memorizer (such as, SD or DX memorizer etc.), random access storage device (RAM), static random-access memory (SRAM), read only memory (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc..And, mobile terminal 100 can be connected the network storage device of the storage function performing memorizer 130 and cooperate with by network.Image in the present invention and/or video element can be preserved by memorizer.
Controller 170 generally controls the overall operation of mobile terminal.Such as, controller 170 performs the control relevant to voice call, data communication, video calling etc. and process.It addition, controller 170 can include the multimedia unit 171 for reproducing (or playback) multi-medium data, multimedia unit 171 can construct in controller 170, or it is so structured that separates with controller 170.Controller 170 can perform pattern recognition process, so that the handwriting input performed on the touchscreen or picture drafting input are identified as character or image.Controller may be used for the video capture method realizing in the present invention, as command reception module, image processing module, video generation module all can be realized by controller 170.
Power subsystem 120 receives external power or internal power under the control of controller 170 and provides the suitable electric power operated needed for each element and assembly.
A/V input block 140 is used for receiving audio or video signal.A/V input block 140 can include camera 141 and mike 142, and the view data of the camera 141 static images to being obtained by image capture apparatus in Video Capture pattern or image capture mode or video processes.Picture frame after process may be displayed on display unit 151.Picture frame after camera 141 processes can be stored in memorizer 130 (or other storage medium) or be transmitted via wireless communication unit 110, can provide two or more cameras 141 according to the structure of mobile terminal.Mike 142 can receive sound (voice data) via mike in telephone calling model, logging mode, speech recognition mode etc. operational mode, and can be voice data by such acoustic processing.Audio frequency (voice) data after process can be converted to can be sent to via mobile comm unit 112 the form output of mobile communication base station in the case of telephone calling model.Mike 142 can be implemented various types of noise and eliminate noise or the interference that (or suppression) algorithm produces with elimination (or suppression) during receiving and send audio signal.Wherein, A/V input block 140 may be used for the image processing module realizing in the embodiment of the present invention, and wherein, image processing module is based on camera 141, it is also possible to include mike 141, can also recorded voice while shooting image.
User input unit 160 can generate key input data to control the various operations of mobile terminal according to the order of user's input.User input unit 160 allows user to input various types of information, and can include keyboard, metal dome, touch pad (such as, detection due to touched and cause resistance, pressure, the sensitive component of change of electric capacity etc.), roller, rocking bar etc..Especially, when touch pad is superimposed upon on display unit 151 as a layer, touch screen can be formed.
Output unit 150 is configured to provide output signal (such as, audio signal, video signal, alarm signal, vibration signal etc.) with vision, audio frequency and/or tactile manner.Output unit 150 can include display unit 151, audio output unit 152 etc..
Display unit 151 may be displayed on the information processed in mobile terminal 100.Such as, when mobile terminal 100 is in telephone calling model, display unit 151 can show the user interface (UI) relevant with call or other communicate (such as, text messaging, multimedia file download etc.) or graphic user interface (GUI).When mobile terminal 100 is in video calling pattern or image capture mode, display unit 151 can show image and/or the image of reception, UI or GUI illustrating video or image and correlation function etc. of capture.
Meanwhile, when display unit 151 and touch pad the most superposed on one another with formed touch screen time, display unit 151 can serve as input equipment and output device.Display unit 151 can include at least one in liquid crystal display (LCD), thin film transistor (TFT) LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc..Some in these display may be constructed such that transparence to allow user to watch from outside, this is properly termed as transparent display, and typical transparent display can for example, TOLED (transparent organic light emitting diode) display etc..According to the specific embodiment wanted, mobile terminal 100 can include two or more display units 151 (or other display device), such as, mobile terminal can include outernal display unit 151 (not shown) and inner display unit 151 (not shown).Touch screen can be used for detecting touch input pressure and touch input position and touch input area.
Audio output unit 152 can mobile terminal be in call signal receive under the isotype such as pattern, call mode, logging mode, speech recognition mode, broadcast reception mode time, voice data transducing audio signal that is that wireless communication unit 110 is received or that store in memory 130 and be output as sound.And, audio output unit 152 can provide the audio frequency output (such as, call signal receive sound, message sink sound etc.) relevant to the specific function of mobile terminal 100 execution.Audio output unit 152 can include speaker, buzzer etc..
Various embodiment described herein can be implemented to use such as computer software, hardware or its any combination of computer-readable medium.Hardware is implemented, embodiment described herein can be by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), processor, controller, microcontroller, microprocessor, being designed to perform at least one in the electronic module of function described herein and implement, in some cases, such embodiment can be implemented in controller 170.Implementing for software, the embodiment of such as process or function can be implemented with allowing the single software module performing at least one function or operation.Software code can be implemented by the software application (or program) write with any suitable programming language, and software code can store in memory 130 and be performed by controller 170.
So far, oneself is through describing mobile terminal according to its function.Below, for the sake of brevity, the slide type mobile terminal in the various types of mobile terminals that will describe such as folded form, board-type, oscillating-type, slide type mobile terminal etc. is as example.Therefore, the present invention can be applied to any kind of mobile terminal, and is not limited to slide type mobile terminal.
Fig. 2 is the electrical structure block diagram of the optional camera realizing each embodiment of the present invention.
Photographic lens 1211 is made up of, for single-focus lens or zoom lens the multiple optical lens being used for being formed shot object image.Photographic lens 1211 can move under the control of lens driver 1221 in the direction of the optical axis, lens driver 1221 is according to the control signal from lens driving control circuit 1222, control the focal position of photographic lens 1211, in the case of zoom lens, it is possible to control focal length.The driving that lens driving control circuit 1222 carries out lens driver 1221 according to the control command from microcomputer 1217 controls.
Imaging apparatus 1212 it is configured with near the position of the shot object image formed on the optical axis of photographic lens 1211, by photographic lens 1211.Imaging apparatus 1212 is for imaging shot object image and obtaining image data.On imaging apparatus 1212 two dimension and be arranged in a matrix the photodiode constituting each pixel.Each photodiode produces the opto-electronic conversion electric current corresponding with light income, and this opto-electronic conversion electric current is carried out charge accumulation by the capacitor being connected with each photodiode.The front surface of each pixel is configured with the RGB color filter of Bayer arrangement.
Imaging apparatus 1212 is connected with imaging circuit 1213, this imaging circuit 1213 carries out charge accumulation in imaging apparatus 1212 and controls and picture signal reading control, the picture signal (analog picture signal) of this reading is reduced and after resetting noise, carries out waveform shaping, and then carry out gain raising etc. to become suitable signal level.
Imaging circuit 1213 is connected with A/D converter 1214, and this A/D converter 1214 carries out analog digital conversion to analog picture signal, to bus 1227 output digital image signal (hereinafter referred to as view data).
Bus 1227 is the transmission path for being transmitted in the various data that the inside of camera reads or generates.It is connected to above-mentioned A/D converter 1214 in bus 1227, additionally it is connected to image processor 1215, jpeg processor 1216, microcomputer 1217, SDRAM (Synchronous Dynamic random access memory, SDRAM (Synchronous dynamic random access memory)) 1218, memory interface (hereinafter referred to as memory I/F) 1219, LCD (Liquid Crystal Display, liquid crystal display) driver 1220.
Image processor 1215 carries out OB and subtracts each other the various image procossing such as process, blank level adjustment, color matrix computing, gamma conversion, colour difference signal process, noise removal process, change process simultaneously, edge treated the view data of output based on imaging apparatus 1212.Jpeg processor 1216, when by Imagery Data Recording in record medium 1225, compresses the view data read from SDRAM1218 according to JPEG compression mode.Additionally, jpeg processor 1216 carries out the decompression of jpeg image data to carry out image reproducing to show.When decompressing, read record file in record medium 1225, after implementing decompression in jpeg processor 1216, the view data of decompression is temporarily stored in SDRAM1218 and shows on LCD1226.H.264 it addition, in the present embodiment, decompress mode as compression of images and use JPEG mode, but compressed and decompressed mode is not limited to this, it is of course possible to use MPEG, TIFF, other the compressed and decompressed mode such as.
Microcomputer 1217 plays the function in the control portion overall as this camera, is uniformly controlled the various process sequences of camera.Microcomputer 1217 is connected to operating unit 1223 and flash memory 1224.
Operating unit 1223 includes but not limited to physical button or virtual key, the operational controls such as various load buttons and various input keys such as this entity or virtual key can be power knob, key of taking pictures, edit key, dynamic image button, reproduction button, menu button, cross key, OK button, deletion button, large buttons, detect the mode of operation of these operational controls.
Testing result is exported to microcomputer 1217.Additionally, the front surface at the LCD1226 as display is provided with touch panel, the touch location of detection user, this touch location is exported to microcomputer 1217.Microcomputer 1217, according to the testing result of the operating position from operating unit 1223, performs the various process sequences corresponding with the operation of user.
Flash memory 1224 storage is for performing the program of the various process sequences of microcomputer 1217.Microcomputer 1217 carries out, according to this program, the control that camera is overall.Additionally, flash memory 1224 stores the various adjusted values of camera, microcomputer 1217 reads adjusted value, carries out the control of camera according to this adjusted value.
SDRAM1218 is can the electric volatile memory rewritten for temporarily store view data etc..This SDRAM1218 temporarily stores the view data from A/D converter 1214 output and has carried out the view data after processing image processor 1215, jpeg processor 1216 etc..
Memory interface 1219 is connected with record medium 1225, carries out the file first-class data write record medium 1225 by view data and being attached in view data and the control read from record medium 1225.Record medium 1225 for example, can on camera main-body the record such as the memory card of disassembled and assembled freely medium, but be not limited to this, it is also possible to be the hard disk etc. being built in camera main-body.
Lcd driver 1210 is connected with LCD1226, view data after being processed by image processor 1215 is stored in SDRAM1218, when needing display, read the view data of SDRAM1218 storage and show on LCD1226, or, the compressed view data of jpeg processor 1216 is stored in SDRAM1218, when needs show, jpeg processor 1216 reads the compressed view data of SDRAM1218, then decompresses, and the view data after decompressing is shown by LCD1226.
LCD1226 is arranged in the back side of camera main-body to carry out image and shows.This LCD1226LCD, but it is not limited to this, it would however also be possible to employ the various display floater such as organic EL (LCD1226), but it is not limited to this, it would however also be possible to employ the various display floater such as organic EL.
Based on above-mentioned mobile terminal hardware configuration and the electrical structure schematic diagram of camera, each embodiment of the present invention is proposed.
First embodiment
The video capture apparatus function module diagram provided for first embodiment of the invention with reference to Fig. 3, Fig. 3.
Video capture device in the present embodiment, including:
Command reception module 10, is used for receiving video record sign on;
Image processing module 20, is carried out for circulation: gather the video element of subject at set time intervals;When the number of video element reaches preset value, according to default regulation rule, the video element gathered is screened, the time interval set is adjusted;
Video generation module 30, for according to video record END instruction, processes the video element after screening and obtains video file.
Video capture device in the present embodiment is after command reception module 10 receives video record sign on, it is possible to set about starting recorded video;The process recorded is automatically performed, it is thus only necessary to user is beginning to send out such a instruction, and the form of instruction can be arbitrary, and specific acoustical signal, picture signal, pulse signal etc. are the most applicable.Send additionally, instruction can be user when recording, it is also possible to preset, i.e. timing starts to record.
Image processing module 20 in the present embodiment, including:
Acquisition module 201, for gathering the video element of subject at set time intervals;
Adjusting module 202, for when the number of video element reaches preset value, screens the video element gathered according to default regulation rule, is adjusted the time interval set.
Video capture device in the present embodiment, can be realized by the construction unit in above-described embodiment, as command reception module 10 can be realized by A/V input block 140 and/or user input unit 160, image processing module 20 can be realized by the camera 141 in A/V input block and controller 170, wherein, acquisition module 201 can be realized by camera 141, and adjusting module 202 then can be realized by controller 170.Below as example, the realization to the present embodiment illustrates.
Shooting its ultimate principle of video is through combination by the image that each is static so that it is appear to continuous print;Owing to the vision of people has persistence of vision, the vision in 1/24 second will not disappear, as long as the image i.e. combined at least 24 images in a second, it is static image that human eye cannot distinguish it.
In the process of video, mainly there are coding and compression both modes;Wherein, coding is i.e. to be key frame by encryption algorithm by the picture coding collected, and compression is then to be compression data by compression algorithm by the compression of images collected.In the present embodiment, video element includes key frame and compression data;Encryption algorithm includes but not limited to H.264 algorithm, and compression algorithm includes but not limited to jpeg algorithm.
Frame refers to the single width image frame of least unit in image animation in the field of image procossing.One frame is exactly a secondary static picture, and continuous print frame is formed for dynamic picture, such as video, animation etc..Frame number, it is simply that transmit the frame number of picture in one second, it is understood that for refreshing per second several times;Each second, frame number was the most, and shown action is the most smooth.Any animation to show motion or change, at least front and back to provide two different key states, and represent the frame of this key state, just be called key frame.
When gathering image, camera 141 gathers image, while being video element by the image procossing collected;Video element decides the content of video;After the picture coding that will collect is video element, due to each video element all in occupation of certain memory space, therefore the number of video element affects the amount of storage of file system.Therefore, in the present embodiment, arranging the preset value of the number of video element, the number of video element must not exceed this preset value.This preset value is arbitrary, can determine with the memory space of file system, it is also possible to determine according to the duration of required video, or be set according to the numerical value of the input of user.Additionally, the image acquisition in the present embodiment is completed by camera 141, and the image procossing collected become video element can be completed by camera 141, it is also possible to be completed by controller 170.
When the number of video element reaches preset value, controller 170 needs to screen video element according to default regulation rule.And, the time interval set is adjusted by controller always according to default regulation rule.
Default regulation rule in the present embodiment, including: the time interval of the video element after screening is the integral multiple of the time interval of the video element before screening, and the time interval of the video element after screening is as the time interval of the setting after adjustment;Wherein integral multiple is not less than twice.When the number of video element reaches preset value, need the video element gathered is screened;And according to the difference of the integral multiple set, video element can be carried out screening in various degree;When needing to retain as far as possible many video elements, it is smaller that integral multiple will set, and accordingly, the time interval of setting also can be smaller, is unlikely to there is the biggest span.
Need the rule followed when the time interval set is the video element gathering subject, i.e. when camera 141 gathers the video element of subject, need to gather at set time intervals;And when the number of video element reaches preset value, not only need video element is screened, in addition it is also necessary to set time interval be adjusted, in order to the time interval of subsequent acquisition can and screening after video element between time interval consistent.
Optionally, according to default regulation rule, the video element gathered is screened, be adjusted including to the time interval set: after the time interval set being adjusted according to default regulation rule, the more described video element gathered is screened.When actual acquisition, the number of the video element owing to gathering may be bigger, accordingly, the time of screening also can be long, in order to ensure good Consumer's Experience, the adjustment of the time interval being first set, the collection of the video element after being allowed to can be normally carried out, so that the process of whole video capture is the most smooth.
User's recorded video can arrange the time started, can also arrange the end time accordingly;That is, user setup video record END instruction, the video element after screening is processed into video file according to video record END instruction by video generation module.When user needs video file, the video element after screening can be decoded and encode by controller 170, thus obtains video file.And when decoding and encoding, can according to user need the number of video element is controlled, fluency is ensured as being inserted into 24 video elements at one second, or it is more, the video making content as much can be presented by shorter video, while achieving personalized customization, also effectively raise efficiency.
Video element process after screening is obtained outside video file according to video record END instruction by controller 170, it is also possible to the time interval of the setting after adjusting for the last time is corresponding with video file to be preserved.Time interval after last adjustment is exactly the time interval in final video file, between each video element;After forming video file, user is referred to the time interval of the setting after this adjusts for the last time, determines the shooting frame number of video file, thereby determines how that the adjustment playing frame number etc. carrying out video processes, can have good Consumer's Experience.
After being processed by the image collected, the video element after process should preserve.The medium preserved can be stored in running memory, i.e. in RAM, or be saved in the internal storage space of capture apparatus, i.e. in ROM;In the present embodiment, can be stored by memorizer 130.As it is shown in figure 9, Fig. 9 shows the schematic diagram being saved in running memory by video element, the data in each video element preserve in order;As shown in Figure 10, Figure 10 shows and is saved in the internal storage space of capture apparatus by video element, is then saved in running memory by the index of each video element.
Coding involved in the present embodiment and decoding include but not limited to H.264 encryption algorithm and H.264 decoding algorithm, and owing to employing multiplex coding device and decoder, withouting waiting for just can being immediately generated video when user stops shooting, Consumer's Experience is the best.
Additionally, the present embodiment additionally provides a kind of mobile terminal, including above-mentioned video capture device.
Present embodiments provide a kind of video capture device, the video element of subject is gathered at set time intervals by circulation, when the number of video element reaches preset value, according to default regulation rule, the video element gathered is screened, the time interval set is adjusted, video element after processing screening finally according to video record END instruction obtains video file, so by the reasonable restriction of the size to shooting file, can ensure that again simultaneously and shoot duration arbitrarily, shooting will not be have impact on because of the restriction of the size of file system, allow users to shoot abundant content, improve Consumer's Experience, save the resource of file system.
Second embodiment
The video capture device refinement high-level schematic functional block diagram provided for second embodiment of the invention with reference to Fig. 4, Fig. 4.
Video capture device in the present embodiment, including:
Command reception module 10, is used for receiving video record sign on;
Image processing module 20, is carried out for circulation: gather the video element of subject at set time intervals;When the number of video element reaches preset value, then the video element gathered is screened according to default adjustment team, the time interval set is adjusted;
Video generation module 30, for according to video record END instruction, processes the video element after screening and obtains video file.
Video capture device in the present embodiment is after command reception module 10 receives video record sign on, it is possible to set about starting recorded video;The process recorded is automatically performed, it is thus only necessary to user is beginning to send out such a instruction, and the form of instruction can be arbitrary, and specific acoustical signal, picture signal, pulse signal etc. are the most applicable.Send additionally, instruction can be user when recording, it is also possible to preset, i.e. timing starts to record.
Image processing module 20 in the present embodiment, including:
Acquisition module 201, for gathering the video element of subject at set time intervals;
Adjusting module 202, for when the number of video element reaches preset value, screens the video element gathered according to default regulation rule, is adjusted the time interval set.
Shooting its ultimate principle of video is through combination by the image that each is static so that it is appear to continuous print;Owing to the vision of people has persistence of vision, the vision in 1/24 second will not disappear, as long as the image i.e. combined at least 24 images in a second, it is static image that human eye cannot distinguish it.
In the process of video, mainly there are coding and compression both modes;Wherein, coding is i.e. to be key frame by encryption algorithm by the picture coding collected, and compression is then to be compression data by compression algorithm by the compression of images collected.In the present embodiment, video element includes key frame and compression data;Encryption algorithm includes but not limited to H.264 algorithm, and compression algorithm includes but not limited to jpeg algorithm.
Frame refers to the single width image frame of least unit in image animation in the field of image procossing.One frame is exactly a secondary static picture, and continuous print frame is formed for dynamic picture, such as video, animation etc..Frame number, it is simply that transmit the frame number of picture in one second, it is understood that for refreshing per second several times;Each second, frame number was the most, and shown action is the most smooth.Any animation to show motion or change, at least front and back to provide two different key states, and represent the frame of this key state, just be called key frame.
When gathering image, acquisition module 201 gathers image, while being video element by the image procossing collected;Video element decides the content of video;After the image procossing that will collect is video element, due to each video element all in occupation of certain memory space, therefore the number of video element affects the amount of storage of file system.Therefore, in the present embodiment, arranging the preset value of the number of video element, the number of video element must not exceed this preset value.This preset value is arbitrary, can determine with the memory space of file system, it is also possible to determine according to the duration of required video, or only determine with the hobby of user.
When the number of video element reaches preset value, adjusting module 202 needs to screen video element according to default regulation rule.And, the time interval set is adjusted by controller always according to default regulation rule.Screening, it is simply that from existing video element, selects the video element of member-retaining portion, and is deleted by the video element of other parts, decrease the total amount of video element, can effectively save memory space according to default regulation rule.
Default regulation rule in the present embodiment, including: the time interval of the video element after screening is the integral multiple of the time interval of the video element before screening, and the time interval of the video element after screening is as the time interval of the setting after adjustment;Wherein integral multiple is not less than twice.When the number of video element reaches preset value, need the video element gathered is screened;And according to the difference of the integral multiple set, video element can be carried out screening in various degree;When needing to retain as far as possible many video elements, it is smaller that integral multiple will set, and accordingly, the time interval of setting also can be smaller, is unlikely to there is the biggest span.
Need the rule followed when the time interval set is the video element gathering subject, i.e. when camera 141 gathers the video element of subject, need to gather at set time intervals;And when the number of video element reaches preset value, not only need video element is screened, in addition it is also necessary to set time interval be adjusted, in order to the time interval of subsequent acquisition can and screening after video element between time interval consistent.
Optionally, according to default regulation rule, the video element gathered is screened, be adjusted including to the time interval set: after the time interval set being adjusted according to default regulation rule, the more described video element gathered is screened.When actual acquisition, the number of the video element owing to gathering may be bigger, accordingly, the time of screening also can be long, in order to ensure good Consumer's Experience, the adjustment of the time interval being first set, the collection of the video element after being allowed to can be normally carried out, so that the process of whole video capture is the most smooth.
Acquisition module 201, when gathering the video element of subject, is be acquired with first acquisition interval determined at the beginning, and this very first time interval is usually user's sets itself, according to parameter determinations such as the sizes of the fluency of video and video;Owing to the number of video element has the upper limit of preset value, therefore, the video element of the image collected can't go down in undying increase, when arriving preset value, can screen video element;And when screening video element according to default regulation rule, the time interval of the video element after screening is the integral multiple of the time interval of the video element before screening;The minimum twice of integral multiple, say, that time interval becomes twice as, then the number of the video element after screening is exactly 1/2nd before screening;It is similar to, if prefixed time interval is three times of the time interval of this collection image, then the number of the video element after screening is exactly 1/3rd before screening.After screening, acquisition module 201 gathers video element not to be stopped, and may proceed to be acquired video element, and the video element after screening may proceed to increase, and now the quantity of video element is not the most preset value;By the time interval of this setting be last time gather video element time interval twice as a example by (if not otherwise indicated, the time interval of the setting in each embodiment of the present invention is all the twice of the time interval gathering video element last time), the number of the video element after screening is exactly the half of preset value, i.e. screening is the number minimizing half of the video element by originally reaching preset value;The half video element screened out not is arbitrarily screening, it should be ensured that the time interval between each video element is equal.Here time interval refers to the interval between absolute time, and such as first video element is to gather in the t1 moment, and second video element is to gather in the t2 moment, and video element so carries out a sequence;If the t20 video element has just reached the preset value of the number of video element, so, video element is screened half then include: by t1, t3, t5 ... the video elements such as t19 screen out, or by t2, t4, t6 ... the video elements such as t20 screen out, the time interval between remaining adjacent video unit is all equal.Additionally, when screening, the video element of screening include front primary screening after video element and this gather the video element that image process obtain.
In addition, when screening video element, owing to the time interval between the video element after screening becomes, saying it is that time interval becomes big accurately, therefore, acquisition module 201 gathers the time interval of the setting of video element and strains mutually greatly, so can save system resource;Continue above example, if now the video element after screening is t1, t3, t5 ... t19, so, acquisition module 201 gathers the twice before the time interval of the setting of video element then can become, and the video element of collection can be just t21, t23, t25 ... the video element in these moment;In other words, the time interval that acquisition module 201 gathers the setting of image is i.e. changed after screening so that it is consistent with the time interval between the video element after screening.
It can be seen from the above that the screening process in the present embodiment is not limited to once, say that it does not has number of times and limits, as long as the preset value that the quantity of video element reaches can be carried out screening accurately;Continue example above, if the video element after screening is t1, t3, t5 for the first time ... t19, when video element reaches preset value 20 again, i.e. t1, t3, t5 ... t39, the most just can again these video elements be screened, video element after screening can be t1, t5, t9 ... t37, and then acquisition module 201 is further continued for gathering video element.
User's recorded video can arrange the time started, can also arrange the end time accordingly;That is, user setup recorded video END instruction, the video element after screening is decoded and is encoded into video file according to video record END instruction by video generation module.When user needs video file, the video element after screening can be decoded by video generation module 30, thus obtains video file.And when decoding, can according to user need frame number is controlled, ensure fluencies as being inserted into 24 frames at one second, or more video making content as much can be presented by shorter video, while achieving personalized customization, also effectively raise efficiency.
After being encoded by the image collected, the video element after coding should preserve.The medium preserved can be stored in running memory, i.e. in RAM, or be saved in the internal storage space of capture apparatus, i.e. in ROM;In the present embodiment, can be stored by memorizer 130.As it is shown in figure 9, Fig. 9 shows the schematic diagram being saved in running memory by video element, the data in each video element preserve in order;As shown in Figure 10, Figure 10 shows and is saved in the internal storage space of capture apparatus by video element, is then saved in running memory by the index of each video element.
Coding involved in the present embodiment and decoding include but not limited to H.264 encryption algorithm and H.264 decoding algorithm, and owing to employing multiplex coding device and decoder, withouting waiting for just can being immediately generated video when user stops shooting, Consumer's Experience is the best.
Present embodiments provide a kind of video capture device, it is acquired video element, screening video element by circulation, finally video element encoding and decoding is become video file, so by the reasonable restriction of the size to shooting file, can ensure that again simultaneously and shoot duration arbitrarily, shooting will not be have impact on because of the restriction of the size of file system, allow users to shoot abundant content, improve Consumer's Experience, saved the resource of file system.
3rd embodiment
The video capture apparatus module schematic diagram provided for third embodiment of the invention with reference to Fig. 5, Fig. 5;Command reception module in above-described embodiment can include A/V input module 140 and/or user's input module 160, acquisition module in image processing module can include input module 160, processing module and screening module 203 then can include controller 170, and video generation module can also include controller 170;Video capture device in the present embodiment includes:
User's input module 160, is used for receiving video record sign on;
A/V input module 140, is used for receiving video record sign on, or gathers the video element of subject at set time intervals;
Controller 170, for when the number of video element reaches preset value, screens the video element gathered according to default regulation rule, is adjusted the time interval set.
Video record sign on, can include various ways;Inputted by man-machine interaction in terminal if video record sign on is user, such as input modes such as touch control operations, then then completed by user's input module 160;If being realized by multimedia, such as by the way of image or sound, the most then performed by A/V input module 140, wherein, the action etc. that can be caught user by the camera 141 in A/V input module 140 is operated, or caught the sound of user by mike 142, these are all that video record sign on can be included.
Video capture device in the present embodiment gathers video element, can be completed by the camera 141 in A/V input module 140;The ultimate principle of shooting video is through combination by the image that each is static so that it is appear to continuous print;Owing to people has persistence of vision, the vision in 1/24 second will not disappear, as long as the image i.e. combined is in 1/24 internal conversion, at least 24 images in a second, it is static image that human eye cannot distinguish it.
When gathering image, camera 141 gathers image, while being video element by the image procossing collected;Video element decides the content of video;After the image procossing that will collect is video element, video element is stored in the memorizer 130 in video capture device.Each video element is all in occupation of certain memory space, and therefore the number of video element affects the amount of storage of memorizer 130.Therefore, in the present embodiment, arranging the preset value of the number of video element, the number of video element must not exceed preset value.The setting of this preset value arbitrary, can determine with the memory space of memorizer 130, it is also possible to determine according to the duration of required video, or only determine with the hobby of user.
When the number of video element reaches preset value, controller 170 needs to screen video element according to default regulation rule.And, the time interval set is adjusted by controller always according to default regulation rule.
Default regulation rule in the present embodiment, including: the time interval of the video element after screening is the integral multiple of the time interval of the video element before screening, and the time interval of the video element after screening is as the time interval of the setting after adjustment;Wherein integral multiple is not less than twice.When the number of video element reaches preset value, need the video element gathered is screened;And according to the difference of the integral multiple set, video element can be carried out screening in various degree;When needing to retain as far as possible many video elements, it is smaller that integral multiple will set, and accordingly, the time interval of setting also can be smaller, is unlikely to there is the biggest span.
Need the rule followed when the time interval set is the video element gathering subject, i.e. when camera 141 gathers the video element of subject, need to gather at set time intervals;And when the number of video element reaches preset value, not only need video element is screened, in addition it is also necessary to set time interval be adjusted, in order to the time interval of subsequent acquisition can and screening after video element between time interval consistent.
Optionally, according to default regulation rule, the video element gathered is screened, be adjusted including to the time interval set: after the time interval set being adjusted according to default regulation rule, the more described video element gathered is screened.When actual acquisition, the number of the video element owing to gathering may be bigger, accordingly, the time of screening also can be long, in order to ensure good Consumer's Experience, the adjustment of the time interval being first set, the collection of the video element after being allowed to can be normally carried out, so that the process of whole video capture is the most smooth.
User's recorded video can arrange the time started, can also arrange the end time accordingly;I.e. user setup video record END instruction, the video element after screening is decoded and is encoded into video file according to video record END instruction by controller 170.Recorded video END instruction, similar with video record sign on, can be completed by user's input module 160 and/or A/V input module 140, or, pre-enter recorded video END instruction, when meeting the condition preset, trigger video record END instruction, make the video record process of video capture device terminate;Wherein, the condition preset can be the default time of reaching time of shooting, or the sum of the video element processed reaches default quantity, or collected that image of wanting etc. is mixed can.
Present embodiments provide a kind of video capture device, it is acquired video element, screening video element by circulation, finally video element encoding and decoding is become video file, so by the reasonable restriction of the size to shooting file, can ensure that again simultaneously and shoot duration arbitrarily, shooting will not be have impact on because of the restriction of the size of file system, allow users to shoot abundant content, improve Consumer's Experience, saved the resource of file system.
4th embodiment
The video capture method basic flow sheet provided for fourth embodiment of the invention with reference to Fig. 6, Fig. 6.
Video capture method in the present embodiment includes:
S301, reception video record sign on;
S302, circulation are carried out: gather the video element of subject at set time intervals;When the number of video element reaches preset value, according to default regulation rule, the video element gathered is screened, the time interval set is adjusted;
S303, according to video record END instruction, process the video element after screening and obtain video file.
After receiving video record sign on, it is possible to set about starting recorded video;The process recorded is automatically performed, it is thus only necessary to user is beginning to send out such a instruction, and the form of instruction can be arbitrary, and specific acoustical signal, picture signal, pulse signal etc. are the most applicable.Send additionally, instruction can be user when recording, it is also possible to preset, i.e. timing starts to record.
Shooting its ultimate principle of video is through combination by the image that each is static so that it is appear to continuous print;Owing to the vision of people has persistence of vision, the vision in 1/24 second will not disappear, as long as the image i.e. combined at least 24 images in a second, it is static image that human eye cannot distinguish it.
In the process of video, mainly there are coding and compression both modes;Wherein, coding is i.e. to be key frame by encryption algorithm by the picture coding collected, and compression is then to be compression data by compression algorithm by the compression of images collected.In the present embodiment, video element includes key frame and compression data;Encryption algorithm includes but not limited to H.264 algorithm, and compression algorithm includes but not limited to jpeg algorithm.
Frame refers to the single width image frame of least unit in image animation in the field of image procossing.One frame is exactly a secondary static picture, and continuous print frame is formed for dynamic picture, such as video, animation etc..Frame number, it is simply that transmit the frame number of picture in one second, it is understood that for refreshing per second several times;Each second, frame number was the most, and shown action is the most smooth.Any animation to show motion or change, at least front and back to provide two different key states, and represent the frame of this key state, just be called key frame.
When gathering image, needing the image procossing collected is video element, and video element decides the content of video;After the picture coding that will collect is video element, due to each video element all in occupation of certain memory space, therefore the number of video element affects the amount of storage of file system.Therefore, in the present embodiment, arranging the preset value of the number of video element, the number of video element must not exceed this preset value.This preset value is arbitrary, can determine with the memory space of file system, it is also possible to determine according to the duration of required video, or be set according to the numerical value of the input of user.
When the number of video element reaches preset value, need according to default regulation rule, video element to be screened.Moreover, it is also possible to the time interval set is adjusted according to default regulation rule.
Default regulation rule in the present embodiment, including: the time interval of the video element after screening is the integral multiple of the time interval of the video element before screening, and the time interval of the video element after screening is as the time interval of the setting after adjustment;Wherein integral multiple is not less than twice.When the number of video element reaches preset value, need the video element gathered is screened;And according to the difference of the integral multiple set, video element can be carried out screening in various degree;When needing to retain as far as possible many video elements, it is smaller that integral multiple will set, and accordingly, the time interval of setting also can be smaller, is unlikely to there is the biggest span.
Need the rule followed when the time interval set is the video element gathering subject, i.e. when camera 141 gathers the video element of subject, need to gather at set time intervals;And when the number of video element reaches preset value, not only need video element is screened, in addition it is also necessary to set time interval be adjusted, in order to the time interval of subsequent acquisition can and screening after video element between time interval consistent.
Optionally, according to default regulation rule, the video element gathered is screened, be adjusted including to the time interval set: after the time interval set being adjusted according to default regulation rule, the more described video element gathered is screened.When actual acquisition, the number of the video element owing to gathering may be bigger, accordingly, the time of screening also can be long, in order to ensure good Consumer's Experience, the adjustment of the time interval being first set, the collection of the video element after being allowed to can be normally carried out, so that the process of whole video capture is the most smooth.
Optionally, when the number of video element reaches preset value, according to default regulation rule, the video element gathered is screened, be adjusted including to the time interval set: delete a video element at interval of a video element gathered, and the time interval of setting doubled.
User's recorded video can arrange the time started, can also arrange the end time accordingly;That is, user setup recorded video END instruction, the video element after screening is decoded and is encoded into video file according to video record END instruction by video generation module.When user needs video file, the video element after screening is decoded and encodes, thus obtains video file.And in decoding and when encoding, can according to user need frame number is controlled, ensure fluencies as being inserted into 24 frames at one second, or it is more, the video making content as much can be presented by shorter video, it is achieved that while personalized customization, also effectively raises efficiency.
Additionally, the method in the present embodiment also includes: the time interval of the setting after adjusting for the last time is corresponding with video file to be preserved.Time interval after last adjustment is exactly the time interval in final video file, between each video element;After forming video file, user is referred to the time interval of the setting after this adjusts for the last time, determines the shooting frame number of video file, thereby determines how that the adjustment playing frame number etc. carrying out video processes, can have good Consumer's Experience.
After being processed by the image collected, the video element after process should preserve.The medium preserved can be stored in running memory, i.e. in RAM, or be saved in the internal storage space of capture apparatus, i.e. in ROM;In the present embodiment, can be stored by memorizer 130.As it is shown in figure 9, Fig. 9 shows the schematic diagram being saved in running memory by video element, the data in each video element preserve in order;As shown in Figure 10, Figure 10 shows and is saved in the internal storage space of capture apparatus by video element, is then saved in running memory by the index of each video element.
Coding involved in the present embodiment and decoding include but not limited to H.264 encryption algorithm and H.264 decoding algorithm, and owing to employing multiplex coding device and decoder, withouting waiting for just can being immediately generated video when user stops shooting, Consumer's Experience is the best.
Present embodiments provide a kind of video capture method, it is acquired video element, screening video element by circulation, finally video element encoding and decoding is become video file, so by the reasonable restriction of the size to shooting file, can ensure that again simultaneously and shoot duration arbitrarily, shooting will not be have impact on because of the restriction of the size of file system, allow users to shoot abundant content, improve Consumer's Experience, saved the resource of file system.
5th embodiment
The video capture method refinement flow chart provided for fifth embodiment of the invention with reference to Fig. 7, Fig. 7.
S302 in a upper embodiment is mainly described in detail by the present embodiment.
S302, circulation are carried out: gather the video element of subject at set time intervals;When the number of described video element reaches preset value, according to default regulation rule, the described video element gathered is screened, is adjusted including to the time interval of described setting:
S401, the video element of collection subject;
In step S401, the video element gathering subject is according to the time interval collection set.
Shooting its ultimate principle of video is through combination by the image that each is static so that it is appear to continuous print;Owing to the vision of people has persistence of vision, the vision in 1/24 second will not disappear, as long as the image i.e. combined at least 24 images in a second, it is static image that human eye cannot distinguish it.
When gathering the video element of subject, being be acquired with first acquisition interval determined at the beginning, this very first time interval is usually user's sets itself, according to parameter determinations such as the sizes of the fluency of video and video.The process gathering video element is to gather image, and is video element the image procossing collected.The process of image, mainly has coding and compression both modes;Wherein, coding is i.e. to be key frame by encryption algorithm by the picture coding collected, and compression is then to be compression data by compression algorithm by the compression of images collected.In the present embodiment, video element includes key frame and compression data;Encryption algorithm includes but not limited to H.264 algorithm, and compression algorithm includes but not limited to jpeg algorithm.
Frame refers to the single width image frame of least unit in image animation in the field of image procossing.One frame is exactly a secondary static picture, and continuous print frame is formed for dynamic picture, such as video, animation etc..Frame number, it is simply that transmit the frame number of picture in one second, it is understood that for refreshing per second several times;Each second, frame number was the most, and shown action is the most smooth.Any animation to show motion or change, at least front and back to provide two different key states, and represent the frame of this key state, just be called key frame.
When gathering image, gather image, while being video element by the image procossing collected;Video element decides the content of video;After the picture coding that will collect is video element, due to each video element all in occupation of certain memory space, therefore the number of video element affects the amount of storage of file system.Therefore, in the present embodiment, arranging the preset value of the number of video element, the number of video element must not exceed this preset value.This preset value is arbitrary, can determine with the memory space of file system, it is also possible to determine according to the duration of required video, or be set according to the numerical value of the input of user.
After being processed by the image collected, the video element after process should preserve.The medium preserved can be stored in running memory, i.e. in RAM, or be saved in the internal storage space of capture apparatus, i.e. in ROM;In the present embodiment, can be stored by memorizer 130.As it is shown in figure 9, Fig. 9 shows the schematic diagram being saved in running memory by video element, the data in each video element preserve in order;As shown in Figure 10, Figure 10 shows and is saved in the internal storage space of capture apparatus by video element, is then saved in running memory by the index of each video element.
S402, judge whether the number of video element reaches preset value;The most then forward S403 to;
In step S402, it is judged that whether the number of video element reaches preset value, as a rule there are two opportunitys: the number of first video element has just reached preset value, and in other words, now the number of video element is equal to preset value;Its two be the number of video element just beyond preset value, in other words, the now number of video element than preset value many.Both judgment modes are the most applicable.
If the number of S403 video element has exceeded preset value, then according to default regulation rule, the video element gathered is screened, the time interval set is adjusted;
In step S403, the number of video element, when reaching preset value, i.e. needs to screen video element according to default regulation rule.And, the time interval set is adjusted by controller always according to default regulation rule.
Default regulation rule in the present embodiment, including: the time interval of the video element after screening is the integral multiple of the time interval of the video element before screening, and the time interval of the video element after screening is as the time interval of the setting after adjustment;Wherein integral multiple is not less than twice.When the number of video element reaches preset value, need the video element gathered is screened;And according to the difference of the integral multiple set, video element can be carried out screening in various degree;When needing to retain as far as possible many video elements, it is smaller that integral multiple will set, and accordingly, the time interval of setting also can be smaller, is unlikely to there is the biggest span.
Need the rule followed when the time interval set is the video element gathering subject, i.e. when gathering the video element of subject, need to gather at set time intervals;And when the number of video element reaches preset value, not only need video element is screened, in addition it is also necessary to set time interval be adjusted, in order to the time interval of subsequent acquisition can and screening after video element between time interval consistent.
Optionally, according to default regulation rule, the video element gathered is screened, be adjusted including to the time interval set: after the time interval set being adjusted according to default regulation rule, the more described video element gathered is screened.When actual acquisition, the number of the video element owing to gathering may be bigger, accordingly, the time of screening also can be long, in order to ensure good Consumer's Experience, the adjustment of the time interval being first set, the collection of the video element after being allowed to can be normally carried out, so that the process of whole video capture is the most smooth.
Owing to the number of video element has the upper limit of preset value, therefore, the video element of the image collected can't go down in undying increase, when arriving preset value, can screen video element;And when screening video element according to default regulation rule, the time interval of the video element after screening is the integral multiple of the time interval of the video element before screening;The minimum twice of integral multiple, say, that time interval becomes twice as, then the number of the video element after screening is exactly 1/2nd before screening.After screening, gather video element and do not stop, may proceed to video element is acquired, video element after screening may proceed to increase, and now the quantity of video element is not the most preset value, but the number that the half of preset value, i.e. screening are the video elements by originally reaching preset value reduces half;The half video element screened out not is arbitrarily screening, it should be ensured that the time interval between each video element is equal.Here time interval refers to the interval between absolute time, and such as first video element is to gather in the t1 moment, and second video element is to gather in the t2 moment, and video element so carries out a sequence;If the t20 video element has just reached the preset value of the number of video element, so, video element is screened half then include: by t1, t3, t5 ... the video elements such as t19 screen out, or by t2, t4, t6 ... the video elements such as t20 screen out, the time interval between remaining adjacent video unit is all equal.
The meaning of circulation is, when the number of video element reaches preset value, all screens it, is then further continued for carrying out image acquisition, and the image procossing of collection is become video element;The number of the video element after screening all can reduce each time, and then, the number of video element again can be along with gathering image, being that video element increases by image procossing.This circulation step is not on the premise of presetting photography time, and user does not has transmission instruction actively yet, would not terminate voluntarily, and the collection image that can continue also is processed into video codes, screens when the number of video codes reaches preset value.
Screening each time, the time interval between each adjacent video element will change, and says it is to become big accurately.Time interval become big on the premise of, in other words, non-be acquired image first time, gathering image can have a two ways:
One, is to continue with according to the acquisition interval gathering image before to gather image.Like this, directly can start screening from the image collected, or the video element after processing starts screening;Or with above-mentioned example, the moment of the video element after screening is respectively t1, t3, t5 ... t19, and gather image and remain from t21, t22, t23 ... continuation, in order to keep concordance, can screen from the image gathered, i.e. from t21, t22, t23 ... in filter out t21, t23, t25 ... wait image, then encode;Or, it is also possible to screening the video element after processing, i.e. wouldn't screen the image collected, then screen the video element after processing, the moment of screening is consistent with screening image, and both schemes are all feasible.Adopt in this way, can ensure that the omission not having video element when screening, time interval is inconsistent because of the reason of screening not to have video element, but this mode compares waste resource, particularly after having carried out repeatedly screening, the time interval of the existing acquisition time between adjacent video element is the biggest, if the time interval before continuing according to screening gathers image, can gather too much useless image unavoidably.
They are two years old, it is simply that continuing to gather image according to the time interval between the adjacent video element after front primary screening, the time interval of the setting i.e. gathering video element strains mutually greatly, so can save system resource;Continue above example, if now screening after video element be t1, t3, t5 ... t19, then, gather image time interval then can become before twice, the image gathered can be just t21, t23, t25 ... the image in these moment, then processes the image in these moment;In other words, the time interval gathering image is i.e. changed after screening so that it is consistent with the time interval between the adjacent video unit after screening.The benefit of this mode maximum saves system resource exactly, and consistent can the avoiding of time interval between adjacent video element after the time interval of collection image and screening gathers the most useless image, causes efficiency low.
Owing to the screening process in the present embodiment is not limited to once, say that it does not has number of times and limits accurately, as long as the quantity of video element reaches preset value and can be carried out screening.Continue example above, if the video element after screening is t1, t3, t5 for the first time ... t19, when video element reaches preset value 20 again, i.e. t1, t3, t5 ... t39, the most just can again these video elements be screened, video element after screening can be t1, t5, t9 ... t37, is then further continued for gathering image, and continuing the image procossing collected is video element.
Coding involved in the present embodiment and decoding include but not limited to H.264 encryption algorithm and H.264 decoding algorithm, and owing to employing multiplex coding device and decoder, withouting waiting for just can being immediately generated video when user stops shooting, Consumer's Experience is the best.
Present embodiments provide a kind of video capture method, it is acquired image, the image formation video element, the screening video element that process collection by circulation, finally video element encoding and decoding is become video file, so by the reasonable restriction of the size to shooting file, can ensure that again simultaneously and shoot duration arbitrarily, shooting will not be have impact on because of the restriction of the size of file system, allow users to shoot abundant content, improve Consumer's Experience, saved the resource of file system.
Sixth embodiment
The concrete video capture method flow diagram provided for sixth embodiment of the invention with reference to Fig. 8, Fig. 8.
S501, collection image;
Gathering image is the image needed for periodically gathering at set time intervals.
S502, the image procossing collected is become video element;
In the present embodiment, video element includes key frame or compression data, and key frame is by by picture coding, and compression data are by by compression of images;Encryption algorithm includes but not limited to that H.264, compression algorithm includes but not limited to jpeg.
S503, judge whether the quantity of video element reaches preset value;If so, S504 is forwarded to, if it is not, forward S505 to.
On the opportunity judged, can be that the quantity of video element has just reached preset value, or the quantity of video element is just beyond preset value.
S504, video element is screened, the time interval set is adjusted;
The number of video element, when reaching preset value, i.e. needs to screen these video elements;Screening is to screen, according to default regulation rule, the video element gathered, and is adjusted the time interval set.
S505, judge user the need of generate video;If so, S506 is forwarded to;If it is not, forward S501 to;
Now the number of video element is not up to preset value, is in normal scope;The most then according to the setting of user, determine whether to generate video file.
S506, generation video file.
Video element is decoded coding, generates video file.
Present embodiments provide a kind of video capture method, it is acquired image, the image formation video element, the screening video element that process collection by circulation, finally video element encoding and decoding is become video file, so by the reasonable restriction of the size to shooting file, can ensure that again simultaneously and shoot duration arbitrarily, shooting will not be have impact on because of the restriction of the size of file system, allow users to shoot abundant content, improve Consumer's Experience, saved the resource of file system.
It should be noted that, in this article, term " includes ", " comprising " or its any other variant are intended to comprising of nonexcludability, so that include that the process of a series of key element, method, article or device not only include those key elements, but also include other key elements being not expressly set out, or also include the key element intrinsic for this process, method, article or device.In the case of there is no more restriction, statement " including ... " key element limited, it is not excluded that there is also other identical element in including the process of this key element, method, article or device.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art is it can be understood that can add the mode of required general hardware platform by software to above-described embodiment method and realize, can certainly pass through hardware, but a lot of in the case of the former is more preferably embodiment.Based on such understanding, the part that prior art is contributed by technical scheme the most in other words can embody with the form of software product, this computer software product is stored in a storage medium (such as ROM/RAM, magnetic disc, CD), including some instructions with so that a station terminal equipment (can be mobile phone, computer, server, air-conditioner, or the network equipment etc.) perform the method described in each embodiment of the present invention.
Above in conjunction with accompanying drawing, embodiments of the invention are described; but the invention is not limited in above-mentioned detailed description of the invention; above-mentioned detailed description of the invention is only schematically; rather than it is restrictive; those of ordinary skill in the art is under the enlightenment of the present invention; in the case of without departing from present inventive concept and scope of the claimed protection, it may also be made that a lot of form, within these belong to the protection of the present invention.

Claims (10)

1. a video capture device, it is characterised in that including:
Command reception module, is used for receiving video record sign on;
Image processing module, is carried out for circulation: gather the video of subject at set time intervals Unit;When the number of described video element reaches preset value, regard described in gathering according to default regulation rule Frequently unit screens, and is adjusted the time interval of described setting;
Video generation module, for according to video record END instruction, processes the video element after described screening and obtains To video file.
2. video capture device as claimed in claim 1, it is characterised in that described default regulation rule bag Include: the time interval of the video element after screening is the integral multiple of the time interval of the video element before screening, will sieve The time interval of the video element after choosing is as the time interval of the described setting after adjusting;Wherein, described integer Again not less than twice.
3. video capture device as claimed in claim 1 or 2, it is characterised in that described when video element When data reach preset value, according to default regulation rule, the video element gathered is screened, to set Time interval is adjusted including: after being adjusted the time interval of described setting according to default regulation rule, Again the described video element gathered is screened.
4. video capture device as claimed in claim 1 or 2, it is characterised in that described video generates mould Block is additionally operable to, and the time interval of the described setting after adjusting for the last time is corresponding with described video file to be preserved.
5. a mobile terminal, it is characterised in that include that the video as described in any one of claim 1-4 is clapped Take the photograph device.
6. a video capture method, it is characterised in that including:
Receive video record sign on;
Circulation is carried out: gather the video element of subject at set time intervals;When described video element When number reaches preset value, according to default regulation rule, the described video element gathered is screened, to institute The time interval stating setting is adjusted;
According to video record END instruction, process the video element after described screening and obtain video file.
7. video capture method as claimed in claim 6, it is characterised in that described default regulation rule bag Include: the time interval of the video element after screening is the integral multiple of the time interval of the video element before screening, will sieve The time interval of the video element after choosing is as the time interval of the described setting after adjusting;Wherein, described integer Again not less than twice.
Video capture method the most as claimed in claims 6 or 7, it is characterised in that described when video element When data reach preset value, according to default regulation rule, the video element gathered is screened, to set Time interval is adjusted including: after being adjusted the time interval of described setting according to default regulation rule, Again the described video element gathered is screened.
Video capture method the most as claimed in claims 6 or 7, it is characterised in that described method also includes: The time interval of the described setting after choosing layer for the last time is corresponding with described video file to be preserved.
Video capture method the most as claimed in claims 6 or 7, it is characterised in that according to default adjustment The video element gathered is screened by rule, is adjusted including to the time interval set: at interval of one The individual video element gathered deletes a video element, and the time interval of described setting is doubled.
CN201610370211.3A 2016-05-30 2016-05-30 Video shooting apparatus and method, and mobile terminal Pending CN105979138A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610370211.3A CN105979138A (en) 2016-05-30 2016-05-30 Video shooting apparatus and method, and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610370211.3A CN105979138A (en) 2016-05-30 2016-05-30 Video shooting apparatus and method, and mobile terminal

Publications (1)

Publication Number Publication Date
CN105979138A true CN105979138A (en) 2016-09-28

Family

ID=57011362

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610370211.3A Pending CN105979138A (en) 2016-05-30 2016-05-30 Video shooting apparatus and method, and mobile terminal

Country Status (1)

Country Link
CN (1) CN105979138A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106303290A (en) * 2016-09-29 2017-01-04 努比亚技术有限公司 A kind of terminal and the method obtaining video
CN106791136A (en) * 2016-12-29 2017-05-31 努比亚技术有限公司 A kind of video record processing method, device and terminal
CN107257436A (en) * 2017-07-10 2017-10-17 福建网龙计算机网络信息技术有限公司 Calibrated horizontal photographic method, storage medium
CN111565321A (en) * 2020-04-28 2020-08-21 聚好看科技股份有限公司 Terminal device, server and method for screen recording

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6870573B2 (en) * 1999-01-22 2005-03-22 Intel Corporation Method and apparatus for dynamically generating a visual program summary from a multi-source video feed
CN101316292A (en) * 2007-05-29 2008-12-03 联发科技股份有限公司 Electronic apparatus of playing and editing multimedia data
CN101674444A (en) * 2009-10-15 2010-03-17 杭州华三通信技术有限公司 Storage method of video data, system and encoder thereof
CN101931775A (en) * 2010-09-01 2010-12-29 中兴通讯股份有限公司 Video recording method and device
CN102523410A (en) * 2011-12-28 2012-06-27 创新科存储技术(深圳)有限公司 Method for writing video data and video data storage equipment
US20120257071A1 (en) * 2011-04-06 2012-10-11 Prentice Wayne E Digital camera having variable duration burst mode
CN103229466A (en) * 2012-12-27 2013-07-31 华为技术有限公司 Data packet transmission method and device
CN103905708A (en) * 2012-12-24 2014-07-02 联想(北京)有限公司 Shooting frame rate adjusting method and electronic device
CN104023192A (en) * 2014-06-27 2014-09-03 深圳市中兴移动通信有限公司 Method and device for recording video
CN105282474A (en) * 2014-05-30 2016-01-27 苹果公司 System and methods for time lapse video acquisition and compression
CN105430480A (en) * 2015-11-13 2016-03-23 Tcl集团股份有限公司 Method and system for storing video data
CN105828180A (en) * 2016-03-31 2016-08-03 努比亚技术有限公司 Apparatus and method for caching video frames

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6870573B2 (en) * 1999-01-22 2005-03-22 Intel Corporation Method and apparatus for dynamically generating a visual program summary from a multi-source video feed
CN101316292A (en) * 2007-05-29 2008-12-03 联发科技股份有限公司 Electronic apparatus of playing and editing multimedia data
CN101674444A (en) * 2009-10-15 2010-03-17 杭州华三通信技术有限公司 Storage method of video data, system and encoder thereof
CN101931775A (en) * 2010-09-01 2010-12-29 中兴通讯股份有限公司 Video recording method and device
US20120257071A1 (en) * 2011-04-06 2012-10-11 Prentice Wayne E Digital camera having variable duration burst mode
CN102523410A (en) * 2011-12-28 2012-06-27 创新科存储技术(深圳)有限公司 Method for writing video data and video data storage equipment
CN103905708A (en) * 2012-12-24 2014-07-02 联想(北京)有限公司 Shooting frame rate adjusting method and electronic device
CN103229466A (en) * 2012-12-27 2013-07-31 华为技术有限公司 Data packet transmission method and device
CN105282474A (en) * 2014-05-30 2016-01-27 苹果公司 System and methods for time lapse video acquisition and compression
CN104023192A (en) * 2014-06-27 2014-09-03 深圳市中兴移动通信有限公司 Method and device for recording video
CN105430480A (en) * 2015-11-13 2016-03-23 Tcl集团股份有限公司 Method and system for storing video data
CN105828180A (en) * 2016-03-31 2016-08-03 努比亚技术有限公司 Apparatus and method for caching video frames

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
龚健雅主编: "《对地观测数据处理与分析研究进展》", 31 December 2007 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106303290A (en) * 2016-09-29 2017-01-04 努比亚技术有限公司 A kind of terminal and the method obtaining video
CN106303290B (en) * 2016-09-29 2019-10-08 努比亚技术有限公司 A kind of terminal and the method for obtaining video
CN106791136A (en) * 2016-12-29 2017-05-31 努比亚技术有限公司 A kind of video record processing method, device and terminal
CN107257436A (en) * 2017-07-10 2017-10-17 福建网龙计算机网络信息技术有限公司 Calibrated horizontal photographic method, storage medium
CN111565321A (en) * 2020-04-28 2020-08-21 聚好看科技股份有限公司 Terminal device, server and method for screen recording

Similar Documents

Publication Publication Date Title
CN110267036B (en) Filtering method and device
CN109670427B (en) Image information processing method and device and storage medium
KR100726258B1 (en) Method for producing digital images using photographic files and phonetic files in a mobile device
CN105516423A (en) Mobile terminal, data transmission system and mobile terminal shoot method
CN106603917A (en) Shooting device and method
JP2018505571A (en) Image compression method / apparatus and server
CN105430295A (en) Device and method for image processing
CN105979138A (en) Video shooting apparatus and method, and mobile terminal
CN105472240B (en) Image-pickup method and device
CN105245777A (en) Method and device for generating video image
CN106028098A (en) Video recording method, device, and terminal
CN105100611A (en) Shooting mode switching system and method
CN104811554A (en) Method and terminal for switching camera modes
CN105791701A (en) Image photographing device and image photographing method
CN106385579A (en) Camera detection device, method and multi-camera terminal
CN1266966C (en) Apparatus and method for transmitting display data in mobile communication terminal with camera
CN104935810A (en) Photographing guiding method and device
EP3886447A1 (en) Video enhancement control method and apparatus, electronic device, and storage medium
CN105323527A (en) Systems and methods for exposure metering for timelapse video
CN105430393B (en) Picture processing method, picture processing device, picture processing platform and storage medium
EP3985972A1 (en) Machine learning-based artifact removal method and apparatus, and machine learning-based artifact removal model training method and apparatus
CN105357444A (en) Focusing method and device
CN108012073A (en) A kind of method and device for realizing pan-shot
CN104967772B (en) Photographic method and device
CN106227868A (en) The classifying method of video file and device

Legal Events

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

Application publication date: 20160928

RJ01 Rejection of invention patent application after publication