CN104052912B - Handle the method and device of video - Google Patents

Handle the method and device of video Download PDF

Info

Publication number
CN104052912B
CN104052912B CN201310076474.XA CN201310076474A CN104052912B CN 104052912 B CN104052912 B CN 104052912B CN 201310076474 A CN201310076474 A CN 201310076474A CN 104052912 B CN104052912 B CN 104052912B
Authority
CN
China
Prior art keywords
video
processed
coded treatment
processing
result
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
Application number
CN201310076474.XA
Other languages
Chinese (zh)
Other versions
CN104052912A (en
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201310076474.XA priority Critical patent/CN104052912B/en
Publication of CN104052912A publication Critical patent/CN104052912A/en
Application granted granted Critical
Publication of CN104052912B publication Critical patent/CN104052912B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of method and devices for handling video, belong to multimedia-data procession field.Method includes: to obtain video to be processed;Level encoder processing is carried out to video to be processed, obtains level encoder result;Second level coded treatment is carried out on the basis of level encoder result, obtains the second level coding result of video to be processed.Device includes: to obtain module and processing module.The present invention realizes a kind of processing mode and achievees the purpose that a variety for the treatment of effects by carrying out multilevel coding processing to video to be processed, enriches the mode of video processing, and to treated video plays out when, beautify visual effect more.

Description

Handle the method and device of video
Technical field
The present invention relates to multimedia data processing field, in particular to a kind of method and device for handling video.
Background technique
With being constantly progressive for society, carrying out video capture using electronic products such as the mobile phones of subsidiary camera function becomes At present the hobby of many people.After carrying out video capture, it is desirable to videos when playing, and can show miscellaneous broadcast Put effect.Therefore, in order to meet the broadcasting demand of people, how the video after shooting is handled, becomes a key Problem.
For the prior art when carrying out video processing, there are two types of processing modes.First way, for video to be played addition text The text of word effect, addition can reside in any position of video pictures;The second way carries out figure layer to video to be played The video pictures of video to be played are placed in pre-set graphic picture by mask.For above two processing video Mode, the video content of processing is concentrated mainly on the head of video, for example, the view of previous five after starting for video or so Frequency content is handled.
In the implementation of the present invention, the inventor finds that the existing technology has at least the following problems:
When carrying out video processing due to the prior art, it is limited only to above two processing mode, causes processing mode more It is single, and since the video content of processing is concentrated mainly on the head of video, when video after playback process, vision effect Fruit has certain limitation.
Summary of the invention
In order to solve problems in the prior art, the embodiment of the invention provides a kind of method and devices for handling video.Institute It is as follows to state technical solution:
On the one hand, a kind of method for handling video is provided, which comprises
Video to be processed is obtained, the video to be processed is pre-stored video;Preset the rotation angle of aperture And video playout speed;
The video to be processed is carried out according to the rotation angle of pre-set aperture to move axis filter coded treatment, is obtained The coding result of axis filter is moved, the axis filter coded treatment that moves is used to increase for each frame image in the video to be processed Edge blurry effect;
Acceleration coded treatment is carried out to the coding result for moving axis filter according to pre-set video playout speed, is obtained To final process result, the acceleration coded treatment is used for described to be processed to compare the faster speed broadcasting of normal playback speed Video.
On the other hand, a kind of device for handling video is provided, described device includes:
Module is obtained, for obtaining video to be processed, the video to be processed is pre-stored video;
First setup module, for presetting the rotation angle of aperture;
Second setup module, for presetting video playout speed;
Processing module, the video to be processed for getting to the acquisition module carry out level encoder processing, obtain one Grade coding result;Second level coded treatment is carried out on the basis of the level encoder result, obtains the two of the video to be processed Grade coding result;
When level encoder processing is moves axis filter coded treatment, the second level coded treatment is to accelerate coded treatment When, the processing module, comprising:
First processing units, for being obtained according to the rotation angle of the pre-set aperture of the first setup module to described The video to be processed that modulus block is got carries out moving axis filter coded treatment, obtains the coding result for moving axis filter, the shifting axis Filter coded treatment is used to increase edge blurry effect for each frame image in the video to be processed;
The second processing unit is used for according to the pre-set video playout speed of the second setup module to the shifting axis The coding result of filter carries out acceleration coded treatment, and the acceleration coded treatment is used for fast faster to compare normal playback speed Degree plays the video to be processed.
On the other hand, a kind of computer readable storage medium is provided, the computer-readable recording medium storage has one A or more than one program, described program are executed as processor to realize the method as described in one side.
Technical solution provided in an embodiment of the present invention has the benefit that
By carrying out multilevel coding processing to video to be processed, realizes a kind of processing mode and reach a variety for the treatment of effects Purpose, enriches the mode of video processing, and to treated video plays out when, beautify visual effect more.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is a kind of method flow diagram for processing video that the embodiment of the present invention one provides;
Fig. 2 is a kind of method flow diagram for handling video provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of apparatus structure schematic diagram for processing video that the embodiment of the present invention three provides;
Fig. 4 is a kind of schematic diagram of internal structure for processing module that the embodiment of the present invention three provides;
Fig. 5 is the apparatus structure schematic diagram for another processing video that the embodiment of the present invention three provides;
Fig. 6 is the schematic diagram of internal structure for another processing module that the embodiment of the present invention three provides;
Fig. 7 is the apparatus structure schematic diagram for another processing video that the embodiment of the present invention three provides;
Fig. 8 is a kind of structural schematic diagram for terminal that the embodiment of the present invention four provides.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
Embodiment one
The present invention provides a kind of methods for handling video, and referring to Fig. 1, method flow provided in this embodiment includes:
Step 101: obtaining video to be processed;
Step 102: level encoder processing being carried out to video to be processed, obtains level encoder result;
Further, level encoder processing is shifting axis filter coded treatment;
Level encoder processing is carried out to video to be processed, obtains level encoder as a result, including but is not limited to:
Video to be processed is carried out to move axis filter coded treatment, obtains the coding result for moving axis filter.
Further, this method further include:
Preset the rotation angle of aperture;
Video to be processed is carried out to move axis filter coded treatment, including but not limited to:
Processing video is treated according to the rotation angle of pre-set aperture to carry out moving axis filter coded treatment.
Step 103: second level coded treatment is carried out on the basis of level encoder result, the second level for obtaining video to be processed is compiled Code result.
Further, this method further include:
It is carried out on the basis of previous stage coding result when prime coded treatment, until obtaining preset number grade coding knot Fruit, and using preset number grade coding result as the final process result handled video to be processed.
Further, second level coded treatment is to accelerate coded treatment;
Second level coded treatment is carried out on the basis of level encoder result, including but not limited to:
Acceleration coded treatment is carried out on the basis of moving the coding result of axis filter, obtains final process result.
Further, this method further include:
Preset video playout speed;
Acceleration coded treatment is carried out on the basis of moving the coding result of axis filter, including but not limited to:
Acceleration coded treatment is carried out to the coding result for moving axis filter according to pre-set video playout speed.
Method provided in this embodiment carries out the series of coded treatment by presetting to video to be processed, and right After video to be processed carries out preset number grade coded treatment, using preset number grade coding result as the final of the video to be processed Processing result enriches the mode of video processing so that realizing a kind of processing mode achievees the purpose that a variety for the treatment of effects, and To treated video plays out when, beautify visual effect more.
Embodiment two
The embodiment of the invention provides a kind of methods for handling video, now in conjunction with the content of above-described embodiment one, with default Number grade is two-stage, and level encoder processing is right for second level coded treatment is accelerates coded treatment to move axis filter coded treatment The mode of processing video provided in an embodiment of the present invention is set forth.Wherein, void can be realized by moving axis filter coded treatment Change the video image surrounding of video to be processed, each frame image as in video adds edge blurry effect;And accelerate coding Processing can be achieved to compare the faster speed of normal playback speed and play video to be processed.Referring to fig. 2, side provided in this embodiment Method process includes:
Step 201: presetting the rotation angle and video playout speed of aperture;
Wherein, pre-set rotation angle is used for moving axis filter coded treatment, pre-set video playout speed In acceleration coded treatment.When the rotation angle and video playout speed of aperture is arranged, aperture can be set according to the actual situation Angle and video playout speed are rotated, the present embodiment is to the size of the two numerical value without specifically limiting.For example, can be by aperture Rotation angle is set as 30 degree, and video playout speed is set as 2 speeds (2 times of normal playback speed).
It should be noted that when executing method provided in this embodiment, without being performed both by the step every time, i.e., only When primary execution processing vision operation, the step is executed, when subsequent execution handles vision operation, can directly execute following steps Suddenly.But when updating the rotation angle or video playout speed of aperture, for example, video playout speed is updated to 4 times from 2 speeds When fast, the step need to be executed again.
Step 202: obtaining video to be processed;
Wherein, video to be processed is pre-stored one section of video or one section of video using camera captured in real-time.Example Such as, the video to be processed is obtained on the storage medium for storing video to be processed, the storage medium concretely memory, certainly, The type of storage medium can also be other kinds of storage medium, class of the present embodiment to storage medium in addition to above-mentioned memory Type is without specifically limiting.
Step 203: processing video is treated according to the rotation angle of pre-set aperture and carries out moving axis filter coded treatment, Obtain moving the coding result of axis filter;
For the step, after getting video to be processed, the video to be processed can be carried out to move at axis filter coding Reason.For example, being carried out moving axis filter to each frame image in the video to be processed according to the rotation angle of pre-set aperture Coded treatment obtains the coding result for moving axis filter.Certainly, it in addition to above-mentioned shifting axis filter coding processing mode, can also take Other move axis filter coding processing mode, and the present embodiment is to this without specifically limiting.
In addition, the surrounding for carrying out each frame image in the video to be processed after shifting axis filter coded treatment is fuzzy , if to move axis filter coding result play out, the scene presented is illusory, and if video to be processed shooting Object is that distant view is built or natural views, the then effect showed will be more preferably obvious, so as to improve video playing Visual effect.
Step 204: carrying out acceleration coded treatment on the basis of moving the coding result of axis filter, obtain final process knot Fruit.
For the step, which is being carried out moving axis filter coded treatment and is obtaining moving the coding knot of axis filter After fruit, continues to carry out acceleration coded treatment to the coding result of the shifting axis filter, final process result is obtained, so that subsequent When playing the final process result, it can achieve the effect that accelerate to play.For example, normal playback speed is 24 frame per second, if Pre-set video playout speed is 2 speeds, then when playing out to final process result, it can be achieved that per second play 48 Frame.
It should be noted that carrying out moving axis filter coded treatment and step in the 203 pairs through the above steps videos to be processed The rapid 204 pairs videos to be processed carry out accelerating coded treatment and after obtaining final process result, if to the final process result into Row plays, then can show a kind of quick feeling in model world, i.e. realization time-lapse photography effect.Currently, time-lapse photography is imitated Fruit is commonly applied to the shooting of intention video.But the realization of this effect needs cumbersome shooting to prepare and has editor's video of profession Technical ability.Method provided in an embodiment of the present invention can allow user easily edit oneself video be time-lapse photography effect, without Carry out the cumbersome switching between camera and computer.
It should be noted that level encoder and second level coding herein includes the basic filter coding to video to be processed, That is, the result of level encoder and second level coding is all the basic filter conversion carried out to video to be processed, for example, this reality It applies the corresponding shifting axis filter to video to be processed of level encoder in example to handle, the corresponding acceleration to video to be processed of second level coding is filtered Mirror processing.That is, the completion of level encoder and second level coding herein is to the folded of the basic coding of same original video Add.
It should be noted that the present embodiment in " level encoder ", " second level coding " be intended merely to distinguish encode twice and Opposite " series " being arranged, " level-one ", " second level " are not " first time ", " for the second time " for indicating absolute.For example, in the present embodiment The video to be processed referred to can be for without the video of any coded treatment, or has been subjected to the video of coded treatment. It may be either the first time coded treatment carried out to video to be processed then when carrying out level encoder processing to video to be processed, It can be coded treatment again;Level encoder processing is only a kind of appellation that the present embodiment provides, to distinguish subsequent second level Coding or multilevel coding.For example, if carrying out level encoder processing to without the video to be processed of any coded treatment, Under this kind of situation, the i.e. corresponding first time coded treatment of level encoder processing;If to the video to be processed for having been subjected to coded treatment Level encoder processing is carried out, then in such a case, level encoder processing is to carry out on the basis of previous coded treatment Coded treatment again.
Further, if preset number grade is greater than two-stage, when handling video to be processed, including but not limited to Such as under type:
Level encoder processing is carried out to video to be processed, obtains level encoder result;
Second level coded treatment is carried out on the basis of level encoder result, obtains second level coding result;
And so on, it is carried out on the basis of previous stage coding result when prime coded treatment, until obtaining preset number Grade coding result, and using preset number grade coding result as the final process result handled video to be processed.
When being greater than two-stage to preset number with a specific example below, the mode for handling video to be processed is carried out in detail Carefully illustrate.
Using preset number grade as three-level, to move axis filter coded treatment, second level coded treatment is music for level encoder processing Coded treatment, three-level coded treatment are for accelerating coded treatment, then move at axis filter coding to video to be processed first Reason, and obtain moving the coding result of axis filter, i.e. level encoder result;Next, carrying out sound to the coding result for moving axis filter Happy coded treatment obtains the coding result of music, i.e. second level coding result;After obtaining the coding result of music, continue to sound Happy coding result carries out acceleration coded treatment, the coding result accelerated, i.e. three-level coding result.Due to treating place at this time The processing series of reason video has reached preset number grade, then using three-level coding result as handling the video to be processed Final process result.After obtaining final process result, it can continue to the subsequent operations such as the final process result plays out.
In addition, method provided in this embodiment can realize to video to be processed carry out preset number grade coded treatment, every grade Coded treatment can correspond to a kind for the treatment of effect, to be embodied as video addition preset number treatment effect to be processed, this implementation Example only gives above two possible implementation.When it is implemented, every grade of coded treatment can correspond to any one processing effect Fruit, including but not limited to music, acceleration, filter, figure layer and other effects.
Method provided in this embodiment carries out the series of coded treatment by presetting to video to be processed, and right After video to be processed carries out preset number grade coded treatment, using preset number grade coding result as the final of the video to be processed Processing result enriches the mode of video processing so that realizing a kind of processing mode achievees the purpose that a variety for the treatment of effects, and To treated video plays out when, beautify visual effect more.
Embodiment three
The embodiment of the invention provides a kind of devices for handling video, mention for executing above-described embodiment one or embodiment two The method of confession, referring to Fig. 3, which includes:
Module 31 is obtained, for obtaining video to be processed;
Processing module 32, the video to be processed for getting to acquisition module 31 carry out level encoder processing, obtain one Grade coding result;Second level coded treatment is carried out on the basis of level encoder result, obtains the second level coding knot of video to be processed Fruit.
Further, the processing module 32 is also used to carry out on the basis of previous stage coding result to encode when prime Processing, until obtain preset number grade coding result, and using preset number grade coding result as to video to be processed The final process result of reason.
Further, level encoder processing is shifting axis filter coded treatment;
Referring to fig. 4, processing module 32, comprising:
First processing units 321 are carried out moving axis filter coded treatment, be obtained to the video to be processed that module is got is obtained Move the coding result of axis filter.
Further, referring to Fig. 5, the device further include:
First setup module 34, for presetting the rotation angle of aperture;
First processing units 321, for according to the rotation angle of the pre-set aperture of the first setup module 34 to acquisition The video to be processed that module 31 is got carries out moving axis filter coded treatment.
Further, second level coded treatment is to accelerate coded treatment;
Referring to Fig. 6, processing module 32, further includes:
The second processing unit 322 is obtained for carrying out acceleration coded treatment on the basis of moving the coding result of axis filter Final process result.
Further, referring to Fig. 7, device further include:
Second setup module 33, for presetting video playout speed;
The second processing unit 322, for being filtered according to the pre-set video playout speed of the second setup module 33 to axis is moved The coding result of mirror carries out acceleration coded treatment.
In conclusion device provided in an embodiment of the present invention, carries out coded treatment to video to be processed by presetting Series, and to video to be processed carry out preset number grade coded treatment after, using preset number grade coding result as this to The final process result of video is handled, so that realizing a kind of processing mode achievees the purpose that a variety for the treatment of effects, enriches view The mode of frequency processing, and to treated video plays out when, beautify visual effect more.
Example IV
A kind of terminal is present embodiments provided, which can be used for executing the processing video side provided in above-described embodiment Method.Referring to Fig. 8, which includes:
RF (Radio Frequency, radio frequency) circuit 110 includes one or more computer-readable storage medium Memory 120, input unit 130, display unit 140, sensor 150, voicefrequency circuit 160, the WiFi (Wireless of matter Fidelity, Wireless Fidelity) module 170, include one or more than one the processor 180 and power supply of processing core 190 equal components.It, can be with it will be understood by those skilled in the art that the restriction of the not structure paired terminal of terminal structure shown in Fig. 8 Including perhaps combining certain components or different component layouts than illustrating more or fewer components.Wherein:
RF circuit 110 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station After downlink information receives, one or the processing of more than one processor 180 are transferred to;In addition, the data for being related to uplink are sent to Base station.In general, RF circuit 110 includes but is not limited to antenna, at least one amplifier, tuner, one or more oscillators, uses Family identity module (SIM) card, transceiver, coupler, LNA (Low Noise Amplifier, low-noise amplifier), duplex Device etc..In addition, RF circuit 110 can also be communicated with network and other equipment by wireless communication.The wireless communication can make With any communication standard or agreement, and including but not limited to GSM (Global System of Mobile communication, entirely Ball mobile communcations system), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), LTE (Long Term Evolution, long term evolution), Email, SMS (Short Messaging Service, short message service) etc..
Memory 120 can be used for storing software program and module, and processor 180 is stored in memory 120 by operation Software program and module, thereby executing various function application and data processing.Memory 120 can mainly include storage Program area and storage data area, wherein storing program area can application program needed for storage program area, at least one function (such as sound-playing function, image player function etc.) etc.;Storage data area can be stored to be created according to using for terminal 800 Data (such as audio data, phone directory etc.) etc..In addition, memory 120 may include high-speed random access memory, may be used also To include nonvolatile memory, for example, at least a disk memory, flush memory device or other volatile solid-states Part.Correspondingly, memory 120 can also include Memory Controller, to provide processor 180 and 130 pairs of input unit storages The access of device 120.
Input unit 130 can be used for receiving the number or character information of input, and generate and user setting and function Control related keyboard, mouse, operating stick, optics or trackball signal input.Specifically, input unit 130 may include touching Sensitive surfaces 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad are collected and are used Family on it or nearby touch operation (such as user using any suitable object or attachment such as finger, stylus in touch-sensitive table Operation on face 131 or near touch sensitive surface 131), and corresponding attachment device is driven according to preset formula.It is optional , touch sensitive surface 131 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detection is used The touch orientation at family, and touch operation bring signal is detected, transmit a signal to touch controller;Touch controller is from touch Touch information is received in detection device, and is converted into contact coordinate, then gives processor 180, and can receive processor 180 The order sent simultaneously is executed.Furthermore, it is possible to using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves Realize touch sensitive surface 131.In addition to touch sensitive surface 131, input unit 130 can also include other input equipments 132.Specifically, Other input equipments 132 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), One of trace ball, mouse, operating stick etc. are a variety of.
Display unit 140 can be used for showing information input by user or the information and terminal 800 that are supplied to user Various graphical user interface, these graphical user interface can be made of figure, text, icon, video and any combination thereof. Display unit 140 may include display panel 141, optionally, can use LCD (Liquid Crystal Display, liquid crystal Display), the forms such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) configure display surface Plate 141.Further, touch sensitive surface 131 can cover display panel 141, when touch sensitive surface 131 detects on it or nearby After touch operation, processor 180 is sent to determine the type of touch event, is followed by subsequent processing device 180 according to the class of touch event Type provides corresponding visual output on display panel 141.Although in fig. 8, touch sensitive surface 131 and display panel 141 are to make Function is output and input to realize for two independent components, but in some embodiments it is possible to by touch sensitive surface 131 and is shown Show that panel 141 is integrated and realizes and outputs and inputs function.
Terminal 800 may also include at least one sensor 150, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 141, and proximity sensor can close display when terminal 800 is moved in one's ear Panel 141 and/or backlight.As a kind of motion sensor, gravity accelerometer can detect in all directions (generally Three axis) acceleration size, can detect that size and the direction of gravity when static, can be used to identify mobile phone posture application (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);Extremely In other sensors such as gyroscope, barometer, hygrometer, thermometer, the infrared sensors that terminal 800 can also configure, herein It repeats no more.
Voicefrequency circuit 160, loudspeaker 161, microphone 162 can provide the audio interface between user and terminal 800.Audio Electric signal after the audio data received conversion can be transferred to loudspeaker 161, be converted to sound by loudspeaker 161 by circuit 160 Sound signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 162, after being received by voicefrequency circuit 160 Audio data is converted to, then by after the processing of audio data output processor 180, such as another end is sent to through RF circuit 110 End, or audio data is exported to memory 120 to be further processed.Voicefrequency circuit 160 is also possible that earphone jack, To provide the communication of peripheral hardware earphone Yu terminal 800.
WiFi belongs to short range wireless transmission technology, and terminal 800 can help user's transceiver electronics by WiFi module 170 Mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.
Processor 180 is the control centre of terminal 800, utilizes each portion of various interfaces and connection whole mobile phone Point, by running or execute the software program and/or module that are stored in memory 120, and calls and be stored in memory 120 Interior data execute the various functions and processing data of terminal 800, to carry out integral monitoring to mobile phone.Optionally, processor 180 may include one or more processing cores;Preferably, processor 180 can integrate application processor and modem processor, Wherein, the main processing operation system of application processor, user interface and application program etc., modem processor mainly handles nothing Line communication.It is understood that above-mentioned modem processor can not also be integrated into processor 180.
Terminal 800 further includes the power supply 190 (such as battery) powered to all parts, it is preferred that power supply can pass through electricity Management system and processor 180 are logically contiguous, to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.Power supply 190 can also include one or more direct current or AC power source, recharging system, power supply event Hinder the random components such as detection circuit, power adapter or inverter, power supply status indicator.
Although being not shown, terminal 800 can also include camera, bluetooth module etc., and details are not described herein.Specifically in this reality It applies in example, the display unit of terminal is touch-screen display, and terminal further includes having memory and one or more than one Program, perhaps more than one program is stored in memory and is configured to by one or more than one processing for one of them Device execution states one or more than one program includes the instruction for performing the following operation:
Obtain video to be processed;
Level encoder processing is carried out to the video to be processed, obtains level encoder result;
Second level coded treatment is carried out on the basis of the level encoder result, the second level for obtaining the video to be processed is compiled Code result.
Assuming that above-mentioned is the first possible embodiment, then provided based on the first possible embodiment Second of possible embodiment in, in the memory of the terminal, also include instructions for performing the following operations:
It is carried out on the basis of previous stage coding result when prime coded treatment, until obtaining preset number grade coding knot Fruit, and using the preset number grade coding result as the final process result handled the video to be processed.
In the third the possible embodiment provided based on first or second of possible embodiment, Also include instructions for performing the following operations in the memory of the terminal:
The level encoder processing is shifting axis filter coded treatment;
It is described that level encoder processing is carried out to the video to be processed, comprising:
The video to be processed is carried out to move axis filter coded treatment.
In the 4th kind of possible embodiment provided based on the third possible embodiment, the terminal Memory in, also include instructions for performing the following operations:
Preset the rotation angle of aperture;
It is described that the video to be processed is carried out to move axis filter coded treatment, obtain level encoder result, comprising:
The video to be processed is carried out according to the rotation angle of pre-set aperture to move axis filter coded treatment, is obtained Move the coding result of axis filter.
In the 5th kind of possible embodiment provided based on third or the 4th kind of possible embodiment, Also include instructions for performing the following operations in the memory of the terminal:
The second level coded treatment is to accelerate coded treatment;
It is described that second level coded treatment is carried out on the basis of the level encoder result, comprising:
Acceleration coded treatment is carried out on the basis of the coding result for moving axis filter.
In the 6th kind of possible embodiment provided based on the 5th kind of possible embodiment, the terminal Memory in, also include instructions for performing the following operations:
Preset video playout speed;
It is described to carry out acceleration coded treatment on the basis of the coding result for moving axis filter, obtain final process knot Fruit, comprising:
Acceleration coded treatment is carried out to the coding result for moving axis filter according to pre-set video playout speed, is obtained To final process result.
Terminal provided in an embodiment of the present invention carries out the series of coded treatment by presetting to video to be processed, and After carrying out preset number grade coded treatment to video to be processed, using preset number grade coding result as the video to be processed Final process result enriches the side of video processing so that realizing a kind of processing mode achievees the purpose that a variety for the treatment of effects Formula, and to treated video plays out when, beautify visual effect more.
Embodiment five
The embodiment of the invention provides a kind of computer readable storage medium, which be can be State computer readable storage medium included in the memory in embodiment;It is also possible to individualism, without supplying terminal In computer readable storage medium.The computer-readable recording medium storage has one or more than one program, described The method that one or more than one program are used to execute processing video by one or more than one processor, the method Include:
Obtain video to be processed;
Level encoder processing is carried out to the video to be processed, obtains level encoder result;
Second level coded treatment is carried out on the basis of the level encoder result, the second level for obtaining the video to be processed is compiled Code result.
Assuming that above-mentioned is the first possible embodiment, then provided based on the first possible embodiment Second of possible embodiment in, in the memory of the terminal, also include instructions for performing the following operations:
It is carried out on the basis of previous stage coding result when prime coded treatment, until obtaining preset number grade coding knot Fruit, and using the preset number grade coding result as the final process result handled the video to be processed.
In the third the possible embodiment provided based on first or second of possible embodiment, Also include instructions for performing the following operations in the memory of the terminal:
The level encoder processing is shifting axis filter coded treatment;
It is described that level encoder processing is carried out to the video to be processed, comprising:
The video to be processed is carried out to move axis filter coded treatment.
In the 4th kind of possible embodiment provided based on the third possible embodiment, the terminal Memory in, also include instructions for performing the following operations:
Preset the rotation angle of aperture;
It is described that the video to be processed is carried out to move axis filter coded treatment, obtain level encoder result, comprising:
The video to be processed is carried out according to the rotation angle of pre-set aperture to move axis filter coded treatment, is obtained Move the coding result of axis filter.
In the 5th kind of possible embodiment provided based on third or the 4th kind of possible embodiment, Also include instructions for performing the following operations in the memory of the terminal:
The second level coded treatment is to accelerate coded treatment;
It is described that second level coded treatment is carried out on the basis of the level encoder result, comprising:
Acceleration coded treatment is carried out on the basis of the coding result for moving axis filter.
In the 6th kind of possible embodiment provided based on the 5th kind of possible embodiment, the terminal Memory in, also include instructions for performing the following operations:
Preset video playout speed;
It is described to carry out acceleration coded treatment on the basis of the coding result for moving axis filter, obtain final process knot Fruit, comprising:
Acceleration coded treatment is carried out to the coding result for moving axis filter according to pre-set video playout speed, is obtained To final process result.
Computer readable storage medium provided in an embodiment of the present invention encodes video to be processed by presetting The series of processing, and to video to be processed carry out preset number grade coded treatment after, using preset number grade coding result as The final process result of the video to be processed is enriched so that realizing a kind of processing mode achievees the purpose that a variety for the treatment of effects The mode of video processing, and to treated video plays out when, beautify visual effect more.
Embodiment six
The embodiment of the invention provides a kind of graphical user interface, the graphical user interface is used at the terminal, the end End includes touch-screen display, memory and one for executing one or more than one program or more than one Processor;The graphical user interface includes:
The video to be processed of acquisition is shown on the touch-screen display;
Level encoder processing is carried out to the video to be processed, obtains level encoder result;
Second level coded treatment is carried out on the basis of the level encoder result, the second level for obtaining the video to be processed is compiled Code result.
Graphical user interface provided in an embodiment of the present invention carries out coded treatment to video to be processed by presetting Series, and after carrying out preset number grade coded treatment to video to be processed, using preset number grade coding result as this wait locate The final process result of video is managed, so that realizing a kind of processing mode achievees the purpose that a variety for the treatment of effects, enriches video The mode of processing, and to treated video plays out when, beautify visual effect more.
It should be understood that it is provided by the above embodiment processing video device when handling video, only with above-mentioned each function Can module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different functions Module is completed, i.e., the internal structure of device is divided into different functional modules, described above all or part of to complete Function.In addition, the device of processing video provided by the above embodiment and the embodiment of the method for processing video belong to same design, Specific implementation process is detailed in embodiment of the method, and which is not described herein again.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on should be included in protection scope of the present invention.

Claims (3)

1. a kind of method for handling video, which is characterized in that the described method includes:
Video to be processed is obtained, the video to be processed is pre-stored video;
Preset the rotation angle and video playout speed of aperture;
The video to be processed is carried out according to the rotation angle of pre-set aperture to move axis filter coded treatment, obtains moving axis The coding result of filter;The axis filter coded treatment that moves is used to increase edge for each frame image in the video to be processed Blur effect;
Acceleration coded treatment is carried out to the coding result for moving axis filter according to pre-set video playout speed, is obtained most Whole processing result;The acceleration coded treatment is used for compare the faster speed of normal playback speed and play the view to be processed Frequently.
2. a kind of device for handling video, which is characterized in that described device includes:
Module is obtained, for obtaining video to be processed, the video to be processed is pre-stored video;
First setup module, for presetting the rotation angle of aperture;
Second setup module, for presetting video playout speed;
Processing module, the video to be processed for getting to the acquisition module carry out level encoder processing, obtain level-one volume Code result;Second level coded treatment is carried out on the basis of the level encoder result, the second level for obtaining the video to be processed is compiled Code result;
When level encoder processing is moves axis filter coded treatment, the second level coded treatment is institute when accelerating coded treatment State processing module, comprising:
First processing units obtain the acquisition module according to the rotation angle of the pre-set aperture of the first setup module The video to be processed got carries out moving axis filter coded treatment, obtains the coding result for moving axis filter, the shifting axis filter coding Processing is for increasing edge blurry effect for each frame image in the video to be processed;
The second processing unit is used for according to the pre-set video playout speed of the second setup module to the shifting axis filter Coding result carry out acceleration coded treatment, obtain final process result, the acceleration coded treatment to compare for normally broadcasting It puts the faster speed of speed and plays the video to be processed.
3. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage have one or More than one program, described program are executed by processor to realize the method as described in claim 1.
CN201310076474.XA 2013-03-11 2013-03-11 Handle the method and device of video Active CN104052912B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310076474.XA CN104052912B (en) 2013-03-11 2013-03-11 Handle the method and device of video

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310076474.XA CN104052912B (en) 2013-03-11 2013-03-11 Handle the method and device of video

Publications (2)

Publication Number Publication Date
CN104052912A CN104052912A (en) 2014-09-17
CN104052912B true CN104052912B (en) 2019-03-15

Family

ID=51505247

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310076474.XA Active CN104052912B (en) 2013-03-11 2013-03-11 Handle the method and device of video

Country Status (1)

Country Link
CN (1) CN104052912B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1437137A (en) * 2002-02-06 2003-08-20 北京新奥特集团 Non-linear editing computer
WO2004008748A2 (en) * 2002-07-17 2004-01-22 Thomson Licensing S.A. Method and device for video data transmission for implementing special modes
CN101295407A (en) * 2007-04-27 2008-10-29 新奥特硅谷视频技术有限责任公司 Videotext system and rendering method thereof
EP2164256A1 (en) * 2004-04-02 2010-03-17 NDS Limited System for providing visable messages during PVR trick mode playback
CN101796541A (en) * 2007-09-05 2010-08-04 创新科技有限公司 Method and system for customising live media content
CN102231272A (en) * 2011-01-21 2011-11-02 辜进荣 Method and device for synthesizing network videos and audios
CN102447839A (en) * 2011-08-26 2012-05-09 深圳市万兴软件有限公司 Quartz Composer-based video production method and device
CN102638658A (en) * 2012-03-01 2012-08-15 盛乐信息技术(上海)有限公司 Method and system for editing audio-video
CN102752611A (en) * 2011-12-19 2012-10-24 新奥特(北京)视频技术有限公司 Toning method supporting multi-format output
CN102802021A (en) * 2012-08-08 2012-11-28 无锡天脉聚源传媒科技有限公司 Method and device for editing multi-media data

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102466947B (en) * 2010-11-19 2017-03-29 乔永清 For the shifting axle photographic attachment of digital camera or video camera

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1437137A (en) * 2002-02-06 2003-08-20 北京新奥特集团 Non-linear editing computer
WO2004008748A2 (en) * 2002-07-17 2004-01-22 Thomson Licensing S.A. Method and device for video data transmission for implementing special modes
EP2164256A1 (en) * 2004-04-02 2010-03-17 NDS Limited System for providing visable messages during PVR trick mode playback
CN101295407A (en) * 2007-04-27 2008-10-29 新奥特硅谷视频技术有限责任公司 Videotext system and rendering method thereof
CN101796541A (en) * 2007-09-05 2010-08-04 创新科技有限公司 Method and system for customising live media content
CN102231272A (en) * 2011-01-21 2011-11-02 辜进荣 Method and device for synthesizing network videos and audios
CN102447839A (en) * 2011-08-26 2012-05-09 深圳市万兴软件有限公司 Quartz Composer-based video production method and device
CN102752611A (en) * 2011-12-19 2012-10-24 新奥特(北京)视频技术有限公司 Toning method supporting multi-format output
CN102638658A (en) * 2012-03-01 2012-08-15 盛乐信息技术(上海)有限公司 Method and system for editing audio-video
CN102802021A (en) * 2012-08-08 2012-11-28 无锡天脉聚源传媒科技有限公司 Method and device for editing multi-media data

Also Published As

Publication number Publication date
CN104052912A (en) 2014-09-17

Similar Documents

Publication Publication Date Title
CN104134230B (en) A kind of image processing method, device and computer equipment
CN104427083B (en) The method and apparatus for adjusting volume
CN106454404B (en) A kind of methods, devices and systems playing live video
CN103984493B (en) Control method by sliding and terminal
CN106933525B (en) A kind of method and apparatus showing image
CN105183296B (en) interactive interface display method and device
CN104965843B (en) A kind of method and device obtaining comment information
CN105808060B (en) A kind of method and apparatus of playing animation
CN106488296B (en) A kind of method and apparatus showing video barrage
CN105549740B (en) A kind of method and apparatus of playing audio-fequency data
CN103905885A (en) Video live broadcast method and device
CN103854298A (en) Method for integrating pictures with two-dimension codes and terminal
CN108888955A (en) Method of controlling viewing angle and device in a kind of game
CN104157007A (en) Video processing method and apparatus
CN103313139A (en) History display method and device and electronic device
CN106504303B (en) A kind of method and apparatus playing frame animation
CN105185401B (en) The method and device of synchronized multimedia listed files
CN104036536A (en) Generating method and apparatus of stop motion animation
CN104007887B (en) The method and terminal that floating layer is shown
CN105447124A (en) Virtual article sharing method and device
CN108228033A (en) A kind of message display method and mobile terminal
CN107396193B (en) The method and apparatus of video playing
CN106791916A (en) A kind of methods, devices and systems of recommendation of audio data
CN106210838B (en) Caption presentation method and device
CN104967864B (en) A kind of method and device merging video

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