CN102387363B - AVS any frame rate coding and decoding realization method - Google Patents

AVS any frame rate coding and decoding realization method Download PDF

Info

Publication number
CN102387363B
CN102387363B CN201110322811.XA CN201110322811A CN102387363B CN 102387363 B CN102387363 B CN 102387363B CN 201110322811 A CN201110322811 A CN 201110322811A CN 102387363 B CN102387363 B CN 102387363B
Authority
CN
China
Prior art keywords
frame per
picture
frame
field picture
standard
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
Application number
CN201110322811.XA
Other languages
Chinese (zh)
Other versions
CN102387363A (en
Inventor
于天歌
魏伟
徐昕
邵冬英
呼大明
郑海鸥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BEIJING BASTRIVER CO LTD
Original Assignee
BEIJING BASTRIVER 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 BEIJING BASTRIVER CO LTD filed Critical BEIJING BASTRIVER CO LTD
Priority to CN201110322811.XA priority Critical patent/CN102387363B/en
Publication of CN102387363A publication Critical patent/CN102387363A/en
Application granted granted Critical
Publication of CN102387363B publication Critical patent/CN102387363B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention belongs to the video compression coding and decoding field. The invention discloses a method for carrying out AVS any frame rate coding to a video sequence. The method comprises the following steps: setting an expectation frame rate frame_rate_t; selecting a standard frame rate frame_rate_o corresponding to the expectation frame rate in the frame rates supported by an AVS standard; marking the standard frame rate in a video sequence head; calculating a distance from each frame image to a first frame image according to the expectation frame rate and the standard frame rate, wherein the distance picture_distance i from the ist frame image to the first frame image is picture_distance i= Floor(fni* frame_rate_o/frame_rate_t)%256 the fni represents a frame number of the ist frame, fni=i-1and i is an integer which is greater than or equal to 1; marking the calculated picture_distance of the each frame image in the image head of the frame image so as to acquire the coded video sequence. The invention further discloses the method for carrying out AVS any frame rate decoding to the coded video sequence obtained by using the coding method.

Description

Any frame per second encoding and decoding of AVS implementation method
Technical field
The present invention relates to video compression coding-decoding method, be specifically related to any frame per second encoding and decoding of AVS implementation method.
Background technology
Digital video is widely used in the many aspects such as Digital Television, multimedia storage, video conference, video monitoring, video telephone, mobile video communication, in the fixed channel bandwidth applications such as Digital Television, multimedia storage, conventionally adopt per second 25 or 30 fixed video coding frame per second; But in applications such as video monitoring, video telephone, mobile video communication, channel width is limited or unfixing, this just requires video to adopt low frame per second coding or variable frame rate coding.
At present common video coding international standard have MPEG-2, MPEG-4, H.263, H.264 etc. there is the AVS standard of independent intellectual property right with China, in order to adapt to the Video coding of low frame per second or variable frame rate, the international standards such as MPEG-2 have all been formulated corresponding frame per second encoding scheme arbitrarily, but AVS standard is not supported any frame per second coding.
Take most widely used MPEG-2 as example, in order to realize any frame per second coding, MPEG-2 is with the frame_rate_code parameter identification normal frame rate in sequence head, and the normal frame rate value of this parameter identification is as shown in the frame_rate_value in table 1; Comprise frame_rate_extension_d, two parameters of frame_rate_extension_n in sequence head expansion; Represent arbitrary frame rate by the combination of frame_rate_value, frame_rate_extension_d, frame_rate_extension_n, concrete method for expressing is as follows:
Figure BDA0000100914510000011
In formula, frame_rate_extension_n is 2 unsigned numbers, and scope is 0~3; Frame_rate_extension_d is 5 unsigned numbers, and scope is 0~31.
AVS standard is that China independently formulates video compression coding standard, emphasize independent intellectual property right, be approved for national proposed standard (GB/T 200090.2-2006) in 2006, and become the optional video encoding standard of IPTV international standard in July, 2009, advantage advanced in performance, reasonable price that AVS relies on, will become New Generation Audio-visual Coding Standard has been a undisputable fact.Compared with Moving Picture Experts Group-2, AVS can save the channel width of half under identical image quality condition; Compared with standard H.264, code efficiency is substantially suitable, and complexity is lower under the prerequisite of identical image quality.
Table 1 frame per second code
frame_rate_code frame_rate_value
0000 Forbid
0001 24000÷1001(23.976...)
0010 24
0011 25
0100 30000÷1001(29.97...)
0101 30
0110 50
0111 60000÷1001(59.94...)
1000 60
1001~1111 Retain
But in existing AVS standard, AVS is with the frame_rate_code parameter identification frame per second in sequence head, the frame per second of this parameter identification is as shown in the frame_rate_value in table 1, identical with Moving Picture Experts Group-2.But AVS standard is not supported frame per second expansion, only supports the limited several frame per second as shown in frame_rate_value in table 1.
Picture_distance in AVS standard is the integer between 0 to 255, the picture_distance that the picture_distance of every frame equals former frame (DISPLAY ORDER) adds 1, add the number of image frames (frame number being skipped between two continuous frames should be less than 32) being skipped between present frame and former frame, rear mold 256.The picture_distance of the first frame of a video sequence should be 0.
In sum, the normal frame rate shown in an AVS standard support matrix 1 itself, does not support any frame per second coding, just can not realize low frame per second and variable frame rate coding yet, has limited the promotion and application of standard.
Summary of the invention
The object of the invention is the method for the Code And Decode that proposes a kind of any frame per second of realization based on AVS standard, make it to adapt to low frame per second and variable frame rate application scenario.For this reason, the present invention adopts following technical scheme:
According to the present invention, a kind of method of video sequence being carried out to any frame per second coding of AVS is provided, the method comprises:
Set and expect frame per second frame_rate_t, and select and the corresponding standard frame per second of this expectation frame per second frame_rate_o in the frame per second of supporting in AVS standard, this standard frame per second is marked in this video sequence head;
According to the distance of every two field picture and the 1st two field picture in this expectation frame per second and standard frame per second calculating video sequence, the distance picture_dis tan ce of i two field picture and the 1st two field picture ifor:
Figure BDA0000100914510000031
wherein fn irepresent the frame number of i frame, fn i=i-1, i is more than or equal to 1 integer;
The picture_dis tan ce of the every two field picture calculating is marked to the video sequence that obtains coding in the image head of this two field picture.
Preferably, the request that described expectation frame per second is sent according to user is set.
Preferably, described expectation frame per second is set according to current channel width.
Preferably, the system of selection of described standard frame per second is:
Judge whether to exist in the frame per second of AVS standard support and be more than or equal to described expectation frame per second and the frame per second for the integral multiple of described expectation frame per second;
If exist, the smallest positive integral of selecting this expectation frame per second frame per second is doubly as standard frame per second;
If do not exist, select to be greater than described expectation frame per second and differ minimum frame per second as standard frame per second with its integral multiple.
According to another aspect of the present invention, provide a kind of to video sequence being carried out to the method that the video sequence of the coding that the method for any frame per second of AVS coding obtains carries out any frame per second decoding of AVS according to described, in the sequence head of this video sequence, be marked with standard frame per second, the picture_dis tan ce that is marked with this two field picture in the image head of every two field picture of this video sequence, the method comprises:
Read described standard frame per second;
Calculate the output gap between every two continuous frames of described video sequence according to the picture_dis_tab ce in the described image head that is marked at every two field picture, the output gap of (i+1) two field picture and i two field picture is Δ d i, as the picture_dis tan ce of described (i+1) two field picture i+1be greater than the picture_dis tan ce of described i two field picture itime, Δ d i=picture_dis tan ce i+1-picture_dis tan ce i, as the picture_dis tan ce of described (i+1) two field picture i+1be less than the picture_dis tan ce of described i two field picture itime, Δ d i=256+picture_dis tan ce i+1-picture_dis tan ce i, i is more than or equal to 1 integer;
Export successively the every two field picture in described video sequence, for i two field picture and (i+1) two field picture wherein, export described i two field picture according to described standard frame per second, judge Δ d simultaneously iwhether be greater than 1;
As Δ d i, export described (i+1) two field picture according to described standard frame per second at=1 o'clock;
As Δ d iwhen > 1, export described i two field picture Δ d according to described standard frame per second iafter-1 time, export described (i+1) two field picture.
Any frame per second coding implementation method proposed by the invention, makes AVS coding standard can support the extraneous any frame per second of standard definition, has expanded the range of application of AVS standard, makes it to adapt to the application scenario of low frame per second and variable frame rate.The present invention does not represent any frame per second by certain code word, has reduced code word compared with the standard such as MPEG-2, improves compression efficiency.
Accompanying drawing explanation
Fig. 1 illustrates according to the flow chart of any frame per second coding method of the AVS of the embodiment of the present invention.
Fig. 2 illustrates the flow chart that carries out the method for any frame per second decoding of AVS according to the video sequence to coding of the embodiment of the present invention.
Embodiment
Below in conjunction with the drawings and specific embodiments, the present invention is further elaborated.
Fig. 1 illustrates according to the flow chart of any frame per second coding method of the AVS of the embodiment of the present invention.
In step S11, set in the frame per second of expecting frame per second frame_rate_t and support in AVS standard and select and the corresponding standard frame per second of this expectation frame per second frame_rate_o, this standard frame per second is marked in this video sequence head;
In specific embodiment, the request that coding side both can have been sent according to user is set and is expected frame per second, also can set and expect frame per second according to current video playing environment.For example work as in fields such as the limited video monitoring of channel width, video telephone, mobile video communication, transmit leg can be selected suitable coding frame per second according to the current channel width detecting, sets unexistent low frame per second in the frame per second that adopts certain AVS standard support according to the present invention.
In the frame per second of supporting in AVS standard, select and the corresponding standard frame per second of described expectation frame per second, preferably can complete by following method: whether coding side judge to exist in the frame per second of AVS standard support and be more than or equal to this expectation frame per second and be the frame per second of the integral multiple of this expectation frame per second; If exist, the smallest positive integral of selecting this expectation frame per second frame per second is doubly as standard frame per second; If do not exist, select to be greater than described expectation frame per second and differ minimum frame per second as standard frame per second with its integral multiple.Be encoded to example to realize actual frame per second as 10 AVS, current AVS standard do not support, according to the present invention, selects to be greater than 10 and be 10 smallest positive integral frame per second doubly in the frame per second of the AVS standard support shown in table 1, and standard frame per second is chosen as 30; Be encoded to example take realization expectation frame per second as 7 AVS, in the frame per second of the AVS standard support shown in table 1, do not exist and be greater than 7 and be the frame per second of 7 integral multiple, according to the present invention, select to be greater than 7 and differ minimum frame per second with 7 integral multiple, standard frame per second is chosen as 50.
In step S12, calculate the distance picture_dis tan ce of every two field picture and the 1st two field picture according to described expectation frame per second and standard frame per second.
The picture_dis tan ce of described every two field picture equals the frame number that described standard frame per second is multiplied by current frame image again divided by described expectation frame per second and then rounds, rear mold 256.The distance picture_dis tan ce of i two field picture and the 1st two field picture icomputing formula be:
Figure BDA0000100914510000061
Fn in formula irepresent the frame number of i frame, the frame number that equals former frame (DISPLAY ORDER) adds 1, adds the number of image frames being skipped between present frame and former frame, and AVS standard stipulates the fn of the first frame 1equal 0, therefore the picture_dis tan ce of the first two field picture is also 0.Frame_rate_t represents to expect frame per second, and frame_rate_o represents standard frame per second corresponding to selected described expectation frame per second,
Figure BDA0000100914510000062
represent to round downwards, %256 represents mould 256, and rear mold 256 is because AVS standard picture_dis tan ce is 8 unsigned numbers.
Be encoded to example to realize actual frame per second as 10 AVS, according to step S11 mentioned above, coding side is chosen as 30 to standard frame per second, according to the present invention, and the picture_dis tan ce of every frame icomputing formula be:
Figure BDA0000100914510000063
The picture_dis tan ce that obtains every frame is respectively:
0,3,6,9,12,15,18,21,......,255,2,5,8,......
Be encoded to example to realize actual frame per second as 7 AVS, according to step S11 mentioned above, transmitting terminal is chosen as 50 to standard frame per second, the picture_dis tan ce of every frame according to the present invention icomputing formula be:
The picture_dis tan ce that obtains every frame is respectively:
0,7,14,21,28,35,42,50,......,250,1,8,15,......
In step S13, the picture_dis tan ce of the every two field picture calculating is marked in the image head of this two field picture.
Fig. 2 illustrates the flow chart that carries out the method for any frame per second decoding of AVS according to the video sequence to coding of the embodiment of the present invention, in the sequence head of this video sequence, be marked with standard frame per second, in the image head of every two field picture of this video sequence, be marked with the picture_dis tan ce of this two field picture.
In step S21, read described standard frame per second.
In step S22, calculate (i+1) two field picture of described video sequence and the output gap Δ d of i two field picture according to the picture_dis tan ce in the described image head that is marked at every two field picture i.
The maximum of AVS standard convention picture_distance is 256, therefore in embodiments of the present invention, and as the picture_dis of current frame image tan ce i+1be greater than the picture_dis tan ce of its former frame image itime, Δ d i=picture_dis tan ce i+1-picture_dis tan ce i, as the picture_dis of current frame image tan ce i+1be less than the picture_dis tan ce of its former frame image itime, Δ d i=256+picture_dis tan ce i+1-picture_dis tan ce i, i is more than or equal to 1 integer.
Be encoded to example to realize actual frame per second as 10 AVS, the picture_dis tan ce that obtains every frame according to above-mentioned steps S12 is respectively:
0,3,6,9,12,15,18,21,......,255,2,5,8,......
In this step, the output gap calculating between every two frames is:
Δd 1 Δd 2 Δd 3 Δd 4 Δd 5 Δd 6 Δd 7 Δd 8 ...... Δd 85 Δd 86 Δd 87 ......
3 3 3 3 3 3 3 3 ..... 3 3 3 ......
In step S23, export successively the every two field picture in described video sequence, for i two field picture and (i+1) two field picture wherein, export described i two field picture according to described standard frame per second, judge Δ d simultaneously iwhether be greater than 1.
As Δ d i=1 o'clock, execution step S24, exported described (i+1) two field picture according to described standard frame per second;
As Δ d iwhen > 1, execution step S25, exports described i two field picture Δ d according to described standard frame per second iafter-1 time, export described (i+1) two field picture.
As being encoded to example, 10 AVS specifically describes above-mentioned steps S23~S25 to realize actual frame per second, first according in step S11 to realize the first frame of the standard frame per second 30 output video sequences that obtained when AVS that actual frame per second is 10 is encoded to example, judge the Δ d by obtaining in step S22 simultaneously 1whether be greater than 1, due to Δ d 1=3, therefore, export after the 1st two field picture 2 times according to standard frame per second 30, then export the 2nd two field picture, when output the 2nd two field picture, judge Δ d 2whether be greater than 1, due to Δ d 2=3, therefore, export after the 2nd two field picture 2 times according to standard frame per second 30, then export the 3rd two field picture, so until output video sequence is complete.
Any frame per second coding implementation method proposed by the invention, makes AVS coding standard can support the extraneous any frame per second of standard definition, has expanded the range of application of AVS standard, makes it to adapt to the application scenario of low frame per second and variable frame rate.The present invention does not represent any frame per second by certain code word, has reduced code word compared with the standard such as MPEG-2, improves compression efficiency.
Should be appreciated that and by the preferred embodiments of the present invention, technical scheme of the present invention is had been described in detail above.Those of ordinary skill in the art modifies reading the technical scheme that can record embodiment on the basis of specification of the present invention, or part technical characterictic is wherein equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.Protection scope of the present invention is only limited by the claims of enclosing.

Claims (5)

1. a method of video sequence being carried out to any frame per second coding of AVS, is characterized in that, the method comprises:
Set and expect frame per second frame_rate_t, and select and the corresponding standard frame per second of this expectation frame per second frame_rate_o in the frame per second of supporting in AVS standard, this standard frame per second is marked in this video sequence head;
According to the distance of every two field picture and the 1st two field picture in this expectation frame per second and standard frame per second calculating video sequence, the distance picture_distance of i two field picture and the 1st two field picture ifor:
Figure FDA0000416320250000011
wherein fn irepresent the frame number of i frame, fn i=i-1, i is more than or equal to 1 integer,
Figure FDA0000416320250000012
represent to round downwards, %256 represents mould 256;
The picture_distance of the every two field picture calculating is marked to the video sequence that obtains coding in the image head of this two field picture.
2. method according to claim 1, is characterized in that, the request that described expectation frame per second is sent according to user is set.
3. method according to claim 1, is characterized in that, described expectation frame per second is set according to current channel width.
4. method according to claim 1, is characterized in that, the system of selection of described standard frame per second is:
Judge whether to exist in the frame per second of AVS standard support and be more than or equal to described expectation frame per second and the frame per second for the integral multiple of described expectation frame per second;
If exist, the smallest positive integral of selecting this expectation frame per second frame per second is doubly as standard frame per second;
If do not exist, select to be greater than described expectation frame per second and differ minimum frame per second as standard frame per second with its integral multiple.
5. one kind is carried out the method for any frame per second decoding of AVS to the video sequence of the coding obtaining according to the method for claim 1, in the sequence head of this video sequence, be marked with standard frame per second, in the image head of every two field picture of this video sequence, be marked with the picture_distance of this two field picture, it is characterized in that, the method comprises:
Read described standard frame per second;
Calculate the output gap between every two continuous frames of described video sequence according to the picture_distance in the described image head that is marked at every two field picture, the output gap of (i+1) two field picture and i two field picture is Δ d i, as the picture_distance of described (i+1) two field picture i+1be greater than the picture_distance of described i two field picture itime, Δ d i=picture_distance i+1-picture_distance i, as the picture_distance of described (i+1) two field picture i+1be less than the picture_distance of described i two field picture itime, Δ d i=256+picture_distance i+1-picture_distance i, i is more than or equal to 1 integer;
Export successively the every two field picture in described video sequence, for i two field picture and (i+1) two field picture wherein, export described i two field picture according to described standard frame per second, judge Δ d simultaneously iwhether be greater than 1;
As Δ d i, export described (i+1) two field picture according to described standard frame per second at=1 o'clock;
As Δ d iwhen >1, export described i two field picture (Δ d according to described standard frame per second i-1) inferior rear output described (i+1) two field picture.
CN201110322811.XA 2011-10-21 2011-10-21 AVS any frame rate coding and decoding realization method Active CN102387363B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110322811.XA CN102387363B (en) 2011-10-21 2011-10-21 AVS any frame rate coding and decoding realization method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110322811.XA CN102387363B (en) 2011-10-21 2011-10-21 AVS any frame rate coding and decoding realization method

Publications (2)

Publication Number Publication Date
CN102387363A CN102387363A (en) 2012-03-21
CN102387363B true CN102387363B (en) 2014-06-04

Family

ID=45826257

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110322811.XA Active CN102387363B (en) 2011-10-21 2011-10-21 AVS any frame rate coding and decoding realization method

Country Status (1)

Country Link
CN (1) CN102387363B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101094411A (en) * 2007-07-03 2007-12-26 芯瀚电子技术(上海)有限公司 Code rate control method of video code
CN101449584A (en) * 2006-05-26 2009-06-03 英国电讯有限公司 Video processing

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB0013273D0 (en) * 2000-06-01 2000-07-26 Philips Electronics Nv Video signal encoding and buffer management

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101449584A (en) * 2006-05-26 2009-06-03 英国电讯有限公司 Video processing
CN101094411A (en) * 2007-07-03 2007-12-26 芯瀚电子技术(上海)有限公司 Code rate control method of video code

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
Electronics)》.2010, *
Lu YU,Jian-peng WANG.Hot topic:Review of the current and future technologies for video compression.《Journal of Zhejiang University-SCIENCE C (Computers & Electronics)》.2010,
Lu YU,Jian-peng WANG.Hot topic:Review of the current and future technologies for video compression.《Journal of Zhejiang University-SCIENCE C (Computers &amp *
朱光喜,等.低码率下码率控制策略的研究.《计算机与数字工程》.2005, *

Also Published As

Publication number Publication date
CN102387363A (en) 2012-03-21

Similar Documents

Publication Publication Date Title
CN1332563C (en) Coding method of video frequency image jump over macro block
CN101867811B (en) Image coding apparatus and image coding method
CN101584218B (en) Method and apparatus for encoding and decoding based on intra prediction
CN101909211B (en) H.264/AVC high-efficiency transcoder based on fast mode judgment
US20140119439A1 (en) Method and apparatus of intra mode coding
CN102857746B (en) Loop filtering decoding method and device
CN103004192A (en) Variable localized bit depth increase for fixed-point transforms in video coding
CN101699867A (en) Dynamic adjustment method of video data transmission rate
CN101207813A (en) Method and system for encoding and decoding video sequence
CN111385563A (en) Hardware encoder detection method and device and terminal
CN103067699A (en) Intra-frame prediction mode encoder, decoder and method and electronic device thereof
CN101663895A (en) Use the video coding model selection of estimated decoding cost
CN101237587A (en) A video sequence coding method and its error control system
CN101127919A (en) A video sequence coding method
CN107181744B (en) Video processing and encoding method, processor and encoder
CN101188760A (en) A video sequence coding method
CN101888547B (en) Direct mode selection based H.264/AVC (Advanced Video Coding) fast transcoding method and device
WO2013040283A1 (en) Coding and decoding synchronized compressed video bitstreams
US20080267284A1 (en) Moving picture compression apparatus and method of controlling operation of same
KR100712532B1 (en) Apparatus and method for transcoding video error-resiliently using single description and multiple description switching
CN102387363B (en) AVS any frame rate coding and decoding realization method
CN104219530A (en) HEVC multiple-description coding scheme based on prediction mode copying
CN101411204B (en) Apparatus and method of enhanced frame interpolation in video compression
CN111447451A (en) Image coding and decoding method and device
KR101642212B1 (en) Method and system for generating side information at a video encoder to differentiate packet 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
C14 Grant of patent or utility model
GR01 Patent grant