CN104967865B - Video previewing method and device - Google Patents

Video previewing method and device Download PDF

Info

Publication number
CN104967865B
CN104967865B CN201510130147.7A CN201510130147A CN104967865B CN 104967865 B CN104967865 B CN 104967865B CN 201510130147 A CN201510130147 A CN 201510130147A CN 104967865 B CN104967865 B CN 104967865B
Authority
CN
China
Prior art keywords
video
frame
preview
treated
special efficacy
Prior art date
Application number
CN201510130147.7A
Other languages
Chinese (zh)
Other versions
CN104967865A (en
Inventor
田奇
Original Assignee
腾讯科技(北京)有限公司
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 腾讯科技(北京)有限公司 filed Critical 腾讯科技(北京)有限公司
Priority to CN201510130147.7A priority Critical patent/CN104967865B/en
Publication of CN104967865A publication Critical patent/CN104967865A/en
Application granted granted Critical
Publication of CN104967865B publication Critical patent/CN104967865B/en

Links

Abstract

The invention discloses a kind of video previewing method and devices, belong to field of computer technology.The video previewing method includes: each frame video frame successively obtained in target video;Special effect processing is carried out at least frame video frame in the target video, each frame video frame corresponding to the target video that obtains that treated;By each frame video frame buffer corresponding to treated the target video into caching preview queue;Video preview is carried out by each frame video frame cached in the caching preview queue.The preview of the special efficacy video, the time longer problem that centre is consumed can just be provided a user after synthesizing special efficacy video by solving terminal needs in the prior art;Reach and video preview can be realized after each frame video frame corresponding to the target video that obtains that treated, and then has shortened the effect of required duration when video preview.

Description

Video previewing method and device

Technical field

The present invention relates to field of computer technology, in particular to a kind of video previewing method and device.

Background technique

Short video sharing application is at present on the mobile terminals such as smart phone, tablet computer and multimedia player A kind of popular application program.User can shoot several seconds brief videos by smart phone to be shared with good friend, make Information can be propagated as microblogging by obtaining short-sighted frequency.

Short video sharing application can provide the function that special effect processing is carried out to short-sighted frequency.A kind of spy that the relevant technologies provide Effect treatment process includes: that terminal successively obtains each frame video frame in video;Special effect processing is carried out respectively to each frame video frame And the video frame that obtains that treated;To treated, each frame video frame synthesize and then finally obtains special efficacy video;Xiang Yong Family provides the preview of the special efficacy video.

In the implementation of the present invention, inventor has found above-mentioned technology the prior art has at least the following problems: terminal is needed in spy After imitating video complete synthesis, the preview of the special efficacy video can be just provided a user, the time that centre is consumed is longer.

Summary of the invention

In order to solve the problems in the existing technology, the embodiment of the invention provides a kind of video previewing method and dresses It sets.The technical solution is as follows:

In a first aspect, a kind of video previewing method is provided, this method comprises:

Successively obtain each frame video frame in target video;

Special effect processing is carried out at least frame video frame in target video, corresponding to the target video that obtains that treated Each frame video frame;

By each frame video frame buffer corresponding to treated target video into caching preview queue;

Video preview is carried out by each frame video frame cached in caching preview queue.

Optionally, special effect processing is carried out at least frame video frame in target video, the target video that obtains that treated After corresponding each frame video frame, this method further include:

Each frame video frame according to corresponding to treated target video synthesizes special efficacy video;

Video preview is carried out by each frame video frame cached in caching preview queue, comprising:

During synthesizing special efficacy video, special efficacy video is carried out by each frame video frame cached in caching preview queue Preview.

Optionally, the preview of special efficacy video is carried out by each frame video frame cached in caching preview queue, comprising:

Each frame video frame cached in caching preview queue is successively read with predeterminated frequency;

Play each frame video frame read.

Optionally, this method further include:

After synthesizing special efficacy video, the preview of special efficacy video is carried out by synthesizing obtained special efficacy video.

Optionally, special effect processing is carried out at least frame video frame in target video, the target video that obtains that treated Corresponding each frame video frame, comprising:

Special effect processing is carried out to each frame in each frame video frame, each frame video frame that obtains that treated;

Alternatively,

Special effect processing is carried out to the key frame in each frame video frame, in the key frame that obtains that treated and each frame video frame Other video frames.

Second aspect, provides a kind of video preview device, which includes:

Module is obtained, for successively obtaining each frame video frame in target video;

Processing module, for carrying out special effect processing at least frame video frame in target video, the mesh that obtains that treated Mark each frame video frame corresponding to video;

Cache module, for each frame video frame buffer corresponding to processing module treated target video is pre- to caching It lookes in queue;

First previewing module, each frame video frame cached in the caching preview queue for being cached by cache module Carry out video preview.

Optionally, the device further include:

Synthesis module, for each frame video frame synthesis according to corresponding to the processing module target video that obtains that treated Special efficacy video;

First previewing module is also used to during synthesis module synthesizes special efficacy video, by caching preview queue Each frame video frame of caching carries out the preview of special efficacy video.

Optionally, first previewing module, comprising:

Reading unit, for being successively read each frame video frame cached in caching preview queue with predeterminated frequency;

Broadcast unit, each frame video frame read for playing reading unit.

Optionally, the device further include:

Second previewing module, for after synthesis module synthesizes special efficacy video, by synthesize obtained special efficacy video into The preview of row special efficacy video.

Optionally, the processing module, comprising:

First processing units, for carrying out special effect processing to each frame in each frame video frame, it is each to obtain that treated Frame video frame;

Alternatively,

The second processing unit, for carrying out special effect processing to the key frame in each frame video frame, it is crucial to obtain that treated Other video frames in frame and each frame video frame.

The beneficial effect of technical solution provided in an embodiment of the present invention is:

It, will be each corresponding to treated target video after carrying out special effect processing to the video frame in target video The frame buffer of frame video is into caching preview queue, and then each frame video frame by caching in caching preview queue carries out video preprocessor It lookes at;Solve in the prior art terminal need after synthesizing special efficacy video, can just provide a user the preview of the special efficacy video, The time longer problem that centre is consumed;Reach after each frame video frame corresponding to the target video that obtains that treated i.e. Video preview can be achieved, and then shorten the effect of required duration when video preview.

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 the method flow diagram of video previewing method provided by one embodiment of the present invention;

Fig. 2A is the method flow diagram for the video previewing method that another embodiment of the present invention provides;

Fig. 2 B is the schematic diagram of information flow direction involved in the video previewing method of another embodiment of the present invention offer;

Fig. 3 is the structural block diagram of video preview device provided by one embodiment of the present invention;

Fig. 4 is the structural block diagram for the video preview device that another embodiment of the present invention provides;

Fig. 5 is the structural block diagram of terminal provided by one embodiment of the present invention.

Specific embodiment

To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention make into It is described in detail to one step, it is clear that the described embodiments are only some of the embodiments of the present invention, rather than whole implementation Example.Based on the embodiments of the present invention, obtained by those of ordinary skill in the art without making creative efforts All other embodiment, shall fall within the protection scope of the present invention.

Referring to FIG. 1, such as scheming it illustrates the method flow diagram of video previewing method provided by one embodiment of the present invention Shown in 1, which includes:

Step 101, each frame video frame in target video is successively obtained.

Step 102, special effect processing is carried out at least frame video frame in target video, the target video that obtains that treated Corresponding each frame video frame.

Step 103, by each frame video frame buffer corresponding to treated target video into caching preview queue.

Step 104, video preview is carried out by each frame video frame cached in caching preview queue.

In conclusion video previewing method provided in this embodiment, by at least frame video frame in target video After carrying out special effect processing, by each frame video frame buffer corresponding to treated target video into caching preview queue, into And each frame video frame by caching in caching preview queue carries out video preview;It solves terminal needs in the prior art closing After special efficacy video, the preview of the special efficacy video, the time longer problem that centre is consumed can be just provided a user;Reach Video preview can be realized after each frame video frame corresponding to the target video that obtains that treated, and then shorten video preview The effect of Shi Suoxu duration.

Please refer to Fig. 2A, it illustrates another embodiment of the present invention provides video previewing method method flow diagram, such as Shown in Fig. 2A, which includes:

Step 201, each frame video frame in target video is successively obtained.

When terminal needs to carry out special effect processing to target video, terminal can successively obtain the view of each frame in target video Frequency frame.Wherein, target video can be less than the short-sighted frequency of preset length for video length.For example, target video is video length Short-sighted frequency less than 8S.

Step 202, special effect processing is carried out at least frame video frame in target video, the target video that obtains that treated Corresponding each frame video frame.

After terminal reads each frame video frame in target video, terminal can be carried out at special efficacy each frame video frame Reason, alternatively, terminal only can also carry out special effect processing to part of video frame.So optionally, this step may include as Any one of lower two kinds of possible implementations:

The first:

Special effect processing is carried out to each frame in each frame video frame, each frame video frame that obtains that treated.

Terminal can carry out special effect processing to each frame in each frame video frame got, and then it is every to obtain that treated One frame special efficacy video frame, each frame special efficacy video frame are each frame video frame corresponding to treated target video.

Second:

Special effect processing is carried out to the key frame in each frame video frame, in the key frame that obtains that treated and each frame video frame Other video frames.

Optionally, terminal can also extract the key frame in each frame video frame, carry out at special efficacy to the key frame extracted Reason, and then other video frames not processed in the key frame that obtains that treated and target video, treated key frame with And each frame video frame corresponding to not processed other video frames target video that is that treated in target video.

It should be noted is that the present embodiment only with by above two processing mode to the video in target video For frame carries out special effect processing, optionally, terminal can also be carried out the video frame in target video by other processing modes Special effect processing.For example, terminal such as carries out special effect processing, this reality to the video frame in target video every 3 frames every predetermined frame number Example is applied to this and without limitation.

It needs to illustrate on the other hand, terminal can also be by least two treatment progress to the video frame in target video Carry out parallel special effect processing, the present embodiment to this also without limitation.

Step 203, by each frame video frame buffer corresponding to treated target video into caching preview queue.

After performing step 202, terminal can be by each frame video frame buffer corresponding to treated target video extremely It caches in preview queue.

Optionally, this step may include:

(1), when terminal carries out special effect processing to each frame in target video, terminal can obtain processing each Frame buffer is into caching preview queue.

(2), when terminal carries out special effect processing to the key frame in each frame video frame in target video, terminal will be handled Key frame and other not processed video frame buffers afterwards extremely caches in preview queue.

Optionally, terminal can be by treated key frame and other not processed video frames according to each video frame Corresponding sequence is successively cached into caching preview queue in target video.For example, the 5th frame in target video and 8 frames are key frame, then terminal can be by the 1st frame in target video, the 2nd frame, the 3rd frame, the 4th frame, treated the 5th frame, the 6th Frame, the 7th frame and treated that the 8th frame successively caches into caching preview queue.

Step 204, each frame video frame according to corresponding to treated target video synthesizes special efficacy video.

After performing step 202, terminal can also each frame video frame according to corresponding to treated target video close At special efficacy video.

It should be noted that the present embodiment only by after first carrying out step 203 execute step 204 for, optionally, terminal It may also be performed simultaneously step 203 and step 204, or execute step 203 after first carrying out step 204, the present embodiment is in fact Border execution sequence and without limitation.

Step 205, it during synthesizing special efficacy video, is carried out by each frame video frame cached in caching preview queue The preview of special efficacy video.

Optionally, during terminal synthesis special efficacy video, terminal can be played in caching preview queue with predeterminated frequency Each frame video frame of caching.

Optionally, this step may include:

First, each frame video frame cached in caching preview queue is successively read with predeterminated frequency.

Terminal can be successively read each frame video frame cached in caching preview queue with predeterminated frequency.Wherein, frequency is preset Rate is more than or equal to predetermined threshold, which is the frame number of the video frame of broadcasting per second in video.For example, being broadcast so that video is per second For putting 24 frame video frames, which is 24HZ.

Second, play each frame video frame read.

After terminal reads each frame video frame, terminal can play in order each frame video frame read.

Step 206, after synthesizing special efficacy video, the preview of special efficacy video is carried out by synthesizing obtained special efficacy video.

After terminal synthesizes to obtain special efficacy video, terminal can carry out special efficacy video by synthesizing obtained special efficacy video Preview.

For example, terminal is by caching each frame video cached in preview queue during terminal synthesizes special efficacy video Frame carries out preview;And after special efficacy Video Composition, terminal carries out preview automatically by the special efficacy video that synthesis obtains.

In an application scenarios of the present embodiment, by taking target video is the short-sighted frequency of 8S as an example, when user's request is short to this When video carries out special effect processing, terminal obtains each frame video frame in the short-sighted frequency, carries out special effect processing to each frame video frame, Each frame special efficacy video frame that obtains that treated.Hereafter, obtained each frame special efficacy video frame is divided two-way to use by terminal.Wherein all the way Terminal is by each frame special efficacy video frame buffer into caching preview queue, and the previewing module in terminal in caching preview queue by delaying Each frame special efficacy video frame deposited carries out preview;Wherein another way, terminal by each frame special efficacy video frame synthesize special efficacy video, and After synthesis obtains special efficacy video, special efficacy video is passed to previewing module, previewing module carries out video preprocessor by the special efficacy video It lookes at, information flow direction figure please refers to Fig. 2 B.

In conclusion video previewing method provided in this embodiment, by at least frame video frame in target video After carrying out special effect processing, by each frame video frame buffer corresponding to treated target video into caching preview queue, into And each frame video frame by caching in caching preview queue carries out video preview;It solves terminal needs in the prior art closing After special efficacy video, the preview of the special efficacy video, the time longer problem that centre is consumed can be just provided a user;Reach Video preview can be realized after each frame video frame corresponding to the target video that obtains that treated, and then shorten video preview The effect of Shi Suoxu duration.

Further, since terminal carries out special effect processing to video frame, so duration needed for the video frame that obtains that treated compared with It is short, so video previewing method provided in this embodiment has achieved the effect that user may not need waiting i.e. video-previewing.

Referring to FIG. 3, such as scheming it illustrates the structural block diagram of video preview device provided by one embodiment of the present invention Shown in 3, which includes: to obtain module 310, processing module 320, cache module 330 and the first previewing module 340。

Module 310 is obtained, for successively obtaining each frame video frame in target video;

Processing module 320, for obtaining at least frame video frame progress special effect processing in target video, treated Each frame video frame corresponding to target video;

Cache module 330, for by each frame video frame buffer corresponding to treated the target video of processing module 320 extremely It caches in preview queue;

First previewing module 340, for caching each frame cached in obtained caching preview queue by cache module 330 Video frame carries out video preview.

In conclusion video preview device provided in this embodiment, by at least frame video frame in target video After carrying out special effect processing, by each frame video frame buffer corresponding to treated target video into caching preview queue, into And each frame video frame by caching in caching preview queue carries out video preview;It solves terminal needs in the prior art closing After special efficacy video, the preview of the special efficacy video, the time longer problem that centre is consumed can be just provided a user;Reach Video preview can be realized after each frame video frame corresponding to the target video that obtains that treated, and then shorten video preview The effect of Shi Suoxu duration.

Referring to FIG. 4, such as scheming it illustrates the structural block diagram of video preview device provided by one embodiment of the present invention Shown in 4, which includes: to obtain module 410, processing module 420, cache module 430 and the first previewing module 440。

Module 410 is obtained, for successively obtaining each frame video frame in target video;

Processing module 420, for obtaining at least frame video frame progress special effect processing in target video, treated Each frame video frame corresponding to target video;

Cache module 430, for by each frame video frame buffer corresponding to treated the target video of processing module 420 extremely It caches in preview queue;

First previewing module 440, for caching each frame cached in obtained caching preview queue by cache module 430 Video frame carries out video preview.

Optionally, the device further include:

Synthesis module 450, for each frame video according to corresponding to the target video that obtains that treated of processing module 420 Frame synthesizes special efficacy video;

First previewing module 440 is also used to during synthesis module 450 synthesizes special efficacy video, by caching preview Each frame video frame cached in queue carries out the preview of special efficacy video.

Optionally, first previewing module 440, comprising:

Reading unit 441, for being successively read each frame video frame cached in caching preview queue with predeterminated frequency;

Broadcast unit 442, each frame video frame read for playing reading unit 441.

Optionally, the device further include:

Second previewing module 460, the special efficacy for being obtained by synthesis after synthesis module 450 synthesizes special efficacy video The preview of video progress special efficacy video.

Optionally, the processing module 420, comprising:

First processing units 421, for carrying out special effect processing to each frame in each frame video frame, it is every to obtain that treated One frame video frame;

Alternatively,

The second processing unit 422, for obtaining to the key frame progress special effect processing in each frame video frame, treated is closed Other video frames in key frame and each frame video frame.

In conclusion video preview device provided in this embodiment, by at least frame video frame in target video After carrying out special effect processing, by each frame video frame buffer corresponding to treated target video into caching preview queue, into And each frame video frame by caching in caching preview queue carries out video preview;It solves terminal needs in the prior art closing After special efficacy video, the preview of the special efficacy video, the time longer problem that centre is consumed can be just provided a user;Reach Video preview can be realized after each frame video frame corresponding to the target video that obtains that treated, and then shorten video preview The effect of Shi Suoxu duration.

Further, since terminal carries out special effect processing to video frame, so duration needed for the video frame that obtains that treated compared with It is short, so video previewing method provided in this embodiment has achieved the effect that user may not need waiting i.e. video-previewing.

Referring to FIG. 5, it illustrates the structural schematic diagrams of terminal provided by one embodiment of the present invention.The terminal is for real The video previewing method provided in above-described embodiment is provided.Specifically:

Terminal 500 may include RF (Radio Frequency, radio frequency) circuit 510, include one or more meter The memory 520 of calculation machine readable storage medium storing program for executing, input unit 530, display unit 540, sensor 550, voicefrequency circuit 560, WiFi (wireless fidelity, Wireless Fidelity) module 570, the processing for including one or more than one processing core The components such as device 580 and power supply 590.It will be understood by those skilled in the art that terminal structure shown in Fig. 5 is not constituted pair The restriction of terminal may include perhaps combining certain components or different component cloth than illustrating more or fewer components It sets.Wherein:

RF circuit 510 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 580 are transferred to;In addition, the data for being related to uplink are sent to Base station.In general, RF circuit 510 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 510 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 CodeDivision Multiple Access, wideband code division multiple access), LTE (Long Term Evolution, long term evolution), Email, SMS (Short Messaging Service, short message service) etc..

Memory 520 can be used for storing software program and module, and processor 580 is stored in memory 520 by operation Software program and module, thereby executing various function application and data processing.Memory 520 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 terminal 500 According to (such as audio data, phone directory etc.) etc..In addition, memory 520 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 520 can also include Memory Controller, to provide processor 580 and input unit 530 to memory 520 access.

Input unit 530 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 530 may include figure As input equipment 531 and other input equipments 532.Image input device 531 can be camera, be also possible to optoelectronic scanning Equipment.In addition to image input device 531, input unit 530 can also include other input equipments 532.Specifically, other are inputted Equipment 532 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 540 can be used for showing information input by user or the information and terminal 500 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 540 may include display panel 541, optionally, can use LCD (Liquid Crystal Display, liquid crystal Show device), the forms such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) configure display panel 541。

Terminal 500 may also include at least one sensor 550, 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 541, and proximity sensor can close display when terminal 500 is moved in one's ear Panel 541 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 500 can also configure, herein It repeats no more.

Voicefrequency circuit 560, loudspeaker 561, microphone 562 can provide the audio interface between user and terminal 500.Audio Electric signal after the audio data received conversion can be transferred to loudspeaker 561, be converted to sound by loudspeaker 561 by circuit 560 Sound signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 562, after being received by voicefrequency circuit 560 Audio data is converted to, then by after the processing of audio data output processor 580, such as another end is sent to through RF circuit 510 End, or audio data is exported to memory 520 to be further processed.Voicefrequency circuit 560 is also possible that earphone jack, To provide the communication of peripheral hardware earphone Yu terminal 500.

WiFi belongs to short range wireless transmission technology, and terminal 500 can help user's transceiver electronics by WiFi module 570 Mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 5 is shown WiFi module 570, but it is understood that, and it is not belonging to must be configured into for terminal 500, it can according to need completely Do not change in the range of the essence of invention and omits.

Processor 580 is the control centre of terminal 500, 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 520, and calls and be stored in memory 520 Interior data execute the various functions and processing data of terminal 500, to carry out integral monitoring to mobile phone.Optionally, processor 580 may include one or more processing cores;Preferably, processor 580 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 580.

Terminal 500 further includes the power supply 590 (such as battery) powered to all parts, it is preferred that power supply can pass through electricity Management system and processor 580 are logically contiguous, to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.Power supply 590 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 500 can also be including bluetooth module etc., and details are not described herein.

Specifically in the present embodiment, terminal 500 further includes having memory and one or more than one program, In one perhaps more than one program be stored in memory and be configured to be executed by one or more than one processor. Said one or more than one program include for executing video previewing method.

It should be understood that video preview device provided by the above embodiment is when carrying out video preview, only with above-mentioned each The division progress of functional module can according to need and for example, in practical application by above-mentioned function distribution by different function Energy module is completed, i.e., the internal structure of equipment is divided into different functional modules, to complete whole described above or portion Divide function.In addition, the embodiment of the method for video preview device provided by the above embodiment and video previewing method belongs to same structure Think, 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 be should all be included in the protection scope of the present invention.

Claims (4)

1. a kind of video previewing method, which is characterized in that the described method includes:
Successively obtain each frame video frame in target video;
Special effect processing is carried out to the key frame in each frame video frame, obtain that treated the key frame and each frame Other video frames in video frame;Alternatively, being carried out at special efficacy to the video frame every predetermined frame number in each frame video frame Other video frames in reason, the video frame that obtains that treated and each frame video frame;Wherein, the special effect processing is Parallel special effect processing is carried out by least two treatment progress;
Each frame video frame according to corresponding to treated the target video synthesizes special efficacy video;
By each frame video frame buffer corresponding to treated the target video into caching preview queue;
During synthesizing the special efficacy video, each frame cached in the caching preview queue is successively read with predeterminated frequency Video frame plays each frame video frame read, wherein the predeterminated frequency is more than or equal to default predetermined threshold, described Predetermined threshold is the frame number of the video frame of broadcasting per second in video.
2. the method according to claim 1, wherein the method also includes:
After synthesizing the special efficacy video, the preview of the special efficacy video is carried out by synthesizing the obtained special efficacy video.
3. a kind of video preview device, which is characterized in that described device includes:
Module is obtained, for successively obtaining each frame video frame in target video;
Processing module, for carrying out special effect processing to the key frame in each frame video frame, the key that obtains that treated Other video frames in frame and each frame video frame;Alternatively, to the view every predetermined frame number in each frame video frame Frequency frame carries out special effect processing, other video frames in the video frame that obtains that treated and each frame video frame;Wherein, The special effect processing is that parallel special effect processing is carried out by least two treatment progress;
Synthesis module, for each frame video frame according to corresponding to the processing module target video that obtains that treated Synthesize special efficacy video;
Cache module, for by each frame video frame buffer corresponding to the processing module treated the target video to slow It deposits in preview queue;
First previewing module includes reading unit and broadcast unit;
The reading unit, for successively being read with predeterminated frequency during the synthesis module synthesizes the special efficacy video Take each frame video frame cached in the caching preview queue, wherein the predeterminated frequency is more than or equal to default predetermined threshold, institute Predetermined threshold is stated as the frame number of the video frame of broadcasting per second in video;
The broadcast unit, each frame video frame read for playing the reading unit.
4. device according to claim 3, which is characterized in that described device further include:
Second previewing module, the spy for being obtained by synthesis after the synthesis module synthesizes the special efficacy video Effect video carries out the preview of the special efficacy video.
CN201510130147.7A 2015-03-24 2015-03-24 Video previewing method and device CN104967865B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510130147.7A CN104967865B (en) 2015-03-24 2015-03-24 Video previewing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510130147.7A CN104967865B (en) 2015-03-24 2015-03-24 Video previewing method and device

Publications (2)

Publication Number Publication Date
CN104967865A CN104967865A (en) 2015-10-07
CN104967865B true CN104967865B (en) 2019-10-11

Family

ID=54221789

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510130147.7A CN104967865B (en) 2015-03-24 2015-03-24 Video previewing method and device

Country Status (1)

Country Link
CN (1) CN104967865B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105657539B (en) * 2015-12-30 2019-05-31 深圳Tcl数字技术有限公司 Video broadcasting method and device
CN106385591A (en) * 2016-10-17 2017-02-08 腾讯科技(上海)有限公司 Video processing method and video processing device
CN106713881A (en) * 2016-12-23 2017-05-24 维沃移动通信有限公司 Projection method and mobile terminal
CN107371061A (en) * 2017-08-25 2017-11-21 普联技术有限公司 A kind of video stream playing method, device and equipment
CN108024072A (en) * 2017-11-30 2018-05-11 北京小米移动软件有限公司 Information processing method and equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008099209A (en) * 2006-10-16 2008-04-24 Toshiba Corp Content reproducing apparatus and reproduction timing synchronizing method thereof
CN102523387A (en) * 2011-12-09 2012-06-27 深圳市万兴软件有限公司 Method and device for realizing special flame effect in video
CN102572302A (en) * 2010-12-31 2012-07-11 新奥特(北京)视频技术有限公司 Multi treatment methods for key frame curve after modifying exit and entry points of materials
CN103220490A (en) * 2013-03-15 2013-07-24 广东欧珀移动通信有限公司 Special effect implementation method in video communication and video user terminal
CN103402100A (en) * 2013-08-23 2013-11-20 北京奇艺世纪科技有限公司 Video processing method and mobile terminal
CN103716535A (en) * 2013-12-12 2014-04-09 乐视致新电子科技(天津)有限公司 Method for switching photographing mode, and electronic device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101227568B (en) * 2008-01-31 2011-05-04 成都索贝数码科技股份有限公司 Special effect transforming method of video image
CN102724532B (en) * 2012-06-19 2015-03-04 清华大学 Planar video three-dimensional conversion method and system using same

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008099209A (en) * 2006-10-16 2008-04-24 Toshiba Corp Content reproducing apparatus and reproduction timing synchronizing method thereof
CN102572302A (en) * 2010-12-31 2012-07-11 新奥特(北京)视频技术有限公司 Multi treatment methods for key frame curve after modifying exit and entry points of materials
CN102523387A (en) * 2011-12-09 2012-06-27 深圳市万兴软件有限公司 Method and device for realizing special flame effect in video
CN103220490A (en) * 2013-03-15 2013-07-24 广东欧珀移动通信有限公司 Special effect implementation method in video communication and video user terminal
CN103402100A (en) * 2013-08-23 2013-11-20 北京奇艺世纪科技有限公司 Video processing method and mobile terminal
CN103716535A (en) * 2013-12-12 2014-04-09 乐视致新电子科技(天津)有限公司 Method for switching photographing mode, and electronic device

Also Published As

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

Similar Documents

Publication Publication Date Title
CN104811787B (en) Game video recording method and device
CN104754419A (en) Video-based interaction method and device
CN104378683A (en) Program based interaction method and device
CN103632165B (en) A kind of method of image procossing, device and terminal device
CN103458305A (en) Video playing method and device, terminal device and server
CN104967896A (en) Method for displaying bulletscreen comment information, and apparatus thereof
CN105430424A (en) Video live broadcast method, device and system
CN103905885B (en) Net cast method and device
CN104869468A (en) Method and apparatus for displaying screen information
CN104918124A (en) Live interaction system, information transmission method, information receiving method and device
CN104243671B (en) Volume adjusting method, device and electronic equipment
CN104967801A (en) Video data processing method and apparatus
CN103327189A (en) Method and device for uploading, browsing and deleting pictures
CN103854298A (en) Method for integrating pictures with two-dimension codes and terminal
CN103414982B (en) A kind of method and apparatus that sound is provided
CN104978115B (en) Content display method and device
CN103402190B (en) Method and device for selecting network as well as terminal
CN104427083B (en) The method and apparatus for adjusting volume
CN103400592A (en) Recording method, playing method, device, terminal and system
CN104967902A (en) Video sharing method, apparatus and system
CN103399633B (en) A kind of wireless remote control method and mobile terminal
CN105025314B (en) Multimedia live broadcast method and apparatus
CN105005457A (en) Geographical location display method and apparatus
CN104424496B (en) Two-dimensional code generation method, recognition methods, information providing method, device and system
CN104717341A (en) Message prompting method and terminal

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