CN104967801B - A kind of video data handling procedure and device - Google Patents

A kind of video data handling procedure and device Download PDF

Info

Publication number
CN104967801B
CN104967801B CN201510063653.9A CN201510063653A CN104967801B CN 104967801 B CN104967801 B CN 104967801B CN 201510063653 A CN201510063653 A CN 201510063653A CN 104967801 B CN104967801 B CN 104967801B
Authority
CN
China
Prior art keywords
filter
video data
image
processing
synthesis
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
CN201510063653.9A
Other languages
Chinese (zh)
Other versions
CN104967801A (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 CN201510063653.9A priority Critical patent/CN104967801B/en
Publication of CN104967801A publication Critical patent/CN104967801A/en
Priority to TW105102201A priority patent/TWI592021B/en
Priority to MYPI2017702466A priority patent/MY197743A/en
Priority to PCT/CN2016/072448 priority patent/WO2016124095A1/en
Priority to US15/666,809 priority patent/US10200634B2/en
Application granted granted Critical
Publication of CN104967801B publication Critical patent/CN104967801B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Television Signal Processing For Recording (AREA)
  • Studio Circuits (AREA)

Abstract

The embodiment of the invention discloses a kind of video data handling procedure and devices;The embodiment of the present invention can indicate that information selects the first filter according to filter, then recording process is called, to obtain a frame image, and filter processing is carried out to the image got using the first filter of selection, show image after the processing, and image after the processing is added to image collection, when determining that the recording process is closed, just all images in image collection are synthesized and exported according to the sequencing of frame, otherwise, then continue to obtain next frame image, and it returns and executes the step of filter processing is carried out to the image got using the filter of selection, to realize the purpose for carrying out filter processing to the video of recording in real time, greatly reduce period of reservation of number, improve treatment effeciency.

Description

A kind of video data handling procedure and device
Technical field
The present invention relates to fields of communication technology, and in particular to a kind of video data handling procedure and device.
Background technique
With the development of communication technology and intelligent mobile terminal it is universal, the type of terminal applies is also increasingly numerous It is more, the terminal applies about video processing be exactly it is wherein more common a kind of, for example, video record and to video progress Landscaping treatment, etc..
In the research and practice process to the prior art, it was found by the inventors of the present invention that at existing video data It in reason scheme, generally requires after one section of video record, landscaping treatment could be carried out to this section of video, user needs to wait Longer time, treatment effeciency is lower, and processing mode is also more single, causes treatment effect bad.
Summary of the invention
The embodiment of the present invention provides a kind of video data handling procedure and device, not only can in real time to the video of recording into Row processing, reduces period of reservation of number, improves treatment effeciency, and treatment effect can be improved compared with horn of plenty in processing mode.
The embodiment of the present invention provides a kind of video data handling procedure, comprising:
It obtains filter and indicates information, and indicate that information selects the first filter according to the filter;
Recording process is called, to obtain a frame image;
Filter processing is carried out to the image that gets using the first filter of selection, image after being handled, described in display Image after processing, and image after the processing is added to image collection;
Determine whether the recording process closes;
If so, all images in image collection are synthesized according to the sequencing of frame, synthesis rear video is obtained Data export the synthesis rear video data;
If it is not, then obtaining next frame image, and returns to execute and filter is carried out to the image got using the filter of selection The step of processing.
Correspondingly, the embodiment of the present invention also provides a kind of video data processing apparatus, comprising:
Acquiring unit indicates that information selects the first filter for obtaining filter instruction information, and according to the filter;
Recording elements, for calling recording process, to obtain a frame image;
Filter unit carries out filter processing to the image that recording elements are got for the first filter using selection, obtains Image after to processing;
Display unit, for showing image after the processing;
Adding unit, for image after the processing to be added to image collection;
Synthesis unit, for determining whether the recording process closes, if so, all images in image collection are pressed It is synthesized according to the sequencing of frame, obtains synthesis rear video data, the synthesis rear video data are exported, if it is not, then triggering Recording elements obtain next frame image.
The embodiment of the present invention can indicate that information selects the first filter according to filter, call recording process, then to obtain One frame image, and filter processing is carried out to the image got using the first filter of selection, show image after the processing, and will Image is added to image collection after the processing, when determining that the recording process is closed, just presses all images in image collection It is synthesized and is exported according to the sequencing of frame, otherwise, then continue to obtain next frame image, and return to the filter for executing and using selection The step of mirror carries out filter processing to the image got, to realize the mesh for carrying out filter processing to the video of recording in real time , user caused by filter processing can only just be can be carried out and wait after video is recorded completely in the prior art by avoiding The problem of overlong time, greatly reduce period of reservation of number, improve treatment effeciency, moreover, because can with unrestricted choice filter, And the pattern of filter can there are many, therefore, treatment effect can be improved also compared with horn of plenty in processing mode.
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 skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 a is the flow chart of video data handling procedure provided in an embodiment of the present invention;
Fig. 1 b is the schematic diagram of special effect processing in video data handling procedure provided in an embodiment of the present invention;
Fig. 2 a is another flow chart of video data handling procedure provided in an embodiment of the present invention;
Fig. 2 b is the schematic diagram of a scenario of video data handling procedure provided in an embodiment of the present invention;
Fig. 2 c is another schematic diagram of a scenario of video data handling procedure provided in an embodiment of the present invention;
Fig. 2 d is the another schematic diagram of a scenario of video data handling procedure provided in an embodiment of the present invention;
Fig. 3 is the schematic diagram of a scenario of special effect processing in video data handling procedure provided in an embodiment of the present invention;
Fig. 4 a is the structural schematic diagram of video data processing apparatus provided in an embodiment of the present invention;
Fig. 4 b is another structural schematic diagram of video data processing apparatus provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of mobile terminal provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those skilled in the art's every other implementation obtained without creative efforts Example, shall fall within the protection scope of the present invention.
The embodiment of the present invention provides a kind of video data handling procedure and device.It will be described in detail respectively below.
Embodiment one,
The present embodiment will be described from the angle of video data processing apparatus, which specifically can be with It is integrated in the equipment such as mobile terminal, which is specifically as follows the equipment such as mobile phone or tablet computer.
A kind of video data handling procedure, comprising: obtain filter and indicate information, and information selection the is indicated according to the filter One filter calls recording process, to obtain a frame image, is carried out at filter using the first filter of selection to the image got Reason, image after being handled shows image after the processing, and image after the processing is added to image collection, determines the recording Whether process closes, if closing, all images in image collection is synthesized according to the sequencing of frame, are synthesized Rear video data export the synthesis rear video data;If being not turned off, next frame image is obtained, and returns to execution using selection Filter the step of filter processing is carried out to the image that gets.
As shown in Figure 1a, the detailed process of the video data handling procedure can be such that
101, it obtains filter and indicates information, and indicate that information selects filter according to the filter, for convenience, in this hair In bright embodiment, the filter selected at this time is known as the first filter.
Wherein, the mode for obtaining filter instruction information can carry filter instruction for example, specifically can receive by a variety of The recording request of information, alternatively, also can receive the filter instruction information that user directly inputs, it is as follows:
The mark of a variety of filters can be shown in the lower section of the page, for selection by the user, when user touches some filter mark When knowledge, that is, it can trigger and send filter instruction information, wherein it may include filter mark in filter instruction information, in this way, after It is continuous to be identified according to the filter to select the first filter.
Wherein, which can be configured according to the demand of practical application, for example, can be set to " documentary film ", " can people ", " fair and tender ", and/or " missing old times or old friends " etc., it is, of course, also possible to "None" or " original " are set as, by "None" or " original " Treated that video is original video for equal filters, that is, handling by filter.
102, recording process is called, to obtain a frame image.
For example, specifically can receive recording request, for example receives user and key institute is recorded by triggering on recording the page Then the recording request of transmission starts video record engine according to the recording request, to call recording process, and executes the recording Process obtains frame image, etc. by camera.
Wherein, user record the page on triggering record key mode can there are many, for example, can by touch, Sliding the modes such as is double-clicked and is triggered, and is not limited thereto.
Optionally, for the ease of the subsequent processing to video data, the image that can also be will acquire at this time saves as original Beginning image saves the image that this gets as original image.
103, filter processing, image after being handled, display are carried out to the image got using the first filter of selection Image after the processing (such as on the screen by image rendering after the processing), and image after the processing is added to image set It closes, such as write-in disk file, etc..
104, it determines whether the recording process closes, if closing, thens follow the steps 105, if being not turned off, then follow the steps 106, that is to say, that whether terminated, if terminating, then follow the steps 105, if being not finished, execute if needing to judge at this time to record Step 106.
105, when the process of recording is closed, all images in image collection are synthesized according to the sequencing of frame, Synthesis rear video data are obtained, and export the synthesis rear video data.
For example, specifically can by start Compositing Engine, by by all images in image collection according to the successive suitable of frame Sequence is synthesized, and obtains synthesis rear video data, and export the synthesis rear video data.
Optionally, before exporting the synthesis rear video data, the synthesis rear video data can also be shown, for user Preview, for example, the synthesis rear video data are shown by starting preview engine, for user's preview, etc..
Optionally, user can also according to demand make after further modifying again the synthesis rear video data after browsing Output is showing the synthesis rear video data, after user's preview, this method can also include:
Filter switching request is received, filtering effects in the synthesis rear video data are carried out more according to the filter switching request Newly, updated synthesis rear video data are obtained;For example, specifically can be such that
The second filter is selected according to the filter switching request, extract and deletes the first filter in the synthesis rear video data Mirror obtains original video data, carries out filter processing to the original video data using second filter, obtains updated conjunction At rear video data.
It, then at this time can be with alternatively, save original image in initial data, such as step 102 if saved before this These original images are directly acquired, to synthesize original video data, i.e. step " receives filter switching request, according to the filter Switching request is updated filtering effects in the synthesis rear video data, obtains updated synthesis rear video data " it can also With as follows:
The second filter is selected according to the filter switching request, the original image of preservation is synthesized, original video is obtained Data carry out filter processing to original video data is changed using second filter, obtain updated synthesis rear video data.
Then at this point, step " exporting the synthesis rear video data " is specifically as follows: the updated synthesis backsight frequency of output According to.
Wherein, which can be configured according to the demand of practical application, for example, can be set to " documentary film ", " can people ", " fair and tender ", and/or " missing old times or old friends " etc., it is, of course, also possible to "None" or " original " are set as, by "None" or " original " Treated that video is original video for equal filters, that is, handling by filter.
Optionally, in order to further beautify and enrich its effect, synthesis rear video data can also be carried out at special efficacy All images in image collection " are synthesized according to the sequencing of frame in step, obtain synthesis backsight frequency by reason According to " after, this method can also include:
Special effect processing template is obtained, special effect processing is carried out to the synthesis rear video data according to the special effect processing template.
For example, specifically special effect processing template can be obtained by starting special effect processing engine, and according to the special effect processing Template carries out special effect processing etc. to the synthesis rear video data.
Characteristic template includes that filter describes the resources such as file, a variety of filters, picture, video sample, wherein description file can How to be exchanged, how to be superimposed with describing filter, parameter used in different time points, filter sequence, frame using Jason grammer The information such as video sample need to describe file to this to parse when handling video data using characteristic template, and Each frame image in video data is handled respectively according to parsing result and filter.
Characteristic template processing is also referred to as the processing of dynamic filter, i.e., the filter that entire video processing procedure uses is not single quiet The filter of state, but different filters or several filter superposition processings can be used in different time points.
Wherein, action time of the sequence of the filter, filter that use needed for different special effect processing templates and filter etc. is all It is different, it specifically can be by defining a set of jason grammar templates, to describe in each special effect processing template at filter The attributes such as the parameter of the realization of line of reasoning diameter and each filter, Parameter Variation, action time, for example, specifically can be as Under:
The special effect processing template includes the information such as the first static filter information, video sample and the second static filter information, Then at this point, step " carrying out special effect processing to the synthesis rear video data according to the special effect processing template " may include:
(1) filter processing is carried out to the synthesis rear video data according to the first static filter information, obtains static filter Rear video data.
Wherein, which can be original synthesis rear video data, be also possible to updated synthesis Rear video data.
As shown in Figure 1 b, which may include multiple filters, such as filter 1, filter 2 ... filter N etc., wherein n is the positive integer more than or equal to 1.
The first static filter information in different special effect processing templates will be different, such as the filter, the filter that use Sequence and filter action time can difference, etc., i.e., filter 1, filter 2 ... filter n in different special effect processing templates Pattern and action time etc. all can different from, for example, for special effect processing template A, filter 1 is " can people ", effect Time is 4 seconds, and filter 2 is " fair and tender ", and action time is 5 seconds, etc., and for special effect processing template B, filter 1 may For " missing old times or old friends ", action time is 8 seconds, and filter 2 may be " can people ", and action time is 3 seconds, etc., and details are not described herein.
(2) image pattern is extracted from the video sample, it will be after the image pattern and (1) static filter using superposition filter Video data is overlapped processing, the video data after obtaining superposition picture.
For example, a frame image data of current point in time can be extracted from the video sample, as image pattern, then Corresponding frame in the image data (i.e. image pattern) and (1) static filter rear video data is overlapped using superposition filter Processing, and so on, above-mentioned processing is also carried out to other times, the video data after obtaining superposition picture.
Wherein, which may include overlay video RGB (three primary colors, i.e., red (Red), (green) Green, (indigo plant) Blue) layer and alpha layers of overlay video can extract corresponding folded from overlay video RGB layer and alpha layers of overlay video Add the image data used, is then added in static state filter rear video data obtained in (1) using superposition filter.
It should be noted that extracted image pattern from video sample of the embodiment of the present invention, i.e., by the image pattern A kind of pattern as filter is overlapped with corresponding frame, and details are not described herein.
(3) video data after the superposition picture obtained according to the second static filter information to (2) carries out filter processing, Obtain special effect processing video data.
The filter mode is similar with (1), and unlike (1), handled object is different, before being handled by (1) Obtained " synthesis rear video data ", and handled by (3) it is the video data after (2) overlay video samples pictures.
As shown in Figure 1 b, which equally may include multiple filters, such as filter n+1, filter n+ 2 ... filter m etc., wherein m is the positive integer more than or equal to 1.
Similarly, the second static filter information in different special effect processing templates will be different, for example, use filter, Sequence and the action time meeting difference of filter of filter, etc., i.e., filter n+1, filter n+ in different special effect processing templates The pattern of 2 ... filter m and action time etc. all can different from, for example, for special effect processing template A, filter n+1 is " pseudo-classic ", action time be 6 seconds, filter 2 be " fair and tender ", action time be 5 seconds, etc., and for special effect processing template B and Speech, filter 1 may be " missing old times or old friends ", and action time is 3 seconds, and filter 2 may be " can people ", and action time is 3 seconds, etc., herein It repeats no more.
Hereafter, which can be shown on screen, alternatively, can also be to the special effect processing video Data are stored in disk.
It should be noted that can carry out the video length of special effect processing can be configured according to the demand of practical application, For example, can be set to 30 seconds or less, etc., details are not described herein.
It should also be noted that, a frame data at each and every one same time point, can be handled, for example first pass through by multiple filters It crosses filter 1 (can people), carried out using filter 2 (fuzzy), filter 3 (adjustment contrast) ..., filter n (adjustment picture position) Processing, etc., details are not described herein.
106, when recorded video is not yet closed, next frame image is obtained, and returns and executes the filter using selection to obtaining The image got carries out the step of filter processing, that is, returns to step 103.
Optionally, recording process is being called, when obtaining a frame image, is may call upon music process, to play Music simultaneously shows the corresponding lyrics on the screen, that is to say, that user can record corresponding video while singing K, hereafter, The lyrics, the audio data of music and user's typing and video data can also be synthesized together, i.e., the video data is handled Method can also include:
Music process is called to obtain to play music and show the corresponding lyrics on the screen using the recording process Take the audio data that family is inputted according to the music and the lyrics;
Then at this point, step " synthesizes all images in image collection according to the sequencing of frame, after obtaining synthesis Video data " is specifically as follows:
After all images in image collection are synthesized according to the sequencing of frame, then with the music, the lyrics and The audio data got is synthesized, and synthesis rear video data are obtained.
Further, in synthesis, other some preset informations can also be added, than song title, chanteur, end Information such as (logo) are identified, details are not described herein.
From the foregoing, it will be observed that the present embodiment can indicate that information selects the first filter according to filter, recording process is then called, with It obtains a frame image, and filter processing is carried out to the image got using the first filter of selection, and by image after the processing It is added to image collection, when determining that the recording process is closed, just by all images in image collection according to the successive suitable of frame Sequence is synthesized and is exported, and otherwise, then continues to obtain next frame image, and is returned and executed filter using selection to getting Image carries out the step of filter processing, to realize the purpose for carrying out filter processing to the video of recording in real time, avoids existing It can only just can be carried out period of reservation of number caused by filter processing after video is recorded completely in technology and too long ask Topic, greatly reduces period of reservation of number, improves treatment effeciency, moreover, because can be with unrestricted choice filter, and the pattern of filter Can there are many, for example can be static filter, be also possible to dynamic filter, etc., therefore, processing mode also compared with horn of plenty, Treatment effect can be improved.
According to method described in embodiment one, it will illustrate be described in further detail in embodiment two and three below.
Embodiment two,
In the present embodiment, it will be illustrated so that the video data processing apparatus specifically integrates in the terminal as an example.
As shown in Figure 2 a, a kind of video data handling procedure, detailed process can be such that
201, mobile terminal receives recording request, wherein carries filter in the recording request and indicates information, according to the filter Indicate that information selects the first filter.
For example, the mark of a variety of filters can be shown in the lower section of the page, for selection by the user, when user touches some filter Mirror mark, and select record button (such as " starting to record " button in b referring to fig. 2) when, that is, can trigger send the carrying filter The recording request of mirror instruction information, wherein may include filter mark in filter instruction information, in this way, can basis The filter identifies to select the first filter.
Wherein, which can be configured according to the demand of practical application, such as b referring to fig. 2, can be by these Filter mark is set as " documentary film ", " sweetness can people ", " fair and tender ", " pencil drawing ", " once " and/or " missing old times or old friends " etc., certainly, It may be arranged as "None" or " original ", be original video by the filters such as "None" or " original " treated video, i.e., quite It is handled in not passing through filter.
202, mobile terminal calls recording process according to the recording request, to obtain a frame image.
For example, specifically video record engine can be started according to the recording request, to call recording process, and the record is executed Process processed obtains frame image, etc. by camera.
Wherein, user record the page on triggering record key mode can there are many, for example, can by touch, Sliding the modes such as is double-clicked and is triggered, and is not limited thereto.
It optionally, at this time can also be using the image that this gets as original for the ease of the subsequent processing to video data Beginning image is saved.
203, mobile terminal carries out filter processing to the image got using the first filter of selection, schemes after being handled Picture.
For example, if first filter is " missing old times or old friends ", it at this time can be using the filter of " missing old times or old friends " pattern to the figure got As carrying out filter processing, image after being handled.
204, mobile terminal shows and (renders) image after the processing.
205, image after the processing is added to image collection by mobile terminal.
206, mobile terminal determines whether the recording process closes, if closing, thens follow the steps 207, if being not turned off, holds Row step 209.
207, record process close when, mobile terminal by all images in image collection according to frame sequencing into Row synthesis obtains synthesis rear video data, then executes step 208.
Wherein, each frame can carry timestamp, therefore, specifically can be successive according to the time according to these timestamps Sequence synthesizes all images in image collection, synthesis rear video data is obtained, for example, reference can be made to Fig. 2 c.
Optionally, the synthesis rear video data can also be shown at this time, for user's preview, for example, passing through starting preview Engine shows the synthesis rear video data, for user's preview, etc..
Optionally, user can also make further modification to the synthesis rear video data according to demand, that is, exist after browsing Show the synthesis rear video data, after user's preview, this method can also include:
Filter switching request is received, filtering effects in the synthesis rear video data are carried out more according to the filter switching request Newly, updated synthesis rear video data are obtained;For example, specifically can be such that
The second filter is selected according to the filter switching request, extract and deletes the first filter in the synthesis rear video data Mirror obtains original video data, carries out filter processing to the original video data using second filter, obtains updated conjunction At rear video data.
For example, if the first filter is " sweet can people ", and user wishes for the filter to be switched to " once " at this time, then uses Family can click " once " this filter mark under " modification filter " column, as shown in Figure 2 c, then at this point, mobile terminal To extract and delete the first filter in the synthesis rear video data " sweet can people ", original video data is obtained, is then used Second filter " once " carries out filter processing to the original video data, obtains updated synthesis rear video data.
Alternatively, these original images can be directly acquired at this time if having saved original image before this, to synthesize Original video data, i.e. reception filter switching request, imitate filter in the synthesis rear video data according to the filter switching request Fruit is updated, and obtains updated synthesis rear video data " also it can be such that
The second filter is selected according to the filter switching request, the original image of preservation is synthesized, original video is obtained Data carry out filter processing to original video data is changed using second filter, obtain updated synthesis rear video data.
For example, if the first filter is " sweet can people ", and user wishes for the filter to be switched to " once " at this time, then uses Family can click " once " this filter mark under " modification filter " column, as shown in Figure 2 c, then at this point, mobile terminal The original image of preservation to be synthesized, original video data, then using second filter " once " to the original video Data carry out filter processing, obtain updated synthesis rear video data.
208, mobile terminal output synthesis rear video data.
For example, former synthesis rear video data are exported, if carried out more to filter if do not switched over to filter Newly, then updated synthesis rear video data are exported.
209, when recorded video is not yet closed, next frame image is obtained, and returns and executes the filter using selection to obtaining The image got carries out the step of filter processing, that is, returns to step 203.
Optionally, recording process is being called, when obtaining a frame image, is may call upon music process, to play Music simultaneously shows the corresponding lyrics on the screen, that is to say, that user can record corresponding video while singing K, hereafter, The lyrics, the audio data of music and user's typing and video data can also be synthesized together, for example, reference can be made to Fig. 2 d. Further, it is also possible to multiple function choosing-items are arranged, so that user controls " K song " process, such as to volume, tone and/ Or progress is adjusted and control to broadcasting, etc., details are not described herein.
From the foregoing, it will be observed that the present embodiment can indicate that information selects the first filter according to filter, recording process is then called, with It obtains a frame image, and filter processing is carried out to the image got using the first filter of selection, display treated image, And image after the processing is added to image collection, when determining that the recording process is closed, just by all figures in image collection As being synthesized and being exported according to the sequencing of frame, otherwise, then continue to obtain next frame image, and return to execution using selection Filter the step of filter processing is carried out to the image that gets, filter processing is carried out to the video of recording in real time to realize Purpose;That is, in embodiments of the present invention, can be filtered frame by frame in the recording process of video to the image of acquisition Mirror processing, it can thus be avoided can only just can be carried out caused by filter processing after video is recorded completely in the prior art The too long problem of period of reservation of number, greatly reduce period of reservation of number, improve treatment effeciency, moreover, because can from By selection filter, and the pattern of filter can there are many, for example can be static filter, be also possible to dynamic filter, etc., because This, also compared with horn of plenty, treatment effect can be improved in processing mode.
Embodiment three,
It on the basis of example 2, optionally, can also be to synthesis in order to further beautify and enrich its effect Rear video data carry out special effect processing, i.e., " close all images in image collection according to the sequencing of frame in step At, obtain synthesis rear video data " (i.e. after step 207), this method can also include:
Acquisition for mobile terminal special effect processing template carries out special efficacy to the synthesis rear video data according to the special effect processing template Processing.
Wherein, as shown in figure 3, the special effect processing template may include " former piece ", " snowing ", " old film ", " fallen or falling flowers " and/ Or a variety of special effect processing templates such as " shadow ".The special effect processing template may include the first static filter information, video sample and The information such as the second static filter information, for example, specifically can be such that
(1) mobile terminal carries out filter processing to the synthesis rear video data according to the first static filter information, obtains Static filter rear video data.
Wherein, which can be original synthesis rear video data, be also possible to updated synthesis Rear video data.
Wherein, the first static filter information in different special effect processing templates will be different, for example, use filter, Sequence and the action time meeting difference of filter of filter, etc., i.e., filter 1, filter 2 ... filter in different special effect processing templates The pattern of mirror n and action time etc. all can different from, for example, for special effect processing template A, filter 1 is " can people ", is made It is 4 seconds with the time, filter 2 is " fair and tender ", and action time is 5 seconds, etc., and for special effect processing template B, filter 1 can It can be " missing old times or old friends " that action time is 8 seconds, filter 2 may be " can people ", and action time is 3 seconds, etc., and details are not described herein.
For example, action time is 16 seconds with the filter 1 for " can people ", filter 2 is " fair and tender ", and action time is 14 seconds, and The video length is for 30 seconds, then can be using the filter of " can people " pattern to first 16 seconds in the synthesis rear video data Frame carries out filter processing, and the filter of " fair and tender " pattern is used to carry out filter to rear 14 seconds frames in the synthesis rear video data Processing, and so on, etc..
(2) frame image data that current point in time is extracted from " snowing " video sample, using superposition filter by the figure Corresponding frame is overlapped processing in picture data and (1) static filter rear video data, and so on, class is also carried out to other frames Video data like processing, after obtaining superposition picture.
Wherein, which may include overlay video RGB (three primary colors, i.e., red (Red), (green) Green, (indigo plant) Blue) layer and alpha layers of overlay video can extract corresponding folded from overlay video RGB layer and alpha layers of overlay video Add the image data used, is then added in static state filter rear video data obtained in (1) using superposition filter.
It should be noted that extracted image pattern from video sample of the embodiment of the present invention, i.e., by the image pattern A kind of pattern as filter is overlapped with corresponding frame, and details are not described herein.
(3) filter processing is carried out to the video data after the superposition picture according to the second static filter information, obtains spy Effect processing video data.
Wherein, which equally may include multiple filters, such as filter n+1, filter n+2 ... filter Mirror m etc., wherein m is the positive integer more than or equal to 1.
Similarly, the second static filter information in different special effect processing templates will be different, for example, use filter, Sequence and the action time meeting difference of filter of filter, etc., i.e., filter n+1, filter n+ in different special effect processing templates The pattern of 2 ... filter m and action time etc. all can different from, for example, for special effect processing template A, filter n+1 is " pseudo-classic ", action time be 6 seconds, filter 2 be " fair and tender ", action time be 5 seconds, etc., and for special effect processing template B and Speech, filter 1 may be " missing old times or old friends ", and action time is 3 seconds, and filter 2 may be " can people ", and action time is 3 seconds, etc., place Reason mode is similar with (1), and details are not described herein.
It should be noted that can carry out the video length of special effect processing can be configured according to the demand of practical application, For example, can be set to 30 seconds or less, etc., details are not described herein.
From the foregoing, it will be observed that the present embodiment is handled except the beneficial effect that embodiment two may be implemented, it can also be to video data Special effect processing is carried out, further to enrich treatment effect, improves user experience.
Example IV,
In order to better implement above method, the embodiment of the present invention also provides a kind of video data processing apparatus, such as Fig. 4 a Shown, which may include acquiring unit 301, recording elements 302, filter unit 303, display unit 310, adding unit 304 and synthesis unit 305, as follows:
Acquiring unit 301 indicates that information selects the first filter for obtaining filter instruction information, and according to the filter.
Wherein, the mode for obtaining filter instruction information can carry filter instruction for example, specifically can receive by a variety of The recording request of information, alternatively, also can receive the filter instruction information, etc. that user directly inputs.
Wherein, which can be configured according to the demand of practical application, for example, can be set to " documentary film ", " can people ", " fair and tender ", and/or " missing old times or old friends " etc., it is, of course, also possible to "None" or " original " are set as, by "None" or " original " Treated that video is original video for equal filters, that is, handling by filter.
Recording elements 302, for calling recording process, to obtain a frame image.
For example, recording elements 302 specifically can receive recording request, for example receives user and pass through triggering on recording the page Recording request transmitted by key is recorded, video record engine is then started according to the recording request, to call recording process, and The recording process is executed, frame image, etc. is obtained by camera.
Wherein, user record the page on triggering record key mode can there are many, for example, can by touch, Sliding the modes such as is double-clicked and is triggered, and is not limited thereto.
Filter unit 303 carries out filter processing to the image that recording elements are got for the first filter using selection, Image after being handled.
Display unit 310, for showing image after the processing, such as to image rendering after the processing after, be shown in screen On.
Image after processing for showing image after the processing, and is added to image collection by adding unit 304.
Synthesis unit 305, for determining whether the recording process closes, if so, by all images in image collection It is synthesized according to the sequencing of frame, obtains synthesis rear video data, the synthesis rear video data are exported, if it is not, then triggering Recording elements obtain next frame image.
Optionally, for the ease of the subsequent processing to video data, after recording elements 302 get a frame image, also The image that can be will acquire is as original image to be saved, i.e., the video data processing apparatus can also include saving list Member 306 is as follows:
Storage unit 306, the image for will acquire save as original image.
Optionally, before synthesis unit 305 exports synthesis rear video data, the synthesis backsight frequency can also be shown According to, for user's preview, i.e., the video data processing apparatus can also include preview unit 307, as follows:
Preview unit 307 can be used for before exporting the synthesis rear video data, show the synthesis rear video data, For user's preview.
Optionally, user can also according to demand make after further modifying again the synthesis rear video data after browsing Output, it may be assumed that
Filter unit 303 can be also used for receiving filter switching request, according to the filter switching request to the synthesis backsight Frequency filtering effects in are updated, and updated synthesis rear video data are obtained, for example, specifically can be such that
The second filter is selected according to the filter switching request, extract and deletes the first filter in the synthesis rear video data Mirror obtains original video data, carries out filter processing to the original video data using second filter, obtains updated conjunction At rear video data.
Alternatively, these original images can be directly acquired at this time if having saved original image before this, to synthesize Original video data, i.e. filter unit 303 specifically can be used for:
The second filter is selected according to the filter switching request, the original image that storage unit 306 saves is synthesized, is obtained To original video data, filter processing is carried out to original video data is changed using second filter, after obtaining updated synthesis Video data.
Then at this point, synthesis unit 305, specifically can be used for exporting updated synthesis rear video data.
Optionally, in order to further beautify and enrich its effect, synthesis rear video data can also be carried out at special efficacy Reason, i.e., as shown in Figure 4 b, the video process apparatus can also include special effect processing unit 308, as follows:
Special effect processing unit 308 can be used for obtaining special effect processing template, according to the special effect processing template to synthesis backsight Frequency is according to progress special effect processing.
Such as, wherein the special effect processing template may include the first static filter information, video sample and the second static filter Mirror information, then the special effect processing unit 308 specifically can be used for:
Filter processing is carried out to the synthesis rear video data according to the first static filter information, obtains static filter backsight Frequency evidence;Image pattern is extracted from the video sample, using superposition filter by the image pattern and static filter backsight frequency Video data according to processing is overlapped, after obtaining superposition picture;According to the second static filter information to the superposition picture after Video data carry out filter processing, obtain special effect processing video data.
It should be noted that can carry out the video length of special effect processing can be configured according to the demand of practical application, For example, can be set to 30 seconds or less, etc., details are not described herein.
Optionally, recording process is called in recording elements 302, when obtaining a frame image, may call upon music Process, to play music and show the corresponding lyrics on the screen, that is to say, that user can record accordingly while singing K Video hereafter the lyrics, the audio data of music and user's typing and video data can also be synthesized together, i.e., such as Shown in Fig. 4 b, which can also include broadcast unit 309, as follows:
Broadcast unit 309 can be used for calling recording process in recording elements 302, when obtaining a frame image, call sound Happy broadcasting process, to play music and show the corresponding lyrics on the screen.
Then at this point, recording elements 302, can be also used for obtaining user using the recording process according to the music and lyrics institute The audio data of input;
Synthesis unit 305 specifically can be used for closing all images in image collection according to the sequencing of frame Cheng Hou, then synthesized with music, the lyrics and the audio data got is changed, obtain synthesis rear video data.
Further, synthesis unit 305 can also add other some preset informations in synthesis, than song title, The information such as chanteur, end of identification (logo), details are not described herein.
When it is implemented, above each unit can be used as independent entity to realize, any combination can also be carried out, is made It is realized for same or several entities, the specific implementation of above each unit can be found in the embodiment of the method for front, herein not It repeats again.
The video data processing apparatus specifically can integrate in the equipment such as mobile terminal, which is specifically as follows The equipment such as mobile phone or tablet computer.
From the foregoing, it will be observed that the acquiring unit 301 of the video data processing apparatus of the present embodiment can indicate information according to filter The first filter is selected, then recording process is called by recording elements 302, to obtain a frame image, and is used by filter unit 303 First filter of selection carries out filter processing to the image got, by image after the display of display unit 310 processing, and by adding Add unit 304 that image after the processing is added to image collection, by synthesis unit 305 when determining that the recording process is closed, All images in image collection are synthesized and are exported according to the sequencing of frame, otherwise, then trigger recording elements 302 after It is continuous to obtain next frame image, to realize the purpose for carrying out filter processing to the video of recording in real time, avoid in the prior art The too long problem of period of reservation of number caused by filter processing can only just be can be carried out, significantly after video is recorded completely Reduce period of reservation of number, improves treatment effeciency, moreover, because can be with unrestricted choice filter, and the pattern of filter can have It is a variety of, for example can be static filter, it is also possible to dynamic filter, etc., therefore, processing mode is also compared with horn of plenty, Ke Yiti High disposal effect.
Embodiment five,
Correspondingly, the embodiment of the present invention also provides a kind of mobile terminal, as shown in figure 5, the mobile terminal may include penetrating Frequently (RF, Radio Frequency) circuit 401, include one or more the memory of computer readable storage medium 402, input unit 403, display unit 404, sensor 405, voicefrequency circuit 406, Wireless Fidelity (WiFi, Wireless Fidelity) module 407, the processor 408 and the components such as power supply 409 that include one or more than one processing core. It will be understood by those skilled in the art that mobile terminal structure shown in Fig. 5 does not constitute the restriction to mobile terminal, can wrap It includes than illustrating more or fewer components, perhaps combines certain components or different component layouts.Wherein:
RF circuit 401 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 408 are transferred to;In addition, the data for being related to uplink are sent to Base station.In general, RF circuit 401 includes but is not limited to antenna, at least one amplifier, tuner, one or more oscillators, uses Family identity module (SIM, Subscriber Identity Module) card, transceiver, coupler, low-noise amplifier (LNA, Low Noise Amplifier), duplexer etc..In addition, RF circuit 401 can also by wireless communication with network and its He communicates equipment.Any communication standard or agreement, including but not limited to global system for mobile telecommunications system can be used in the wireless communication Unite (GSM, Global System of Mobile communication), general packet radio service (GPRS, General Packet Radio Service), CDMA (CDMA, Code Division Multiple Access), wideband code division it is more Location (WCDMA, Wideband Code Division Multiple Access), long term evolution (LTE, Long Term Evolution), Email, short message service (SMS, Short Messaging Service) etc..
Memory 402 can be used for storing software program and module, and processor 408 is stored in memory 402 by operation Software program and module, thereby executing various function application and data processing.Memory 402 can mainly include storage journey Sequence area and storage data area, wherein storing program area can the (ratio of application program needed for storage program area, at least one function Such as sound-playing function, image player function) etc.;Storage data area, which can be stored, uses created number according to mobile terminal According to (such as audio data, phone directory etc.) etc..In addition, memory 402 may include high-speed random access memory, can also wrap Include nonvolatile memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts. Correspondingly, memory 402 can also include Memory Controller, to provide processor 408 and input unit 403 to memory 402 access.
Input unit 403 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, in a specific embodiment In, input unit 403 may include touch sensitive surface and other input equipments.Touch sensitive surface, also referred to as touch display screen or touching Control plate, collect user on it or nearby touch operation (such as user using any suitable object such as finger, stylus or Operation of the attachment on touch sensitive surface or near touch sensitive surface), and corresponding connection dress is driven according to preset formula It sets.Optionally, touch sensitive surface may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus is examined The touch orientation of user is surveyed, and detects touch operation bring signal, transmits a signal to touch controller;Touch controller from Touch information is received on touch detecting apparatus, and is converted into contact coordinate, then gives processor 408, and can reception processing Order that device 408 is sent simultaneously is executed.Furthermore, it is possible to a variety of using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Type realizes touch sensitive surface.In addition to touch sensitive surface, input unit 403 can also include other input equipments.Specifically, other are defeated Entering equipment can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse One of mark, operating stick etc. are a variety of.
Display unit 404 can be used for showing information input by user or the information and mobile terminal 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 404 may include display panel, optionally, can use liquid crystal display (LCD, Liquid Crystal Display), the forms such as Organic Light Emitting Diode (OLED, Organic Light-Emitting Diode) configure display surface Plate.Further, touch sensitive surface can cover display panel, after touch sensitive surface detects touch operation on it or nearby, Processor 408 is sent to determine the type of touch event, is followed by subsequent processing device 408 according to the type of touch event in display panel It is upper that corresponding visual output is provided.Although touch sensitive surface and display panel are realized as two independent components in Fig. 5 Input and input function, but in some embodiments it is possible to it is touch sensitive surface and display panel is integrated and realize and input and defeated Function out.
Mobile terminal may also include at least one sensor 405, 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, and proximity sensor can close display surface when mobile terminal is moved in one's ear Plate and/or backlight.As a kind of motion sensor, gravity accelerometer can detect in all directions (generally three axis) The size of acceleration can detect that size and the direction of gravity when static, the application that can be used to identify mobile phone posture is (such as vertical and horizontal Shield switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;As for movement The other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor that terminal can also configure, it is no longer superfluous herein It states.
Voicefrequency circuit 406, loudspeaker, microphone can provide the audio interface between user and mobile terminal.Voicefrequency circuit Electric signal after the audio data received conversion can be transferred to loudspeaker, it is defeated to be converted to voice signal by loudspeaker by 406 Out;On the other hand, the voice signal of collection is converted to electric signal by microphone, is converted to audio after being received by voicefrequency circuit 406 Data, then by after the processing of audio data output processor 408, such as another mobile terminal is sent to through RF circuit 401, or Audio data is exported to memory 402 to be further processed.Voicefrequency circuit 406 is also possible that earphone jack, to provide The communication of peripheral hardware earphone and mobile terminal.
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 407 Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 5 shows Go out WiFi module 407, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need It to omit within the scope of not changing the essence of the invention.
Processor 408 is the control centre of mobile terminal, 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 402, and calls and be stored in memory 402 Interior data execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile phone.Optionally, it handles Device 408 may include one or more processing cores;Preferably, processor 408 can integrate application processor and modulation /demodulation processing Device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is mainly located Reason wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 408.
Mobile terminal further includes the power supply 409 (such as battery) powered to all parts, it is preferred that power supply can pass through electricity Management system and processor 408 are logically contiguous, to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.Power supply 409 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, mobile terminal can also include camera, bluetooth module etc., and details are not described herein.Specifically at this In embodiment, processor 408 in mobile terminal can according to following instruction, by one or more application program into The corresponding executable file of journey is loaded into memory 402, and is run by processor 408 and be stored in answering in memory 402 With program, to realize various functions:
It obtains filter and indicates information, and indicate that information selects the first filter according to the filter, recording process is called, to obtain One frame image carries out filter processing to the image got using the first filter of selection, and image after being handled is shown at this Image after reason, and image after the processing is added to image collection, determine whether the recording process closes, it, will figure if closing All images in image set conjunction are synthesized according to the sequencing of frame, are obtained synthesis rear video data, are exported the synthesis backsight Frequency evidence;If being not turned off, next frame image is obtained, and returns to execute and the image got is filtered using the filter of selection The operation of mirror processing.
Optionally, before exporting the synthesis rear video data, the synthesis rear video data can also be shown, for user Preview exports after making further modification to the synthesis rear video data according to demand so as to user, i.e., again after showing the synthesis Video data, after user's preview, which can also be performed the instruction operated as follows:
Filter switching request is received, filtering effects in the synthesis rear video data are carried out more according to the filter switching request Newly, updated synthesis rear video data are obtained, for details, reference can be made to the embodiments of front, and details are not described herein.
Optionally, in order to further beautify and enrich its effect, synthesis rear video data can also be carried out at special efficacy Reason, i.e., the instruction operated as follows can also be performed in the processor 408:
Special effect processing template is obtained, special effect processing, tool are carried out to the synthesis rear video data according to the special effect processing template The processing mode of body can be found in the embodiment of front, and details are not described herein.
In addition, when obtaining a frame image, may call upon music process, calling recording process to play sound Pleasure simultaneously shows the corresponding lyrics on the screen, that is to say, that user can record corresponding video while singing K, hereafter, also The lyrics, the audio data of music and user's typing and video data can be synthesized together;Further, in synthesis, Other some preset informations can also be added, than song title, chanteur, terminate the information such as logo, for details, reference can be made to fronts Embodiment, details are not described herein.
The specific implementation of above each operation can be found in the embodiment of front, and details are not described herein.
From the foregoing, it will be observed that the mobile terminal of the present embodiment can indicate that information selects the first filter according to filter, then call Recording process to obtain a frame image, and carries out filter processing to the image got using the first filter of selection, and display should Image after processing, and image after the processing is added to image collection, when determining that the recording process is closed, just by image collection In all images synthesized and exported according to the sequencing of frame, otherwise, then continue obtain next frame image, and return hold The step of row carries out filter processing to the image got using the filter of selection in real time carries out the video of recording to realize The purpose of filter processing, filter processing can only just be can be carried out and be led after video is recorded completely in the prior art by avoiding The too long problem of the period of reservation of number of cause, greatly reduces period of reservation of number, improves treatment effeciency, moreover, because can be with Unrestricted choice filter, and the pattern of filter can there are many, for example can be static filter, be also possible to dynamic filter, etc., Therefore, treatment effect can be improved also compared with horn of plenty in processing mode.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage Medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
It is provided for the embodiments of the invention a kind of video data handling procedure above and device is described in detail, this Apply that a specific example illustrates the principle and implementation of the invention in text, the explanation of above example is only intended to It facilitates the understanding of the method and its core concept of the invention;Meanwhile for those skilled in the art, according to the thought of the present invention, There will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not be construed as to this The limitation of invention.

Claims (11)

1. a kind of video data handling procedure characterized by comprising
It obtains filter and indicates information, and indicate that information selects the first filter according to the filter;
Recording process is called, to obtain a frame image, the image that will acquire saves as original image;
Filter processing is carried out to the image got using the first filter of selection, image after being handled shows the processing Image afterwards, and image after the processing is added to image collection;
Determine whether the recording process closes;
If so, all images in image collection are synthesized according to the sequencing of frame, synthesis rear video data are obtained, It shows the synthesis rear video data, for user's preview, exports the synthesis rear video data, obtain special effect processing template, The special effect processing template includes the first static filter information and video sample, and the described first static filter information includes multiple filters Mirror, pattern and the action time difference of each filter carry out the synthesis rear video data according to the special effect processing template special Effect processing, comprising: filter processing is carried out to the synthesis rear video data according to the described first static filter information, obtains static state Filter rear video data;The video sample includes overlay video RGB RGB layer and alpha layers of overlay video, from the view The frame image pattern that current point in time is extracted in frequency sample, extracts from overlay video RGB layer and alpha layers of overlay video Be superimposed the image data used accordingly, using superposition filter by described image sample and the static filter rear video data into Row superposition processing, the video data after obtaining superposition picture;
If it is not, then obtaining next frame image, and returns to execute and filter processing is carried out to the image got using the filter of selection The step of.
2. the method according to claim 1, wherein described show the synthesis rear video data, for user After preview, further includes:
Receive filter switching request;
Filtering effects in the synthesis rear video data are updated according to the filter switching request, obtain updated conjunction At rear video data;
The output synthesis rear video data, specifically: the updated synthesis rear video data of output.
3. according to the method described in claim 2, it is characterized in that, it is described according to the filter switching request to the synthesis after Filtering effects are updated in video data, obtain updated synthesis rear video data, comprising:
The second filter is selected according to the filter switching request;
The first filter in the synthesis rear video data is extracted and deleted, original video data is obtained;
Filter processing is carried out to the original video data using second filter, obtains updated synthesis backsight frequency According to.
4. according to the method described in claim 2, it is characterized in that, it is described according to the filter switching request to the synthesis after Filtering effects are updated in video data, obtain updated synthesis rear video data, comprising:
The second filter is selected according to the filter switching request;
The original image of preservation is synthesized, original video data is obtained;
Filter processing is carried out to the original video data using second filter, obtains updated synthesis backsight frequency According to.
5. the method according to claim 1, wherein the special effect processing template further includes the second static filter letter Described image sample and the static filter rear video data are then overlapped processing using superposition filter, are superimposed by breath After video data after picture, further includes:
Filter processing is carried out to the video data after the superposition picture according to the described second static filter information, is obtained at special efficacy Manage video data.
6. method according to any one of claims 1 to 5, which is characterized in that the calling recording process, to obtain a frame When image, further includes:
Music process is called, to play music and show the corresponding lyrics on the screen;
The audio data that user is inputted according to the music and the lyrics is obtained using the recording process;
All images by image collection are synthesized according to the sequencing of frame, obtain synthesis rear video data, tool Body are as follows: after all images in image collection are synthesized according to the sequencing of frame, then with the music, the lyrics and The audio data got is synthesized, and synthesis rear video data are obtained.
7. a kind of video data processing apparatus characterized by comprising
Acquiring unit indicates that information selects the first filter for obtaining filter instruction information, and according to the filter;
Recording elements, for calling recording process, to obtain a frame image;
Filter unit carries out filter processing to the image that recording elements are got for the first filter using selection, obtains everywhere Image after reason;
Display unit, for showing image after the processing;
Adding unit, for image after the processing to be added to image collection;
Synthesis unit, for determining whether the recording process closes, if so, by all images in image collection according to frame Sequencing synthesized, obtain synthesis rear video data, the synthesis rear video data exported, if it is not, then triggering recording Unit obtains next frame image;
Storage unit, the image for will acquire save as original image;
Preview unit, for the synthesis rear video data being shown, for user before exporting the synthesis rear video data Preview;
Special effect processing unit, for obtaining special effect processing template, the special effect processing template include the first static filter information and Video sample, the described first static filter information include multiple filters, pattern and the action time difference of each filter, according to described Special effect processing template carries out special effect processing to the synthesis rear video data, and the special effect processing unit is specifically used for according to First static filter information carries out filter processing to the synthesis rear video data, obtains static filter rear video data;It is described Video sample includes overlay video RGB RGB layer and alpha layers of overlay video, and the special effect processing unit is specifically used for from institute The frame image pattern for extracting current point in time in video sample is stated, is mentioned from overlay video RGB layer and alpha layers of overlay video Taking-up be superimposed the image data used accordingly, using being superimposed filter for described image sample and the static state filter backsight frequency Video data according to processing is overlapped, after obtaining superposition picture.
8. device according to claim 7, which is characterized in that
The filter unit, is also used to receive filter switching request, according to the filter switching request to the synthesis rear video Filtering effects are updated in data, obtain updated synthesis rear video data;
The synthesis unit is specifically used for exporting updated synthesis rear video data.
9. device according to claim 8, which is characterized in that
The filter unit is specifically used for selecting the second filter according to the filter switching request, extracts and delete the synthesis The first filter in rear video data, obtains original video data, is filtered using second filter to original video data Mirror processing, obtains updated synthesis rear video data;Alternatively,
The filter unit, be specifically used for according to the filter switching request select the second filter, by the original image of preservation into Row synthesis, obtains original video data, filter processing is carried out to original video data using second filter, after obtaining update Synthesis rear video data.
10. device according to claim 7, which is characterized in that the special effect processing template further includes the second static filter Information, then the special effect processing unit are also used to:
Filter processing is carried out to the video data after the superposition picture according to the described second static filter information, is obtained at special efficacy Manage video data.
11. according to the described in any item devices of claim 7 to 10, which is characterized in that further include broadcast unit;
The broadcast unit, for recording elements call recording process, with obtain a frame image when, call music into Journey, to play music and show the corresponding lyrics on the screen;
The recording elements are also used to obtain the audio that user is inputted according to the music and the lyrics using the recording process Data;
The synthesis unit, after all images in image collection are synthesized according to the sequencing of frame, then It is synthesized with the music, the lyrics and the audio data got, obtains synthesis rear video data.
CN201510063653.9A 2015-02-04 2015-02-04 A kind of video data handling procedure and device Active CN104967801B (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
CN201510063653.9A CN104967801B (en) 2015-02-04 2015-02-04 A kind of video data handling procedure and device
TW105102201A TWI592021B (en) 2015-02-04 2016-01-25 Method, device, and terminal for generating video
MYPI2017702466A MY197743A (en) 2015-02-04 2016-01-28 Video generation method and terminal
PCT/CN2016/072448 WO2016124095A1 (en) 2015-02-04 2016-01-28 Video generation method, apparatus and terminal
US15/666,809 US10200634B2 (en) 2015-02-04 2017-08-02 Video generation method, apparatus and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510063653.9A CN104967801B (en) 2015-02-04 2015-02-04 A kind of video data handling procedure and device

Publications (2)

Publication Number Publication Date
CN104967801A CN104967801A (en) 2015-10-07
CN104967801B true CN104967801B (en) 2019-09-17

Family

ID=54221736

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510063653.9A Active CN104967801B (en) 2015-02-04 2015-02-04 A kind of video data handling procedure and device

Country Status (1)

Country Link
CN (1) CN104967801B (en)

Families Citing this family (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI592021B (en) * 2015-02-04 2017-07-11 騰訊科技(深圳)有限公司 Method, device, and terminal for generating video
CN104967900B (en) * 2015-05-04 2018-08-07 腾讯科技(深圳)有限公司 A kind of method and apparatus generating video
CN105700769B (en) * 2015-12-31 2018-11-30 宇龙计算机通信科技(深圳)有限公司 A kind of dynamic material adding method, device and electronic equipment
CN106095278B (en) * 2016-06-22 2020-02-11 维沃移动通信有限公司 Photographing method and mobile terminal
CN106303293B (en) * 2016-08-15 2019-07-30 Oppo广东移动通信有限公司 Method for processing video frequency, device and mobile terminal
CN106657810A (en) * 2016-09-26 2017-05-10 维沃移动通信有限公司 Filter processing method and device for video image
CN106341696A (en) * 2016-09-28 2017-01-18 北京奇虎科技有限公司 Live video stream processing method and device
CN108076113B (en) * 2016-11-15 2021-04-16 同方威视技术股份有限公司 Method, server and system for operating security check data
CN106530222A (en) * 2016-11-25 2017-03-22 维沃移动通信有限公司 Picture saving method and mobile terminal
CN106657814B (en) * 2017-01-17 2018-12-04 维沃移动通信有限公司 A kind of video recording method and mobile terminal
CN106937043A (en) * 2017-02-16 2017-07-07 奇酷互联网络科技(深圳)有限公司 The method and apparatus of mobile terminal and its image procossing
CN107707828B (en) * 2017-09-26 2019-07-26 维沃移动通信有限公司 A kind of method for processing video frequency and mobile terminal
CN108012090A (en) * 2017-10-25 2018-05-08 北京川上科技有限公司 A kind of method for processing video frequency, device, mobile terminal and storage medium
CN107948543B (en) * 2017-11-16 2021-02-02 北京奇虎科技有限公司 Video special effect processing method and device
CN107948733B (en) * 2017-12-04 2020-07-10 腾讯科技(深圳)有限公司 Video image processing method and device and electronic equipment
CN108965770B (en) * 2018-08-30 2021-12-07 Oppo广东移动通信有限公司 Image processing template generation method and device, storage medium and mobile terminal
CN109672837A (en) * 2019-01-24 2019-04-23 深圳慧源创新科技有限公司 Equipment of taking photo by plane real-time video method for recording, mobile terminal and computer storage medium
CN112396676B (en) * 2019-08-16 2024-04-02 北京字节跳动网络技术有限公司 Image processing method, apparatus, electronic device, and computer-readable storage medium
CN111263190A (en) * 2020-02-27 2020-06-09 游艺星际(北京)科技有限公司 Video processing method and device, server and storage medium
CN111416950B (en) * 2020-03-26 2023-11-28 腾讯科技(深圳)有限公司 Video processing method and device, storage medium and electronic equipment
CN113949820A (en) * 2020-07-15 2022-01-18 北京破壁者科技有限公司 Special effect processing method and device, electronic equipment and storage medium
CN112381708A (en) * 2020-11-13 2021-02-19 咪咕文化科技有限公司 Filter switching method, electronic device, and computer-readable storage medium
CN112380379B (en) * 2020-11-18 2023-05-02 抖音视界有限公司 Lyric special effect display method and device, electronic equipment and computer readable medium
CN112511750B (en) * 2020-11-30 2022-11-29 维沃移动通信有限公司 Video shooting method, device, equipment and medium
CN113810640A (en) * 2021-08-12 2021-12-17 荣耀终端有限公司 Video processing method and device and electronic equipment
CN113784165B (en) * 2021-09-17 2023-05-05 北京快来文化传播集团有限公司 Short video filter superposition method, system, electronic equipment and readable storage medium
CN113630557B (en) * 2021-10-09 2022-02-11 腾讯科技(深圳)有限公司 Image processing method, apparatus, device, storage medium, and computer program product

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103037165A (en) * 2012-12-21 2013-04-10 厦门美图网科技有限公司 Photographing method of immediate-collaging and real-time filter
CN103686450A (en) * 2013-12-31 2014-03-26 广州华多网络科技有限公司 Video processing method and system
CN103777852A (en) * 2012-10-18 2014-05-07 腾讯科技(深圳)有限公司 Image obtaining method and device
CN104836961A (en) * 2015-05-13 2015-08-12 广州市久邦数码科技有限公司 Implementation method of real-time filter shooting based on Android system and system thereof

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5493438B2 (en) * 2009-04-10 2014-05-14 株式会社ニコン Projector and projected image correction program
CN104023192B (en) * 2014-06-27 2016-04-13 努比亚技术有限公司 A kind of method and apparatus of recorded video

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103777852A (en) * 2012-10-18 2014-05-07 腾讯科技(深圳)有限公司 Image obtaining method and device
CN103037165A (en) * 2012-12-21 2013-04-10 厦门美图网科技有限公司 Photographing method of immediate-collaging and real-time filter
CN103686450A (en) * 2013-12-31 2014-03-26 广州华多网络科技有限公司 Video processing method and system
CN104836961A (en) * 2015-05-13 2015-08-12 广州市久邦数码科技有限公司 Implementation method of real-time filter shooting based on Android system and system thereof

Also Published As

Publication number Publication date
CN104967801A (en) 2015-10-07

Similar Documents

Publication Publication Date Title
CN104967801B (en) A kind of video data handling procedure and device
CN104967900B (en) A kind of method and apparatus generating video
CN110417991A (en) A kind of record screen method and electronic equipment
CN110389802A (en) A kind of display methods and electronic equipment of flexible screen
CN109462692A (en) Split screen display available operating method, mobile terminal and computer readable storage medium
WO2016124095A1 (en) Video generation method, apparatus and terminal
CN109766043A (en) The operating method and electronic equipment of electronic equipment
CN108037871A (en) Screenshotss method and mobile terminal
CN106293375B (en) A kind of method for changing scenes and equipment
CN108920239A (en) A kind of long screenshotss method and mobile terminal
CN106775773A (en) A kind of theme control method and terminal device
CN109634495A (en) Method of payment, device and user equipment
CN108898552A (en) Picture joining method, double screen terminal and computer readable storage medium
CN109947248A (en) Vibration control method, mobile terminal and computer readable storage medium
CN107247585A (en) Desktop icons customizing method, mobile terminal and storage medium
CN108111676A (en) A kind of application control method and mobile terminal
CN110471604A (en) A kind of more application switching methods and relevant apparatus
CN110379428A (en) A kind of information processing method and terminal device
CN109618218A (en) A kind of method for processing video frequency and mobile terminal
CN106506437A (en) A kind of audio data processing method, and equipment
CN109729267A (en) Filter selection method, mobile terminal and computer readable storage medium
CN105808043B (en) A kind of setting method and mobile terminal of terminal applies
CN108712612A (en) A kind of photographic method, terminal and computer readable storage medium
CN105812956B (en) Programme information reminding method and device during net cast
CN109558009A (en) Video broadcasting method, mobile terminal and computer readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20151007

Assignee: Ocean interactive (Beijing) Information Technology Co., Ltd.

Assignor: Tencent Technology (Shenzhen) Co., Ltd.

Contract record no.: 2016990000422

Denomination of invention: Video data processing method and device

License type: Common License

Record date: 20161009

LICC Enforcement, change and cancellation of record of contracts on the licence for exploitation of a patent or utility model
GR01 Patent grant
GR01 Patent grant