CN105847821A - Video decoding method and device - Google Patents
Video decoding method and device Download PDFInfo
- Publication number
- CN105847821A CN105847821A CN201610202439.1A CN201610202439A CN105847821A CN 105847821 A CN105847821 A CN 105847821A CN 201610202439 A CN201610202439 A CN 201610202439A CN 105847821 A CN105847821 A CN 105847821A
- Authority
- CN
- China
- Prior art keywords
- decoder
- data
- dependency
- picture
- decoding
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/44—Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/50—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
- H04N19/593—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
The invention provides a video decoding method and device, relating to the video data processing field. The method comprises: obtaining the correlation between the data of a current frame and the data of a prior frame; determining one decoder out of at least two preset decoders according to the correlation, wherein different preset decoders employ decoding algorithms of different complexities; and utilizing a determined decoder to decode the data of a current frame. The method and device can dynamically change a decoder according to the correlation of video frames so as to optimize decoding operation occupation on system resources, and possess higher flexibility and decoding efficiency.
Description
Technical field
The present invention relates to video data process field, be specifically related to a kind of video encoding/decoding method and device.
Background technology
Video decoding refers to, by specific decompression technique, be converted into by the file of certain video format
Another kind of video format file, its ultimate principle is owing to video interframe has certain similarity, because of
This can reduce video by steps such as inter prediction, removal redundancies when storage or transmission video
Data volume, when user watches video, again by removing the step such as redundancy interframe, inter prediction
The data of reduction video in the future.
Video player generally comprises decoder, decoder quantity that different players comprises and kind
Class may be different, and user even can add decoder and supplement player.For same
Different (the change used during inter prediction of the decoding algorithm that the different decoder of file format is used
Algorithm differs), and then decoding effect can be made to differ, difference essentially consists in, and decoding algorithm is more complicated
Decoder be suitable for video obvious to scene changes and be decoded, and decoding algorithm is simpler
The video that is suitable for scene changes is more flat of decoder be decoded, but algorithm is more complicated
Decoder is higher to hardware device requirement, taking system resource also can be more.
Existing decoding process is to be selected a kind of decoder by player according to file format, and broadcasts
Putting in device and only prestore a kind of decoder for same file format, player is once after Xuan Ding, no
Can change, video decoding operation takies situation and depends entirely on the decoding of this decoder system resource
Algorithm complex.For two pictures that dependency is higher, owing to the data of two pictures are similar
Spend the highest, the data of most of previous picture can be utilized when current picture is decoded, therefore make
It is decoded obtained picture difference with complicated or simple decoder the most little, therefore can use
The simple decoder of algorithm is decoded saving system resource, if but select same decoding always
Device, when meeting the relatively low situation of phase picture dependency, simple decoder will affect final picture effect
Really;In like manner, if select the decoder of complexity always, then the wasting of resources can be caused, it can be seen that existing
Flexibility ratio and the decoding efficiency of some decoding processes are relatively low.
Summary of the invention
The present invention is to solve the flexibility ratio of existing decoding process and the relatively low problem of decoding efficiency.
In view of this, the invention provides a kind of video encoding/decoding method, including: obtain current picture number
According to the dependency with previous picture data;According to described dependency at least 2 default decoders really
Fixed 1 decoder, wherein, the complexity not phase of the decoding algorithm that different default decoders is used
With;Utilize the decoder determined to described current picture decoding data.
Preferably, described acquisition current picture data and the dependency of previous picture data, including: obtain
Take the data when former frame picture and the data of former frame picture;Calculate described when the number of former frame picture
According to the dependency between the data of former frame picture.
Preferably, described acquisition current picture data and the dependency of previous picture data, including: obtain
Take the data of key frame picture in the data of key frame picture in current scene and previous scenario;Meter
Between the data of the key frame picture in the data of the key frame picture in calculation current scene and previous scenario
Dependency.
Preferably, described default decoder is the first decoder and the second decoder, wherein said first
The decoding algorithm that the complexity of the decoding algorithm that decoder is used is used less than described second decoder
Complexity.
Preferably, described at least 2 default decoders, 1 decoding is determined according to described dependency
Device, wherein, the complexity of the decoding algorithm that different default decoders is used differs, including:
Judge that whether described dependency is higher than presetting relevance threshold;When described dependency is higher than presetting dependency
During threshold value, select described first decoder;When described dependency is less than when presetting relevance threshold, select
Select described second decoder.
Correspondingly, the invention provides a kind of video decoder, including: dependency acquiring unit,
For obtaining the dependency of current picture data and previous picture data;Decoder determines unit, is used for
In at least 2 default decoders, 1 decoder is determined according to described dependency, wherein, different
The complexity presetting the decoding algorithm that decoder is used differs;Decoding unit, determines for utilization
Decoder to described current picture decoding data.
Preferably, described dependency acquiring unit includes: frame data acquiring unit, is used for obtaining currently
The data of one frame picture and the data of former frame picture;Frame-to-frame correlation computing unit, is used for calculating institute
State the dependency between the data and the data of former frame picture of former frame picture.
Preferably, described dependency acquiring unit includes: key frame data acquiring unit, is used for obtaining
The data of the key frame picture in the data of the key frame picture in current scene and previous scenario;Scene
Between correlation calculations unit, for calculating data and the previous scenario of key frame picture in current scene
In key frame picture data between dependency.
Preferably, described default decoder is the first decoder and the second decoder, wherein said first
The decoding algorithm that the complexity of the decoding algorithm that decoder is used is used less than described second decoder
Complexity.
Preferably, described decoder determines that unit includes: judging unit, is used for judging described dependency
Whether higher than presetting relevance threshold;First selects unit, for when described dependency is higher than presetting phase
During closing property threshold value, select described first decoder;Second selects unit, is used for when described dependency is low
When default relevance threshold, select described second decoder.
The video encoding/decoding method provided according to the present invention and device, by obtaining current picture data with front
The dependency of one picture data, and in default decoder, determine 1 according to the dependency of picture data
Decoder, finally utilizes the decoder determined to current picture decoding data, and the present invention can root
Dynamically change decoder according to the picture dependency of video, optimize decoding operation to system resource with this
Taking situation, the present invention possesses higher motility and decoding efficiency.
Accompanying drawing explanation
In order to be illustrated more clearly that the specific embodiment of the invention or technical scheme of the prior art, under
The accompanying drawing used required in detailed description of the invention or description of the prior art will be briefly described by face,
It should be evident that the accompanying drawing in describing below is some embodiments of the present invention, general for this area
From the point of view of logical technical staff, on the premise of not paying creative work, it is also possible to obtain according to these accompanying drawings
Obtain other accompanying drawing.
The flow chart of the video encoding/decoding method that Fig. 1 provides for the embodiment of the present invention;
The structural representation of the video decoder that Fig. 2 provides for the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with accompanying drawing, technical scheme is clearly and completely described, it is clear that
Described embodiment is a part of embodiment of the present invention rather than whole embodiments.Based on this
Embodiment in bright, those of ordinary skill in the art are obtained under not making creative work premise
Every other embodiment, broadly fall into the scope of protection of the invention.
As long as additionally, technical characteristic involved in invention described below difference embodiment that
The conflict of not constituting between this just can be combined with each other.
Embodiment 1
The embodiment of the present invention provides a kind of video encoding/decoding method, and the method can in computer, intelligence eventually
Performing in the intelligent electronic devices such as end, the method includes as shown in Figure 1:
S1, obtains the dependency of current picture data and previous picture data.Video is the most a string
Image sequence, the dependency between picture i.e. refers to the ratio of the identical content that two pictures are had, for
For the visual system of people, two images of the highest expression of dependency seem the most similar.Such as some is said
Seat video, in video, substantial amounts of content is that a people gives a lecture in a fixed scene, two pictures
Difference between face essentially consists of the face of people, and identical content occupies significant proportion, therefore the two
The dependency of picture is the highest.For computer, then to calculate the two by the data of picture
The dependency of picture, correlation calculations method has multiple, and the present invention uses any one method existing
It is feasible;
S2, determines 1 decoder according to described dependency at least 2 default decoders, wherein,
The complexity of the decoding algorithm that different default decoders is used differs, such as can be at player
In prestore multiple decoder for same file format, the change algorithm that each decoder is used
Complexity is different, can be compared with predetermined threshold value by the dependency that get, according to comparison result
Select a decoder, relative complex decoder can be selected in the case of relatively low for dependency, right
The situation higher in dependency can select relatively simple decoder;
S3, utilizes the decoder determined to decode described current picture decoding data, current picture
Step S1 is then returned after completing.
The video encoding/decoding method provided according to embodiments of the present invention, by obtaining current picture data with front
The dependency of one picture data, and in default decoder, determine 1 according to the dependency of picture data
Decoder, finally utilizes the decoder determined to current picture decoding data, and the present invention can root
Dynamically change decoder according to the picture dependency of video, optimize decoding operation to system resource with this
Taking situation, the present invention possesses higher motility and decoding efficiency.
As one preferred embodiment, above-mentioned steps S1 may include that
S11a, obtains the data when former frame picture and the data of former frame picture;
S12a, calculates described relevant between data and the data of former frame picture of former frame picture
Property.This programme calculates a dependency for each frame picture, and then for each frame picture and selecting one
Secondary decoder, this programme possesses higher real-time.
As another preferred embodiment, above-mentioned steps S1 may include that
S11b, the key frame in the data of the key frame picture in acquisition current scene and previous scenario is drawn
The data in face.In order to make user with in background layer on the scene time, video can be browsed, video production square tube
Often Video segmentation can be become camera lens, and represent camera lens with key frame, then by phase on the basis of camera lens
As clustering shots constitute scene, finally extract frame based on scene and be referred to as key frame.
S12b, the data calculating the key frame picture in current scene are drawn with the key frame in previous scenario
Dependency between the data in face.
There is between most of continuous print frames higher dependency, but the dependency between scene is typically
Relatively low, only just there will be dependency when being played to two frames adjacent when between two scenes and occur
The situation of significant change, the key frame between scene is only judged, and then decides whether by the present invention
Switching encoding/decoding device, thus can reduce amount of calculation, improve decoding efficiency further.
As one preferred embodiment, the quantity for the default decoder of same formatted file is excellent
Electing 2 as, the respectively first decoder and the second decoder, wherein said first decoder is used
The complexity of decoding algorithm that used less than described second decoder of the complexity of decoding algorithm.
Further, above-mentioned steps S2 may include that
S21, it is judged that whether described dependency is higher than presetting relevance threshold;
S22, when described dependency is higher than when presetting relevance threshold, selects described first decoder;
S23, when described dependency is less than when presetting relevance threshold, selects described second decoder.
Above-mentioned preferred version only switches between two default decoders, thus can improve decoding
Efficiency.
Embodiment 2
The embodiment of the present invention provides a kind of video decoder, as in figure 2 it is shown, the method includes:
Dependency acquiring unit 21, for obtaining the dependency of current picture data and previous picture data;
Decoder determines unit 22, for according to described dependency at least 2 default decoders really
Fixed 1 decoder, wherein, the complexity not phase of the decoding algorithm that different default decoders is used
With;
Decoding unit 23, for utilizing the decoder determined to described current picture decoding data.
The video decoder provided according to embodiments of the present invention, by obtaining current picture data with front
The dependency of one picture data, and in default decoder, determine 1 according to the dependency of picture data
Decoder, finally utilizes the decoder determined to current picture decoding data, and the present invention can root
Dynamically change decoder according to the picture dependency of video, optimize decoding operation to system resource with this
Taking situation, the present invention possesses higher motility and decoding efficiency.
Preferably, described dependency acquiring unit 21 includes:
Frame data acquiring unit, for obtaining the data when former frame picture and the data of former frame picture;
Frame-to-frame correlation computing unit, for calculating the described data when former frame picture and former frame picture
Dependency between the data in face.
This programme calculates a dependency for each frame picture, and then for each frame picture and selecting one
Secondary decoder, this programme possesses higher real-time.
Preferably, described dependency acquiring unit 21 includes:
Key frame data acquiring unit, for obtaining the data of key frame picture in current scene and front
The data of the key frame picture in one scene;
Correlation calculations unit between scene, for calculate the data of key frame picture in current scene with
Dependency between the data of the key frame picture in previous scenario.
There is between most of continuous print frames higher dependency, but the dependency between scene is typically
Relatively low, only just there will be dependency when being played to two frames adjacent when between two scenes and occur
The situation of significant change, the key frame between scene is only judged, and then decides whether by the present invention
Switching encoding/decoding device, thus can reduce amount of calculation, improve decoding efficiency further.
Preferably, described default decoder is the first decoder and the second decoder, wherein said first
The decoding algorithm that the complexity of the decoding algorithm that decoder is used is used less than described second decoder
Complexity.
Preferably, described decoder determines that unit 22 includes:
Judging unit, is used for judging that whether described dependency is higher than presetting relevance threshold;
First selects unit, for when described dependency is higher than when presetting relevance threshold, selecting described
First decoder;
Second selects unit, for when described dependency is less than when presetting relevance threshold, selecting described
Second decoder.
Above-mentioned preferred version only switches between two default decoders, thus can improve decoding
Efficiency.
Obviously, above-described embodiment is only for clearly demonstrating example, and not to embodiment party
The restriction of formula.For those of ordinary skill in the field, the most also may be used
To make other changes in different forms.Here without also all of embodiment being given
With exhaustive.And the obvious change thus extended out or variation are still in the guarantor of the invention
Protect among scope.
Claims (10)
1. a video encoding/decoding method, it is characterised in that including:
Obtain the dependency of current picture data and previous picture data;
In at least 2 default decoders, 1 decoder is determined according to described dependency, wherein,
The complexity of the decoding algorithm that different default decoders is used differs;
Utilize the decoder determined to described current picture decoding data.
Video encoding/decoding method the most according to claim 1, it is characterised in that described acquisition is worked as
Front picture data and the dependency of previous picture data, including:
Obtain the data when former frame picture and the data of former frame picture;
Calculate described dependency between data and the data of former frame picture of former frame picture.
Video encoding/decoding method the most according to claim 1, it is characterised in that described acquisition is worked as
Front picture data and the dependency of previous picture data, including:
Key frame picture in the data of the key frame picture in acquisition current scene and previous scenario
Data;
Calculate the data of key frame picture in current scene and the key frame picture in previous scenario
Dependency between data.
4. according to the video encoding/decoding method according to any one of claim 1-3, it is characterised in that
Described default decoder is the first decoder and the second decoder, and wherein said first decoder is used
The complexity of decoding algorithm that used less than described second decoder of the complexity of decoding algorithm.
Video encoding/decoding method the most according to claim 4, it is characterised in that described according to institute
State dependency at least 2 default decoders, determine 1 decoder, wherein, different default solutions
The complexity of the decoding algorithm that code device is used differs, including:
Judge that whether described dependency is higher than presetting relevance threshold;
When described dependency is higher than when presetting relevance threshold, select described first decoder;
When described dependency is less than when presetting relevance threshold, select described second decoder.
6. a video decoder, it is characterised in that including:
Dependency acquiring unit, for obtaining the dependency of current picture data and previous picture data;
Decoder determines unit, for according to described dependency at least 2 default decoders really
Fixed 1 decoder, wherein, the complexity not phase of the decoding algorithm that different default decoders is used
With;
Decoding unit, for utilizing the decoder determined to described current picture decoding data.
Video decoder the most according to claim 6, it is characterised in that described dependency
Acquiring unit includes:
Frame data acquiring unit, for obtaining the data when former frame picture and the number of former frame picture
According to;
Frame-to-frame correlation computing unit, for calculating the described data when former frame picture and former frame
Dependency between the data of picture.
Video decoder the most according to claim 6, it is characterised in that described dependency
Acquiring unit includes:
Key frame data acquiring unit, for obtain key frame picture in current scene data and
The data of the key frame picture in previous scenario;
Correlation calculations unit between scene, for calculating the data of the key frame picture in current scene
And the dependency between the data of the key frame picture in previous scenario.
9. according to the video decoder according to any one of claim 6-8, it is characterised in that
Described default decoder is the first decoder and the second decoder, and wherein said first decoder is used
The complexity of decoding algorithm that used less than described second decoder of the complexity of decoding algorithm.
Video decoder the most according to claim 4, it is characterised in that described decoding
Device determines that unit includes:
Judging unit, is used for judging that whether described dependency is higher than presetting relevance threshold;
First selects unit, for when described dependency is higher than when presetting relevance threshold, selecting institute
State the first decoder;
Second selects unit, for when described dependency is less than when presetting relevance threshold, selecting institute
State the second decoder.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610202439.1A CN105847821A (en) | 2016-04-01 | 2016-04-01 | Video decoding method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610202439.1A CN105847821A (en) | 2016-04-01 | 2016-04-01 | Video decoding method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105847821A true CN105847821A (en) | 2016-08-10 |
Family
ID=56596621
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610202439.1A Pending CN105847821A (en) | 2016-04-01 | 2016-04-01 | Video decoding method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105847821A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090016427A1 (en) * | 2007-07-12 | 2009-01-15 | Kazuyuki Uchida | Decoding system |
CN101729883A (en) * | 2008-10-14 | 2010-06-09 | 上海炜寅信息科技有限公司 | Method for adaptively adjusting video decoding complexity |
CN102316319A (en) * | 2010-07-05 | 2012-01-11 | 联发科技股份有限公司 | Adaptive video coding/decoding method, decoder and audio/video playback system |
CN102572381A (en) * | 2010-12-29 | 2012-07-11 | 中国移动通信集团公司 | Video monitoring scene judging method and monitoring image coding method and device thereof |
-
2016
- 2016-04-01 CN CN201610202439.1A patent/CN105847821A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090016427A1 (en) * | 2007-07-12 | 2009-01-15 | Kazuyuki Uchida | Decoding system |
CN101729883A (en) * | 2008-10-14 | 2010-06-09 | 上海炜寅信息科技有限公司 | Method for adaptively adjusting video decoding complexity |
CN102316319A (en) * | 2010-07-05 | 2012-01-11 | 联发科技股份有限公司 | Adaptive video coding/decoding method, decoder and audio/video playback system |
CN102572381A (en) * | 2010-12-29 | 2012-07-11 | 中国移动通信集团公司 | Video monitoring scene judging method and monitoring image coding method and device thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9264749B2 (en) | Server GPU assistance for mobile GPU applications | |
TW200818919A (en) | A method and apparatus for decoding/encoding a video signal | |
JP2016508327A (en) | Content adaptive bitrate and quality management using frame hierarchy responsive quantization for highly efficient next generation video coding | |
CN105264892A (en) | Tuning video compression for high frame rate and variable frame rate capture | |
WO2020140915A1 (en) | Video processing method and apparatus | |
CN105306945A (en) | Scalable synopsis coding method and device for monitor video | |
CN101014129B (en) | Video data compression method | |
CN103338376A (en) | Video steganography method based on motion vector | |
CN109688407B (en) | Reference block selection method and device for coding unit, electronic equipment and storage medium | |
CN107454412A (en) | A kind of processing method of video image, apparatus and system | |
CN104717509A (en) | Method and device for decoding video | |
WO2023142716A1 (en) | Encoding method and apparatus, real-time communication method and apparatus, device, and storage medium | |
US7408989B2 (en) | Method of video encoding using windows and system thereof | |
CA3182110A1 (en) | Reinforcement learning based rate control | |
CN102316323B (en) | Rapid binocular stereo-video fractal compressing and uncompressing method | |
CN105847822A (en) | Video decoding method and device | |
CN106937127B (en) | Display method and system for intelligent search preparation | |
CN116156202A (en) | Method, system, terminal and medium for realizing video error concealment | |
CN105847821A (en) | Video decoding method and device | |
CN102263952B (en) | Quick fractal compression and decompression method for binocular stereo video based on object | |
WO2022100173A1 (en) | Video frame compression method and apparatus, and video frame decompression method and apparatus | |
US10397609B2 (en) | Method and apparatus for predicting residual | |
CN102333220B (en) | Video coding and decoding method capable of selectively finishing predictive coding in transform domain | |
US7706440B2 (en) | Method for reducing bit rate requirements for encoding multimedia data | |
KR20190067577A (en) | Apparatus and method for encoding and decoding of data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20160810 |
|
WD01 | Invention patent application deemed withdrawn after publication |