CN105847822A - Video decoding method and device - Google Patents

Video decoding method and device Download PDF

Info

Publication number
CN105847822A
CN105847822A CN201610202949.9A CN201610202949A CN105847822A CN 105847822 A CN105847822 A CN 105847822A CN 201610202949 A CN201610202949 A CN 201610202949A CN 105847822 A CN105847822 A CN 105847822A
Authority
CN
China
Prior art keywords
decoder
video
dependency
meansigma methods
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
Application number
CN201610202949.9A
Other languages
Chinese (zh)
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.)
LeTV Holding Beijing Co Ltd
LeTV Mobile Intelligent Information Technology Beijing Co Ltd
Original Assignee
LeTV Holding Beijing Co Ltd
LeTV Mobile Intelligent Information 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 LeTV Holding Beijing Co Ltd, LeTV Mobile Intelligent Information Technology Beijing Co Ltd filed Critical LeTV Holding Beijing Co Ltd
Priority to CN201610202949.9A priority Critical patent/CN105847822A/en
Publication of CN105847822A publication Critical patent/CN105847822A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/44Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/593Methods 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 each two adjacent frames in a video; calculating the average value of obtained correlation; determining one decoder out of at least two preset decoders according to the average value, wherein different preset decoders employ decoding algorithms of different complexities; and utilizing a determined decoder to decode the video. The method and device can dynamically select 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

A kind of video encoding/decoding method and device
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, system is provided by video decoding operation The situation that takies in source depends entirely on the decoding algorithm complexity of this decoder.More flat for scene changes For light video, owing to the picture data similarity in video is the highest, current picture is decoded Time can utilize the data of most of previous picture, therefore use complicated or simple decoder to solve Picture difference obtained by Ma is the most little, therefore can use the simple decoder of algorithm be decoded with Save system resource, if but select same decoder, meet phase scene changes and significantly regard. always Frequently, time, simple decoder will affect final picture effect;In like manner, if select complexity always Decoder, then can cause the wasting of resources, it can be seen that the flexibility ratio of existing decoding process and decoding Inefficient.
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 every 2 in video Dependency between individual adjacent pictures;Calculate the meansigma methods of each the described dependency got;According to Described meansigma methods determines 1 decoder at least 2 default decoders, and wherein, different presets The complexity of the decoding algorithm that decoder is used differs;Utilize the decoder determined to described video It is decoded.
Preferably, the dependency between every 2 adjacent pictures in described acquisition video, including: obtain Take each frame picture in video;Calculate the dependency of each group of consecutive frame picture.
Preferably, the dependency between every 2 adjacent pictures in described acquisition video, including: obtain Take the key frame picture in each scene in video;Calculate between each group of adjacent key frame picture 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 meansigma methods Device, wherein, the complexity of the decoding algorithm that different default decoders is used differs, including: Judge that whether described meansigma methods is higher than presetting relevance threshold;When described meansigma methods is higher than presetting dependency During threshold value, select described first decoder;When described meansigma methods is less than when presetting relevance threshold, select Select described second decoder.
Correspondingly, the present invention provides a kind of video decoder, including: dependency acquiring unit, use Dependency between every 2 adjacent pictures obtained in video;Average correlation computing unit, uses In the meansigma methods calculating each the described dependency got;Decoder determines unit, for according to institute State meansigma methods at least 2 default decoders, determine 1 decoder, wherein, different default solutions The complexity of the decoding algorithm that code device is used differs;Decoding unit, for utilizing the decoding determined Described video is decoded by device.
Preferably, described dependency acquiring unit includes: frame data acquiring unit, is used for obtaining video In each frame picture;Frame-to-frame correlation computing unit, for calculating the relevant of each group of consecutive frame picture Property.
Preferably, described dependency acquiring unit includes: key frame data acquiring unit, is used for obtaining The key frame picture in each scene in video;Correlation calculations unit between scene, is used for calculating Dependency between the key frame picture that each group is adjacent.
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 meansigma methods Whether higher than presetting relevance threshold;First selects unit, for when described meansigma methods is higher than presetting phase During closing property threshold value, select described first decoder;Second selects unit, is used for when described meansigma methods is low When default relevance threshold, select described second decoder.
The video encoding/decoding method provided according to the present invention and device, first obtain every 2 phases in video Dependency between adjacent picture, and calculate the meansigma methods average correlation as whole video, then Dependency meansigma methods according to picture data determines 1 decoder in default decoder, finally utilizes Video is decoded by the decoder determined, the present invention dynamically can select according to the picture dependency of video Selecting decoder, optimize decoding operation with this and system resource is taken 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 between every 2 adjacent pictures in video.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, calculates the meansigma methods of each the described dependency got.Can obtain many through step S1 Individual correlation data, this step is the meansigma methods calculating all correlation data.
S3, determines 1 decoder according to described meansigma methods 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 average correlation, Relatively simple decoder can be selected when average correlation is higher;
S4, utilizes the decoder determined to be decoded described video.
The video encoding/decoding method provided according to embodiments of the present invention, first obtains every 2 phases in video Dependency between adjacent picture, and calculate the meansigma methods average correlation as whole video, then Dependency meansigma methods according to picture data determines 1 decoder in default decoder, finally utilizes Video is decoded by the decoder determined, the present invention dynamically can select according to the picture dependency of video Selecting decoder, optimize decoding operation with this and system resource is taken situation, the present invention possesses higher Motility and decoding efficiency.
As one preferred embodiment, above-mentioned steps S1 may include that
S11a, obtains each frame picture in video;
S12a, calculates the dependency of each group of consecutive frame picture.This programme calculates one for every 2 frame pictures Individual correlation data, and then calculate average correlation, the average correlation accuracy thus calculated is more High.
As another preferred embodiment, above-mentioned steps S1 may include that
S11b, obtains the key frame picture in each scene in video.In order to make the user can be On scene level browsing video, video production side would generally become camera lens Video segmentation, and uses Key frame represents camera lens, then on the basis of camera lens, similar clustering shots is constituted scene, finally Extract frame based on scene and be referred to as key frame.
S12b, calculates the dependency between each group of adjacent key frame picture.
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 present invention only calculates dependency, and then calculates the key frame between adjacent scene Key frame average correlation, 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 S3 may include that
S31, it is judged that whether described meansigma methods is higher than presetting relevance threshold;
S32, when described meansigma methods is higher than when presetting relevance threshold, selects described first decoder;
S33, when described meansigma methods is less than when presetting relevance threshold, selects described second decoder.
Above-mentioned preferred version only selects 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 between every 2 adjacent pictures in video;
Average correlation computing unit 22, for calculating the meansigma methods of each the described dependency got;
Decoder determines unit 23, for according to described meansigma methods 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 24, for utilizing the decoder determined to be decoded described video.
The video decoder provided according to embodiments of the present invention, first obtains every 2 phases in video Dependency between adjacent picture, and calculate the meansigma methods average correlation as whole video, then Dependency meansigma methods according to picture data determines 1 decoder in default decoder, finally utilizes Video is decoded by the decoder determined, the present invention dynamically can select according to the picture dependency of video Selecting decoder, optimize decoding operation with this and system resource is taken situation, the present invention possesses higher Motility and decoding efficiency.
Preferably, described dependency acquiring unit 21 includes:
Frame data acquiring unit, for obtaining each frame picture in video;
Frame-to-frame correlation computing unit, for calculating the dependency of each group of consecutive frame picture.
This programme calculates a correlation data for every 2 frame pictures, and then calculates average correlation, The average correlation accuracy thus calculated is higher.
Preferably, described dependency acquiring unit 21 includes:
Key frame data acquiring unit, for obtaining the key frame picture in each scene in video;
Correlation calculations unit between scene, for calculating being correlated with between each group of adjacent key frame picture Property.
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 present invention only calculates dependency, and then calculates the key frame between adjacent scene Key frame average correlation, 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 meansigma methods is higher than presetting relevance threshold;
First selects unit, for when described meansigma methods is higher than when presetting relevance threshold, selecting described First decoder;
Second selects unit, for when described meansigma methods is less than when presetting relevance threshold, selecting described Second decoder.Above-mentioned preferred version only selects between two default decoders, the most permissible 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 between every 2 adjacent pictures in video;
Calculate the meansigma methods of each the described dependency got;
In at least 2 default decoders, 1 decoder is determined according to described meansigma methods, wherein, The complexity of the decoding algorithm that different default decoders is used differs;
Utilize the decoder determined that described video is decoded.
Video encoding/decoding method the most according to claim 1, it is characterised in that described acquisition regards The dependency between every 2 adjacent pictures in Pin, including:
Obtain each frame picture in video;
Calculate the dependency of each group of consecutive frame picture.
Video encoding/decoding method the most according to claim 1, it is characterised in that described acquisition regards The dependency between every 2 adjacent pictures in Pin, including:
Obtain the key frame picture in each scene in video;
Calculate the dependency between each group of adjacent key frame picture.
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 meansigma methods 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 meansigma methods is higher than presetting relevance threshold;
When described meansigma methods is higher than when presetting relevance threshold, select described first decoder;
When described meansigma methods 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 between every 2 adjacent pictures in video;
Average correlation computing unit, for calculating the meansigma methods of each the described dependency got;
Decoder determines unit, for according to described meansigma methods 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 be decoded described video.
Video decoder the most according to claim 6, it is characterised in that described dependency Acquiring unit includes:
Frame data acquiring unit, for obtaining each frame picture in video;
Frame-to-frame correlation computing unit, for calculating the dependency of each group of consecutive frame picture.
Video decoder the most according to claim 6, it is characterised in that described dependency Acquiring unit includes:
Key frame data acquiring unit, draws for obtaining the key frame in each scene in video Face;
Correlation calculations unit between scene, for calculating the phase between each group of adjacent key frame picture Guan Xing.
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 meansigma methods is higher than presetting relevance threshold;
First selects unit, for when described meansigma methods is higher than when presetting relevance threshold, selecting institute State the first decoder;
Second selects unit, for when described meansigma methods is less than when presetting relevance threshold, selecting institute State the second decoder.
CN201610202949.9A 2016-04-01 2016-04-01 Video decoding method and device Pending CN105847822A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610202949.9A CN105847822A (en) 2016-04-01 2016-04-01 Video decoding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610202949.9A CN105847822A (en) 2016-04-01 2016-04-01 Video decoding method and device

Publications (1)

Publication Number Publication Date
CN105847822A true CN105847822A (en) 2016-08-10

Family

ID=56596605

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610202949.9A Pending CN105847822A (en) 2016-04-01 2016-04-01 Video decoding method and device

Country Status (1)

Country Link
CN (1) CN105847822A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110139104A (en) * 2018-02-09 2019-08-16 腾讯科技(深圳)有限公司 Video encoding/decoding method, device, computer equipment and storage medium
CN112738525A (en) * 2020-12-11 2021-04-30 深圳万兴软件有限公司 Video processing method, device and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212685A (en) * 2006-12-28 2008-07-02 三星电子株式会社 Method and apparatus for encoding/decoding an image
CN101626512A (en) * 2009-08-11 2010-01-13 北京交通大学 Method and device of multiple description video coding based on relevance optimization rule
US20100158125A1 (en) * 2008-12-19 2010-06-24 Samsung Electronics Co., Ltd. Method and apparatus for constructing and decoding video frame in video signal processing apparatus using multi-core processing
CN102905157A (en) * 2012-09-29 2013-01-30 四川长虹电器股份有限公司 Television three-dimensional (3D) signal format automatically identifying method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212685A (en) * 2006-12-28 2008-07-02 三星电子株式会社 Method and apparatus for encoding/decoding an image
US20100158125A1 (en) * 2008-12-19 2010-06-24 Samsung Electronics Co., Ltd. Method and apparatus for constructing and decoding video frame in video signal processing apparatus using multi-core processing
CN101626512A (en) * 2009-08-11 2010-01-13 北京交通大学 Method and device of multiple description video coding based on relevance optimization rule
CN102905157A (en) * 2012-09-29 2013-01-30 四川长虹电器股份有限公司 Television three-dimensional (3D) signal format automatically identifying method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110139104A (en) * 2018-02-09 2019-08-16 腾讯科技(深圳)有限公司 Video encoding/decoding method, device, computer equipment and storage medium
CN110139104B (en) * 2018-02-09 2023-02-28 腾讯科技(深圳)有限公司 Video decoding method, video decoding device, computer equipment and storage medium
CN112738525A (en) * 2020-12-11 2021-04-30 深圳万兴软件有限公司 Video processing method, device and computer readable storage medium

Similar Documents

Publication Publication Date Title
JP6286718B2 (en) Content adaptive bitrate and quality management using frame hierarchy responsive quantization for highly efficient next generation video coding
US9264749B2 (en) Server GPU assistance for mobile GPU applications
US20100166073A1 (en) Multiple-Candidate Motion Estimation With Advanced Spatial Filtering of Differential Motion Vectors
TW200818919A (en) A method and apparatus for decoding/encoding a video signal
Zhang et al. Low-complexity and high-efficiency background modeling for surveillance video coding
CN103338376A (en) Video steganography method based on motion vector
JP2002125233A (en) Image compression system for weighting video contents
CN103020138A (en) Method and device for video retrieval
US7408989B2 (en) Method of video encoding using windows and system thereof
CN105847822A (en) Video decoding method and device
CN103533353B (en) A kind of near video coding system
US10997426B1 (en) Optimal fragmentation of video based on shot analysis
US9807453B2 (en) Mobile search-ready smart display technology utilizing optimized content fingerprint coding and delivery
US20130223525A1 (en) Pixel patch collection for prediction in video coding system
KR20210064587A (en) High speed split device and method for video section
CN113366842A (en) System and method for content layer based video compression
CN113810692B (en) Method for framing changes and movements, image processing device and program product
WO2022100173A1 (en) Video frame compression method and apparatus, and video frame decompression method and apparatus
CN105847821A (en) Video decoding method and device
KR102072576B1 (en) Apparatus and method for encoding and decoding of data
US10397609B2 (en) Method and apparatus for predicting residual
Jubran et al. Sequence-level reference frames in video coding
US7706440B2 (en) Method for reducing bit rate requirements for encoding multimedia data
WO2024093627A1 (en) Video compression method, video decoding method, and related apparatuses
CN114430501B (en) Content adaptive coding method and system for file transcoding

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160810