CN104853193A - Video compression method, device and electronic equipment - Google Patents

Video compression method, device and electronic equipment Download PDF

Info

Publication number
CN104853193A
CN104853193A CN201410055611.6A CN201410055611A CN104853193A CN 104853193 A CN104853193 A CN 104853193A CN 201410055611 A CN201410055611 A CN 201410055611A CN 104853193 A CN104853193 A CN 104853193A
Authority
CN
China
Prior art keywords
video
video data
compression
mobile terminal
frame
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.)
Granted
Application number
CN201410055611.6A
Other languages
Chinese (zh)
Other versions
CN104853193B (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 Beijing Co Ltd
Original Assignee
Tencent Technology Beijing 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 Beijing Co Ltd filed Critical Tencent Technology Beijing Co Ltd
Priority to CN201410055611.6A priority Critical patent/CN104853193B/en
Publication of CN104853193A publication Critical patent/CN104853193A/en
Application granted granted Critical
Publication of CN104853193B publication Critical patent/CN104853193B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The application discloses a video compression method, device and electronic equipment, and belongs to the multimedia processing field; the method comprises the following steps: obtaining at least one frame of video data and video parameters of the video data; modifying the video parameters of the video data into compressed video parameters; compressing the at least one frame of video data through a hardware acceleration function of a mobile terminal according to the compressed video parameters, thus obtaining a compressed video file. The method and device solves the problems that a conventional video compress method is slow in processing speed, and the hardware acceleration function of the mobile terminal can compress the video, thus improving video compression method processing speed effect on the mobile terminal.

Description

Video-frequency compression method, device and electronic equipment
Technical field
The embodiment of the present invention relates to multi-media processing field, particularly a kind of video-frequency compression method, device and electronic equipment.
Background technology
Along with the development of the mobile device of smart mobile phone, panel computer and electronic reader and so on, multi-medium data use is on mobile terminals also more and more extensive.
Network environment residing for mobile terminal is variable and complicated, and available bandwidth is easily restricted, so when mobile terminal needs video file that uploading data amount is larger to network side, usually all need to compress video file.Current a kind of video-frequency compression method, comprising: mobile terminal uses the Video processing storehouse FFmpeg increased income that the video data in video file is carried out re-compression and encoding, obtains the video file that the data volume after re-compression and encoding is less.
Realizing in process of the present invention, inventor finds that above-mentioned technology at least exists following problem: be transplant from the video compression of desktop PC and come owing to using FFmpeg to carry out the process of video compression, but because the performance of mobile terminal when running FFmpeg temporarily also cannot compared with the performance of desktop PC, so the processing speed of current video-frequency compression method is slower.
Summary of the invention
In order to the problem that the processing speed solving current video-frequency compression method is slower, embodiments provide a kind of video-frequency compression method and device.Described technical scheme is as follows:
First aspect, provides a kind of video-frequency compression method, and in mobile terminal, described method comprises:
Obtain the video parameter of at least one-frame video data and described video data;
The video parameter revising described video data is the video parameter after compressing;
According to the video parameter after described compression, described at least one-frame video data is compressed by the function of hardware acceleration of described mobile terminal, obtain the video file after compressing.
Second aspect, provides a kind of video compression device, and in mobile terminal, described device comprises:
Data acquisition module, for obtaining the video parameter of at least one-frame video data and described video data;
Parameter adapting module, for revise the video parameter of described video data be compression after video parameter;
Hardware compression module, compresses described at least one-frame video data according to the video parameter after described compression for the function of hardware acceleration by described mobile terminal, obtains the video file after compressing.
The third aspect, provides a kind of mobile terminal, and described mobile terminal comprises the video compression device as above described in second aspect.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
By obtaining the video parameter of at least one-frame video data and video data, the video parameter of amendment video data is the video parameter after compression, according to the video parameter after compression, at least one-frame video data is compressed by the function of hardware acceleration of mobile terminal, obtain the video file after compressing; Solve the problem that the processing speed of current video-frequency compression method is slower; Reach and carry out video compression by the function of hardware acceleration of mobile terminal, improve the effect of the processing speed of the video-frequency compression method on mobile terminal.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the method flow diagram of the video-frequency compression method that one embodiment of the invention provides;
Fig. 2 is the method flow diagram of the video-frequency compression method that another embodiment of the present invention provides;
Fig. 3 is the structural representation of the video compression device that one embodiment of the invention provides;
Fig. 4 is the structural representation of the video compression device that another embodiment of the present invention provides;
Fig. 5 is the structural representation of the mobile terminal that one embodiment of the invention provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
In each embodiment of the present invention, mobile terminal can be mobile phone, panel computer, E-book reader, MP3 player (Moving Picture Experts Group Audio Layer III, dynamic image expert compression standard audio frequency aspect 3), MP4(Moving Picture Experts Group Audio Layer IV, dynamic image expert compression standard audio frequency aspect 3) player etc.
Please refer to Fig. 1, it illustrates the method flow diagram of the video-frequency compression method that one embodiment of the invention provides.The present embodiment illustrates in the terminal with the application of this video-frequency compression method.This video-frequency compression method, comprising:
Step 102, obtains the video parameter of at least one-frame video data and video data;
Mobile terminal can obtain the video parameter of at least one-frame video data and video data by existing decode video files; At least one-frame video data that the camera that mobile terminal also can obtain mobile terminal collects and the video parameter of video data.
Step 104, the video parameter of amendment video data is the video parameter after compression;
The video parameter of unpressed video data is usually higher, and mobile terminal needs the video parameter revised in video data to be video parameter after compression.
Step 106, is compressed at least one-frame video data according to the video parameter after compression by the function of hardware acceleration of mobile terminal, obtains the video file after compressing.
Mobile terminal in the present embodiment provides function of hardware acceleration.Mobile terminal, in the process of compressed video data, is compressed at least one-frame video data according to the video parameter after compression by function of hardware acceleration, obtains the video file after compressing.
In sum, the video-frequency compression method that the present embodiment provides, by obtaining the video parameter of at least one-frame video data and video data, the video parameter of amendment video data is the video parameter after compression, according to the video parameter after compression, at least one-frame video data is compressed by the function of hardware acceleration of mobile terminal, obtain the video file after compressing; Solve the problem that the processing speed of current video-frequency compression method is slower; Reach and carry out video compression by the function of hardware acceleration of mobile terminal, improve the effect of the processing speed of the video-frequency compression method on mobile terminal.
Please refer to Fig. 2, it illustrates the method flow diagram of the video-frequency compression method that another embodiment of the present invention provides.The present embodiment illustrates in the terminal with the application of this video-frequency compression method.This video-frequency compression method, comprising:
Step 201, obtains the video parameter of at least one-frame video data and video data;
Mobile terminal can obtain the video parameter of at least one-frame video data and video data by existing decode video files; At least one-frame video data that the camera that mobile terminal also can obtain mobile terminal collects and the video parameter of video data.
Obtained by existing decode video files at least one-frame video data time, existing decode video files also can be obtained the video parameter of at least one-frame video data and video data by mobile terminal by the function of hardware acceleration of self.
Be that the operation of American apple Company has the electronic equipment of iOS system for example with mobile terminal, mobile terminal adopts the multimedia decoding assembly AVAssetReader in iOS system to come existing decode video files, multimedia decoding assembly AVAssetReader can enable the function of hardware acceleration running and have in the electronic equipment of iOS system, greatly improves decoding efficiency.
The video parameter of video data refers to resolution and code check.In iOS system, the video parameter of video data is carried in SampleBuffer structure, multi-frame video data sharing 1 SampleBuffer structure.Such as, 1-100 frame video data shares the 1st SampleBuffer structure, have recorded the respective resolution of 1-100 frame video data and code check (being all identical usually) in the 1st SampleBuffer structure; 101-200 frame shares the 2nd SampleBuffer structure, have recorded the respective resolution of 101-200 frame video data and code check (being all identical usually), by that analogy in the 2nd SampleBuffer structure.
Step 202, the video parameter of amendment video data is the video parameter after compression;
The video parameter of mobile terminal amendment video data is the video parameter after compression.Video parameter comprises resolution and code check two, only needs to be the video parameter after compression by one of them parameter modification, just can realize video compression, but usually two parameters all can be revised as the video parameter after compression simultaneously.Also namely: the resolution of mobile terminal amendment video data is the resolution after compression; And/or the code check of mobile terminal amendment video data is the code check after compression.Wherein, when original code check is revised as the code check after compression, the compression effectiveness of video data can be clearly.
To run the electronic equipment having iOS system, original resolution in mobile terminal amendment SampleBuffer structure is the resolution 480*480 after compression, and the original code check (being generally 1500kbps) revised in SampleBuffer structure is the code check 500kbps after compression.
Step 203, for every frame video data, is compressed video data according to the video parameter after compression by the function of hardware acceleration of mobile terminal;
Mobile terminal in the present embodiment provides function of hardware acceleration.Mobile terminal, in the process of compressed video data, is compressed at least one-frame video data according to the resolution after compression and/or code check by function of hardware acceleration.
Have the electronic equipment of iOS system to run, mobile terminal carries out the compression of H.264 coded format according to the resolution after compression and/or code check at least one-frame video data by the multimedia coding assembly AVAssetWriter in iOS system.Multimedia coding assembly AVAssetWriter can enable the function of hardware acceleration running and have in the electronic equipment of iOS system, greatly improves code efficiency.
Step 204, adopts predetermined write frame per second write video file, obtains the video file after compressing by the every frame video data after compression.
Mobile terminal, by the present frame video data write video file after compression, then performs step 203 to next frame video data, realizes compression limit, the limit write carried out successively all frame video datas.When the video data after a frame frame compression is write video file, mobile terminal control write frame per second is the predetermined write frame per second after compression, it is 24 frames per second that such as mobile terminal controls predetermined write frame per second, is also the minimum frame per second that human eye can receive, thus realizes better compression effectiveness.The experiment proved that, processed by above-mentioned compression, the data volume after the compression of the short-sighted frequency of 8 seconds kind length only has about 500K, has extraordinary compression effectiveness.
In sum, the video-frequency compression method that the present embodiment provides, by obtaining the video parameter of at least one-frame video data and video data, the video parameter of amendment video data is the video parameter after compression, according to the video parameter after compression, at least one-frame video data is compressed by the function of hardware acceleration of mobile terminal, obtain the video file after compressing; Solve the problem that the processing speed of current video-frequency compression method is slower; Reach and carry out video compression by the function of hardware acceleration of mobile terminal, improve the effect of the processing speed of the video-frequency compression method on mobile terminal.
Also by obtain at existing decode video files at least one-frame video data time, also by the function of hardware acceleration of mobile terminal, existing decode video files is obtained the video parameter of at least one-frame video data and video data, further improve processing speed during video compression under this scene.
Please refer to Fig. 3, it illustrates the block diagram of the video compression device that one embodiment of the invention provides.This video compression device can realize becoming all or part of of mobile terminal by software, hardware or both combinations.Described device comprises:
Data acquisition module 320, for obtaining the video parameter of at least one-frame video data and described video data;
Parameter adapting module 340, for revise the video parameter of described video data be compression after video parameter;
Hardware compression module 360, compresses described at least one-frame video data according to the video parameter after described compression for the function of hardware acceleration by described mobile terminal, obtains the video file after compressing.
In sum, the video compression device that the present embodiment provides, by obtaining the video parameter of at least one-frame video data and video data, the video parameter of amendment video data is the video parameter after compression, according to the video parameter after compression, at least one-frame video data is compressed by the function of hardware acceleration of mobile terminal, obtain the video file after compressing; Solve the problem that the processing speed of current video-frequency compression method is slower; Reach and carry out video compression by the function of hardware acceleration of mobile terminal, improve the effect of the processing speed of the video-frequency compression method on mobile terminal.
Please refer to Fig. 4, it illustrates the block diagram of the video compression device that another embodiment of the present invention provides.This video compression device can realize becoming all or part of of mobile terminal by software, hardware or both combinations.Described device comprises:
Data acquisition module 320, for obtaining the video parameter of at least one-frame video data and described video data;
Parameter adapting module 340, for revise the video parameter of described video data be compression after video parameter;
Hardware compression module 360, compresses described at least one-frame video data according to the video parameter after described compression for the function of hardware acceleration by described mobile terminal, obtains the video file after compressing.
Alternatively, described data acquisition module 320, at least one-frame video data described in being obtained by existing decode video files; Or,
Described data acquisition module 320, at least one-frame video data described in the camera for obtaining described mobile terminal collects.
Alternatively, described data acquisition module 320, at least one-frame video data described in for the function of hardware acceleration by described mobile terminal existing decode video files being obtained.
Alternatively, described parameter adapting module 340, comprising: resolution amendment unit and/or code check amendment unit;
Described resolution amendment unit is resolution after compression for revising the resolution of described video data;
Described code check amendment unit is code check after compression for revising the code check of described video data.
Alternatively, described hardware compression module 360, comprising: hardware-compressed unit 362 and File write unit 364;
For every frame video data, described video data is compressed according to the video parameter after described compression by the function of hardware acceleration of described mobile terminal;
Every frame video data after compression is adopted predetermined write frame per second write video file, obtain the video file after described compression.
In sum, the video compression device that the present embodiment provides, by obtaining the video parameter of at least one-frame video data and video data, the video parameter of amendment video data is the video parameter after compression, according to the video parameter after compression, at least one-frame video data is compressed by the function of hardware acceleration of mobile terminal, obtain the video file after compressing; Solve the problem that the processing speed of current video-frequency compression method is slower; Reach and carry out video compression by the function of hardware acceleration of mobile terminal, improve the effect of the processing speed of the video-frequency compression method on mobile terminal.
Also by obtain at existing decode video files at least one-frame video data time, also by the function of hardware acceleration of mobile terminal, existing decode video files is obtained the video parameter of at least one-frame video data and video data, further improve processing speed during video compression under this scene.
It should be noted that: the video compression device that above-described embodiment provides is when compressed video data, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, internal structure by equipment is divided into different functional modules, to complete all or part of function described above.In addition, the video compression device that above-described embodiment provides and video-frequency compression method embodiment belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
Please refer to Fig. 5, it illustrates the structural representation of the mobile terminal that one embodiment of the present of invention provide.This mobile terminal 500 is provided with that Video processing, video are social, the client of video sharing and so on, described client for implementing the video-frequency compression method provided in above-described embodiment, specifically:
Mobile terminal 500 can comprise RF(Radio Frequency, radio frequency) circuit 510, the memory 520 including one or more computer-readable recording mediums, input unit 530, display unit 540, transducer 550, voicefrequency circuit 560, short range wireless transmission module 570, include the parts such as processor 580 and power supply 590 that more than or processes core.It will be understood by those skilled in the art that the mobile terminal structure shown in Fig. 5 does not form the restriction to mobile terminal, the parts more more or less than diagram can be comprised, or combine some parts, or different parts are arranged.Wherein:
RF circuit 510 can be used for receiving and sending messages or in communication process, the reception of signal and transmission, especially, after being received by the downlink information of base station, transfer to more than one or one processor 580 to process; In addition, base station is sent to by relating to up data.Usually, RF circuit 510 includes but not limited to antenna, at least one amplifier, tuner, one or more oscillator, subscriber identity module (SIM) card, transceiver, coupler, LNA(Low Noise Amplifier, low noise amplifier), duplexer etc.In addition, RF circuit 510 can also by radio communication and network and other devices communicatings.Radio communication can use arbitrary communication standard or agreement, include but not limited to GSM (Global System of Mobile communication, global system for mobile communications), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division Multiple Access, code division multiple access), WCDMA (Wideband Code Division Multiple Access, Wideband Code Division Multiple Access (WCDMA)), 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, such as, memory 520 may be used for storing Preset Time list, the software program of storage of collected voice signal can also be used for, realize the software program that the software program of keyword identification, the software program realizing continuous speech recognition and realization arrange prompting item, binding relationship storing WAP (wireless access point) and user account etc. can also be used for.Processor 580 is stored in software program and the module of memory 520 by running, thus perform the application of various function and data processing, function of the function " receiving the retrieval lines inputted to graphically " in the such as embodiment of the present invention, " detecting the information model whether existing and mate with retrieval lines " etc.Memory 520 mainly can comprise storage program district and store data field, and wherein, storage program district can storage operation system, application program (such as sound-playing function, image player function etc.) etc. needed at least one function; Store data field and can store the data (such as voice data, phone directory etc.) etc. created according to the use of mobile terminal 500.In addition, memory 520 can comprise high-speed random access memory, can also comprise nonvolatile memory, such as at least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memory 520 can also comprise Memory Controller, to provide the access of processor 580 and input unit 530 pairs of memories 520.
Input unit 530 can be used for the numeral or the character information that receive input, and produces and to arrange with user and function controls relevant keyboard, mouse, action bars, optics or trace ball signal and inputs.Particularly, input unit 530 can comprise Touch sensitive surface 531 and other input equipments 532.Touch sensitive surface 531, also referred to as touch display screen or Trackpad, user can be collected or neighbouring touch operation (such as user uses any applicable object or the operations of annex on Touch sensitive surface 531 or near Touch sensitive surface 531 such as finger, stylus) thereon, and drive corresponding jockey according to the formula preset.Optionally, Touch sensitive surface 531 can comprise touch detecting apparatus and touch controller two parts.Wherein, touch detecting apparatus detects the touch orientation of user, and detects the signal that touch operation brings, and sends signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and converts it to contact coordinate, then gives processor 580, and the order that energy receiving processor 580 is sent also is performed.In addition, the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave can be adopted to realize Touch sensitive surface 531.Except Touch sensitive surface 531, input unit 530 can also comprise other input equipments 532.Particularly, other input equipments 532 can include but not limited to one or more in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc.
Display unit 540 can be used for the various graphical user interface showing information or the information being supplied to user and the mobile terminal 500 inputted by user, and these graphical user interface can be made up of figure, text, icon, video and its combination in any.Display unit 540 can comprise display floater 541, optionally, the form such as LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) can be adopted to configure display floater 541.Further, Touch sensitive surface 531 can cover on display floater 541, when Touch sensitive surface 531 detects thereon or after neighbouring touch operation, send processor 580 to determine the type of touch event, on display floater 541, provide corresponding vision to export with preprocessor 580 according to the type of touch event.Although in Figure 5, Touch sensitive surface 531 and display floater 541 be as two independently parts realize input and input function, in certain embodiments, can by Touch sensitive surface 531 and display floater 541 integrated and realize input and output function.
Mobile terminal 500 also can comprise at least one transducer 550, such as optical sensor, motion sensor and other transducers.Particularly, optical sensor can comprise ambient light sensor and proximity transducer, and wherein, ambient light sensor the light and shade of environmentally light can regulate the brightness of display floater 541, proximity transducer when mobile terminal 500 moves in one's ear, can cut out display floater 541 and/or backlight.As the one of motion sensor; Gravity accelerometer can detect the size of all directions (are generally three axles) acceleration; size and the direction of gravity can be detected time static, can be used for identifying the application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of mobile phone attitude, Vibration identification correlation function (such as pedometer, knock) etc.; As for mobile terminal 500 also other transducers such as configurable gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, do not repeat them here.
Voicefrequency circuit 560, loud speaker 561, microphone 562 can provide the audio interface between user and mobile terminal 500.Voicefrequency circuit 560 can by receive voice data conversion after the signal of telecommunication, be transferred to loud speaker 561, by loud speaker 561 be converted to voice signal export; On the other hand, the voice signal of collection is converted to the signal of telecommunication by microphone 562, voice data is converted to after being received by voicefrequency circuit 560, after again voice data output processor 580 being processed, through RF circuit 510 to send to another mobile terminal, or export voice data to memory 520 to process further.Voicefrequency circuit 560 also may comprise earphone jack, to provide the communication of peripheral hardware earphone and mobile terminal 500.
Short range wireless transmission module 570 can be WIFI(wireless fidelity, Wireless Fidelity) module or bluetooth module etc.By short range wireless transmission module 570, mobile terminal 500 can help that user sends and receive e-mail, browsing page and access streaming video etc., and its broadband internet wireless for user provides is accessed.Although Fig. 5 shows short range wireless transmission module 570, be understandable that, it does not belong to must forming of mobile terminal 500, can omit in the scope of essence not changing invention as required completely.
Processor 580 is control centres of mobile terminal 500, utilize the various piece of various interface and the whole mobile terminal of connection, software program in memory 520 and/or module is stored in by running or performing, and call the data be stored in memory 520, perform various function and the deal with data of mobile terminal 500, thus integral monitoring is carried out to mobile terminal.Optionally, processor 580 can comprise one or more process core; Optionally, processor 580 accessible site application processor and modem processor, wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor mainly processes radio communication.Be understandable that, above-mentioned modem processor also can not be integrated in processor 580.
Mobile terminal 500 also comprises the power supply 590(such as battery of powering to all parts), preferably, power supply can be connected with processor 580 logic by power-supply management system, thus realizes the functions such as management charging, electric discharge and power managed by power-supply management system.Power supply 590 can also comprise one or more direct current or AC power, recharging system, power failure detection circuit, power supply changeover device or the random component such as inverter, power supply status indicator.
Although not shown, mobile terminal 500 can also comprise camera, bluetooth module etc., does not repeat them here.
Mobile terminal 500 also includes memory, and one or more than one program, one of them or more than one program are stored in memory, and are configured to perform video-frequency compression method described in above-mentioned Fig. 1 or Fig. 2 embodiment by more than one or one processor.
It should be added that, in another embodiment, mobile terminal can comprise the parts more more or less than Fig. 5, or combines some parts, or different parts are arranged, realize all or part of function.
In addition, can also be implemented as the computer program performed by CPU according to method of the present invention, this computer program can store in a computer-readable storage medium.When this computer program is performed by CPU, perform the above-mentioned functions limited in method of the present invention.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (11)

1. a video-frequency compression method, is characterized in that, in mobile terminal, described method comprises:
Obtain the video parameter of at least one-frame video data and described video data;
The video parameter revising described video data is the video parameter after compressing;
According to the video parameter after described compression, described at least one-frame video data is compressed by the function of hardware acceleration of described mobile terminal, obtain the video file after compressing.
2. method according to claim 1, is characterized in that, the video parameter of described acquisition at least one-frame video data and described video data, comprising:
At least one-frame video data described in existing decode video files is obtained; Or,
The described at least one-frame video data that the camera obtaining described mobile terminal collects.
3. method according to claim 2, is characterized in that, described existing decode video files is obtained described at least one-frame video data, comprising:
At least one-frame video data described in by the function of hardware acceleration of described mobile terminal existing decode video files being obtained.
4. method according to claim 1, is characterized in that, the video parameter of the described video data of described amendment is the video parameter after compression, comprising:
The resolution revising described video data is the resolution after compressing; And/or,
The code check revising described video data is the code check after compressing.
5. method according to claim 1, is characterized in that, the described function of hardware acceleration by described mobile terminal compresses described at least one-frame video data according to the video parameter after described compression, obtains the video file after compressing, comprising:
For every frame video data, described video data is compressed according to the video parameter after described compression by the function of hardware acceleration of described mobile terminal;
Every frame video data after compression is adopted predetermined write frame per second write video file, obtain the video file after described compression.
6. a video compression device, is characterized in that, in mobile terminal, described device comprises:
Data acquisition module, for obtaining the video parameter of at least one-frame video data and described video data;
Parameter adapting module, for revise the video parameter of described video data be compression after video parameter;
Hardware compression module, compresses described at least one-frame video data according to the video parameter after described compression for the function of hardware acceleration by described mobile terminal, obtains the video file after compressing.
7. device according to claim 6, is characterized in that,
Described data acquisition module, at least one-frame video data described in being obtained by existing decode video files; Or,
Described data acquisition module, at least one-frame video data described in the camera for obtaining described mobile terminal collects.
8. device according to claim 7, is characterized in that,
Described data acquisition module, at least one-frame video data described in for the function of hardware acceleration by described mobile terminal existing decode video files being obtained.
9. device according to claim 6, is characterized in that, described parameter adapting module, comprising:
Resolution amendment unit and/or code check amendment unit;
Described resolution amendment unit is resolution after compression for revising the resolution of described video data;
Described code check amendment unit is code check after compression for revising the code check of described video data.
10. device according to claim 6, is characterized in that, described hardware compression module, comprising:
Hardware-compressed unit and File write unit;
For every frame video data, described video data is compressed according to the video parameter after described compression by the function of hardware acceleration of described mobile terminal;
Every frame video data after compression is adopted predetermined write frame per second write video file, obtain the video file after described compression.
11. 1 kinds of mobile terminals, is characterized in that, described mobile terminal comprise as arbitrary in claim 6 to 10 as described in video compression device.
CN201410055611.6A 2014-02-19 2014-02-19 Video-frequency compression method, device and electronic equipment Active CN104853193B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410055611.6A CN104853193B (en) 2014-02-19 2014-02-19 Video-frequency compression method, device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410055611.6A CN104853193B (en) 2014-02-19 2014-02-19 Video-frequency compression method, device and electronic equipment

Publications (2)

Publication Number Publication Date
CN104853193A true CN104853193A (en) 2015-08-19
CN104853193B CN104853193B (en) 2019-06-07

Family

ID=53852509

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410055611.6A Active CN104853193B (en) 2014-02-19 2014-02-19 Video-frequency compression method, device and electronic equipment

Country Status (1)

Country Link
CN (1) CN104853193B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105657427A (en) * 2016-01-25 2016-06-08 成都国铁电气设备有限公司 High-definition image compression method and system suitable for catenary
CN106789562A (en) * 2016-12-06 2017-05-31 腾讯科技(深圳)有限公司 A kind of virtual objects sending method, method of reseptance, device and system
CN110891195A (en) * 2019-11-22 2020-03-17 腾讯科技(深圳)有限公司 Method, device and equipment for generating screen image and storage medium
CN112068771A (en) * 2020-08-17 2020-12-11 Oppo广东移动通信有限公司 Video processing method, video processing device, terminal device and storage medium
CN114222073A (en) * 2021-12-13 2022-03-22 北京百度网讯科技有限公司 Video output method, video output device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102273205A (en) * 2008-11-04 2011-12-07 先进微装置公司 Software video transcoder with gpu acceleration
CN102724507A (en) * 2012-06-18 2012-10-10 上海交通大学 GPU (graphic processing unit) accelerating encoder rate control method
CN103297777A (en) * 2013-05-23 2013-09-11 广州高清视信数码科技股份有限公司 Method and device for increasing video encoding speed
CN103581665A (en) * 2012-08-02 2014-02-12 英特尔公司 Transcoding video data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102273205A (en) * 2008-11-04 2011-12-07 先进微装置公司 Software video transcoder with gpu acceleration
CN102724507A (en) * 2012-06-18 2012-10-10 上海交通大学 GPU (graphic processing unit) accelerating encoder rate control method
CN103581665A (en) * 2012-08-02 2014-02-12 英特尔公司 Transcoding video data
CN103297777A (en) * 2013-05-23 2013-09-11 广州高清视信数码科技股份有限公司 Method and device for increasing video encoding speed

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105657427A (en) * 2016-01-25 2016-06-08 成都国铁电气设备有限公司 High-definition image compression method and system suitable for catenary
CN106789562A (en) * 2016-12-06 2017-05-31 腾讯科技(深圳)有限公司 A kind of virtual objects sending method, method of reseptance, device and system
CN110891195A (en) * 2019-11-22 2020-03-17 腾讯科技(深圳)有限公司 Method, device and equipment for generating screen image and storage medium
CN112068771A (en) * 2020-08-17 2020-12-11 Oppo广东移动通信有限公司 Video processing method, video processing device, terminal device and storage medium
CN114222073A (en) * 2021-12-13 2022-03-22 北京百度网讯科技有限公司 Video output method, video output device, electronic equipment and storage medium
CN114222073B (en) * 2021-12-13 2023-02-17 北京百度网讯科技有限公司 Video output method, video output device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN104853193B (en) 2019-06-07

Similar Documents

Publication Publication Date Title
CN104834529A (en) Method and device for optimizing performance of application
CN104853081A (en) Breakpoint filming method, device and mobile terminal
CN104978176A (en) Application program interface calling method and device
CN104427083A (en) Volume adjusting method and device
CN104618222A (en) Method and device for matching expression image
CN104967634A (en) File upload method and apparatus thereof
CN105243638A (en) Image uploading method and apparatus
CN104135502B (en) A kind of method, relevant device and system realizing application message and remind
CN104618794A (en) Method and device for playing video
CN104426963A (en) Terminal associating method and terminal
CN104426962A (en) Multi-terminal binding method, binding server, terminal and multi-terminal binding system
CN104683456A (en) Service processing method, server and terminal
CN104427074A (en) Method, device and system for displaying incoming information
CN104837042A (en) Digital multimedia data encoding method and apparatus
CN104407804A (en) Screen capturing method and screen capturing device as well as electronic device
CN103177217B (en) A kind of file scanning method, system and client and server
CN105306383A (en) Message push method, terminal and push server
CN103269374A (en) Method, device and equipment for recording synchronization
CN105007543A (en) Intercommunication method, apparatus, device and system
CN104967865A (en) Video previewing method and apparatus
CN103634717A (en) Method, device and terminal equipment utilizing earphone to control
CN103068016B (en) The method of mobile terminal and reduction power consumption thereof
CN104836783A (en) Data transmission method, device and system
CN104123120A (en) Method, device and system for filtering page data of browser
CN103368828B (en) A kind of message temporary storage and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant