CN105049916B - A kind of video recording method and device - Google Patents
A kind of video recording method and device Download PDFInfo
- Publication number
- CN105049916B CN105049916B CN201510374399.4A CN201510374399A CN105049916B CN 105049916 B CN105049916 B CN 105049916B CN 201510374399 A CN201510374399 A CN 201510374399A CN 105049916 B CN105049916 B CN 105049916B
- Authority
- CN
- China
- Prior art keywords
- video
- interface
- image data
- preview interface
- current display
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/433—Content storage operation, e.g. storage operation in response to a pause request, caching operations
- H04N21/4334—Recording operations
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
- H04N21/4104—Peripherals receiving signals from specially adapted client devices
- H04N21/4126—The peripheral being portable, e.g. PDAs or mobile phones
Abstract
The present invention relates to intelligent terminal technical field more particularly to a kind of video recording methods and device.A kind of video recording method of the present invention includes: to play video in the first preview interface;Whether the first preview interface described in real-time detection is current display interface, if it is, recording to the video played in the current display interface;If it is not, then the journey that opens new routes records the video played in first preview interface in the new thread.The present invention is when the interface for detecting other application shelters from the broadcast interface for being intended to recorded video, open new routes journey, the video to be recorded being blocked is recorded with the new thread, so that allowing to operate other application, the recording result without influencing whether video during video record.
Description
Technical field
The present invention relates to intelligent terminal technical field more particularly to a kind of video recording methods and device.
Background technique
The progress of science and technology, so that mobile terminal enters the every aspect of people's life.Mobile terminal is widely deployed
In terms of the daily office of people, amusement, leisure.
Because of the portability of mobile terminal, more and more users like watching some live videos with mobile terminal,
It is not limited by time and location with mobile terminal viewing live video, as long as there is the mobile terminal of a network-connectable, as long as
The net cast time is arrived, user can watch live video.Wherein many users are when watching live video, prefer by
The live video is recorded to facilitate and share the live video with relatives and friends again, and does not have to specially go to look for live streaming view again
The resource of frequency is re-downloaded.
Currently, terminal for the recording of the video played on it, is to obtain continuous picture using screen shot mostly,
The mode of encoding and decoding synthetic video is carried out to continuous picture again.The mode of this recorded video, does not allow in recording process
There is any other operation, recording picture cannot be blocked by other interfaces, be responsible for that unnecessary image information can be recorded, cause to record
The desired video of the video non-user of system.
Summary of the invention
It is a primary object of the present invention to propose a kind of video recording method and device, process of the present invention in video record
In allow to carry out operation other application, and other application does not influence the recording of video, and user can still be recorded to desired video.
The technical scheme to solve the above technical problems is that
A kind of video recording method, comprising:
Video is played in the first preview interface;
Whether the first preview interface described in real-time detection is current display interface, if it is, to current display circle
It is recorded in face;If it is not, then the journey that opens new routes, in the new thread, to the video played in first preview interface
It is recorded.
It is further, described that the current display interface is recorded, comprising:
Detect the gesture motion in the current display interface;
The image data and voice data of the current display interface are obtained respectively;
The gesture motion is rendered into described image data to generate final image data;
The final image data are synchronized with the voice data and are matched to generate video file.
Further, the gesture motion includes: generation moment, starting click location and the sliding trace of gesture.
Further, described to open up new thread, in the new thread, to the view played in first preview interface
Frequency is recorded, comprising:
Open new routes journey;
Obtain the image data and voice data of first preview interface respectively in the new thread;
In the new thread, the image data of first preview interface and voice data are synchronized into matching with life
At video file.
Further, the image data for obtaining first preview interface respectively in the new thread and sound number
According to, specifically:
The image data stream of the first preview interface output is obtained, it is right by described image data flow cache into memory
Described image data flow is encoded according to time and frame per second to obtain the image data of the first preview interface;
The audio data stream for obtaining the first preview interface output, the audio data stream is cached in memory, right
The audio data stream is encoded according to time and frame per second to obtain the voice data of the first preview interface.
A kind of device for video record, comprising:
Video playback unit, for playing video in the first preview interface;
Whether detection unit is current display interface for the first preview interface described in real-time detection;
Current display interface recording elements, for detecting that first preview interface is current aobvious when the detection unit
When showing interface, then the current display interface is recorded;
New thread recording elements, for detecting that first preview interface is not current display circle when the detection unit
When face, then open new routes journey, in the new thread, records to the video played in first preview interface.
Further, the current display interface recording elements, comprising:
Gesture motion detecting unit, for detecting the gesture motion in the current display interface;
The image data acquisition unit of current display interface, for obtaining the image data of the current display interface;
The voice data acquiring unit of current display interface, for obtaining the voice data of the current display interface;
Final image data generating unit, the gesture motion for detecting the gesture motion detecting unit are rendered into
To generate final image data in the image data that the image data acquisition unit of the current display interface is got;
Video file generation unit, for working as the final image data of the final image data generating unit with described
The voice data that the voice data acquiring unit of preceding display interface is got synchronizes matching to generate video file.
Further, the gesture motion includes: generation moment, starting click location and the sliding trace of gesture.
Further, the new thread recording elements, comprising:
New thread opens up unit, for the journey that opens new routes;
New thread image data acquisition unit, for obtaining the picture number of first preview interface in the new thread
According to;
New thread voice data acquiring unit, for obtaining the sound number of first preview interface in the new thread
According to;
New thread video file generation unit is used in the new thread, by the new thread image data acquisition list
The first preview interface that the image data and new thread voice data acquiring unit for the first preview interface that member is got are got
Voice data synchronize matching to generate video file.
Further, the new thread image data acquisition unit is specifically used for obtaining the first preview interface output
Image data stream described image data flow is carried out according to time and frame per second by described image data flow cache into memory
Coding is to obtain the image data of the first preview interface;
The new thread voice data acquiring unit, specifically for obtaining the voice data of the first preview interface output
Stream, the audio data stream is cached in memory, is encoded to the audio data stream according to time and frame per second to obtain
The voice data of first preview interface.
A kind of video recording method of the present invention includes: to play video in the first preview interface;Real-time detection institute
State whether the first preview interface is current display interface, if it is, carrying out to the video played in the current display interface
It records;If it is not, then the journey that opens new routes records the video played in first preview interface in the new thread
System.When the interface for detecting other application shelters from the broadcast interface for being intended to recorded video, open new routes the present invention journey, with this
New thread records the video to be recorded being blocked, so that allow to operate other application during video record, without
Influence whether the recording result of video.
Detailed description of the invention
The hardware structural diagram of Fig. 1 mobile terminal of each embodiment to realize the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is a kind of flow chart of video recording method embodiment one of the present invention;
Fig. 4 is a kind of flow chart of video recording method embodiment two of the present invention;
Fig. 5 is a kind of flow chart of video recording method embodiment three of the present invention;
Fig. 6 is a kind of block diagram of the Installation practice four for video record of the present invention;
Fig. 7 is a kind of block diagram of the Installation practice five for video record of the present invention;
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Mobile terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, intelligence
Phone, laptop, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet computer), PMP (portable more matchmakers
Body player), the fixed terminal of the mobile terminal of navigation device etc. and such as number TV, desktop computer etc..In the following,
Assuming that terminal is mobile terminal.However, it will be understood by those skilled in the art that in addition to be used in particular for mobile purpose element it
Outside, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Fig. 1 to realize the present invention the mobile terminal of each embodiment hardware configuration signal.
Mobile terminal 100 may include wireless communication unit 110, A/V (audio/video) input unit 120, user's input
Unit 130, sensing unit 140, output unit 150, memory 160, interface unit 170, controller 180 and power supply unit 190
Etc..Fig. 1 shows the mobile terminal with various assemblies, it should be understood that being not required for implementing all groups shown
Part.More or fewer components can alternatively be implemented.The element of mobile terminal will be discussed in more detail below.
Wireless communication unit 110 generally includes one or more components, allows mobile terminal 100 and wireless communication system
Or the radio communication between network.For example, wireless communication unit may include broadcasting reception module 111, mobile communication module
112, at least one of wireless Internet module 113, short range communication module 114 and location information module 115.
Broadcasting reception module 111 receives broadcast singal and/or broadcast from external broadcast management server via broadcast channel
Relevant information.Broadcast channel may include satellite channel and/or terrestrial channel.Broadcast management server, which can be, to be generated and sent
The broadcast singal and/or broadcast related information generated before the server or reception of broadcast singal and/or broadcast related information
And send it to the server of terminal.Broadcast singal may include TV broadcast singal, radio signals, data broadcasting
Signal etc..Moreover, broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast phase
Closing information can also provide via mobile communications network, and in this case, broadcast related information can be by mobile communication mould
Block 112 receives.Broadcast singal can exist in a variety of manners, for example, it can be with the electronics of digital multimedia broadcasting (DMB)
Program guide (EPG), digital video broadcast-handheld (DVB-H) electronic service guidebooks (ESG) etc. form and exist.Broadcast
Receiving module 111 can receive signal broadcast by using various types of broadcast systems.Particularly, broadcasting reception module 111
It can be wide by using such as multimedia broadcasting-ground (DMB-T), digital multimedia broadcasting-satellite (DMB-S), digital video
It broadcasts-holds (DVB-H), forward link media (MediaFLO@) Radio Data System, received terrestrial digital broadcasting integrated service
(ISDB-T) etc. digit broadcasting system receives digital broadcasting.Broadcasting reception module 111, which may be constructed such that, to be adapted to provide for extensively
Broadcast the various broadcast systems and above-mentioned digit broadcasting system of signal.Via the received broadcast singal of broadcasting reception module 111 and/
Or broadcast related information can store in memory 160 (or other types of storage medium).
Mobile communication module 112 sends radio signals to base station (for example, access point, node B etc.), exterior terminal
And at least one of server and/or receive from it radio signal.Such radio signal may include that voice is logical
Talk about signal, video calling signal or according to text and/or Multimedia Message transmission and/or received various types of data.
The Wi-Fi (Wireless Internet Access) of the support mobile terminal of wireless Internet module 113.The module can be internally or externally
It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved in the module may include WLAN (Wireless LAN) (Wi-Fi), Wibro
(WiMAX), Wimax (worldwide interoperability for microwave accesses), HSDPA (high-speed downlink packet access) etc..
Short range communication module 114 is the module for supporting short range communication.Some examples of short-range communication technology include indigo plant
ToothTM, radio frequency identification (RFID), Infrared Data Association (IrDA), ultra wide band (UWB), purple honeybeeTMEtc..
Location information module 115 is the module for checking or obtaining the location information of mobile terminal.Location information module
Typical case be GPS (global positioning system).According to current technology, GPS module 115, which calculates, comes from three or more satellites
Range information and correct time information and the Information application triangulation for calculating, thus according to longitude, latitude
Highly accurately calculate three-dimensional current location information.Currently, it is defended for the method for calculating position and temporal information using three
Star and the error that calculated position and temporal information are corrected by using an other satellite.In addition, GPS module 115
It can be by Continuous plus current location information in real time come calculating speed information.
A/V input unit 120 is for receiving audio or video signal.A/V input unit 120 may include 121 He of camera
Microphone 1220, camera 121 is to the static map obtained in video acquisition mode or image capture mode by image capture apparatus
The image data of piece or video is handled.Treated, and picture frame may be displayed on display module 151.At camera 121
Picture frame after reason can store in memory 160 (or other storage mediums) or carry out via wireless communication unit 110
It sends, two or more cameras 1210 can be provided according to the construction of mobile terminal.Microphone 122 can be in telephone relation mould
Sound (audio data) is received via microphone in formula, logging mode, speech recognition mode etc. operational mode, and can be incited somebody to action
Such acoustic processing is audio data.Audio that treated (voice) data can be converted in the case where telephone calling model
For the format output that can be sent to mobile communication base station via mobile communication module 112.Various types can be implemented in microphone 122
Noise eliminate (or inhibit) algorithm with eliminate noise that (or inhibition) generates during sending and receiving audio signal or
Person's interference.
The order that user input unit 130 can be inputted according to user generates key input data to control each of mobile terminal
Kind operation.User input unit 130 allows user to input various types of information, and may include keyboard, metal dome, touch
Plate (for example, the sensitive component of detection due to the variation of resistance, pressure, capacitor etc. caused by being contacted), idler wheel, rocking bar etc.
Deng.Particularly, when touch tablet is superimposed upon in the form of layer on display module 151, touch screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 100, (for example, mobile terminal 100 opens or closes shape
State), the position of mobile terminal 100, user is for the presence or absence of contact (that is, touch input) of mobile terminal 100, mobile terminal
100 orientation, the acceleration or deceleration movement of mobile terminal 100 and direction etc., and generate for controlling mobile terminal 100
The order of operation or signal.For example, sensing unit 140 can sense when mobile terminal 100 is embodied as sliding-type mobile phone
The sliding-type phone is to open or close.In addition, sensing unit 140 be able to detect power supply unit 190 whether provide electric power or
Whether person's interface unit 170 couples with external device (ED).Sensing unit 140 may include that proximity sensor 1410 will combine below
Touch screen is described this.
Interface unit 170 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example,
External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing
Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Identification module can be storage and use each of mobile terminal 100 for verifying user
It plants information and may include subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM)
Etc..In addition, the device (hereinafter referred to as " identification device ") with identification module can take the form of smart card, therefore, know
Other device can be connect via port or other attachment devices with mobile terminal 100.Interface unit 170, which can be used for receiving, to be come from
The input (for example, data information, electric power etc.) of external device (ED) and the input received is transferred in mobile terminal 100
One or more elements can be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 100 is connect with external base, interface unit 170 may be used as allowing will be electric by it
Power, which is provided from pedestal to the path or may be used as of mobile terminal 100, allows the various command signals inputted from pedestal to pass through it
It is transferred to the path of mobile terminal.The various command signals or electric power inputted from pedestal, which may be used as mobile terminal for identification, is
The no signal being accurately fitted on pedestal.Output unit 150 is configured to provide with vision, audio and/or tactile manner defeated
Signal (for example, audio signal, vision signal, alarm signal, vibration signal etc.) out.Output unit 150 may include display
Module 151, audio output module 152, alarm modules 153 etc..
Display module 151 may be displayed on the information handled in mobile terminal 100.For example, when mobile terminal 100 is in electricity
When talking about call mode, display module 151 can show and converse or other communicate (for example, text messaging, multimedia file
Downloading etc.) relevant user interface (UI) or graphic user interface (GUI).When mobile terminal 100 is in video calling mode
Or when image capture mode, display module 151 can show captured image and/or received image, show video or figure
Picture and the UI or GUI of correlation function etc..
Meanwhile when display module 151 and touch tablet in the form of layer it is superposed on one another to form touch screen when, display module
151 may be used as input unit and output device.Display module 151 may include liquid crystal display (LCD), thin film transistor (TFT)
In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least
It is a kind of.Some in these displays may be constructed such that transparence to allow user to watch from outside, this is properly termed as transparent
Display, typical transparent display can be, for example, TOLED (transparent organic light emitting diode) display etc..According to specific
Desired embodiment, mobile terminal 100 may include two or more display modules (or other display devices), for example, moving
Dynamic terminal may include external display module (not shown) and internal display module (not shown).Touch screen can be used for detecting touch
Input pressure and touch input position and touch input area.
Audio output module 152 can mobile terminal be in call signal reception pattern, call mode, logging mode,
It is when under the isotypes such as speech recognition mode, broadcast reception mode, wireless communication unit 110 is received or in memory 160
The audio data transducing audio signal of middle storage and to export be sound.Moreover, audio output module 152 can provide and movement
The relevant audio output of specific function (for example, call signal receives sound, message sink sound etc.) that terminal 100 executes.
Audio output module 152 may include loudspeaker, buzzer etc..
Alarm modules 153 can provide output notifying event to mobile terminal 100.Typical event can be with
Including calling reception, message sink, key signals input, touch input etc..Other than audio or video output, alarm modules
153 can provide output in different ways with the generation of notification event.For example, alarm modules 153 can be in the form of vibration
Output is provided, when receiving calling, message or some other entrance communications (incomingcommunication), alarm mould
Block 153 can provide tactile output (that is, vibration) to notify to user.By providing such tactile output, even if
When the mobile phone of user is in the pocket of user, user also can recognize that the generation of various events.Alarm modules 153
The output of the generation of notification event can be provided via display module 151 or audio output module 152.
Memory 160 can store the software program etc. of the processing and control operation that are executed by controller 180, Huo Zheke
Temporarily to store oneself data (for example, telephone directory, message, still image, video etc.) through exporting or will export.And
And memory 160 can store about the vibrations of various modes and audio signal exported when touching and being applied to touch screen
Data.
Memory 160 may include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, more
Media card, card-type memory (for example, SD or DX memory etc.), random access storage device (RAM), static random-access storage
Device (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read only memory
(PROM), magnetic storage, disk, CD etc..Moreover, mobile terminal 100 can execute memory with by network connection
The network storage device of 160 store function cooperates.
The overall operation of the usually control mobile terminal of controller 180.For example, controller 180 executes and voice communication, data
Communication, video calling etc. relevant control and processing.In addition, controller 180 may include for reproducing (or playback) more matchmakers
The multi-media module 1810 of volume data, multi-media module 1810 can construct in controller 180, or can be structured as and control
Device 180 processed separates.Controller 180 can be with execution pattern identifying processing, by the handwriting input executed on the touchscreen or figure
Piece draws input and is identified as character or image.
Power supply unit 190 receives external power or internal power under the control of controller 180 and provides operation each member
Electric power appropriate needed for part and component.
Various embodiments described herein can be to use the calculating of such as computer software, hardware or any combination thereof
Machine readable medium is implemented.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), scene can
Programming gate array (FPGA), controller, microcontroller, microprocessor, is designed to execute function described herein processor
At least one of electronic unit is implemented, and in some cases, such embodiment can be implemented in controller 180.
For software implementation, the embodiment of such as process or function can with allow to execute the individual of at least one functions or operations
Software module is implemented.Software code can by the software application (or program) write with any programming language appropriate Lai
Implement, software code can store in memory 160 and be executed by controller 180.
So far, oneself is through describing mobile terminal according to its function.In the following, for the sake of brevity, will description such as folded form,
Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc., which is used as, to be shown
Example.Therefore, the present invention can be applied to any kind of mobile terminal, and be not limited to slide type mobile terminal.
Mobile terminal 100 as shown in Figure 1 may be constructed such that using via frame or grouping send data it is all if any
Line and wireless communication system and satellite-based communication system operate.
Referring now to Fig. 2 description communication system that wherein mobile terminal according to the present invention can operate.
Different air interface and/or physical layer can be used in such communication system.For example, used by communication system
Air interface includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) and universal mobile communications system
System (UMTS) (particularly, long term evolution (LTE)), global system for mobile communications (GSM) etc..As non-limiting example, under
The description in face is related to cdma communication system, but such introduction is equally applicable to other types of system.
With reference to Fig. 2, cdma wireless communication system may include multiple mobile terminals 100, multiple base stations (BS) 270, base station
Controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is configured to and Public Switched Telephony Network (PSTN)
290 form interface.MSC280 is also structured to form interface with the BSC275 that can be couple to base station 270 via back haul link.
Back haul link can be constructed according to any in several known interfaces, and the interface includes such as E1/T1, ATM, IP,
PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that system may include multiple BSC2750 as shown in Figure 2.
Each BS270 can service one or more subregions (or region), by multidirectional antenna or the day of direction specific direction
Each subregion of line covering is radially far from BS270.Alternatively, each subregion can be by two or more for diversity reception
Antenna covering.Each BS270, which may be constructed such that, supports multiple frequency distribution, and the distribution of each frequency has specific frequency spectrum
(for example, 1.25MHz, 5MHz etc.).
What subregion and frequency were distributed, which intersects, can be referred to as CDMA Channel.BS270 can also be referred to as base station transceiver
System (BTS) or other equivalent terms.In this case, term " base station " can be used for broadly indicating single
BSC275 and at least one BS270.Base station can also be referred to as " cellular station ".Alternatively, each subregion of specific BS270 can be claimed
For multiple cellular stations.
As shown in Figure 2, broadcast singal is sent to the mobile terminal operated in system by broadcsting transmitter (BT) 295
100.Broadcasting reception module 111 as shown in Figure 1 is arranged at mobile terminal 100 to receive the broadcast sent by BT295
Signal.In fig. 2 it is shown that several global positioning system (GPS) satellites 300.The help of satellite 300 positions multiple mobile terminals
At least one of 100.
In Fig. 2, multiple satellites 300 are depicted, it is understood that, it is useful to can use any number of satellite acquisition
Location information.GPS module 115 as shown in Figure 1 is generally configured to cooperate with satellite 300 to obtain desired positioning and believe
Breath.It substitutes GPS tracking technique or except GPS tracking technique, the other of the position that can track mobile terminal can be used
Technology.In addition, at least one 300 property of can choose of GPS satellite or extraly processing satellite dmb transmission.
As a typical operation of wireless communication system, BS270 receives the reverse link from various mobile terminals 100
Signal.Mobile terminal 100 usually participates in call, information receiving and transmitting and other types of communication.Certain base station 270 is received each anti-
It is handled in specific BS270 to link signal.The data of acquisition are forwarded to relevant BSC275.BSC provides call
The mobile management function of resource allocation and the coordination including the soft switching process between BS270.The number that BSC275 will also be received
According to MSC280 is routed to, the additional route service for forming interface with PSTN290 is provided.Similarly, PSTN290 with
MSC280 forms interface, and MSC and BSC275 form interface, and BSC275 controls BS270 correspondingly with by forward link signals
It is sent to mobile terminal 100.
Based on above-mentioned mobile terminal hardware configuration and communication system, each embodiment of the method for the present invention is proposed.
Touch operation method of the invention, especially suitable for narrow frame or Rimless mobile terminal, first by mobile terminal
Touch Zone be divided into special subregion and common subregion same as the prior art, and distribute an input for each subregion and set
It is standby;When receiving touch control operation, judge which subregion the touch control operation occurs in, when occurring in special subregion, then
Touch control operation is reported by input equipment corresponding to special subregion, when occurring in common subregion, then passes through common subregion
Corresponding input equipment reports touch control operation;Finally, the touching that mobile terminal reports input equipment corresponding to special subregion
Control operation carries out specially treated, the touch control operation that input equipment corresponding to common subregion is reported as the prior art, into
The normal processing of row.
It is described to touch control operation carry out specially treated can be understood as to touch control operation carry out it is unconventional processing or it is improper
Processing such as ignores the touch control operation, generates special efficacy or customized other processing modes according to the touch control operation.Citing and
Speech, unconventional processing or improper processing, may further do following understanding: when the user clicks when a certain application icon, normally
Processing or conventional treatment are to start the application, and improper processing or unconventional processing are then not to start the application.
It is described in detail below by way of specific embodiment.
Embodiment one
It is a kind of flow chart of video recording method embodiment one of the present invention referring to Fig. 3, Fig. 3.
A kind of video recording method, comprising:
S101, video is played in the first preview interface.
Whether the first preview interface described in S102, real-time detection is current display interface, if it is, executing S103;It is no
Then, S104 is executed.
In step S102, whether the first preview interface that real-time detection plays video is current display interface, i.e. detection is intended to
The broadcast interface of the video of recording by the interface of other application whether there is or not being blocked, if do not blocked, directly to current display
The video played in interface is recorded;If there is the broadcast interface of the video to be recorded has been blocked at the interface of other application, then
Open new routes journey, records the video to be recorded that has been blocked with the new thread;Reached with this: allow during video record into
Effect of other operations of row without influencing video record.
S103, the current display interface is recorded.
In step S103, to video is played in the current display interface, the current display interface for playing video is carried out
It records.
S104, open new routes journey, in the new thread, records to the video played in first preview interface
System.
The present invention allows to carry out during video record operation other application, and other application does not influence the record of video
System, user can still be recorded to desired video.
Embodiment two
The application scenarios of the present embodiment are as follows: user demonstrates the study course used in connection with of a certain application program at the terminal, user
This process is want to record.For example, user wants to record the video for playing " angry bird " clearance, below in conjunction with the applied field
Scape is described in further detail method of the present invention.
Referring to fig. 4, Fig. 4 is a kind of flow chart of video recording method embodiment two of the present invention.
A kind of video recording method, comprising:
S210, video is played in the first preview interface.
In step S210, " angry bird " video is played in the first preview interface.
S220, detect that first preview interface is current display interface.
In step S220, detect that the first preview interface is current display interface, i.e. current display interface plays " angry
Bird " video, namely the interface of broadcasting " angry bird " video are not blocked by the interface of other application.
Following S231-S233, step is in no particular order.
Gesture motion on S231, the detecting current display interface.
In step S231, in the present embodiment, " angry bird " video is played in current display interface, and user can be to view
Frequency carries out relevant operation, for example, user slides out a track in the relevant position of current display interface.The present invention can detect institute
The gesture motion in current display interface is stated, and the gesture motion is rendered into video file, so the present invention can record
The study course class video of gesture motion.
This step detect gesture motion, comprising: detecting user issue gesture motion at the time of, gesture motion starting click
Position, gesture motion sliding trace.
S232, the image data for obtaining the current display interface.
Image data described in step S232 is the image data for the video that current display interface plays.
S233, the voice data for obtaining the current display interface.
Voice data described in step S233 is the voice data for the video that current display interface plays.
S240, the gesture motion is rendered into described image data to generate final image data.
In step S240, the step S231 gesture motion detected is rendered into the image data of step S232 acquisition.
S250, it the final image data is synchronized with the voice data matches to generate video file.
In step S250, the voice data that the final image data and step S233 that step S240 is generated obtain carries out same
To generate video file, which is the video file being recorded to for step matching.
The present invention can will be rendered into video file the gesture operation at interface, and the present invention can record gesture motion
Study course class video.
Embodiment three
The application scenarios of the present embodiment are as follows: user records " the live video A " when watching " live video A " at the terminal
During, there is phone to call in, at this point, user needs to receive calls, but is not desired to interrupt the recording of " live video A ", this
In the case of kind, the present invention provides following embodiment.
It is a kind of flow chart of video recording method embodiment three of the present invention referring to Fig. 5, Fig. 5.
A kind of video recording method, comprising:
S310, video is played in the first preview interface.
In step S310, " live video A " is played in the first preview interface.
S320, the first preview interface non-present display interface is detected.
In step S320, there is phone to call in during recording " live video A ", user receives calls, then currently
Display interface becomes call interface, i.e. first preview interface of " live video A " is blocked by call interface, and the present invention opens at this time
New thread is warded off to continue to record to " the live video A " that plays in first preview interface in the new thread.This
The method provided is provided, allows to receive calls during " live video A " is recorded, receiving calls does not influence " live video
The recording of A ", user can still be recorded to " live video A " while receiving calls.
S330, open new routes journey.
In step S330, the journey that opens new routes is to record " the live video A " that plays in first preview interface.
S340-S350 is the concrete mode that new thread records " live video A ":
S340, the image data and voice data for obtaining first preview interface respectively in the new thread.
The image data and voice data of first preview interface described in step S340 refers to and plays in the first preview interface
The image data and voice data of " live video A " do not include other image datas and voice data in the first preview interface.
Obtain the image data of first preview interface specifically: what is played in acquisition first preview interface is " straight
Broadcast video A " output image data stream, by described image data flow cache into memory, to described image data flow according to when
Between and frame per second encoded with the image data of " the live video A " that obtains playing in the first preview interface.
Obtain the voice data of first preview interface specifically: what is played in acquisition first preview interface is " straight
Broadcast video A " output audio data stream, the audio data stream is cached in memory, to the audio data stream according to when
Between and frame per second encoded with the voice data of " the live video A " that obtains playing in the first preview interface.
S350, in the new thread, the image data of first preview interface and voice data are synchronized
It is equipped with generation video file.
In step S350, the image data of " live video A " and the sound number of " live video A " are got respectively in S340
According to rear, in new thread, to the image data of " live video A " and the voice data of " live video A " synchronize matching with
Video file is generated, the video file of the generation is " the live video A " being recorded to.
The present invention opens new routes when the interface for detecting other application shelters from the broadcast interface for being intended to recorded video
Journey is recorded the video to be recorded being blocked with the new thread, is answered so that allowing to operate other during video record
With recording result without influencing whether video.
Example IV
It is a kind of block diagram of the Installation practice four for video record of the present invention referring to Fig. 6, Fig. 6.
A kind of device for video record, comprising:
Video playback unit 10, for playing video in the first preview interface.
Whether detection unit 20 is current display interface for the first preview interface described in real-time detection.
Current display interface recording elements 30, for detecting that first preview interface is to work as when the detection unit 20
When preceding display interface, then the current display interface is recorded.
New thread recording elements 40, for detecting that first preview interface is not current aobvious when the detection unit 20
When showing interface, then open new routes journey, in the new thread, records to the video played in first preview interface.
The present invention opens new routes when the interface for detecting other application shelters from the broadcast interface for being intended to recorded video
Journey is recorded the video to be recorded being blocked with the new thread, is answered so that allowing to operate other during video record
With recording result without influencing whether video.
Embodiment five
It is a kind of block diagram of the Installation practice five for video record of the present invention referring to Fig. 7, Fig. 7.
A kind of device for video record, comprising:
Video playback unit 10, for playing video in the first preview interface.
Whether detection unit 20 is current display interface for the first preview interface described in real-time detection.
Current display interface recording elements 30, for detecting that first preview interface is to work as when the detection unit 20
When preceding display interface, then the current display interface is recorded.
Current display interface recording elements 30 include:
Gesture motion detecting unit 301, for detecting the gesture motion in the current display interface.
The gesture motion includes: the starting click location and sliding trace of gesture.
The image data acquisition unit 302 of current display interface, for obtaining the image data of the current display interface.
The voice data acquiring unit 303 of current display interface, for obtaining the voice data of the current display interface.
Final image data generating unit 304, the gesture motion for detecting the gesture motion detecting unit 301
It is rendered into the image data that the image data acquisition unit 302 of the current display interface is got to generate final image number
According to.
Video file generation unit 305, for by the final image data of the final image data generating unit 304 with
The voice data that the voice data acquiring unit 303 of the current display interface is got synchronizes matching to generate video text
Part.
New thread recording elements 40, for detecting that first preview interface is not current aobvious when the detection unit 20
When showing interface, then open new routes journey, in the new thread, records to the video played in first preview interface.
New thread recording elements 40 include:
New thread opens up unit 401, for the journey that opens new routes.
New thread image data acquisition unit 402, for obtaining the figure of first preview interface in the new thread
As data.
The new thread image data acquisition unit 402, specifically for obtaining the image of the first preview interface output
Data flow, by described image data flow cache into memory, to described image data flow according to time and frame per second encoded with
Obtain the image data of the first preview interface.
New thread voice data acquiring unit 403, for obtaining the sound of first preview interface in the new thread
Sound data.
The new thread voice data acquiring unit 403, specifically for obtaining the sound of the first preview interface output
The audio data stream is cached in memory by data flow, to the audio data stream according to time and frame per second encoded with
Obtain the voice data of the first preview interface.
New thread video file generation unit 404 is used in the new thread, by the new thread image data acquisition
What the image data for the first preview interface that unit 402 is got and the new thread voice data acquiring unit 403 were got
Voice data synchronizes matching to generate video file.
The present invention opens new routes when the interface for detecting other application shelters from the broadcast interface for being intended to recorded video
Journey is recorded the video to be recorded being blocked with the new thread, is answered so that allowing to operate other during video record
With recording result without influencing whether video.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of video recording method characterized by comprising
Video is played in the first preview interface;
Whether the first preview interface described in real-time detection is current display interface, if it is, to the current display interface into
Row is recorded;If it is not, then the journey that opens new routes carries out the video played in first preview interface in the new thread
It records;Wherein,
The step of whether the first preview interface described in the real-time detection is current display interface, specifically:
Whether there is or not blocked by the interface of other application for the broadcast interface of the video of the broadcasting of detection prerecording.
2. a kind of video recording method according to claim 1, which is characterized in that it is described to the current display interface into
Row is recorded, comprising:
Detect the gesture motion in the current display interface;
The image data and voice data of the current display interface are obtained respectively;
The gesture motion is rendered into described image data to generate final image data;
The final image data are synchronized with the voice data and are matched to generate video file.
3. a kind of video recording method according to claim 2, which is characterized in that the gesture motion includes: gesture
Moment, starting click location and sliding trace occurs.
4. a kind of video recording method according to claim 1, which is characterized in that it is described to open up new thread, described
In new thread, the video played in first preview interface is recorded, comprising:
Open new routes journey;
Obtain the image data and voice data of first preview interface respectively in the new thread;
In the new thread, the image data of first preview interface and voice data are synchronized into matching to generate view
Frequency file.
5. a kind of video recording method according to claim 4, which is characterized in that described to be obtained respectively in the new thread
The image data and voice data of first preview interface are taken, specifically:
The image data stream for obtaining the first preview interface output, by described image data flow cache into memory, to described
Image data stream is encoded according to time and frame per second to obtain the image data of the first preview interface;
The audio data stream for obtaining the first preview interface output, the audio data stream is cached in memory, to described
Audio data stream is encoded according to time and frame per second to obtain the voice data of the first preview interface.
6. a kind of device for video record characterized by comprising
Video playback unit, for playing video in the first preview interface;
Whether detection unit is current display interface for the first preview interface described in real-time detection;
Current display interface recording elements, for detecting that first preview interface is current display circle when the detection unit
When face, then the current display interface is recorded, wherein whether the first preview interface described in real-time detection is currently to show
Interface, specifically: detecting the broadcast interface of the video of the broadcasting of prerecording, whether there is or not blocked by the interface of other application;
New thread recording elements, for detecting that first preview interface is not current display interface when the detection unit
When, then open new routes journey, in the new thread, records to the video played in first preview interface.
7. a kind of device for video record according to claim 6, which is characterized in that the current display interface record
Unit processed, comprising:
Gesture motion detecting unit, for detecting the gesture motion in the current display interface;
The image data acquisition unit of current display interface, for obtaining the image data of the current display interface;
The voice data acquiring unit of current display interface, for obtaining the voice data of the current display interface;
Final image data generating unit, the gesture motion for detecting the gesture motion detecting unit are rendered into described
To generate final image data in the image data that the image data acquisition unit of current display interface is got;
Video file generation unit, for currently showing the final image data of the final image data generating unit with described
Show that the voice data that the voice data acquiring unit at interface is got synchronizes matching to generate video file.
8. a kind of device for video record according to claim 7, which is characterized in that the gesture motion includes:
Generation moment, starting click location and the sliding trace of gesture.
9. a kind of device for video record according to claim 6, which is characterized in that the new thread is recorded single
Member, comprising:
New thread opens up unit, for the journey that opens new routes;
New thread image data acquisition unit, for obtaining the image data of first preview interface in the new thread;
New thread voice data acquiring unit, for obtaining the voice data of first preview interface in the new thread;
New thread video file generation unit, in the new thread, the new thread image data acquisition unit to be obtained
The sound for the first preview interface that the image data and new thread voice data acquiring unit for the first preview interface got are got
Sound data synchronize matching to generate video file.
10. a kind of device for video record according to claim 9, which is characterized in that the new thread picture number
According to acquiring unit, specifically for obtaining the image data stream of the first preview interface output, by described image data flow cache
Into memory, described image data flow is encoded according to time and frame per second to obtain the image data of the first preview interface;
The new thread voice data acquiring unit, specifically for obtaining the audio data stream of the first preview interface output,
The audio data stream is cached in memory, the audio data stream is encoded according to time and frame per second to obtain first
The voice data of preview interface.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510374399.4A CN105049916B (en) | 2015-06-30 | 2015-06-30 | A kind of video recording method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510374399.4A CN105049916B (en) | 2015-06-30 | 2015-06-30 | A kind of video recording method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105049916A CN105049916A (en) | 2015-11-11 |
CN105049916B true CN105049916B (en) | 2019-03-01 |
Family
ID=54456039
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510374399.4A Active CN105049916B (en) | 2015-06-30 | 2015-06-30 | A kind of video recording method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105049916B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106791136A (en) * | 2016-12-29 | 2017-05-31 | 努比亚技术有限公司 | A kind of video record processing method, device and terminal |
CN109168076B (en) * | 2018-11-02 | 2021-03-19 | 北京字节跳动网络技术有限公司 | Online course recording method, device, server and medium |
CN110314375A (en) * | 2019-06-25 | 2019-10-11 | 努比亚技术有限公司 | A kind of method for recording of scene of game, terminal and computer readable storage medium |
CN113852774A (en) * | 2021-09-01 | 2021-12-28 | 维沃移动通信(杭州)有限公司 | Screen recording method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102724466A (en) * | 2012-05-25 | 2012-10-10 | 深圳市万兴软件有限公司 | Video recording method and device |
CN103870141A (en) * | 2012-12-13 | 2014-06-18 | 联想(北京)有限公司 | Information processing method and electronic device |
CN104156135A (en) * | 2013-05-14 | 2014-11-19 | 腾讯科技(深圳)有限公司 | Screen recording method and device |
CN104424022A (en) * | 2013-08-30 | 2015-03-18 | 腾讯科技(深圳)有限公司 | Screen recording method and device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR102007749B1 (en) * | 2012-08-29 | 2019-08-06 | 삼성전자주식회사 | Screen recording method of terminal, apparauts thereof, and medium storing program source thereof |
-
2015
- 2015-06-30 CN CN201510374399.4A patent/CN105049916B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102724466A (en) * | 2012-05-25 | 2012-10-10 | 深圳市万兴软件有限公司 | Video recording method and device |
CN103870141A (en) * | 2012-12-13 | 2014-06-18 | 联想(北京)有限公司 | Information processing method and electronic device |
CN104156135A (en) * | 2013-05-14 | 2014-11-19 | 腾讯科技(深圳)有限公司 | Screen recording method and device |
CN104424022A (en) * | 2013-08-30 | 2015-03-18 | 腾讯科技(深圳)有限公司 | Screen recording method and device |
Also Published As
Publication number | Publication date |
---|---|
CN105049916A (en) | 2015-11-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106502693B (en) | A kind of image display method and device | |
CN105101366B (en) | Method for controlling mobile terminal and mobile terminal | |
CN105718027B (en) | The management method and mobile terminal of background application | |
CN105120135B (en) | A kind of binocular camera | |
CN104918064B (en) | A kind of method and device that mobile terminal video quickly plays | |
CN105263049B (en) | A kind of video Scissoring device, method and mobile terminal based on frame coordinate | |
CN105306457B (en) | Data buffer storage device and method | |
CN105099669B (en) | Recording encipher-decipher method and device | |
CN104821990B (en) | Intelligent terminal realizes the method and intelligent terminal of shutdown alarm clock | |
CN106097284B (en) | A kind of processing method and mobile terminal of night scene image | |
CN105100673B (en) | Desktop sharing method and device based on VoLTE | |
CN105897995B (en) | A kind of method and apparatus for adding contact information | |
CN105430258B (en) | A kind of method and apparatus of self-timer group photo | |
CN105138400B (en) | Application program self-starting management method and device | |
CN106534552B (en) | Mobile terminal and its photographic method | |
CN105049916B (en) | A kind of video recording method and device | |
CN105049582B (en) | A kind of save set of calling record, method and display methods | |
CN104735254B (en) | terminal screen locking method and system | |
CN106254617A (en) | A kind of mobile terminal and control method | |
CN109240579A (en) | A kind of touch operation method, equipment and computer can storage mediums | |
CN106412328B (en) | A kind of method and apparatus obtaining field feedback | |
CN106888317B (en) | A kind of interaction processing method, device and terminal | |
CN106303044B (en) | A kind of mobile terminal and obtain the method to coke number | |
CN105187663B (en) | Automatically the method and terminal conversed | |
CN104837122B (en) | Multi-party communications method, terminal and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |