CN104104897B - A kind of video editing method and device of mobile terminal - Google Patents
A kind of video editing method and device of mobile terminal Download PDFInfo
- Publication number
- CN104104897B CN104104897B CN201410302921.3A CN201410302921A CN104104897B CN 104104897 B CN104104897 B CN 104104897B CN 201410302921 A CN201410302921 A CN 201410302921A CN 104104897 B CN104104897 B CN 104104897B
- Authority
- CN
- China
- Prior art keywords
- format
- hardware
- conversion
- intermediate form
- color space
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 48
- 238000006243 chemical reaction Methods 0.000 claims abstract description 128
- 238000004458 analytical method Methods 0.000 claims description 11
- 235000013399 edible fruits Nutrition 0.000 claims 1
- 238000004364 calculation method Methods 0.000 abstract description 11
- 230000006870 function Effects 0.000 description 7
- 230000000694 effects Effects 0.000 description 4
- 230000006835 compression Effects 0.000 description 3
- 238000007906 compression Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 241000023320 Luma <angiosperm> Species 0.000 description 2
- 239000003086 colorant Substances 0.000 description 2
- 230000010354 integration Effects 0.000 description 2
- OSWPMRLSEDHDFF-UHFFFAOYSA-N methyl salicylate Chemical compound COC(=O)C1=CC=CC=C1O OSWPMRLSEDHDFF-UHFFFAOYSA-N 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 1
- 238000010030 laminating Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
- Television Signal Processing For Recording (AREA)
- Color Television Systems (AREA)
Abstract
The present invention provides a kind of video editing method of mobile terminal and device, the method includes:Hardware decoding data is obtained, is intermediate form by the format conversion of the hardware decoding data;The data volume of the intermediate form is less than YUYV formats;Video processing is carried out to the hardware decoding data for being converted to the intermediate form according to the intermediate form, obtains the video processing results of the intermediate form;Hardware encoding parameter is obtained, is the first color space format corresponding with the hardware encoding parameter by the format conversion of the video processing results;The video processing results of the first color space format are encoded, video editing is completed.Conversion calculation amount during format conversion of the present invention is less than the conversion calculation amount using YUYV formats, improves the conversion speed of video editing, improves user experience.
Description
Technical field
The present invention relates to technical field of video processing, more particularly to the video editing method and dress of a kind of mobile terminal
It sets.
Background technology
Video editing is by various ways such as cutting, combination, superposition, position modifications, to generate one or more snippets video
The process of one section of new video.Need to be related to many processing modules, including coding and decoding video module in video editing, at image
Manage module, material laminating module etc., in modules for color space (storage format of original image in video editing,
Including YUV420P, YUV420SP, RGBA, formats such as YUV422) demand it is not fully consistent, it is therefore desirable in video editing
During carry out color space conversion.
When using hardware video codec in video editing, input/output format is simultaneously not fixed, according to adopting
The difference of chip manufacturer, it may be possible to a certain kind in YUV420P, NV12 or NV21, and in video editing process, it is
Input/output format, is usually all fixed as YUYV by the requirement of the versatility and processing accuracy of each processing module of guarantee
(one kind of YUV422).
But the raw image data amount of YUYV formats is very big, is converted to YUYV formats and very big conversion is just needed to calculate
Amount, therefore, leads to entire video editing process reduced performance, poor user experience.
Invention content
The present invention provides a kind of video editing method and device of mobile terminal, low to solve video editing process efficiency
Problem.
To solve the above-mentioned problems, the invention discloses a kind of video editing methods of mobile terminal, including:
Hardware decoding data is obtained, is intermediate form by the format conversion of the hardware decoding data;The intermediate form
Data volume be less than YUYV formats;
Video processing is carried out to the hardware decoding data for being converted to the intermediate form according to the intermediate form, obtains institute
State the video processing results of intermediate form;
Hardware encoding parameter is obtained, is opposite with the hardware encoding parameter by the format conversion of the video processing results
The the first color space format answered;
The video processing results of the first color space format are encoded, video editing is completed.
Preferably, before the format conversion by the hardware decoding data is intermediate form, further include:
Obtain hardware decoding parametric;
The hardware decoding parametric is analyzed, the corresponding second color space lattice of the hardware decoding data are obtained
Formula.
Preferably, the format conversion by the hardware decoding data is intermediate form, including:
Space conversion algorithms are called, in being described by the second color space format conversion by the hardware decoding data
Between format;
Wherein, the intermediate form includes YUV420P formats.
Preferably, after the acquisition hardware encoding parameter, the format conversion by the video processing results be with
Before the corresponding first color space format of hardware encoding parameter, further include:
The hardware encoding parameter is analyzed, the first color space format is obtained.
Preferably, the format conversion by the video processing results is corresponding with the hardware encoding parameter the
One color space format, including:
Call the space conversion algorithms, by the video processing results by the intermediate format conversion be first color
Color space format.
The invention also discloses a kind of video editing apparatus of mobile terminal, including:
Space conversion module is decoded, for obtaining hardware decoding data, the format conversion by the hardware decoding data is
Intermediate form;The data volume of the intermediate form is less than YUYV formats;
Image processing module, for according to the intermediate form to be converted to the hardware decoding data of the intermediate form into
The processing of row video, obtains the video processing results of the intermediate form;
Space encoder conversion module, for obtaining hardware encoding parameter, the format conversion by the video processing results is
The first color space format corresponding with the hardware encoding parameter;
Coding module is encoded for the video processing results to the first color space format, is completed video and is compiled
Volume.
Preferably, further include:
Decoding parametric analysis module, for turning the format of the hardware decoding data in the decoding space conversion module
It is changed to before intermediate form, obtains hardware decoding parametric, the hardware decoding parametric is analyzed, obtain the hardware decoding
The corresponding second color space format of data.
Preferably, the decoding space conversion module by the format conversion of the hardware decoding data be intermediate form when,
Call space conversion algorithms, by the hardware decoding data by the second color space format conversion be the intermediate form;
Wherein, the intermediate form includes YUV420P formats.
Preferably, further include:
Coding parameter analysis module, after obtaining hardware encoding parameter in the space encoder conversion module, by institute
Before the format conversion for stating video processing results is the first color space format corresponding with the hardware encoding parameter, to institute
It states hardware encoding parameter to be analyzed, obtains the first color space format.
Preferably, the format conversion of the video processing results is to be compiled with the hardware by the space encoder conversion module
When the code corresponding first color space format of parameter, the space conversion algorithms are called, by the video processing results by institute
It is the first color space format to state intermediate format conversion.
Compared with the background art, the present invention includes following advantages:
It is the intermediate form that data volume is less than YUYV formats by the format conversion of the hardware decoding data got;In
Between format video processing is carried out to the hardware decoding data of intermediate format;By the video processing results of intermediate form be converted to firmly
Corresponding first color space of part coding parameter.Intermediate form, the data volume of intermediate form is utilized during above three
Less than the data volume of YUYV formats, calculated using the conversion of YUYV formats so the conversion calculation amount during format conversion is less than
Amount, improves the conversion speed of video editing, improves user experience.
Description of the drawings
Fig. 1 is a kind of video editing method flow chart of mobile terminal in the embodiment of the present invention;
Fig. 2 is the video editing method flow chart of another mobile terminal in the embodiment of the present invention;
Fig. 3 is the schematic diagram that YUV420SP is converted to YUV420P in the embodiment of the present invention;
Fig. 4 is the schematic diagram that STE_PACKED_SP is converted to YUV420P in the embodiment of the present invention;
Fig. 5 is a kind of video editing apparatus structure chart of mobile terminal in the embodiment of the present invention;
Fig. 6 is the video editing apparatus structure chart of another mobile terminal in the embodiment of the present invention;
Fig. 7 is the operation signal of the video editing apparatus of the mobile terminal after functions of modules integration in the embodiment of the present invention
Figure.
Specific implementation mode
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, below in conjunction with the accompanying drawings and specific real
Applying mode, the present invention is described in further detail.
Below by enumerate several specific embodiments be discussed in detail a kind of mobile terminal provided by the invention video compile
Collect method and apparatus.
Embodiment one
A kind of video editing method of mobile terminal provided in an embodiment of the present invention is discussed in detail.
Referring to Fig.1, a kind of video editing method flow chart of mobile terminal in the embodiment of the present invention is shown.
Step 100, hardware decoding data is obtained, is intermediate form by the format conversion of the hardware decoding data.
The data volume of the intermediate form is less than YUYV formats.
YUYV formats are the one of which of yuv format.YUV is a kind of color coding staff used by eurovision system
Method.Wherein, " Y " indicates brightness (Luminance or Luma), that is, grayscale value;And what " U " and " V " was indicated is then coloration
(Chrominance or Chroma), effect are description colors of image and saturation degree, are used for the color of specified pixel.
The hardware decoding data can be the output data of hardware decoder, and the format of the hardware decoding data should
Format for the extended formatting except intermediate form, i.e., the described hardware decoding data is not intermediate form.
It should be noted that can include the identification process to the format of the hardware decoding data in the step 100.
Step 102, the hardware decoding data for being converted to the intermediate form is carried out at video according to the intermediate form
Reason, obtains the video processing results of the intermediate form.
The video processing may include that video is cut, video combination, video is superimposed and the processes such as video location modification.And
And the video is before and after the processing, the format of hardware decoding data is intermediate form.
Step 104, hardware encoding parameter is obtained, is and the hardware encoding by the format conversion of the video processing results
The corresponding first color space format of parameter.
Hardware encoding parameter can be got from hardware coder, the hardware encoding parameter of different hardware coders can
With difference.
Step 106, the video processing results of the first color space format are encoded, completes video editing.
The coding is to handle original video data (yuv format or rgb format etc.) by image encoding standards, is obtained
The only even smaller data of original video data 1/tens, while it is original to ensure that obtained data remain able to revert to
Video data, moreover, a kind of image quality loss of obtained data compress technique as small as possible.
In conclusion the technical solution of the embodiment of the present invention, is number by the format conversion of the hardware decoding data got
Intermediate form according to amount less than YUYV formats;Video processing is carried out to the hardware decoding data of intermediate form according to intermediate form;
The video processing results of intermediate form are converted into the first color space corresponding with hardware encoding parameter.During above three
Intermediate form is utilized, the data volume of intermediate form is less than the data volume of YUYV formats, so turning during format conversion
It changes calculation amount and is less than the conversion calculation amount for using YUYV formats, improve the conversion speed of video editing, improve user experience.
Embodiment two
A kind of video editing method of mobile terminal provided in an embodiment of the present invention is discussed in detail.
With reference to Fig. 2, a kind of video editing method flow chart of mobile terminal in the embodiment of the present invention is shown.
Step 200, hardware decoding data and hardware decoding parametric are obtained, the hardware decoding parametric is analyzed, is obtained
The corresponding second color space format of the hardware decoding data is obtained, is middle layout by the format conversion of the hardware decoding data
Formula.
The data volume of the intermediate form is less than YUYV formats.
YUYV formats are the one of which of yuv format.YUV is a kind of color coding staff used by eurovision system
Method.Wherein, " Y " indicates brightness (Luminance or Luma), that is, grayscale value;And what " U " and " V " was indicated is then coloration
(Chrominance or Chroma), effect are description colors of image and saturation degree, are used for the color of specified pixel.
The hardware decoding data can be the output data of hardware decoder, and the format of the hardware decoding data should
Format for the extended formatting except intermediate form, i.e., the described hardware decoding data is not intermediate form.
Wherein, hardware decoding parametric can be the information of identification hardware decoded data format, and the hardware decoding parametric can
Think one group of binary number etc..
Since the format information of hardware decoder is sightless (can not directly be used because of application layer for application layer
Hardware compression device based on YUV), therefore the user-defined format of part manufacturer belongs to own format, needs to be based on image algorithm
Hardware decoding parametric is identified with experience, obtains the format information of hardware decoder.
About the above-mentioned process that hardware decoding parametric is identified based on image algorithm and experience, following examples can be passed through
Son illustrates.
Given that it is known that picture size is " W " x " H ", since coding and decoding video is image block (i.e. MB) based on 16x16 or more
What small 8x8 and 4x4 image blocks (i.e. block) were handled, it is i.e. various based on block/MB trial matchings to know method for distinguishing
Storage format.Storage format includes but not limited to:
1. a MB is stored in 256 continuous internal storage locations.
2. 8x8block is stored in one by one in order in 64 contiguous memory units.
3. 4x4block is stored in one by one in order in 16 contiguous memory units.
4. 8x16block is stored in one by one in order in 128 contiguous memory units.
5. 16x8block is stored in one by one in order in 128 contiguous memory units.
6. for coloration, can respectively halve storage U/V components respectively according to luminance block length and width, or by U/V staggeredly according to
Luminance block height halves storage.
When the matching format attempted correctly can go back original image, that is, identify successfully.
It preferably, can be with by the process that the format conversion of the hardware decoding data is intermediate form in the step 200
For:
Space conversion algorithms are called, in being described by the second color space format conversion by the hardware decoding data
Between format.
Wherein, the intermediate form may include YUV420P formats.
For example, the second color space format is YUV420SP, YUV420SP is converted into YUV420P, such as Fig. 3 institutes
Show.In the data of YUV420SP formats, U and V information are alternate relations, and U0, V0, U1, V1, U2, V2 call space conversion to calculate
Method readjusts the information of U and V, is adjusted to U and V individually separated state, U0, U1, U2, V0, V1, V2.Conversely, also may be used
YUV420P is converted to YUV420SP.
In another example the second color space format is STE_PACKED_SP, STE_PACKED_SP is converted to
YUV420P, as shown in Figure 4.Call space conversion algorithms, by 128x1MBY0 and 128x1MBY1 be respectively converted into 8x16MBY0 and
8x16MBY1;By in 64x1MBUV0 and 64x1MBUV1 MBU and MBV point open, obtain 4x8MBU0 and 4x8MBU1, and,
4x8MBV0 and 4x8MBV1.Conversely, can also STE_PACKED_SP be converted to YUV420P.
Step 202, the hardware decoding data for being converted to the intermediate form is carried out at video according to the intermediate form
Reason, obtains the video processing results of the intermediate form.
The video processing may include that video is cut, video combination, video is superimposed and the processes such as video location modification.And
And the video is before and after the processing, the format of hardware decoding data is intermediate form.
Step 204, hardware encoding parameter is obtained, the hardware encoding parameter is analyzed, obtains first color
The format conversion of the video processing results is the first color space corresponding with the hardware encoding parameter by Space format
Format.
Hardware encoding parameter can be got from hardware coder, the hardware encoding parameter of different hardware coders can
With difference.
Preferably, in the step 204, it is and the hardware encoding parameter by the format conversion of the video processing results
The process of corresponding first color space format can be:
Call the space conversion algorithms, by the video processing results by the intermediate format conversion be first color
Color space format.
Step 206, the video processing results of the first color space format are encoded, completes video editing.
The coding is to handle original video data (yuv format or rgb format etc.) by image encoding standards, is obtained
The only even smaller data of original video data 1/tens, while it is original to ensure that obtained data remain able to revert to
Video data, moreover, a kind of image quality loss of obtained data compress technique as small as possible.
In practical applications, the video editing method of the mobile terminal in the embodiment of the present invention can be held according to the following steps
Row:
1) start hardware decoder.
2) hardware decoding data and hardware decoding parametric are obtained from hardware decoder, are wanted for the format of hardware decoder
Calling space conversion algorithms are sought, the hardware decoding data of YUV420P formats is exported.
Hardware decoding parametric can be the information that identification hardware codec format requires, and need to calculate hardware decoding parametric
Method identifies, obtains hardware codec format requirement.
3) unified that video processing is carried out to hardware decoding data according to YUV420P formats.
4) start hardware coder, and obtain hardware coder hardware encoding parameter.
The effect of hardware encoding parameter is similar with the effect of hardware decoding parametric, and hardware encoding parameter encodes for identification hardware
The information of call format, or color space demand for identification hardware encoder information.
5) according to the color space demand of hardware coder, space conversion algorithms are called, at the video of YUV420P formats
Data after reason are converted to the data of the corresponding color space demand of hardware coder.
6) data of the corresponding color space demand of hardware coder are sent to hardware coder and carry out Video coding.
In conclusion the technical solution of the embodiment of the present invention, is number by the format conversion of the hardware decoding data got
Intermediate form according to amount less than YUYV formats;Video processing is carried out to the hardware decoding data of intermediate form according to intermediate form;
The video processing results of intermediate form are converted into the first color space corresponding with hardware encoding parameter.During above three
YUV420P formats are utilized, realizes unification in whole process and carries out video processing according to YUV420P formats, moreover,
The data volume of YUV420P formats is less than the data volume of YUYV formats, is adopted so the conversion calculation amount during format conversion is less than
With the conversion calculation amount of YUYV formats, the conversion speed of video editing is improved, user experience is improved.
By the way that YUYV nonessential in processing procedure is converted to YUV420P, and the input of hardware compression device is defeated
Go out and be uniformly converted to YUV420P, improves the performance of video editing process.
Embodiment three
A kind of video editing apparatus of mobile terminal provided in an embodiment of the present invention is discussed in detail.
With reference to Fig. 5, a kind of video editing apparatus structure chart of mobile terminal in the embodiment of the present invention is shown.
Described device may include:Decode space conversion module 300, image processing module 302, space encoder conversion module
304, coding module 306.
The relationship between the function and each module of each module is discussed in detail separately below.
Space conversion module 300 is decoded, for obtaining hardware decoding data, by the format conversion of the hardware decoding data
For intermediate form;The data volume of the intermediate form is less than YUYV formats.
Image processing module 302, for according to the intermediate form to being converted to the hardware solution yardage of the intermediate form
According to video processing is carried out, the video processing results of the intermediate form are obtained.
Space encoder conversion module 304, for obtaining hardware encoding parameter, by the format conversion of the video processing results
For the first color space format corresponding with the hardware encoding parameter.
Coding module 306 is encoded for the video processing results to the first color space format, completes video
Editor.
In conclusion the technical solution of the embodiment of the present invention, is number by the format conversion of the hardware decoding data got
Intermediate form according to amount less than YUYV formats;Video processing is carried out to the hardware decoding data of intermediate form according to intermediate form;
The video processing results of intermediate form are converted into the first color space corresponding with hardware encoding parameter.During above three
Intermediate form is utilized, the data volume of intermediate form is less than the data volume of YUYV formats, so turning during format conversion
It changes calculation amount and is less than the conversion calculation amount for using YUYV formats, improve the conversion speed of video editing, improve user experience.
Example IV
A kind of video editing apparatus of mobile terminal provided in an embodiment of the present invention is discussed in detail.
With reference to Fig. 6, a kind of video editing apparatus structure chart of mobile terminal in the embodiment of the present invention is shown.
Described device may include:Decoding parametric analysis module 400 decodes space conversion module 402, image processing module
404, coding parameter analysis module 406, space encoder conversion module 408, coding module 410.
The relationship between the function and each module of each module is discussed in detail separately below.
Decoding parametric analysis module 400, in the decoding space conversion module 402 by the hardware decoding data
Before format conversion is intermediate form, hardware decoding parametric is obtained, the hardware decoding parametric is analyzed, obtained described hard
The corresponding second color space format of part decoding data.
Space conversion module 402 is decoded, for obtaining hardware decoding data, by the format conversion of the hardware decoding data
For intermediate form;The data volume of the intermediate form is less than YUYV formats.
Preferably, the format conversion of the hardware decoding data is intermediate form by the decoding space conversion module 402
When, space conversion algorithms can be called, in being described by the second color space format conversion by the hardware decoding data
Between format.
Wherein, the intermediate form includes YUV420P formats.
Image processing module 404, for according to the intermediate form to being converted to the hardware solution yardage of the intermediate form
According to video processing is carried out, the video processing results of the intermediate form are obtained.
Coding parameter analysis module 406, for the space encoder conversion module 408 obtain hardware encoding parameter it
Afterwards, by the format conversion of the video processing results be the first color space format corresponding with the hardware encoding parameter it
Before, the hardware encoding parameter is analyzed, the first color space format is obtained.
Space encoder conversion module 408, for obtaining hardware encoding parameter, by the format conversion of the video processing results
For the first color space format corresponding with the hardware encoding parameter.
Preferably, the space encoder conversion module 408 by the format conversion of the video processing results be with it is described hard
When the corresponding first color space format of part coding parameter, the space conversion algorithms can be called, the video is handled
As a result it is the first color space format by the intermediate format conversion.
Coding module 410 is encoded for the video processing results to the first color space format, completes video
Editor.
In practical applications, decoding parametric analysis module can be integrated into decoding space conversion module, coding parameter point
Analysis module can be integrated into space encoder conversion module.I.e. decoding space conversion module can also realize that decoding parametric analyzes mould
The function of block, space encoder conversion module can also realize the function of coding parameter analysis module.Shifting after functions of modules integration
The operation schematic diagram of the video editing apparatus of dynamic terminal is as shown in Figure 7.Decoding data (YUV420SP, YUV420PACKED, manufacturer
It is self-defined etc.) decoding space conversion module progress format conversion is passed to, it is converted to the data of YUV420P formats;It will conversion
Data transfer afterwards carries out video editing to image processing module, by the data transfer of edited YUV420P formats to coding
Space conversion module carries out format conversion, is converted to coded data (YUV420SP, YUV420PACKED, manufacturer self-defined etc.).
Wherein, space conversion module is decoded, can be YUV420P by the format conversion of the output data of hardware decoder,
The process of conversion also includes the identification to various hardware decoder manufacturers user-defined format.
The editting functions such as cutting, scaling, the filling of video may be implemented in image processing module.
The format conversion of edited video data can be the color needed for hardware coder by space encoder conversion module
Color space format.
In conclusion the technical solution of the embodiment of the present invention, is number by the format conversion of the hardware decoding data got
Intermediate form according to amount less than YUYV formats;Video processing is carried out to the hardware decoding data of intermediate form according to intermediate form;
The video processing results of intermediate form are converted into the first color space corresponding with hardware encoding parameter.During above three
YUV420P formats are utilized, realizes unification in whole process and carries out video processing according to YUV420P formats, moreover,
The data volume of YUV420P formats is less than the data volume of YUYV formats, is adopted so the conversion calculation amount during format conversion is less than
With the conversion calculation amount of YUYV formats, the conversion speed of video editing is improved, user experience is improved.
By the way that YUYV nonessential in processing procedure is converted to YUV420P, and the input of hardware compression device is defeated
Go out and be uniformly converted to YUV420P, avoids very time-consuming YUV420P and YUYV formats in existing video editing process
Between conversion, improve the performance of video editing process.
For device embodiments, since it is basically similar to the method embodiment, so fairly simple, the correlation of description
Place illustrates referring to the part of embodiment of the method.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with
The difference of other embodiment, the same or similar parts between the embodiments can be referred to each other.
It is provided for the embodiments of the invention a kind of video editing method and device of mobile terminal above, has carried out in detail
It introduces, principle and implementation of the present invention are described for specific case used herein, the explanation of above example
It is merely used to help understand the method and its core concept of the present invention;Meanwhile for those of ordinary skill in the art, according to this
The thought of invention, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification is not answered
It is interpreted as limitation of the present invention.
Claims (6)
1. a kind of video editing method of mobile terminal, which is characterized in that including:
Hardware decoding parametric is obtained, the hardware decoding parametric is analyzed, obtains corresponding second color of hardware decoding data
Color space format;
Hardware decoding data is obtained, is intermediate form by the format conversion of the hardware decoding data, including:Call space
Transfer algorithm, by the hardware decoding data by the second color space format conversion be the intermediate form;Hardware decodes
The format of data is the extended formatting except intermediate form, and the data volume of the intermediate form is less than YUYV formats, wherein described
Intermediate form includes YUV420P formats;
According to the intermediate form to be converted to the intermediate form hardware decoding data carry out video processing, obtain it is described in
Between format video processing results;
Hardware encoding parameter is obtained, is corresponding with the hardware encoding parameter by the format conversion of the video processing results
First color space format;
The video processing results of the first color space format are encoded, video editing is completed.
2. according to the method described in claim 1, it is characterized in that, after the acquisition hardware encoding parameter, it is described will be described
Before the format conversion of video processing results is the first color space format corresponding with the hardware encoding parameter, also wrap
It includes:
The hardware encoding parameter is analyzed, the first color space format is obtained.
3. according to the method described in claim 1, it is characterized in that, the format conversion by the video processing results be with
The corresponding first color space format of hardware encoding parameter, including:
The space conversion algorithms are called, the video processing results are empty for first color by the intermediate format conversion
Between format.
4. a kind of video editing apparatus of mobile terminal, which is characterized in that including:
Decoding parametric analysis module analyzes the hardware decoding parametric for obtaining hardware decoding parametric, obtains hardware
The corresponding second color space format of decoding data;
Space conversion module is decoded, is centre by the format conversion of the hardware decoding data for obtaining hardware decoding data
Format, including call space conversion algorithms, be by the second color space format conversion by the hardware decoding data
The intermediate form;The format of hardware decoding data is the extended formatting except intermediate form, the data volume of the intermediate form
Less than YUYV formats, wherein the intermediate form includes YUV420P formats;
Image processing module, for being regarded to the hardware decoding data for being converted to the intermediate form according to the intermediate form
Frequency is handled, and obtains the video processing results of the intermediate form;
Space encoder conversion module, for obtaining hardware encoding parameter, by the format conversion of the video processing results for institute
State the corresponding first color space format of hardware encoding parameter;
Coding module is encoded for the video processing results to the first color space format, completes video editing.
5. device according to claim 4, which is characterized in that further include:
Coding parameter analysis module regards after obtaining hardware encoding parameter in the space encoder conversion module by described in
Before the format conversion of frequency handling result is the first color space format corresponding with the hardware encoding parameter, to described hard
Part coding parameter is analyzed, and the first color space format is obtained.
6. device according to claim 4, which is characterized in that the space encoder conversion module ties video processing
When the format conversion of fruit is the first color space format corresponding with the hardware encoding parameter, the space conversion is called to calculate
Method, by the video processing results by the intermediate format conversion be the first color space format.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410302921.3A CN104104897B (en) | 2014-06-27 | 2014-06-27 | A kind of video editing method and device of mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410302921.3A CN104104897B (en) | 2014-06-27 | 2014-06-27 | A kind of video editing method and device of mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104104897A CN104104897A (en) | 2014-10-15 |
CN104104897B true CN104104897B (en) | 2018-10-23 |
Family
ID=51672664
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410302921.3A Active CN104104897B (en) | 2014-06-27 | 2014-06-27 | A kind of video editing method and device of mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104104897B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108809921B (en) * | 2017-07-31 | 2021-08-06 | 视联动力信息技术股份有限公司 | Audio processing method, video networking server and video networking terminal |
CN113327302A (en) * | 2021-05-26 | 2021-08-31 | 浙江大华技术股份有限公司 | Picture processing method and device, storage medium and electronic device |
CN114222187B (en) * | 2021-08-12 | 2023-08-29 | 荣耀终端有限公司 | Video editing method and electronic equipment |
Family Cites Families (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3285941B2 (en) * | 1992-07-31 | 2002-05-27 | キヤノン株式会社 | Color processing method, color processing apparatus, and color image processing system |
CN101621633A (en) * | 2008-07-04 | 2010-01-06 | 鸿富锦精密工业(深圳)有限公司 | Image editing system and method |
CN101662677B (en) * | 2008-08-29 | 2011-08-10 | 华为终端有限公司 | Code stream conversion system, code stream conversion method, code stream identification unit and scheme determination unit |
CN102014262A (en) * | 2010-10-27 | 2011-04-13 | 杭州海康威视软件有限公司 | Hard disk video recorder and system and method for converting multimedia formats |
CN102624679B (en) * | 2011-01-28 | 2014-09-10 | 陶祖南 | Realization method for multilevel intelligent multifunctional multimedia information interaction system |
JP2012199877A (en) * | 2011-03-23 | 2012-10-18 | Sony Corp | Image processing device, image processing method, and program |
KR101894420B1 (en) * | 2011-04-15 | 2018-09-03 | 에스케이플래닛 주식회사 | Adaptive video transcoding method and its system for maximizing transcoding server capacity |
CN103488449B (en) * | 2012-06-08 | 2016-06-01 | 旺玖科技股份有限公司 | Transmission system capable of dynamically setting transmission configuration and its control method |
CN102801987B (en) * | 2012-07-20 | 2014-08-27 | 浙江工业大学 | Format conversion method for computer desktop video from YUV444 to YUV420 based on chrominance information classification |
CN103402100B (en) * | 2013-08-23 | 2017-02-15 | 北京奇艺世纪科技有限公司 | Video processing method and mobile terminal |
JP6055964B2 (en) * | 2013-08-27 | 2017-01-11 | 株式会社Wowow | Video production system and video production method |
CN103888840B (en) * | 2014-03-27 | 2017-03-29 | 电子科技大学 | A kind of video mobile terminal Real Time Dragging and the method and device for scaling |
-
2014
- 2014-06-27 CN CN201410302921.3A patent/CN104104897B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN104104897A (en) | 2014-10-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107071514B (en) | A kind of photograph document handling method and intelligent terminal | |
CN104782125B (en) | To the method, apparatus and system of the change of scale coding and decoding of coding units | |
US10038908B2 (en) | Palette mode in high efficiency video coding (HEVC) screen content coding (SCC) | |
CN101742317B (en) | Video compressing and encoding method with alpha transparent channel | |
CN106464870B (en) | The method and apparatus based on template matching for being coded and decoded to picture in frame | |
CN104885463B (en) | The method of encoding/decoding image and use its equipment | |
CA2724872C (en) | Image signal decoding apparatus, image signal decoding method, image signal encoding apparatus, image signal encoding method, and program | |
CN105491376B (en) | Image encoding and decoding method and device | |
TWI481223B (en) | Grouping of bypass-coded bins for sao syntax elements | |
RU2011117578A (en) | VIDEO ENCODING WITH LARGE MACRO BLOCKS | |
TW201336312A (en) | Sub-streams for wavefront parallel processing in video coding | |
US20150350682A1 (en) | Video decoding method and video decoder | |
TW201545543A (en) | Palette-based video coding | |
US20130094589A1 (en) | Method, apparatus and system for encoding and decoding the significance map for residual coefficients of a transform unit | |
CN108271024A (en) | Image coding, coding/decoding method and device | |
CN106791858B (en) | A kind of high sampling rate rgb video data lossless compression method | |
RU2013151253A (en) | DEVICE FOR CODING IMAGES, DEVICE FOR DECODING IMAGES, METHOD FOR CODING IMAGES AND METHOD FOR DECODING IMAGES | |
CN104704826B (en) | Two steps quantify and coding method and device | |
CN104159117B (en) | Method for hiding HEVC video information | |
CN110419222A (en) | Method, apparatus and system for being coded and decoded to video data | |
TW202041032A (en) | Use-case driven context model selection for hybrid video coding tools | |
CN104754362A (en) | Image compression method using fine division block matching | |
CN104104897B (en) | A kind of video editing method and device of mobile terminal | |
CN107431816A (en) | Low complex degree sample adaptively offsets (SAO) decoding | |
TW201328361A (en) | Adapting transform coefficient scaling in video/image coding to block features identified in the transform domain |
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 |