Rate control for an MPEG transcoder without a priori knowledge of picture type
Abstract
A rate control system suitable for use with a digital video transcoder, such as one conforming to the MPEG standard. The proposed rate control system starts coding with any reasonable set of assumed Group of Pictures (GOP) parameters, thereby avoiding a processing delay of about one GOP which would otherwise be incurred to extract the complete GOP structure information from a pre-compressed bit stream. In addition, the system avoids the need to store the data corresponding to the GOP, thereby reducing the memory required for transcoding. Encoding of a first picture in a sequence or GOP begins without a priori knowledge of the picture type of subsequent pictures. A reasonable set of GOP parameters is assumed to determine an encoding bit budget. The bit budget is gradually corrected as successive pictures are coded according to their picture types. Changes in the GOP structure of pre-compressed bitstreams can be addressed, for example, when switching channels, inserting commercials, and the like. Target rates with incorrect starting GOP parameters will converge within a few GOPs.

Term
Term ended
Projected expiry passed 25 October 2019, 6.9 years ago.
- Priority
- Filed
- Published
- Projected expiry
- Today
76 claims: 37 independent, 39 dependent
- 1A method for allocating bits for coding pictures in a bitstream received at a digital video transcoder, comprising the steps of:(a) providing an assumed distance M' between a first picture of said bitstream and the next closest subsequent P-picture of said bitstream in a display order of said bitstream;(b) providing an assumed bit budget as a function of said assumed distance M';(c) coding said first picture in accordance with said assumed bit budget;(d) determining a picture type of a second picture that immediately follows said first picture in said bitstream in an encoding order of said bit stream;(e) adjusting said assumed bit budget according to said picture type of said second picture;and (f) allocating bits for coding said second picture in accordance with said adjusted bit budget.
- 4The method of one of claims 1 to 3, wherein said first picture is a P-picture and said second picture is a B-picture, comprising the further step of:determining an actual distance M'' between said first picture and said next closest subsequent P-picture, in said display order, according to said picture type of said second picture.
- 13A method for allocating bits for coding a sequence of pictures in a bitstream received at a digital video transcoder, comprising the steps of:(a) providing an assumed length N' of a particular group of pictures (GOP) of said bitstream;(b) providing an assumed bit budget as a function of said assumed length N';(c) allocating bits for coding a first picture of said particular GOP in accordance with said assumed bit budget;(d) determining a picture type of a second picture that immediately follows said first picture;(e) adjusting said assumed bit budget according to said picture type of said second picture;and (f) allocating bits for coding said second picture in accordance with said adjusted bit budget.
- 19The method of one of claims 13 to 18, comprising the further step of:providing an assumed distance M' between said first picture and the next closest subsequent P-picture of said bitstream, in a display order of said bitstream;wherein said bits are allocated for coding said first picture in said step (c) in accordance with said assumed distance M'.
- 25The method of one of claims 20 to 24, comprising the further steps of:determining if N''>N, an actual length of said particular GOP, after coding N'' pictures in said particular GOP;and, if N''>N: further adjusting said adjusted bit budget according to N and N'';and allocating bits for coding pictures in said bitstream following the N'' coded pictures according to said further adjusted bit budget.
- 26The method of one of claims 20 to 24, comprising the further steps of:determining if N''<N, an actual length of said particular GOP, after coding N'' pictures in said particular GOP;and, if N''<N: further adjusting said adjusted bit budget according to M=M'' ;and allocating bits for coding pictures in said bitstream following the N'' coded pictures according to said further adjusted bit budget.
- 32The method of one of claims 28 to 31, comprising the further step of:determining if N''>N, an actual length of said particular GOP, after coding N'' pictures in said particular GOP;and, if N''>N: further adjusting said adjusted bit budget according to N and N'';and allocating bits for coding pictures in said bitstream following the N'' coded pictures according to said further adjusted bit budget.
- 33The method of one of claims 28 to 32, comprising the further steps of:determining if N''<N, an actual length of said particular GOP, after coding N'' pictures in said particular GOP;and, if N''<N: further adjusting said adjusted bit budget according to M=M'' ;and allocating bits for coding pictures in said bitstream following the N'' coded pictures according to said further adjusted bit budget.
- 35The method of one of claims 13 to 34, comprising the further step of:accounting for changes in an actual distance M'' between I-pictures and/or P-pictures in said particular GOP by determining an actual distance M'' between an I-picture or P-picture that follows said first picture in said particular GOP, in a display order of said bitstream, and a subsequent I-picture or P-picture in said particular GOP;and adjusting said assumed bit budget in accordance with said actual distance M''.
- 36An apparatus for allocating bits for coding pictures in a bitstream received at a digital video transcoder, comprising:(a) means for providing an assumed distance M' between a first picture of said bitstream and the next closest subsequent P-picture of said bitstream in a display order of said bitstream;(b) means for providing an assumed bit budget as a function of said assumed distance M';(c) means for coding said first picture in accordance with said assumed bit budget;(d) means for determining a picture type of a second picture that immediately follows said first picture in said bitstream in an encoding order of said bit stream;(e) means for adjusting said assumed bit budget according to said picture type of said second picture;and (f) means for allocating bits for coding said second picture in accordance with said adjusted bit budget.
- 39The apparatus of one of claims 36 to 38, wherein said first picture is a P-picture and said second picture is a B-picture, further comprising:means for determining an actual distance M'' between said first picture and said next closest subsequent P-picture, in said display order, according to said picture type of said second picture.
- 43The apparatus of one of claims 36 to 42, wherein said first and second pictures are P-pictures, further comprising:means for determining an actual distance M'' between said first picture and said next closest subsequent P-picture, in said display order, according to said picture type of said second picture.
- 48An apparatus for allocating bits for coding a sequence of pictures in a bitstream received at a digital video transcoder, comprising:(a) means for providing an assumed length N' of a particular group of pictures (GOP) of said bitstream;(b) means for providing an assumed bit budget as a function of said assumed length N';(c) means for allocating bits for coding a first picture of said particular GOP in accordance with said assumed bit budget;(d) means for determining a picture type of a second picture that immediately follows said first picture;(e) means for adjusting said assumed bit budget according to said picture type of said second picture;and (f) means for allocating bits for coding said second picture in accordance with said adjusted bit budget.
- 54The apparatus of one of claims 48 to 53, further comprising:means for providing an assumed distance M' between said first picture and the next closest subsequent P-picture of said bitstream, in a display order of said bitstream;wherein said bits are allocated for coding said first picture by said coding means (c) in accordance with said assumed distance M'.
- 60The apparatus of one of claims 55 to 59, further comprising:means for determining if N''>N, an actual length of said particular GOP, after coding N'' pictures in said particular GOP;means for further adjusting said adjusted bit budget according to N and N'' if N''>N;and means for allocating bits for coding pictures in said bitstream following the N'' coded pictures according to said further adjusted bit budget if N''>N.
- 61The apparatus of one of claims 55 to 59, further comprising:means for determining if N''<N, an actual length of said particular GOP, after coding N'' pictures in said particular GOP;means for further adjusting said adjusted bit budget according to M=M'' if N''<N;and means for allocating bits for coding pictures in said bitstream following the N'' coded pictures according to said further adjusted bit budget if N''<N.
- 67The apparatus of one of claims 63 to 66, further comprising:means for determining if N''>N, an actual length of said particular GOP, after coding N'' pictures in said particular GOP;means for further adjusting said adjusted bit budget according to N and N'' if N''>N;and means for allocating bits for coding pictures in said bitstream following the N'' coded pictures according to said further adjusted bit budget if N''>N.
- 68The apparatus of one of claims 63 to 66, further comprising:means for determining if N''<N, an actual length of said particular GOP, after coding N'' pictures in said particular GOP;means for further adjusting said adjusted bit budget according to M=M'' if N''<N;and means for allocating bits for coding pictures in said bitstream following the N'' coded pictures according to said further adjusted bit budget if N''<N.
- 70The apparatus of one of claims 48 to 69, further comprising:means for accounting for changes in an actual distance M'' between I-pictures and/or P-pictures in said particular GOP by determining an actual distance M'' between an I-picture or P-picture that follows said first picture in said particular GOP, in a display order of said bitstream, and a subsequent I-picture or P-picture in said particular GOP;and means for adjusting said assumed bit budget in accordance with said actual distance M''.
- 71A method for allocating bits for coding a sequence of pictures in a bitstream received at a digital video transcoder, comprising the steps of:(a) providing a length of groups of pictures (GOPs) of said bitstream;(b) providing a distance between each I-picture and a next successive P-picture in said GOPs;(c) maintaining a count of a number of remaining I-, P- and B-pictures, respectively, in each GOP as each picture in said GOPs is coded;(d) providing an assumed bit budget in response to said steps (a), (b) and (c) for coding pictures in said GOPs;(e) verifying, and adjusting, if necessary, said length after each I-picture in said GOPs is coded;(f) verifying, and adjusting, if necessary, said distance after each I-picture and/or P-picture in said GOPs is coded;(g) verifying, and adjusting, if necessary, the count of the number of remaining I-, P- and B-pictures, in response to said steps (e) and (f);and (g) adjusting, if necessary, said assumed bit budget in response to said steps (e), (f) and (g).
- 74An apparatus for allocating bits for coding a sequence of pictures in a bitstream received at a digital video transcoder, comprising:(a) means for providing a length of groups of pictures (GOPs) of said bitstream;(b) means for providing a distance between each I-picture and a next successive P-picture in said GOPs;(c) means for maintaining a count of a number of remaining I-, P- and B-pictures, respectively, in each GOP as each picture in said GOPs is coded;(d) means for providing an assumed bit budget in response to said means (a), (b) and (c) for coding pictures in said GOPs;(e) means for verifying, and adjusting, if necessary, said length after each I-picture in said GOPs is coded;(f) means for verifying, and adjusting, if necessary, said distance after each I-picture and/or P-picture in said GOPs is coded;(g) means for verifying, and adjusting, if necessary, the count of the number of remaining I-, P- and B-pictures, in response to said means (e) and (f);and (g) means for adjusting, if necessary, said assumed bit budget in response to said means (e), (f) and (g).
Independent claims37
189 paragraphs in 9 sections, as filed
BACKGROUND OF THE INVENTION
0001The present invention relates to a digital video transcoder and method for allocating bits for encoding successive pictures in a group of pictures (GOP) without <i>a priori</i> knowledge of the picture types in the GOP.
0002With digital video coding standards such as MPEG, input pictures can be coded in three different picture types, namely I, P and B. The three pictures require quite different numbers of bits for encoding because of the different nature of their temporal processing. Hence, an intelligent bit allocation strategy should assign a number of bits for encoding according to the picture's type. This implies a requirement of <i>a priori</i> knowledge of the picture types for a given bit budget. This requirement is not a problem for a standalone encoder as the encoder can determine the picture type for each input picture.
0003In fact, the encoder can plan ahead for the types of the input pictures. In contrast, a transcoder has no such <i>a priori</i> knowledge regarding a picture's type before actually processing the picture. This creates difficulty in allocating an appropriate number of bits for encoding pictures in a transcoder.
0004Accordingly, it would be desirable to have a method and apparatus for allocating bits for encoding pictures in a transcoder without <i>a priori</i> knowledge of the picture type. The system should avoid a processing delay of about one GOP which would otherwise be incurred to extract the complete GOP structure information from a pre-compressed bit stream. In addition, the system should avoid the need to store the data corresponding to the GOP, thereby reducing the memory required for transcoding.
0005The system should be compatible with both variable bit rate and constant bit rate bitstreams.
0006The system should be compatible with statistical multiplexing and remultiplexing systems.
0007The present invention provides an apparatus and method having the above and other advantages.
SUMMARY OF THE INVENTION
0008The present invention relates to a digital video transcoder and method for allocating bits for encoding successive pictures in a group of pictures (GOP) without <i>a priori</i> knowledge of the arrangement of picture types in the GOP.
1. Progressive Refresh Sequence:
0009A method for allocating bits for coding a progressive refresh sequence of pictures in a bitstream received at a digital video transcoder includes the steps of: (a) providing an assumed distance M' between a first picture of the bitstream and the next closest subsequent P-picture of the bitstream (in display order); (b) providing an assumed bit budget as a function of the assumed distance M'; (c) coding the first picture in accordance with the assumed bit budget; (d) determining a picture type of a second picture that immediately follows the first picture in the bitstream; (e) adjusting the assumed bit budget according to the picture type of the second picture; and (f) allocating bits for coding the second picture in accordance with the adjusted bit budget.
0010Thus, a bit budget for coding the pictures is initially assumed for the first picture, and the bit budget is updated as the second picture type is known. A target number of bits is allocated for coding each picture according to the bit budget. The first and second picture types generally indicate the picture distribution in the sequence.
0011The assumed bit budget is proportional to the assumed distance and a bit rate of the bitstream, and inversely proportional to a frame rate of the bitstream.
0012The pictures in the bitstream may form a progressive refresh sequence, where there is no GOP structure.
1.1 P-picture followed by B-picture:
0013When the first picture is a P-picture and the second picture is a B-picture, the method includes the further step of: determining an actual distance M'' between the first picture and the next closest subsequent P-picture (in display order) according to the picture type of the first picture and the picture type of the second picture.
0014The actual distance M'' is determined according to a difference between a temporal reference of the first picture, in a display order of the bitstream, and a temporal reference of the second picture, in the display order, plus one picture.
0015The method may include the further step of allocating bits for coding the remaining M''-1 pictures following the first picture in accordance with the adjusted bit budget.
0016The assumed bit budget is adjusted in the adjusting step (f) by <maths id="math0001" num=""><math display="inline"><mrow><mtext>+(M''-M')*"bit rate"/"frame rate"</mtext></mrow></math><img file="EP1005232A2_D0001.tif" /></maths>, where "bit rate" is a bit rate of the bitstream, and "frame rate" is a frame rate of the bitstream.
1.2 P-picture followed by P-picture:
0017When the first and second pictures are P-pictures, the method includes the further step of: determining an actual distance M'' between the first picture and the next closest subsequent P-picture (in display order) according to the picture type of the first picture and the picture type of the second picture. The actual distance M'' is determined according to a difference between a temporal reference of the second picture and a temporal reference of the first picture. The temporal references are determined in relation to a display order of the bitstream.
0018The assumed bit budget is adjusted in the adjusting step (f) by -(M'-1)*"bit rate"/"frame rate", where "bit rate" is a bit rate of the bitstream, and "frame rate" is a frame rate of the bitstream.
0019The method includes the further step of allocating bits for coding a series of M'' pictures following an initial M'' pictures that includes the first and second pictures in the bitstream in accordance with the adjusted bit budget. Thus, the adjustments to the bit budget in one series of pictures is carried over to the next series to allow correct coding of the next series.
2. Non-progressive Refresh Sequence:
0020Generally, the invention enables transcoding to begin by assuming a reasonable set of GOP parameters, including M, the distance between each I-picture and the next P-picture, and N, the GOP length. M and N are adjusted during transcoding as additional information becomes available regarding the GOP structure, e.g., the distribution of picture types in the GOP and the length of the GOP.
0021The assumed M can be corrected to the actual value within two frames, and the assumed N can be corrected to the actual value within one GOP. M should be verified, and adjusted if necessary, after each I- or P-picture, and N should be verified, and adjusted if necessary, after each I-picture. When M and/or N are adjusted, a bit rate R for coding the pictures, and n<sub>I</sub>, n<sub>P</sub>, and n<sub>B</sub>, the remaining numbers of I, P and B-pictures in the current GOP, respectively, are also adjusted.
0022A method for allocating bits for coding a non-progressive refresh sequence of pictures in a bitstream received at a digital video transcoder, includes the steps of: (a) providing an assumed length N' of a particular group of pictures (GOP) of the bitstream; (b) providing an assumed bit budget as a function of the assumed length N'; providing an assumed distance M' between the first picture and the next closest subsequent P-picture of the bitstream (in display order); (c) allocating bits for coding a first picture of the particular GOP in accordance with the assumed bit budget, and N<i>'</i> and M<i>'</i>; (d) determining a picture type of a second picture that immediately follows the first picture; (e) adjusting the assumed bit budget according to the picture type of the second picture; and (f) allocating bits for coding the second picture in accordance with the adjusted bit budget.
0023The assumed bit budget is proportional to the assumed length N' and a bit rate of the bitstream, and inversely proportional to a frame rate of the bitstream.
0024M'' may change within a GOP. Thus, the method may include the step of periodically verifying M'' throughout the GOP. For example, M'' may be calculated at every I-picture and/or P-picture that follows the first I-picture. The assumed bit budget is adjusted each time in accordance with M''.
2.1 I-picture followed by I-picture:
0025When the first and second pictures are I-pictures, the method comprises the further step of: determining an actual distance M'' between the first picture and the next closest subsequent I-picture of the bitstream according to the picture type of the second picture, and adjusting the assumed bit budget in accordance with M''
0026The actual distance M'' is determined according to a difference between a temporal reference of the second picture, in a display order of the bitstream, and a temporal reference of the first picture, in the display order.
0027The adjusting step (e) comprises the step of: adjusting the assumed bit budget by -(N<i>'</i>-1)*"bit rate"/"frame rate", where "bit rate" is a bit rate of the bitstream, "frame rate" is a frame rate of the bitstream, and <maths id="math0002" num=""><math display="inline"><mrow><mtext>N=M=M''</mtext></mrow></math><img file="EP1005232A2_D0002.tif" /></maths>.
0028The method comprises the further step of: allocating bits for coding the remaining pictures in the particular GOP following the second picture in accordance with the adjusted bit budget.
2.2 I-picture followed by P-picture:
0029When the first picture is an I-picture and the second picture is a P-picture, the method comprises the further steps of: determining an actual distance M'' between the first picture and the next closest subsequent P-picture (in display order) according to the picture type of the second picture; and adjusting the assumed length N' of the GOP in accordance with the actual distance M'' to provide an adjusted assumed length N''; wherein: the adjusting step (e) is responsive to the adjusted assumed length N'.
0030The assumed length N' of the particular GOP is adjusted in the adjusting step thereof by a factor, M(N'/M'<i>'</i>), where <maths id="math0003" num=""><math display="inline"><mrow><mtext>M=M''</mtext></mrow></math><img file="EP1005232A2_D0003.tif" /></maths>, to provide the adjusted assumed length N''.
0031The adjusting step (e) comprises the step of: adjusting the assumed bit budget by a factor <maths id="math0004" num=""><math display="inline"><mrow><mtext>(N''- N')*"bit rate"/"frame rate"</mtext></mrow></math><img file="EP1005232A2_D0004.tif" /></maths>, where "bit rate" is a bit rate of the bitstream, and "frame rate" is a frame rate of the bitstream.
0032The adjusting step (e) comprises the still further step of: adjusting the assumed bit budget by a factor, (M''-1')*"bit rate"/"frame rate", where "bit rate" is a bit rate of the bitstream, "frame rate" is a frame rate of the bitstream, and <maths id="math0005" num=""><math display="inline"><mrow><mtext>M=M</mtext><mtext mathvariant="italic">''</mtext></mrow></math><img file="EP1005232A2_D0005.tif" /></maths>.
0033Thus, both the GOP length and the distance M are used to adjust the bit budget, which in turn affects the target bit allocation for each picture.
0034The method includes the further step of allocating bits for coding the remaining pictures in the particular GOP following the second picture in accordance with the adjusted bit budget.
0035The method includes the further steps of determining if N''>N or N''<N, where N is an actual length of the current GOP, after coding N'' pictures in the current GOP. This is accomplished by observing the picture that is reached after coding N'' pictures. For example, if the picture reached after coding N'' pictures is a P-picture in the current GOP, then N''<N. If the picture reached after coding N'' pictures is an I-picture, this signals the start of the next GOP, so <maths id="math0006" num=""><math display="inline"><mrow><mtext>N''=N</mtext></mrow></math><img file="EP1005232A2_D0006.tif" /></maths>. If an I-picture is coded before the N'' are all coded, this indicates N''>N. The already adjusted bit budget is then further adjusted based on whether N''<N or N''>N, and bits are allocated for coding pictures in the bitstream following the N'' coded pictures according to the further adjusted bit budget.
2.3 I-picture followed by B-picture:
0036When the first picture is an I-picture and the second picture is a B-picture, the method comprises the further steps of: determining an actual distance M'' between the first picture and the next closest subsequent P-picture (in display order) according to the picture type of the second picture; and adjusting the assumed length N' of the GOP in accordance with the actual distance M'' to provide an adjusted assumed length N''; wherein: the adjusting step (e) is responsive to the adjusted assumed length N'.
0037The assumed length N' of the particular GOP is adjusted in the adjusting step thereof by a factor, M(N'/M'<i>'</i>), where <maths id="math0007" num=""><math display="inline"><mrow><mtext>M=M''</mtext></mrow></math><img file="EP1005232A2_D0007.tif" /></maths>, to provide the adjusted assumed length N''.
0038The adjusting step (e) comprises the step of: adjusting the assumed bit budget by a factor <maths id="math0008" num=""><math display="inline"><mrow><mtext>(N''- N')*"bit rate"/"frame rate"</mtext></mrow></math><img file="EP1005232A2_D0008.tif" /></maths>, where "bit rate" is a bit rate of the bitstream, and "frame rate" is a frame rate of the bitstream.
0039The method comprises the further steps of: allocating bits for coding the remaining pictures in the particular GOP following the second picture in accordance with the adjusted bit budget.
0040Additionally, as discussed above, the already adjusted bit budget may be further adjusted based on whether N''<N or N''>N, and bits may be allocated for coding pictures in the bitstream following the N'' coded pictures according to the further adjusted bit budget.
0041Thus, the information learned regarding GOP length and M, the distance between I and/or P-pictures, in one GOP are used in coding the following GOPs. Target rates with incorrect starting GOP parameters will converge within a few GOPs.
0042Corresponding apparatus structures are also presented.
BRIEF DESCRIPTION OF THE DRAWINGS
0043<ul id="ul0001" list-style="none" compact="compact"><li>FIG. 1(a) illustrates a progressive refresh sequence of pictures in display order for continuing GOPs.</li><li>FIG. 1(b) illustrates the sequence of pictures of FIG. 1(a) in encoding order.</li><li>FIG. 2(a) illustrates a progressive refresh sequence of pictures in display order for an initial GOP in a bitstream followed by continuing GOPs.</li><li>FIG. 2(b) illustrates the sequence of pictures of FIG. 2(a) in encoding order.</li><li>FIG. 3 illustrates an MPEG-2 bitstream structure.</li><li>FIG. 4(a) illustrates a coding method for a progressive refresh picture sequence in accordance with the present invention.</li><li>FIG. 4(b) illustrates a coding method for a non-progressive refresh picture sequence in accordance with the present invention.</li><li>FIG. 4(c) illustrates a continuation of the coding method of FIG. 4(b) in accordance with the present invention.</li><li>FIG. 5 illustrates an estimated GOP length N'' in accordance with the present invention.</li><li>FIG. 6 illustrates a rate control system in accordance with the present invention.</li><li>FIGs 7(a)-7(d) illustrate a C-language flowchart for implementing the present invention.</li></ul>
DETAILED DESCRIPTION OF THE INVENTION
0044The present invention relates to a digital video transcoder and method for allocating bits for encoding successive pictures in a group of pictures (GOP) without <i>a priori</i> knowledge of the picture types in the GOP.
0045A novel rate control scheme and apparatus is presented for a digital video transcoder, such as one conforming to the MPEG standard, that requires no <i>a priori</i> (e.g., beforehand) knowledge of the picture types. Studies indicate that the picture target rates determined by the proposed rate control system with and without <i>a priori</i> knowledge of the picture types are very close.
0046MPEG defines three picture types in terms of temporal processing. They are the intra-frame coded picture (I-picture), forward temporal predictive coded picture (P-picture), and the bi-directional temporal predictive coded picture (B-picture). In MPEG video coding, pictures of an input video sequence are often grouped into groups of pictures (GOPs), where each GOP may contain one I-picture, a number of P-pictures, and optionally one or more B-pictures between I or P-pictures. The structure of a GOP can often be described by two variables: (1) <i>N</i> - the number of pictures in a GOP, or the GOP length, and (2) <i>M</i> - the distance between I or P-pictures. An example of a GOP with <i>N</i> = 15 and <i>M</i> = 3, in display order, is:<maths id="math0009" num=""><math display="block"><mrow><mtext>...</mtext><msub><mrow><mtext mathvariant="italic">B</mtext></mrow><mrow><mtext mathvariant="italic">m</mtext></mrow></msub><msub><mrow><mtext></mtext></mrow><mrow><mtext>-2</mtext></mrow></msub><msub><mrow><mtext mathvariant="italic">B</mtext></mrow><mrow><mtext mathvariant="italic">m</mtext></mrow></msub><msub><mrow><mtext></mtext></mrow><mrow><mtext>-1</mtext></mrow></msub><msub><mrow><mtext mathvariant="italic">I</mtext></mrow><mrow><mtext mathvariant="italic">m</mtext></mrow></msub><msub><mrow><mtext mathvariant="italic">B</mtext></mrow><mrow><mtext mathvariant="italic">m</mtext></mrow></msub><msub><mrow><mtext></mtext></mrow><mrow><mtext>+1</mtext></mrow></msub><msub><mrow><mtext mathvariant="italic">B</mtext></mrow><mrow><mtext mathvariant="italic">m</mtext></mrow></msub><msub><mrow><mtext></mtext></mrow><mrow><mtext>+2</mtext></mrow></msub><msub><mrow><mtext mathvariant="italic">P</mtext></mrow><mrow><mtext mathvariant="italic">m</mtext></mrow></msub><msub><mrow><mtext></mtext></mrow><mrow><mtext>+3</mtext></mrow></msub><msub><mrow><mtext mathvariant="italic">B</mtext></mrow><mrow><mtext mathvariant="italic">m</mtext></mrow></msub><msub><mrow><mtext></mtext></mrow><mrow><mtext>+4</mtext></mrow></msub><msub><mrow><mtext mathvariant="italic">B</mtext></mrow><mrow><mtext mathvariant="italic">m</mtext></mrow></msub><msub><mrow><mtext></mtext></mrow><mrow><mtext>+5</mtext></mrow></msub><msub><mrow><mtext mathvariant="italic">P</mtext></mrow><mrow><mtext mathvariant="italic">m</mtext></mrow></msub><msub><mrow><mtext></mtext></mrow><mrow><mtext>+6</mtext></mrow></msub><mtext>...</mtext><msub><mrow><mtext mathvariant="italic">P</mtext></mrow><mrow><mtext mathvariant="italic">m</mtext></mrow></msub><msub><mrow><mtext></mtext></mrow><mrow><mtext>+</mtext><mtext mathvariant="italic">N</mtext><mtext>-3</mtext></mrow></msub><msub><mrow><mtext mathvariant="italic">B</mtext></mrow><mrow><mtext mathvariant="italic">m</mtext></mrow></msub><msub><mrow><mtext></mtext></mrow><mrow><mtext>+</mtext><mtext mathvariant="italic">N</mtext><mtext>-2</mtext></mrow></msub><msub><mrow><mtext mathvariant="italic">B</mtext></mrow><mrow><mtext mathvariant="italic">m</mtext></mrow></msub><msub><mrow><mtext></mtext></mrow><mrow><mtext>+</mtext><mtext mathvariant="italic">N</mtext><mtext>-1</mtext></mrow></msub><msub><mrow><mtext mathvariant="italic">I</mtext></mrow><mrow><mtext mathvariant="italic">m</mtext></mrow></msub><msub><mrow><mtext></mtext></mrow><mrow><mtext>+</mtext><mtext mathvariant="italic">N</mtext></mrow></msub><msub><mrow><mtext mathvariant="italic">B</mtext></mrow><mrow><mtext mathvariant="italic">m</mtext></mrow></msub><msub><mrow><mtext></mtext></mrow><mrow><mtext>+</mtext><mtext mathvariant="italic">N</mtext><mtext>+1</mtext></mrow></msub><mtext>...</mtext></mrow></math><img file="EP1005232A2_D0009.tif" /></maths> where the subscripts are the picture's temporal references, and the consecutive numbers denote consecutively displayed pictures.
0047In general, I-pictures require many more bits for encoding than P- and B-pictures because I-pictures do not take advantage of temporal correlations between successive pictures (e.g., frames). B-pictures use the least numbers of bits for encoding because they have two temporal references and can therefore be temporally predicted more efficiently than P-pictures. P-pictures use a number of bits for encoding that is generally between that used for B- and I-pictures.
0048Clearly, the bits assigned to each picture for encoding should be based on its type, or its need. Furthermore, a GOP can have all the three types of pictures, and the organization of the three picture types within a GOP can be very flexible. Therefore, to wisely allocate a bit budget for encoding the pictures within a GOP, it is necessary to have <i>a priori</i> knowledge of the types of pictures in the GOP, or the GOP structure. This requirement is not a problem for a standalone encoder (i.e., an encoder that is not part of a transcoder) since the encoder can decide the type for each picture, and plan ahead in allocating bits based on the type and arrangement of pictures in a GOP. In other words, the information on GOP structure is available to the encoder.
0049In contrast to the standalone encoder, a transcoder converts a pre-compressed bitstream into another bitstream at a new rate. The inputs to a transcoder are pre-compressed bitstreams. Before processing a picture, the transcoder has no <i>a priori</i> knowledge of the picture's type, and hence no <i>a priori</i> knowledge of the GOP structures of the pre-compressed bitstreams.
0050Moreover, some transcoding schemes re-use the motion vector (MV) fields of the received pre-compressed bitstream for encoding the output bitstream at the new data rate. In this case, the picture types of the pre-compressed pictures are maintained. This means that the transcoder has no control of the GOP structures of the new output bitstreams.
0051Furthermore, with conventional schemes, it is possible for the GOP structure information to be extracted from the pre-compressed bitstreams. For example, after scanning a pre-compressed bitstream by the first two I-pictures, a transcoder should be able to determine the GOP structure. However, this requires a processing delay of about one GOP and a requirement of extra memory to hold all the bits for the GOP.
0052The present invention discloses a novel rate control system for a digital video transcoder, such as that conforming to the MPEG standard, with no requirement of <i>a priori</i> knowledge of the GOP structures of the pre-compressed bitstreams. A rate control scheme is disclosed that causes no processing delay and requires no extra memory. The scheme starts with any reasonable set of GOP parameters, and then gradually corrects these GOP parameters, if necessary, as successive pre-compressed pictures are received at the transcoder. The scheme compensates for changing GOP parameters used by the encoder(s).
0053Furthermore, we analyze the differences in target bit rates determined by the proposed rate control scheme with and without <i>a priori</i> knowledge of the GOP structure of the pre-compressed bitstream. We show that the target rates with and without <i>a priori</i> knowledge of GOP structure tend to be the same within only one or two GOPs. We demonstrate the differences in target rates in both numerical examples and real video sequences.
0054Below, in section 1, we will first overview the rate control for MPEG video coding. In section 2, we present the novel rate control for MPEG transcoder. In section 3, we analyze the differences in target rates determined by the proposed rate control with and without <i>a priori</i> knowledge of GOP structure. In section 4, we present the simulation and comparison results. Conclusions are discussed in section 5.
1. RATE CONTROL FOR MPEG VIDEO CODING
0055In MPEG video coding, pictures of all the three types (I, P or B) undergo the block Discrete Cosine Transform (DCT). The DCT coefficients are then quantized and variable length encoded. The resulting number of bits for each picture depends on the complexity of its corresponding block DCT image. I-pictures are coded without reference to any other pictures and, therefore, their DCT images usually require the most number of bits. P-pictures are first forward temporally predicted, and their temporal prediction difference images are then coded. The temporal prediction difference images usually contain much less information than the original pictures, and therefore need less bits for coding. B-pictures with two temporal references can often be better temporally predicted than P-pictures. Hence, B-pictures require the least number of bits. An intelligent bit allocation strategy should assign the bits to a picture based on the picture's type, or the picture's complexity.
0056Let <i>X</i><sub><i>n</i></sub> be the complexity measure for picture <i>n</i> in a GOP of <i>N</i> pictures. In MPEG Test Model 5 (TM5), the complexity measure for a picture is defined as the product of the average quantization parameter used for the picture and the resulting number of bits. Logically, the bits allocated for a picture should be proportional to the picture's complexity measure, <i>X</i><sub><i>n</i></sub>, i.e.,<maths id="math0010" num="(1)"><math display="block"><mrow><msub><mrow><mtext mathvariant="italic">T</mtext></mrow><mrow><mtext mathvariant="italic">n</mtext></mrow></msub><mtext> = </mtext><msub><mrow><mtext mathvariant="italic">CX </mtext></mrow><mrow><mtext mathvariant="italic">n</mtext></mrow></msub><mtext mathvariant="italic"> n</mtext><mtext> = 0,1,...,</mtext><mtext mathvariant="italic">N</mtext><mtext> - 1</mtext></mrow></math><img file="EP1005232A2_D0010.tif" /></maths> where <i>C</i> is a constant. Here, we have assumed a linear model between the picture complexity measure and the number of bits required for coding. Furthermore, without any bias, a GOP of <i>N</i> pictures should be allocated<maths id="math0011" num="(2)"><math display="block"><mrow><msub><mrow><mtext mathvariant="italic">R</mtext></mrow><mrow><mtext mathvariant="italic">GOP</mtext></mrow></msub><msub><mrow><mtext></mtext></mrow><mrow><mtext>,</mtext><mtext mathvariant="italic">N</mtext></mrow></msub><mtext> = </mtext><mtext mathvariant="italic">N</mtext><mtext>·</mtext><mfrac><mrow><mtext mathvariant="italic">bits_rate</mtext></mrow><mrow><mtext mathvariant="italic">frame_rate</mtext></mrow></mfrac><mtext> bits.</mtext></mrow></math><img file="EP1005232A2_D0011.tif" /></maths>
0057Clearly, the total number of bits assigned to all the pictures within a GOP of <i>N</i> pictures should be equal to <i>R</i><sub><i>GOP</i></sub><sub>,<i>N</i></sub>, i.e.,<maths id="math0012" num=""><img file="EP1005232A2_D0012.tif" /></maths>
0058From equations (1) and (3), we have<maths id="math0013" num=""><img file="EP1005232A2_D0013.tif" /></maths>
0059Assume that all the pictures of the same type, i.e., I, P or B, have the same complexity measure, which is a reasonable assumption, at least for continuous scenes. We only need three complexity measures, one for each picture type. That is, <i>X</i><sub><i>I</i></sub> for I-pictures, <i>X</i><sub><i>P</i></sub> for P-pictures, and <i>X</i><sub><i>B</i></sub> for B-pictures. The target rate for frame <i>n</i> of type <i>t</i>∈{<i>I</i>,<i>P</i>,<i>B</i>} and complexity measure <i>X</i><sub><i>n</i></sub><sub>,<i>t</i>∈{<i>I</i>,<i>P</i>,<i>B</i>}</sub> can therefore be written as:<maths id="math0014" num="(5)"><math display="block"><mrow><msub><mrow><mtext mathvariant="italic">T</mtext></mrow><mrow><mtext mathvariant="italic">n</mtext></mrow></msub><mtext> = </mtext><mfrac><mrow><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">n</mtext><mtext>,</mtext><mtext mathvariant="italic">t</mtext></mrow></msub></mrow><mrow><msub><mrow><mtext mathvariant="italic">N</mtext></mrow><mrow><mtext mathvariant="italic">I</mtext></mrow></msub><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">I</mtext></mrow></msub><mtext> + </mtext><msub><mrow><mtext mathvariant="italic">N</mtext></mrow><mrow><mtext mathvariant="italic">P</mtext></mrow></msub><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">P</mtext></mrow></msub><mtext> + </mtext><msub><mrow><mtext mathvariant="italic">N</mtext></mrow><mrow><mtext mathvariant="italic">B</mtext></mrow></msub><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">B</mtext></mrow></msub></mrow></mfrac><mtext></mtext><msub><mrow><mtext mathvariant="italic">R</mtext></mrow><mrow><mtext mathvariant="italic">GOP</mtext><mtext>,</mtext><mtext mathvariant="italic">N</mtext></mrow></msub></mrow></math><img file="EP1005232A2_D0014.tif" /></maths> where <i>N</i><sub><i>I</i></sub>, <i>N</i><sub><i>P</i></sub> and <i>N</i><sub><i>B</i></sub> are the numbers of I, P and B-pictures, respectively, in the GOP. By eqn. (5), the pictures of the same type are assigned the same number of bits. This bit allocation strategy can be further modified by considering only the distribution of the remaining number of bits over the remaining pictures in the current GOP, i.e.,<maths id="math0015" num="(6)"><math display="block"><mrow><msub><mrow><mtext mathvariant="italic">T</mtext></mrow><mrow><mtext mathvariant="italic">n</mtext></mrow></msub><mtext> = </mtext><mfrac><mrow><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">n</mtext><mtext>,</mtext><mtext mathvariant="italic">t</mtext></mrow></msub></mrow><mrow><msub><mrow><mtext mathvariant="italic">n</mtext></mrow><mrow><mtext mathvariant="italic">I</mtext></mrow></msub><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">I</mtext></mrow></msub><mtext> + </mtext><msub><mrow><mtext mathvariant="italic">n</mtext></mrow><mrow><mtext mathvariant="italic">P</mtext></mrow></msub><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">P</mtext></mrow></msub><mtext> + </mtext><msub><mrow><mtext mathvariant="italic">n</mtext></mrow><mrow><mtext mathvariant="italic">B</mtext></mrow></msub><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">B</mtext></mrow></msub></mrow></mfrac><mtext mathvariant="italic">R</mtext></mrow></math><img file="EP1005232A2_D0015.tif" /></maths> where <i>n</i><sub><i>I</i></sub>, <i>n</i><sub><i>P</i></sub> and <i>n</i><sub><i>B</i></sub> are, respectively, the remaining numbers of I, P and B-pictures in the current GOP, and <i>R</i> is the remaining number of bits, defined as<maths id="math0016" num=""><img file="EP1005232A2_D0016.tif" /></maths> where ⇐ denotes the assignment statement.
0060The remaining number of bits, <i>R</i>, needs to be updated at the beginning of each GOP as,<maths id="math0017" num="(8)"><math display="block"><mrow><mtext mathvariant="italic">R</mtext><mtext> = </mtext><mtext mathvariant="italic">R</mtext><mtext> + </mtext><msub><mrow><mtext mathvariant="italic">R</mtext></mrow><mrow><mtext mathvariant="italic">GOP</mtext><mtext>,</mtext><mtext mathvariant="italic">N</mtext></mrow></msub><mtext> = </mtext><mtext mathvariant="italic">R</mtext><mtext> + </mtext><mtext mathvariant="italic">N</mtext><mtext>·</mtext><mfrac><mrow><mtext mathvariant="italic">bit_rate</mtext></mrow><mrow><mtext mathvariant="italic">frame_rate</mtext></mrow></mfrac></mrow></math><img file="EP1005232A2_D0017.tif" /></maths>
0061We now show that eqn. (6) also assigns the same number of bits to the pictures of the same type as long as the encoder can meet the target rate at each picture. For example, assume that frame <i>n</i> is a B-picture. Frame <i>n</i> can actually be either an I, P or B-picture. The encoder meets the nominal rate, <i>T</i><sub><i>n</i></sub>, for frame <i>n</i>. The target rate for frame <i>n</i>+1, <i>T</i><sub><i>n</i>+1</sub>, is therefore:<maths id="math0018" num=""><math display="block"><mrow><mtable><mtr><mtd><mrow><mtable><mtr><mtd><mrow><mtable><mlabeledtr><mtext>(9a)</mtext><mtd><mrow><msub><mrow><mtext mathvariant="italic">T</mtext></mrow><mrow><mtext mathvariant="italic">n</mtext></mrow></msub><msub><mrow><mtext></mtext></mrow><mrow><mtext>+1</mtext></mrow></msub><mtext> = </mtext><mfrac><mrow><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">n</mtext><mtext>+1,</mtext><mtext mathvariant="italic">t</mtext></mrow></msub></mrow><mrow><msub><mrow><mtext mathvariant="italic">n</mtext></mrow><mrow><mtext mathvariant="italic">I</mtext></mrow></msub><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">I</mtext></mrow></msub><mtext> + </mtext><msub><mrow><mtext mathvariant="italic">n</mtext></mrow><mrow><mtext mathvariant="italic">P</mtext></mrow></msub><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">P</mtext></mrow></msub><mtext> + (</mtext><msub><mrow><mtext mathvariant="italic">n</mtext></mrow><mrow><mtext mathvariant="italic">B</mtext></mrow></msub><mtext> - 1)</mtext><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">B</mtext></mrow></msub></mrow></mfrac><mtext>(</mtext><mtext mathvariant="italic">R</mtext><mtext>-</mtext><msub><mrow><mtext mathvariant="italic">T</mtext></mrow><mrow><mtext mathvariant="italic">n</mtext></mrow></msub><mtext>)</mtext></mrow></mtd></mlabeledtr></mtable></mrow></mtd></mtr><mtr><mtd><mrow><mtable><mlabeledtr><mtext>(9b)</mtext><mtd><mrow><mtext>= </mtext><mfrac><mrow><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">n</mtext><mtext>+1,</mtext><mtext mathvariant="italic">t</mtext></mrow></msub></mrow><mrow><msub><mrow><mtext mathvariant="italic">n</mtext></mrow><mrow><mtext mathvariant="italic">I</mtext></mrow></msub><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">I</mtext></mrow></msub><mtext> + </mtext><msub><mrow><mtext mathvariant="italic">n</mtext></mrow><mrow><mtext mathvariant="italic">P</mtext></mrow></msub><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">P</mtext></mrow></msub><mtext> + (</mtext><msub><mrow><mtext mathvariant="italic">n</mtext></mrow><mrow><mtext mathvariant="italic">B</mtext></mrow></msub><mtext> - 1)</mtext><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">B</mtext></mrow></msub></mrow></mfrac><mtext>(</mtext><mtext mathvariant="italic">R</mtext><mtext>-</mtext><mfrac><mrow><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">B</mtext></mrow></msub></mrow><mrow><msub><mrow><mtext mathvariant="italic">n</mtext></mrow><mrow><mtext mathvariant="italic">I</mtext></mrow></msub><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">I</mtext></mrow></msub><mtext> + </mtext><msub><mrow><mtext mathvariant="italic">n</mtext></mrow><mrow><mtext mathvariant="italic">P</mtext></mrow></msub><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">P</mtext></mrow></msub><mtext> + </mtext><msub><mrow><mtext mathvariant="italic">n</mtext></mrow><mrow><mtext mathvariant="italic">B</mtext></mrow></msub><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">B</mtext></mrow></msub></mrow></mfrac><mtext mathvariant="italic">R</mtext><mtext>)</mtext></mrow></mtd></mlabeledtr></mtable></mrow></mtd></mtr><mtr><mtd><mrow><mtable><mlabeledtr><mtext>(9c)</mtext><mtd><mrow><mtext>= </mtext><mfrac><mrow><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">n</mtext><mtext>+1,</mtext><mtext mathvariant="italic">t</mtext></mrow></msub></mrow><mrow><msub><mrow><mtext mathvariant="italic">n</mtext></mrow><mrow><mtext mathvariant="italic">I</mtext></mrow></msub><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">I</mtext></mrow></msub><mtext> + </mtext><msub><mrow><mtext mathvariant="italic">n</mtext></mrow><mrow><mtext mathvariant="italic">P</mtext></mrow></msub><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">P</mtext></mrow></msub><mtext> + (</mtext><msub><mrow><mtext mathvariant="italic">n</mtext></mrow><mrow><mtext mathvariant="italic">B</mtext></mrow></msub><mtext> - 1)</mtext><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">B</mtext></mrow></msub></mrow></mfrac><mtext>(</mtext><mfrac><mrow><msub><mrow><mtext mathvariant="italic">n</mtext></mrow><mrow><mtext mathvariant="italic">I</mtext></mrow></msub><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">I</mtext></mrow></msub><mtext> + </mtext><msub><mrow><mtext mathvariant="italic">n</mtext></mrow><mrow><mtext mathvariant="italic">P</mtext></mrow></msub><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">P</mtext></mrow></msub><mtext>+</mtext><msub><mrow><mtext mathvariant="italic">n</mtext></mrow><mrow><mtext mathvariant="italic">B</mtext></mrow></msub><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">B</mtext></mrow></msub><mtext>-</mtext><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">B</mtext></mrow></msub></mrow><mrow><msub><mrow><mtext mathvariant="italic">n</mtext></mrow><mrow><mtext mathvariant="italic">I</mtext></mrow></msub><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">I</mtext></mrow></msub><mtext>+</mtext><msub><mrow><mtext mathvariant="italic">n</mtext></mrow><mrow><mtext mathvariant="italic">P</mtext></mrow></msub><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">P</mtext></mrow></msub><mtext>+</mtext><msub><mrow><mtext mathvariant="italic">n</mtext></mrow><mrow><mtext mathvariant="italic">B</mtext></mrow></msub><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">B</mtext></mrow></msub></mrow></mfrac><mtext>)</mtext><mtext mathvariant="italic">R</mtext></mrow></mtd></mlabeledtr></mtable></mrow></mtd></mtr><mtr><mtd><mrow><mtable><mlabeledtr><mtext>(9d)</mtext><mtd><mrow><mtext>= </mtext><mfrac><mrow><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">n</mtext><mtext>+1,</mtext><mtext mathvariant="italic">t</mtext></mrow></msub></mrow><mrow><msub><mrow><mtext mathvariant="italic">n</mtext></mrow><mrow><mtext mathvariant="italic">I</mtext></mrow></msub><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">I</mtext></mrow></msub><mtext> + </mtext><msub><mrow><mtext mathvariant="italic">n</mtext></mrow><mrow><mtext mathvariant="italic">P</mtext></mrow></msub><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">P</mtext></mrow></msub><mtext> + </mtext><msub><mrow><mtext mathvariant="italic">n</mtext></mrow><mrow><mtext mathvariant="italic">B</mtext></mrow></msub><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">B</mtext></mrow></msub></mrow></mfrac><mtext mathvariant="italic">R</mtext></mrow></mtd></mlabeledtr></mtable></mrow></mtd></mtr></mtable></mrow></mtd></mtr></mtable></mrow></math><img file="EP1005232A2_D0018.tif" /></maths>
0062As seen, the target rate for frame <i>n</i>+1, <i>T</i><sub><i>n</i>+1</sub>, depends upon only the type of frame <i>n</i>+1, i.e., <i>X</i><sub><i>n</i>+1,<i>t</i></sub>. In other words, regardless of the type (either I, P or B) of frame <i>n</i>, frame <i>n</i>+1 will be assigned the same number of bits according to its own type. This implies that equations (5) and (6) are actually the same if the pictures of the same type have the same complexity measure, and the encoder can meet the target rate at each picture. Equation (6) is, however, more practical as it addresses the changes in picture complexity measures and the difference between the target and actual rates at each picture.
0063In practice, the quality requirement may not be the same for the different picture types. For example, B-pictures are never used as references in the future temporal prediction. Hence, they can tolerate more distortion than I- and P-pictures. To address this concern of different quality requirements, we can further introduce a weighting factor for each picture type, <i>K</i><sub><i>n</i></sub><sub>,</sub><sub><i>t</i></sub>, as<maths id="math0019" num="(10)"><math display="block"><mrow><msub><mrow><mtext mathvariant="italic">T</mtext></mrow><mrow><mtext mathvariant="italic">n</mtext></mrow></msub><mtext> = </mtext><msub><mrow><mtext mathvariant="italic">CX</mtext></mrow><mrow><mtext mathvariant="italic">n</mtext></mrow></msub><msub><mrow><mtext></mtext></mrow><mrow><mtext>,</mtext><mtext mathvariant="italic">t</mtext></mrow></msub><mtext> / </mtext><msub><mrow><mtext mathvariant="italic">K</mtext></mrow><mrow><mtext mathvariant="italic">n</mtext></mrow></msub><msub><mrow><mtext></mtext></mrow><mrow><mtext>,</mtext><mtext mathvariant="italic">t</mtext></mrow></msub></mrow></math><img file="EP1005232A2_D0019.tif" /></maths> where<maths id="math0020" num=""><img file="EP1005232A2_D0020.tif" /></maths>
0064The bit allocation strategies (e.g., equations 5 and 6) now become:<maths id="math0021" num="(5b)"><math display="block"><mrow><msub><mrow><mtext mathvariant="italic">T</mtext></mrow><mrow><mtext mathvariant="italic">n</mtext></mrow></msub><mtext> = </mtext><mfrac><mrow><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">n</mtext><mtext>,</mtext><mtext mathvariant="italic">t</mtext></mrow></msub><mtext>/</mtext><msub><mrow><mtext mathvariant="italic">K</mtext></mrow><mrow><mtext mathvariant="italic">n</mtext><mtext>,</mtext><mtext mathvariant="italic">t</mtext></mrow></msub></mrow><mrow><msub><mrow><mtext mathvariant="italic">N</mtext></mrow><mrow><mtext mathvariant="italic">I</mtext></mrow></msub><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">I</mtext></mrow></msub><mtext>/</mtext><msub><mrow><mtext mathvariant="italic">K</mtext></mrow><mrow><mtext mathvariant="italic">I</mtext></mrow></msub><mtext>+</mtext><msub><mrow><mtext mathvariant="italic">N</mtext></mrow><mrow><mtext mathvariant="italic">P</mtext></mrow></msub><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">P</mtext></mrow></msub><mtext>/</mtext><msub><mrow><mtext mathvariant="italic">K</mtext></mrow><mrow><mtext mathvariant="italic">P</mtext></mrow></msub><mtext>+</mtext><msub><mrow><mtext mathvariant="italic">N</mtext></mrow><mrow><mtext mathvariant="italic">B</mtext></mrow></msub><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">B</mtext></mrow></msub><mtext>/</mtext><msub><mrow><mtext mathvariant="italic">K</mtext></mrow><mrow><mtext mathvariant="italic">B</mtext></mrow></msub></mrow></mfrac><msub><mrow><mtext mathvariant="italic">R</mtext></mrow><mrow><mtext mathvariant="italic">GOP</mtext><mtext>,</mtext><mtext mathvariant="italic">N</mtext></mrow></msub></mrow></math><img file="EP1005232A2_D0021.tif" /></maths> and<maths id="math0022" num="(6b)"><math display="block"><mrow><msub><mrow><mtext mathvariant="italic">T</mtext></mrow><mrow><mtext mathvariant="italic">n</mtext></mrow></msub><mtext> = </mtext><mfrac><mrow><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">n</mtext><mtext>,</mtext><mtext mathvariant="italic">t</mtext></mrow></msub><mtext>/</mtext><msub><mrow><mtext mathvariant="italic">K</mtext></mrow><mrow><mtext mathvariant="italic">n</mtext><mtext>,</mtext><mtext mathvariant="italic">t</mtext></mrow></msub></mrow><mrow><msub><mrow><mtext mathvariant="italic">n</mtext></mrow><mrow><mtext mathvariant="italic">I</mtext></mrow></msub><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">I</mtext></mrow></msub><mtext>/</mtext><msub><mrow><mtext mathvariant="italic">K</mtext></mrow><mrow><mtext mathvariant="italic">I</mtext></mrow></msub><mtext>+</mtext><msub><mrow><mtext mathvariant="italic">n</mtext></mrow><mrow><mtext mathvariant="italic">P</mtext></mrow></msub><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">P</mtext></mrow></msub><mtext>/</mtext><msub><mrow><mtext mathvariant="italic">K</mtext></mrow><mrow><mtext mathvariant="italic">P</mtext></mrow></msub><mtext>+</mtext><msub><mrow><mtext mathvariant="italic">n</mtext></mrow><mrow><mtext mathvariant="italic">B</mtext></mrow></msub><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">B</mtext></mrow></msub><mtext>/</mtext><msub><mrow><mtext mathvariant="italic">K</mtext></mrow><mrow><mtext mathvariant="italic">B</mtext></mrow></msub></mrow></mfrac><mtext mathvariant="italic">R</mtext></mrow></math><img file="EP1005232A2_D0022.tif" /></maths>
0065Equation (6b) is the same one used in MPEG TM5 when <maths id="math0023" num=""><math display="inline"><mrow><msub><mrow><mtext mathvariant="italic">K</mtext></mrow><mrow><mtext mathvariant="italic">I</mtext></mrow></msub><mtext> = </mtext><msub><mrow><mtext mathvariant="italic">K</mtext></mrow><mrow><mtext mathvariant="italic">P</mtext></mrow></msub><mtext> = 1</mtext></mrow></math><img file="EP1005232A2_D0023.tif" /></maths> and <i>K</i><sub><i>B</i></sub> = 1.4.
0066The bit allocation strategy (e.g., equations 5 and 6) requires <i>a priori</i> knowledge of GOP structure, i.e., the numbers of I-, P- and B-pictures in a GOP, <i>N</i><sub><i>I</i></sub>,<i>N</i><sub><i>P</i></sub>,and <i>N</i><sub><i>B</i></sub>, or the remaining number of I, P and B-picture in the current GOP, <i>n</i><sub><i>I</i></sub>,<i>n</i><sub><i>P</i></sub> and <i>n</i><sub><i>B</i></sub> Given a pair of GOP structure variables, <i>N</i> and <i>M</i>, we can have <i>N</i><sub><i>I</i></sub> = 1, <maths id="math0024" num=""><math display="inline"><mrow><msub><mrow><mtext mathvariant="italic">N</mtext></mrow><mrow><mtext mathvariant="italic">P</mtext></mrow></msub><mtext> = </mtext><mtext mathvariant="italic">N</mtext><mtext>/</mtext><mtext mathvariant="italic">M</mtext><mtext>-</mtext><msub><mrow><mtext mathvariant="italic">N</mtext></mrow><mrow><mtext mathvariant="italic">I</mtext></mrow></msub></mrow></math><img file="EP1005232A2_D0024.tif" /></maths> and <maths id="math0025" num=""><math display="inline"><mrow><msub><mrow><mtext mathvariant="italic">N</mtext></mrow><mrow><mtext mathvariant="italic">B</mtext></mrow></msub><mtext> = </mtext><mtext mathvariant="italic">N</mtext><mtext>-</mtext><msub><mrow><mtext mathvariant="italic">N</mtext></mrow><mrow><mtext mathvariant="italic">P</mtext></mrow></msub><mtext>-</mtext><msub><mrow><mtext mathvariant="italic">N</mtext></mrow><mrow><mtext mathvariant="italic">I</mtext></mrow></msub></mrow></math><img file="EP1005232A2_D0025.tif" /></maths>. From <i>N</i><sub><i>I</i></sub>,<i>N</i><sub><i>P</i></sub>,and <i>N</i><sub><i>B</i></sub>, we can also calculate <i>n</i><sub><i>I</i></sub>,<i>n</i><sub><i>P</i></sub> and <i>n</i><sub><i>B</i></sub> during encoding. For example, if a P-picture is just encoded, the remaining number of P-pictures in the current GOP is decreased by 1, i.e., <i>n</i><sub><i>P</i></sub> = <i>n</i><sub><i>P</i></sub>-1.
0067As discussed, this information is unfortunately not available for a transcoder. Without a complete knowledge of the GOP structure of pre-compressed bitstreams, it is difficult to perform an intelligent bit allocation strategy. A transcoder can learn the GOP structure of a pre-compressed bitstream by scanning the bitstream through the first two I-pictures. This, however, may cause a processing delay by one GOP and require extra memory for holding the bits of the GOP.
2. RATE CONTROL FOR A TRANSCODER
0068We now describe a novel rate control system for a transcoder with no requirement of <i>a priori</i> knowledge of GOP structure of the pre-compressed bitstreams. The proposed rate control system causes no processing delay and requires no extra memory. It can start with any reasonable set of GOP parameters, and then gradually corrects these GOP parameters as encoding progresses, if necessary.
0069Table 1(a) shows all the possible picture organizations where the subscripts are the pictures' temporal references, in display order. Each picture refers to a frame or field, or portion thereof. For example, the present invention is compatible with coding of video object planes (VOPs) as known from the MPEG-4 standard. The present invention is compatible with both progressive scan and interlaced scan video.
0070For the sequence <maths id="math0026" num=""><math display="inline"><mrow><mtext>GOP(N=M=1)</mtext></mrow></math><img file="EP1005232A2_D0026.tif" /></maths>, there are only I-pictures. For the sequence <maths id="math0027" num=""><math display="inline"><mrow><mtext>GOP(N,M=1)</mtext></mrow></math><img file="EP1005232A2_D0027.tif" /></maths>, there are only I- and P-pictures. For the sequence <maths id="math0028" num=""><math display="inline"><mrow><mtext>GOP(N=M)</mtext></mrow></math><img file="EP1005232A2_D0028.tif" /></maths>, there are only I- and B-pictures. For the sequence GOP(N,M), there are I-, P- and B-pictures. For the sequence GOP(M=1), there are only P-pictures. For the sequence GOP(M), there are only P- and B-pictures.
0071The first four cases in Table 1(a) are non-progressive refresh sequences since they have I-pictures. The last two case (e.g., GOP(M=1) and GOP(M)) have no I-pictures, but use a progressive refresh where P-pictures contain I-slices. An I-slice is an intra-coded portion of a picture typically extending horizontally across the picture. The location of the I-slice changes in successive P-pictures to refresh a different portion of the successive P-pictures. Hence, with a progressive refresh, the GOP length <i>N</i> is no longer necessary in describing the picture organization. Nevertheless, <i>M</i> can still be used to indicate the distance between two consecutive P-pictures. The "distance" is measured in terms of number of pictures herein, although any corresponding measure, such as time, can be used. In terms of bit allocation, we can set <maths id="math0029" num=""><math display="inline"><mrow><mtext mathvariant="italic">N</mtext><mtext> = </mtext><mtext mathvariant="italic">M</mtext></mrow></math><img file="EP1005232A2_D0029.tif" /></maths>, <i>N</i><sub><i>I</i></sub> = 0 (as there is no I pictures for progressive refresh sequence), <maths id="math0030" num=""><math display="inline"><mrow><msub><mrow><mtext mathvariant="italic">N</mtext></mrow><mrow><mtext mathvariant="italic">P</mtext></mrow></msub><mtext> = </mtext><mtext mathvariant="italic">N</mtext><mtext>/</mtext><mtext mathvariant="italic">M</mtext><mtext>-</mtext><msub><mrow><mtext mathvariant="italic">N</mtext></mrow><mrow><mtext mathvariant="italic">I</mtext></mrow></msub><mtext> = 1</mtext></mrow></math><img file="EP1005232A2_D0030.tif" /></maths>, <maths id="math0031" num=""><math display="inline"><mrow><msub><mrow><mtext mathvariant="italic">N</mtext></mrow><mrow><mtext mathvariant="italic">B</mtext></mrow></msub><mtext> = </mtext><msub><mrow><mtext mathvariant="italic">N-N</mtext></mrow><mrow><mtext mathvariant="italic">P</mtext></mrow></msub><msub><mrow><mtext mathvariant="italic">-N</mtext></mrow><mrow><mtext mathvariant="italic">I</mtext></mrow></msub><mtext> = </mtext><msub><mrow><mtext mathvariant="italic">N-N</mtext></mrow><mrow><mtext mathvariant="italic">P</mtext></mrow></msub></mrow></math><img file="EP1005232A2_D0031.tif" /></maths> in <maths id="math0032" num=""><math display="inline"><mrow><mtext mathvariant="italic">N</mtext><mtext> = </mtext><mtext mathvariant="italic">M</mtext></mrow></math><img file="EP1005232A2_D0032.tif" /></maths> bit allocation equation (5) for progressive refresh.
0072Table 1(b) shows the corresponding forms of picture organizations in encoding order (e.g., in bitstream order) for the picture sequences of Table 1(a). If <i>M</i> = 1 (there is no B-picture in the sequence), the encoding order is actually the same as the display order. On the other hand, if <i>M</i> ≠ 1 (e.g., there are <i>M</i> -1 B-pictures between successive I- or P-pictures), the future I- or P-pictures have to be encoded before the <i>M</i> -1 B-pictures.
0073Furthermore, for the first GOP (e.g., initial or non-continuous GOP, designated GOP<sub>0</sub>) in a video sequence with <i>M</i> ≠ 1, there may not be any B-pictures before the first I or P-picture, as shown in Table 2(a). Table 2(a) shows possible picture organizations of the first (initial) GOP after a sequence header in a video stream, in display order. The initial GOPs are designated GOP<sub>0</sub>. For example, for GOP<sub>0</sub>(M), the first picture is designated P<sub>0</sub>. An initial GOP may be processed by a transcoder when a bitstream is initially acquired or re-acquired, for example.
0074Table 2(b) shows the first GOP of Table 2(a) in encoding order. Here, an initial GOP with <i>M</i> ≠ 1 is shown, where the second I- or P-picture is encoded before any B-picture. The second picture in encoding order will be either an I or P-picture, as shown in Table 2(b). <tables id="tabl0001" num="0001"><img file="EP1005232A2_D0033.tif" /></tables>
0075FIG. 1(a) illustrates a progressive refresh sequence of pictures in display order for continuing GOPs. Specifically, the progressive refresh sequence GOP(M) from Table 1(a) is illustrated for a distance between P-pictures of M=3, and for a continuing (e.g., non-initial, or open) GOP. Additionally, the GOP length is <maths id="math0033" num=""><math display="inline"><mrow><mtext>N=M=3</mtext></mrow></math><img file="EP1005232A2_D0034.tif" /></maths> pictures.
0076In the video sequence 100, a first GOP 110 includes pictures P<sub>7</sub>, B<sub>8</sub> and B<sub>9</sub>, while a second GOP 120 includes pictures P<sub>10</sub>, B<sub>11</sub> and B<sub>12</sub>, and a third GOP 130 includes pictures P<sub>13</sub>, B<sub>14</sub>, and B<sub>15</sub>. The subscript "7" for P<sub>7</sub> is chosen simply as an example. A subsequent GOP includes P<sub>16</sub> as its first picture.
0077FIG. 1(b) illustrates the sequence of pictures of FIG. 1(a) in encoding order. The encoded video sequence 150 corresponds to the sequence GOP(M) from Table 1(b). Since B<sub>8</sub> and B<sub>9</sub> are temporally backward predicted from P<sub>10</sub>, B<sub>8</sub> and B<sub>9</sub> follow P<sub>10</sub> in the encoded sequence 150. Similarly, B<sub>11</sub> and B<sub>12</sub> follow P<sub>13</sub>, and B<sub>14</sub> and B<sub>15</sub> follow P<sub>16</sub>.
0078FIG. 2(a) illustrates a progressive refresh sequence of pictures in display order for an initial GOP in a bitstream followed by continuing GOPs. Specifically, the progressive refresh sequence GOP<sub>0</sub>(M) from Table 2(a) is illustrated for a distance between P-pictures of M=3, and a GOP length is <maths id="math0034" num=""><math display="inline"><mrow><mtext>N=M=3</mtext></mrow></math><img file="EP1005232A2_D0035.tif" /></maths> pictures.
0079In the video sequence 200, a first, initial GOP 210 includes pictures P<sub>0</sub>, B<sub>1</sub> and B<sub>2</sub>, while a second, continuing GOP 220 includes pictures P<sub>3</sub>, B<sub>4</sub> and B<sub>5</sub>, and a third, continuing GOP 230 includes pictures P<sub>6</sub>, B<sub>7</sub>, and B<sub>8</sub>. A subsequent GOP includes P<sub>9</sub> as its first picture.
0080FIG. 2(b) illustrates the sequence of pictures of FIG. 2(a) in encoding order. The encoded video sequence 250 corresponds to the sequence GOP<sub>0</sub>(M) from Table 2(b). Since B<sub>1</sub> and B<sub>2</sub> are temporally backward predicted from P<sub>3</sub>, B<sub>1</sub> and B<sub>2</sub> follow P<sub>3</sub> in the encoded sequence 250. Essentially, the B-pictures that would use P<sub>0</sub> for backward temporal prediction are not present, so P<sub>3</sub>, B<sub>1</sub> and B<sub>2</sub> follow P<sub>0</sub>. Similarly, B<sub>4</sub> and B<sub>5</sub> follow P<sub>6</sub>, and B<sub>7</sub> and B<sub>8</sub> follow P<sub>9</sub>.
0081FIG. 3 illustrates an MPEG-2 bitstream structure. A sequence layer 300 includes a sequence header 302, followed by a number of GOPs, e.g., GOPs 304, 306 and 308, followed by additional sequence headers and GOPs, including sequence header 312. A GOP layer 320 includes a GOP header 322, followed by data from a number of pictures, e.g., pictures 324, 326 and 328. A picture layer 330 includes a picture header 332, followed by a number of slices, e.g., slices 334 and 336. A slice layer 335 includes a slice header 337, followed by a number of macroblocks, e.g., macroblocks 338 and 339. A macroblock layer 340 includes a macroblock header 342, followed by a number of blocks, e.g., blocks 344, 346 and 348. A block layer includes DCT coefficients 352.
0082For a given pre-compressed bitstream, the transcoder can start processing anywhere in the bitstream. Initially, the transcoder will skip all the bits until reaching the sequence header 300, which contains information about picture size, frame rate, and the like. Optionally, the GOP header 322 may follow the sequence header 302 (for non-progressive refresh only). If a GOP header does follow the sequence header 302, the bitstream is definitely a non-progressive refresh sequence. Otherwise, the bitstream may, or may not, be of progressive refresh. The picture layer 330 then follows.
0083The picture immediately following the sequence header (i.e., the first picture in the GOP, i.e., picture 324) can be either an I or P-picture. If it is an I-picture, the bitstream is a non-progressive refresh sequence. Otherwise, the bitstream is a progressive refresh sequence. The bit allocation procedures of the present invention for bitstreams with progressive refresh and non-progressive refresh are slightly different. In the following two subsections, we detail both.
0084The following notation will be used: <ul id="ul0002" list-style="none" compact="compact"><li>N,M - the actual values (i.e., reflecting the true GOP structure) of the GOP parameters, N and M;</li><li>N<i>'</i>,M<i>'</i> - the initial assumed values of the GOP parameters, N and M;</li><li>N<i>''</i>,M<i>''</i> - the (current) updated values of the GOP parameters, N and M;</li><li>N<sub>I</sub>,N<sub>P</sub>,N<sub>B</sub> - the numbers of I, P and B pictures, respectively, in a GOP;</li><li>n<sub>I</sub>,n<sub>P</sub>,n<sub>B</sub> - the number of I, P and B pictures, respectively, remaining in the current GOP;</li><li>R - the number of remaining bits for the current GOP;</li><li>bit_rate - the effective output bit rate in bits per second that may be variable (we assume that bit_rate is available to transcoder);</li><li>frame_rate - the <i>effective</i> frame_rate in frames per second, which may not be the same as the frame_rate embedded in the sequence header due to the presence of the repeat_first_field (we assume that frame_rate is available to transcoder);</li><li>div - Integer division with truncation of the result toward zero; and</li><li>⇐ - Assignment statement (from the right to the left).</li></ul>
(i) Progressive Refresh
0085For a progressive refresh sequence, there will be no GOP header, and the first picture immediately following the sequence header (in encoding order) has to be a P-picture. See sequences GOP(M=1) and GOP(M) in Table 1(b) and GOP<sub>0</sub>(M) in Table 2(b). Instead of waiting to correctly determine <i>M</i>, we proceed to process the first P-picture with any reasonable assumed <i>M</i>, say <i>M</i>', and a bit budget of <maths id="math0035" num=""><math display="inline"><mrow><mtext mathvariant="italic">R</mtext><mtext> = </mtext><msub><mrow><mtext mathvariant="italic">R</mtext></mrow><mrow><mtext mathvariant="italic">GOP</mtext></mrow></msub><msub><mrow><mtext></mtext></mrow><mrow><mtext>,</mtext><mtext mathvariant="italic">M</mtext></mrow></msub><mtext> = </mtext><mtext mathvariant="italic">M</mtext><mtext>'·(</mtext><mtext mathvariant="italic">bit</mtext><mtext>_</mtext><mtext mathvariant="italic">rate</mtext><mtext>/</mtext><mtext mathvariant="italic">frame</mtext><mtext>_</mtext><mtext mathvariant="italic">rate</mtext><mtext>)</mtext></mrow></math><img file="EP1005232A2_D0036.tif" /></maths> bits in calculating the target bit rate (see eqn. 6). Note that with <i>M</i>', we have <i>N</i><sub><i>P</i></sub> = 1 and <maths id="math0036" num=""><math display="inline"><mrow><msub><mrow><mtext mathvariant="italic">N</mtext></mrow><mrow><mtext mathvariant="italic">B</mtext></mrow></msub><mtext> = </mtext><mtext mathvariant="italic">M</mtext><mtext>'-</mtext><msub><mrow><mtext mathvariant="italic">N</mtext></mrow><mrow><mtext mathvariant="italic">P</mtext></mrow></msub></mrow></math><img file="EP1005232A2_D0037.tif" /></maths>. For example, refer to FIG. 1(a) or 2(a), where the distance between P-pictures is M'=3, the number of P-pictures in a GOP is one, and the number of B-pictures in a GOP is two.
0086The second picture in the GOP, in encoding order, can be either a B-picture (<i>GOP</i>(<i>M</i>)) or a P-picture (<i>GOP</i>(<i>M</i> = 1) or <i>GOP</i><sub>0</sub>(<i>M</i>)), as shown in Tables 1(b) and 2(b), respectively.
0087In either case, we can calculate the actual value of <i>M</i> from the temporal references of the first two pictures of a GOP in encoding order. Specifically, let <i>temp_ref_picture</i>1 and <i>temp_ref_picture</i>2 be the temporal references for the first and second pictures, respectively. The temporal reference may be embedded in the picture header. If the second picture is a B-picture, e.g., sequence (<i>GOP</i>(<i>M</i>)) in Table 1(b), the correct value of <i>M</i>, say <i>M</i>'', is:<maths id="math0037" num="(12)"><math display="block"><mrow><mtext mathvariant="italic">M</mtext><mtext>''= </mtext><mtext mathvariant="italic">temp_ref_picture</mtext><mtext>1-</mtext><mtext mathvariant="italic">temp_ref_picture</mtext><mtext>2+1.</mtext></mrow></math><img file="EP1005232A2_D0038.tif" /></maths>
0088For example, in FIG. 1(b), consider P<sub>10</sub> and B<sub>8</sub> as first and second pictures, respectively, in an encoded video sequence. Then, temp_ref_picture1 is the temporal reference of P<sub>10</sub> (e.g., "10"), temp_ref_picture2 is the temporal reference of B<sub>8</sub> (e.g., "8"), and M''=10-8+1=3. Note that the temporal references refer to the display order of the pictures.
0089Otherwise, if the second picture is a P-picture, e.g., sequence (<i>GOP</i>(<i>M</i> = 1) in Table 1(b), or sequence <i>GOP</i><sub>0</sub>(<i>M</i>)) in Table 2(b), the correct value of the distance between P-pictures is:<maths id="math0038" num="(13)"><math display="block"><mrow><mtext mathvariant="italic">M</mtext><mtext>''= </mtext><mtext mathvariant="italic">temp_ref_picture</mtext><mtext>2-</mtext><mtext mathvariant="italic">temp_ref_picture</mtext><mtext>1. </mtext></mrow></math><img file="EP1005232A2_D0039.tif" /></maths>
0090For example, in FIG. 2(b), consider P<sub>0</sub> and P<sub>3</sub> as first and second pictures, respectively, in an encoded video sequence. Then, temp_ref_picture1 is the temporal reference of P<sub>0</sub> (e.g., "0"), temp_ref_picture2 is the temporal reference of P<sub>3</sub> (e.g., "3"), and M''=3-0=3.
0091With a correct value of <i>M</i>, say <i>M</i>'', the remaining number of bits, <i>R</i> (see eqn. 7), is adjusted accordingly. Specifically, if the second picture is a B-picture, as with sequence (<i>GOP</i>(<i>M</i>)) in Table 1(b), R is updated as<maths id="math0039" num="(14)"><math display="block"><mrow><mtext mathvariant="italic">R</mtext><mtext> = </mtext><mtext mathvariant="italic">R</mtext><mtext>+(</mtext><mtext mathvariant="italic">M</mtext><mtext>''-</mtext><mtext mathvariant="italic">M</mtext><mtext>')·</mtext><mfrac><mrow><mtext mathvariant="italic">bit_rate</mtext></mrow><mrow><mtext mathvariant="italic">frame_rate</mtext></mrow></mfrac><mtext>.</mtext></mrow></math><img file="EP1005232A2_D0040.tif" /></maths>
0092As seen, for <i>M</i>''><i>M</i>' (actual distance between P-pictures is greater than assumed distance), the first P-picture has been assigned relatively more bits and, therefore, the remaining pictures will be assigned relatively fewer bits. For <i>M</i>''<<i>M</i>' (actual distance between P-pictures is less than assumed distance), the first P-picture has been assigned relatively fewer bits and the remaining pictures will be assigned relatively more bits.
0093On the other hand, if the second picture is a P-picture, e.g., as with sequences (<i>GOP</i>(<i>M</i> = 1) in Table 1(b), or sequence <i>GOP</i><sub>0</sub>(<i>M</i>)) in Table 2(b), there are no B-pictures between the first two P-pictures in the encoded video sequence. Hence, the bits allocated for the assumed <i>M</i>'-1 B-pictures between two P pictures (in encoding order) should be subtracted from <i>R</i>, as<maths id="math0040" num="(15)"><math display="block"><mrow><mtext mathvariant="italic">R</mtext><mtext> = </mtext><mtext mathvariant="italic">R</mtext><mtext>-(</mtext><mtext mathvariant="italic">M</mtext><mtext>'-1)·</mtext><mfrac><mrow><mtext mathvariant="italic">bit_rate</mtext></mrow><mrow><mtext mathvariant="italic">frame_rate</mtext></mrow></mfrac><mtext>.</mtext></mrow></math><img file="EP1005232A2_D0041.tif" /></maths>
0094We then set <maths id="math0041" num=""><math display="inline"><mrow><mtext mathvariant="italic">M</mtext><mtext> = </mtext><mtext mathvariant="italic">M</mtext><mtext>''</mtext></mrow></math><img file="EP1005232A2_D0042.tif" /></maths>. If the transcoder can meet the target rate at each picture, at the end of the first <i>M</i> pictures, we will have <i>R</i> = 0. Hence, we will have a bit budget <maths id="math0042" num=""><math display="inline"><mrow><mtext mathvariant="italic">R</mtext><mtext> = </mtext><msub><mrow><mtext mathvariant="italic">R</mtext></mrow><mrow><mtext mathvariant="italic">GOP</mtext><mtext>,</mtext><mtext mathvariant="italic">M</mtext></mrow></msub><mtext> = </mtext><mtext mathvariant="italic">M</mtext><mtext>·(</mtext><mtext mathvariant="italic">bit_rate</mtext><mtext>/</mtext><mtext mathvariant="italic">frame_rate</mtext><mtext>)</mtext></mrow></math><img file="EP1005232A2_D0043.tif" /></maths> bits for next <i>M</i> pictures. To address any subsequent change in <i>M</i>, we check the value of <i>M</i> after each P-picture.
0095FIG. 4(a) illustrates a coding method for a progressive refresh picture sequence in accordance with the present invention. The aforementioned bit allocation technique for progressive refresh sequences is summarized as follows.
0096At block 400, the pre-compressed digital video bitstream is received at a transcoder. The coded pictures are in an encoding order. At block 405, the bitstream is processed to detect a sequence header. At block 410, the picture type of the first picture following the sequence header is determined. If it is an I-picture, processing continues at block "A" in FIG. 4(b).
0097If the first picture following the sequence header is a P-picture, processing continues at block 415, where an assumed distance M' is set. M' is defined herein as a distance between the first picture following the sequence header, and the next P-picture in the display order. At block 420, an assumed bit budget R is determined based on M', the bit rate and the frame rate of the bitstream. At block 422, a target bit rate T is set in accordance with eqn. 6b. At block 425, the first picture is coded according to T. At block 430, if the next picture (e.g., the second picture) is a P-picture, the actual distance M'' is determined at block 435 according to eqn. 13. At block 440, the bit budget R is adjusted using eqn. 15. At block 445, M is set to M''.
0098At block 430, if the next picture in the sequence, e.g., the second picture, is a B-picture, the actual distance M'' is determined at block 450 according to eqn. 12. At block 455, the bit budget R is adjusted using eqn. 14. At block 460, M is set to M''. At block 462, the target bit rate T is set (e.g., using eqn. 6). Next, the remaining M-1 pictures (including the second picture) are coded according to T at block 465.
0099At block 470, the next picture is processed. This may be the first picture of the next series of M'' pictures, for example. At block 475, processing returns, e.g., to block 415. However, note that, instead of blindly assuming the length and bit budgets at blocks 415 and 420, respectively, the values determined in the previous series of M'' pictures may be used. Nevertheless, the actual distance M'' may be verified, e.g., after every P-picture.
(ii) Non-Progressive Refresh
0100For non-progressive refresh, there may be an optional GOP header following the sequence header. Then, a picture layer follows. The first picture immediately following a sequence header, or a GOP header, has to be an I-picture. For an intelligent bit allocation, we need to know both <i>N</i> and <i>M</i>. We can, however, start transcoding of a pre-compressed bitstream with any reasonable pair of <i>N</i> and <i>M</i>, say <i>N</i>' and <i>M</i>', and with a bit budget of <maths id="math0043" num=""><math display="inline"><mrow><mtext mathvariant="italic">R</mtext><mtext> = </mtext><msub><mrow><mtext mathvariant="italic">R</mtext></mrow><mrow><mtext mathvariant="italic">GOP</mtext><mtext>,</mtext><mtext mathvariant="italic">N</mtext></mrow></msub><mtext> = </mtext><mtext mathvariant="italic">N</mtext><mtext>'·(</mtext><mtext mathvariant="italic">bit_rate</mtext><mtext>/</mtext><mtext mathvariant="italic">frame_rate</mtext><mtext>)</mtext></mrow></math><img file="EP1005232A2_D0044.tif" /></maths> bits in determining the target rate for the first I-picture (see eqn. 6).
0101Note that with <i>N</i>' and <i>M</i>', we have <i>N</i><sub><i>I</i></sub> = 1, <maths id="math0044" num=""><math display="inline"><mrow><msub><mrow><mtext mathvariant="italic">N</mtext></mrow><mrow><mtext mathvariant="italic">P</mtext></mrow></msub><mtext> = </mtext><mtext mathvariant="italic">N</mtext><mtext>'/</mtext><mtext mathvariant="italic">M</mtext><mtext>'-</mtext><msub><mrow><mtext mathvariant="italic">N</mtext></mrow><mrow><mtext mathvariant="italic">I</mtext></mrow></msub></mrow></math><img file="EP1005232A2_D0045.tif" /></maths> and <maths id="math0045" num=""><math display="inline"><mrow><msub><mrow><mtext mathvariant="italic">N</mtext></mrow><mrow><mtext mathvariant="italic">B</mtext></mrow></msub><mtext> = </mtext><mtext mathvariant="italic">N</mtext><mtext>'-</mtext><msub><mrow><mtext mathvariant="italic">N</mtext></mrow><mrow><mtext mathvariant="italic">I</mtext></mrow></msub><mtext>-</mtext><msub><mrow><mtext mathvariant="italic">N</mtext></mrow><mrow><mtext mathvariant="italic">P</mtext></mrow></msub></mrow></math><img file="EP1005232A2_D0046.tif" /></maths>. The actual value of <i>M</i>, say <i>M</i>'', can then be calculated from the temporal references of the first two pictures, similar to progressive refresh. If the second picture is an I- or P-picture, eqn. (13) is used in calculating the value of <i>M</i>. Otherwise, the second picture is a B-picture, and eqn. (12) is used. We then set <maths id="math0046" num=""><math display="inline"><mrow><mtext mathvariant="italic">M</mtext><mtext> = </mtext><mtext mathvariant="italic">M</mtext><mtext>''</mtext></mrow></math><img file="EP1005232A2_D0047.tif" /></maths>.
0102If the second picture is also an I-picture (<maths id="math0047" num=""><math display="inline"><mrow><mtext mathvariant="italic">GOP</mtext><mtext>(</mtext><mtext mathvariant="italic">N</mtext><mtext> = </mtext><mtext mathvariant="italic">M</mtext><mtext> = 1)</mtext></mrow></math><img file="EP1005232A2_D0048.tif" /></maths> and <maths id="math0048" num=""><math display="inline"><mrow><msub><mrow><mtext mathvariant="italic">GOP</mtext></mrow><mrow><mtext>0</mtext></mrow></msub><mtext>(</mtext><mtext mathvariant="italic">N</mtext><mtext> = </mtext><mtext mathvariant="italic">M</mtext><mtext>)</mtext></mrow></math><img file="EP1005232A2_D0049.tif" /></maths>), we actually have had the correct <i>N</i> value too, i.e., <maths id="math0049" num=""><math display="inline"><mrow><mtext mathvariant="italic">N</mtext><mtext> = </mtext><mtext mathvariant="italic">M</mtext></mrow></math><img file="EP1005232A2_D0050.tif" /></maths>, as shown in Table 1(b) and 2(b). The remaining number of bits, <i>R</i> (see eqn. 7), is adjusted accordingly, as:<maths id="math0050" num="(16)"><math display="block"><mrow><mtext mathvariant="italic">R</mtext><mtext> = </mtext><mtext mathvariant="italic">R</mtext><mtext>-(</mtext><mtext mathvariant="italic">N</mtext><mtext>'-1)·</mtext><mfrac><mrow><mtext mathvariant="italic">bit_rate</mtext></mrow><mrow><mtext mathvariant="italic">frame_rate</mtext></mrow></mfrac><mtext>.</mtext></mrow></math><img file="EP1005232A2_D0051.tif" /></maths>
0103This is because there are no P- and B-pictures between the first and second I-pictures. Hence, the bits allocated to the assumed N-1 (P and B) pictures between two I pictures should be deducted from R.
0104If the second picture is not an I-picture, it will take somewhat longer to obtain the correct value of <i>N</i>, by about one GOP. The assumed N<i>'</i> may not be dividable by the correct M. Hence, we need to adjust N<i>'</i>, and accordingly, <i>n</i><sub><i>P</i></sub> and <i>n</i><sub><i>B</i></sub>. We adjust <i>N</i> to <i>N''</i> with the correct <i>M</i> value, and <i>n</i><sub><i>P</i></sub> and <i>n</i><sub><i>B</i></sub>, as<maths id="math0051" num=""><math display="block"><mrow><mtable><mtr><mtd><mrow><mtable><mtr><mtd><mrow><mtable><mlabeledtr><mtext>(17)</mtext><mtd><mrow><mtext mathvariant="italic">N</mtext><mtext>''=(</mtext><mtext mathvariant="italic">N</mtext><mtext>'/</mtext><mtext mathvariant="italic">M</mtext><mtext>)·</mtext><mtext mathvariant="italic">M</mtext><mtext>;</mtext></mrow></mtd></mlabeledtr></mtable></mrow></mtd></mtr><mtr><mtd><mrow><mtable><mlabeledtr><mtext>(18a)</mtext><mtd><mrow><msub><mrow><mtext mathvariant="italic">n</mtext></mrow><mrow><mtext mathvariant="italic">p</mtext></mrow></msub><mtext> = </mtext><mtext mathvariant="italic">N</mtext><mtext>''/</mtext><mtext mathvariant="italic">M</mtext><mtext>-1; and</mtext></mrow></mtd></mlabeledtr></mtable></mrow></mtd></mtr><mtr><mtd><mrow><mtable><mlabeledtr><mtext>(18b)</mtext><mtd><mrow><msub><mrow><mtext mathvariant="italic">n</mtext></mrow><mrow><mtext mathvariant="italic">B</mtext></mrow></msub><mtext> = </mtext><mtext mathvariant="italic">N</mtext><mtext>''/</mtext><mtext mathvariant="italic">M</mtext><mtext>-</mtext><msub><mrow><mtext mathvariant="italic">n</mtext></mrow><mrow><mtext mathvariant="italic">p</mtext></mrow></msub><mtext>-1.</mtext></mrow></mtd></mlabeledtr></mtable></mrow></mtd></mtr></mtable></mrow></mtd></mtr></mtable></mrow></math><img file="EP1005232A2_D0052.tif" /></maths>
0105We then adjust the remaining number of bits, <i>R</i> (see eqn. 7), with <i>N</i>'' as<maths id="math0052" num="(19)"><math display="block"><mrow><mtext mathvariant="italic">R</mtext><mtext> = </mtext><mtext mathvariant="italic">R</mtext><mtext>+(</mtext><mtext mathvariant="italic">N</mtext><mtext>''-</mtext><mtext mathvariant="italic">N</mtext><mtext>')·</mtext><mfrac><mrow><mtext mathvariant="italic">bit_rate</mtext></mrow><mrow><mtext mathvariant="italic">frame_rate</mtext></mrow></mfrac><mtext>.</mtext></mrow></math><img file="EP1005232A2_D0053.tif" /></maths>
0106Furthermore, if the second picture is a P-picture, <maths id="math0053" num=""><math display="inline"><mrow><mtext>GOP(N,M=1)</mtext></mrow></math><img file="EP1005232A2_D0054.tif" /></maths> or GOP<sub>0</sub>(N,M) as shown in Tables 1(b) and 2(b), the remaining number of bits, R, needs additional adjustment as<maths id="math0054" num="(19b)"><math display="block"><mrow><mtext mathvariant="italic">R</mtext><mtext> = </mtext><mtext mathvariant="italic">R</mtext><mtext>-</mtext><mtext mathvariant="italic">(M</mtext><mtext>-</mtext><mtext mathvariant="italic">1)</mtext><mtext>·</mtext><mfrac><mrow><mtext mathvariant="italic">bit_rate</mtext></mrow><mrow><mtext mathvariant="italic">frame_rate</mtext></mrow></mfrac></mrow></math><img file="EP1005232A2_D0055.tif" /></maths>
0107This is because there are M-1 fewer B-pictures than assumed before the first I-picture.
0108There can be only three scenarios, i.e., <ul id="ul0003" list-style="none" compact="compact"><li>1. <maths id="math0055" num=""><math display="inline"><mrow><mtext>N</mtext><mtext mathvariant="italic">''</mtext><mtext>=N</mtext></mrow></math><img file="EP1005232A2_D0056.tif" /></maths>, that is, the current GOP length N<i>''</i> is equal to the actual GOP length N;</li><li>2. N<i>''</i><N, that is, the current GOP length N<i>''</i> is smaller than the actual GOP length N; and</li><li>3. N<i>''</i>>N, that is, the current GOP length N<i>''</i> is greater than the actual GOP length N.</li></ul>
0109Clearly, if <maths id="math0056" num=""><math display="inline"><mrow><mtext mathvariant="italic">N</mtext><mtext> = </mtext><mtext mathvariant="italic">N</mtext><mtext>''</mtext></mrow></math><img file="EP1005232A2_D0057.tif" /></maths>, we will reach an I-picture after processing N<i>''</i> pictures - the beginning of the second GOP. We have a correct <i>N</i>, so we maintain it.
0110If <i>N</i>''<<i>N</i>, the GOP length is shorter than the actual GOP length. The assumed GOP length is at least <i>M</i> pictures shorter than the actual GOP length because of the nature of the GOP structure (see Tables 1(b) and 2(b)). Here, we have assumed that the value of <i>M</i> will not change within a GOP.
0111Note that M may be checked periodically within a GOP, such as after each I- and/or P-picture, if there is a chance that M may change within a GOP. Additionally, if M changes within the GOP, N and R should be adjusted accordingly.
0112We extend the GOP of <i>N</i>'' pictures by <i>M</i> additional pictures, i.e.,<maths id="math0057" num="(21)"><math display="block"><mrow><mtext mathvariant="italic">N</mtext><mtext>''= </mtext><mtext mathvariant="italic">N</mtext><mtext>''+</mtext><mtext mathvariant="italic">M</mtext><mtext>,</mtext></mrow></math><img file="EP1005232A2_D0058.tif" /></maths> and adjust R by adding <i>R</i><sub><i>GOP</i></sub><sub>,</sub><sub><i>M</i></sub> additional bits for the <i>M</i> additional pictures, i.e.,<maths id="math0058" num="(22)"><math display="block"><mrow><mtext mathvariant="italic">R</mtext><mtext> = </mtext><mtext mathvariant="italic">R</mtext><mtext>+</mtext><msub><mrow><mtext mathvariant="italic">R</mtext></mrow><mrow><mtext mathvariant="italic">GOP</mtext><mtext>,</mtext><mtext mathvariant="italic">M</mtext></mrow></msub><mtext> = </mtext><mtext mathvariant="italic">R</mtext><mtext>+</mtext><mtext mathvariant="italic">M</mtext><mtext>·</mtext><mfrac><mrow><mtext mathvariant="italic">bit_rate</mtext></mrow><mrow><mtext mathvariant="italic">frame_rate</mtext></mrow></mfrac><mtext>.</mtext></mrow></math><img file="EP1005232A2_D0059.tif" /></maths>
0113If the extended GOP length is still shorter than the actual GOP length, we repeat the above procedure until reaching the end of the actual GOP.
0114If <i>N</i>''><i>N</i>, the GOP length is longer than the actual GOP length. At the end of the actual GOP, we will have a correct GOP length, <i>N</i>, and we will use the correct length <i>N</i> for the rest of the GOPs. Since the assumed GOP length (<i>N</i>'') is longer than the actual GOP length (<i>N</i>), there will be some bits left over from the first actual GOP for coding pictures in the second actual GOP. Hence, the bits allocated for the second actual GOP need to be adjusted as:<maths id="math0059" num="(23)"><math display="block"><mrow><mtext mathvariant="italic">R</mtext><mtext> = 2</mtext><msub><mrow><mtext mathvariant="italic">R</mtext></mrow><mrow><mtext mathvariant="italic">GOP</mtext></mrow></msub><msub><mrow><mtext></mtext></mrow><mrow><mtext>,</mtext><mtext mathvariant="italic">N</mtext></mrow></msub><mtext>-(</mtext><msub><mrow><mtext mathvariant="italic">R</mtext></mrow><mrow><mtext mathvariant="italic">GOP</mtext></mrow></msub><msub><mrow><mtext></mtext></mrow><mrow><mtext>,</mtext><mtext mathvariant="italic">N</mtext><mtext>''</mtext></mrow></msub><mtext>-</mtext><mtext mathvariant="italic">R</mtext><mtext>)=2</mtext><mtext mathvariant="italic">N</mtext><mtext>·</mtext><mfrac><mrow><mtext mathvariant="italic">bit_rate</mtext></mrow><mrow><mtext mathvariant="italic">frame_rate</mtext></mrow></mfrac><mtext>-(</mtext><mtext mathvariant="italic">N</mtext><mtext>''·</mtext><mfrac><mrow><mtext mathvariant="italic">bit_rate</mtext></mrow><mrow><mtext mathvariant="italic">frame</mtext></mrow></mfrac><mtext>-</mtext><mtext mathvariant="italic">R</mtext><mtext>)</mtext></mrow></math><img file="EP1005232A2_D0060.tif" /></maths> where <i>R</i><sub><i>GOP</i></sub><sub>,</sub><sub><i>N</i></sub><sub>''</sub>-<i>R</i> is the number of bits used for encoding the first <i>N</i> pictures.
0115FIG. 4(b) illustrates a coding method for a non-progressive refresh picture sequence in accordance with the present invention. The aforementioned bit allocation technique for non-progressive refresh sequences is summarized as follows.
0116At block "A" processing continues from block "A" of FIG. 4(a). At block 500, an assumed GOP length N' is provided, and at block 502, an assumed distance M' is provided. M' here is a distance between the first I-picture in a GOP and the next I- or P-picture in the display order. This distance may or may not be the same as the GOP length. Generally, compatible values of N' and M' should be selected, for example, N'>M' and N<i>'</i> is dividable by M<i>'</i>. At block 504, an assumed bit budget R is provided according to N', and at block 505, a target bit rate T is determined, e.g., using eqn. 6, for coding the pictures in the GOP.
0117At block 506, the first picture in the GOP is coded. At block 508, if the next picture, e.g., the second picture of the GOP, is an I-picture, processing continues at block 510, where the actual distance M'' is determined using eqn. 13. At block 514, M is set to M'', and at block 516 N is set to M since the distance M'' and the GOP length are the same.
0118At block 518, the bit budget is adjusted according to eqn. 16, and at block 524 processing returns, e.g., to block 500. Note that, at blocks 500 and 502, N' and M' can be set to the values N and M, respectively, of the previous GOP. N and M can be verified for each GOP.
0119At block 508, if the next picture, e.g., the second picture in the GOP, is a P-picture, processing continues at block 530, where the actual distance M'' is determined using eqn. 13. At block 532, M is set to M''. At block 534, the GOP length is updated as <maths id="math0060" num=""><math display="inline"><mrow><mtext>N''=M[N'/M']</mtext></mrow></math><img file="EP1005232A2_D0061.tif" /></maths>. At block 536, the remaining number of B-pictures in the current GOP, n<sub>B</sub>, is adjusted using eqn. 18. At block 538, the bit budget is adjusted using eqn. 19, and at block 540, the bit budget is adjusted again, using eqn. 19b, and processing continues at "B".
0120At block 508, if the next picture, e.g., the second picture in the GOP, is a B-picture, processing continues at block 542, where the actual distance M'' is determined using eqn. 12. At block 544, M is set to M''. At block 546, the GOP length is updated as <maths id="math0061" num=""><math display="inline"><mrow><mtext>N''=M[N'/M']</mtext></mrow></math><img file="EP1005232A2_D0062.tif" /></maths>. At block 548, the remaining number of B-pictures in the current GOP, n<sub>B</sub>, is adjusted using eqn. 18. At block 550, the bit budget is adjusted using eqn. 19, and processing continues at "B".
0121FIG. 4(c) illustrates a continuation of the coding method of FIG. 4(b) in accordance with the present invention. Processing continues at "B" from FIG. 4(b). At block 552, the target bit rate T is set using eqn. 6, and at block 554, a counter is set to one. At block 556, the next picture in the GOP is coded. At block 558, counter is incremented. "Counter" essentially tracks the position of the current picture in the GOP. At block 560, a determination is made as to whether the end of the current GOP has been reached. If so, a determination is made at box 562 as to whether counter=N''. If so, this indicates that N'' is the same as N, the actual GOP length. Essentially, the assumed GOP length N'' turned out to be correct. Processing continues at block 566, where the next GOP is coded.
0122If the condition at block 562 is false, this indicates that N''>N (e.g., the assumed GOP length N'' is too large), and the bit rate is adjusted at block 564 using eqn. 23. Processing continues at block 566, where the next GOP is coded.
0123If the end of the current GOP has not been reached yet at block 560, a determination is made at block 570 as to whether counter=N''. If not, process continues at block 556. If counter=N'' at block 570, this indicates that N''<N (e.g., the assumed GOP length N'' is too small). At block 572, the assumed GOP length N'' is incremented by M. at block 574, the bit budget is adjusted using eqn. 22, at block 576, the next M pictures are coded, and at block 578 a determination is made as to whether the end of the current GOP has been reached. If not, processing continues at block 572, where the assume GOP length N'' is again incremented by M.
0124When the end of the current GOP is reached, at block 578, processing continues at block 566, where the next GOP is coded.
0125The coding method of FIG. 4(c) can be understood further with reference to FIG. 5.
0126FIG. 5 illustrates an estimated GOP length N'' in accordance with the present invention. A sequence of pictures is shown generally, in display order, at 500. A first GOP, GOP(N,M) 520, begins at an I-picture 502, and the next GOP 580 begins at an I-picture 510. A subsequent GOP begins at an I-picture 515.
0127The estimated GOP length N'' 530 is equal to the actual GOP length N. However, the estimated GOP length N'' 540 is less than the actual GOP length N by two M distances 542 and 544. In particular, the estimated GOP length N'' 540 extends from the I-picture 502 to a P-picture 504, the M-distance 542 extends from the P-picture 504 to a P-picture 506, and the M-distance 544 extends from the P-picture 506 to the I-picture 510. The estimated GOP length N'' 550 extends from the I-picture 502 to a P-picture 512, and is therefore greater than the actual GOP length N. Generally, N'' should be selected initially as a multiple of the estimated distance between I and/or P-pictures.
0128A C-language pseudo code for the bit-allocation procedure, both with and without progressive refresh, is shown below. The same algorithm is represented by the flowchart in FIGs 7(a)-7(d). A single bitstream can switch arbitrarily between the progressive refresh and I-picture (non-progressive) refresh modes.<img file="EP1005232A2_D0063.tif" /><img file="EP1005232A2_D0064.tif" /><img file="EP1005232A2_D0065.tif" /><img file="EP1005232A2_D0066.tif" /><img file="EP1005232A2_D0067.tif" /><img file="EP1005232A2_D0068.tif" /><img file="EP1005232A2_D0069.tif" />
0129This pseudo-code is expressed in a flowchart 700 in FIGs 7(a)-7(d). Note that ni, np and nb are the same as n<sub>I</sub>, n<sub>P</sub> and n<sub>B</sub>, respectively, as used elsewhere.
0130Box 702 denotes searching for the video sequence header in order to obtain parameters necessary to begin transcoding. Initialization for the loop over transcoded pictures occurs here.
0131Box 704 is the call to "get_pict_header()" which consumes the picture header and all higher level syntax. The picture type (I, P or B picture) is returned. "GOP_flag" is true (non-zero) if a GOP header was encountered; "seq_hdr_flag" is true (non-zero) if a video sequence header occurred before the current coded picture and after the previous coded picture.
0132Box 706 tests "seq_hdr_flag". If true, "prog_refresh" is set to 1 (true) if the current picture is not an I-picture in box 708
0133Box 710 is the switch statement based on picture types. Although not shown in the code or flowchart, an MPEG-2 D-picture is treated like an I-picture in this algorithm.
0134If the previous picture type was not a B-picture (box 712), then a new value of M is determined from the temporal references. If the GOP is being shortened, the excess bits due to the expected GOP length are deleted from "R" and the new values of "M", "N", "n" are set (box 714). "R" is the target number of bits (not the actual number) remaining to code the rest of the GOP. If the actual GOP size is different, the difference in bits (positive or negative) remains in "R" and affects the target size for the next GOP. This forms a feedback loop to drive the average GOP size to "N*bit_rate() / frame_rate()".
0135The function "bit_rate()" returns the current target transcoder output bitrate which may change due to channel capacity or statistical multiplexing considerations. The function "frame_rate()" is the average coded frame rate, which is the frame rate specified in the video sequence header modified by the effects of the repeat_first_field flag in the various coded pictures. The quantity "bit_rate() / frame_rate()" denotes the desired current average coded picture size (in bits) to be output by the transcoder. It is an average because it does not consider the different MPEG picture types. Thus the target number of bits for a GOP, "N * bit_rate() / frame_rate()", is N (the GOP length in pictures) times the average picture size.
0136If the transcoder is operating in progressive refresh mode, this mode is disabled because the current picture is an I-picture and N is set to the initial guess for GOP length (boxes 716 and 718).
0137If the condition in 720 is true, the correct value of "N" has been used. In this case, R is updated with the number of bits needed for a new GOP of length N (box 722). If the 720 condition is false, the our previous estimate of "N" is wrong (the GOP is shorter than expected) and N and R are updated accordingly (box 724).
0138Box 726 resets the picture type down counters ("ni", "np", "nb") according to the GOP type, the number of picture to go in the GOP (n), calculates the normalized I-picture complexity (X) and updates the previous picture type.
0139Box 728 is the start of the P-picture case in the switch statement. If the previous picture was not a B-picture (box 730), then a new value of M (M'') is calculated from the temporal references. The difference between the two 10-bit temporal reference number will be negative a wrap around occurred; this is why 1024 is added. When no wrap around occurs, the 0x3FF, which is the hexadecimal representation of the binary number 1111111111, removes the 2<sup>10</sup> bit leaving the positive difference; otherwise the addition of 1024 make the negative difference positive and this result is not modified by the bit-wise AND operation. Since the previous picture was not a B-picture, potential corrections to "n" (number of pictures left in the GOP), "nb" (number of B-picture left in the GOP) and "R" (number of bits allocated for the remaining picture in the GOP) may be required.
0140If M has changed and the transcoder is not in progressive refresh mode (box 732), then corrections to "N", "n", "np", "nb" and "R" are made in box 734.
0141Box 736 updates M (previously calculated in M'').
0142If the end of GOP has been reached, (n less than or equal to zero - box 738), then the GOP is actually longer than expected. In this case, the values of "N", "R", "n", "ni", "np" and "nb" are updated to reflect an increase GOP length of M pictures (one P-picture and M-1 B-pictures) in box 740.
0143Box 742 calculates the normalized P-picture complexity, "X", and resets "prev_temp_ref" to be the current temporal reference.
0144For B-pictures, where the previous picture was not a B-picture (conditional in box 744), the new value of M (in M'') is computed. (see box 746) from the difference in temporal reference. This calculation provide for the possibility that the 10-bit temporal reference may have wrapped around (hence the +1024 and the mask to 10 bits).
0145If the value of M has changed (condition tested in box 748), then the state variables must be updated depending on "prog_refersh" (box 750). In the progressive refresh case, "nb" and "R" need to be modified (box 752). If I-picture refresh is in progress, "N", "np", "nb", "n" and "R" all need to change (box 754).
0146A new normalized complexity for B-picture is computed in box 758.
0147Following the switch statement, the target size, "T", for the next picture is calculated in box 760. This number is the intended size of the current picture when transcoded to the new bit rate. The actual size, returned by "transcode_picture()" is used to decrement R (see box 770). Following the calculation of "T", the number of picture remaining in the GOP, "n", and the number of pictures of the current type ("ni", "np" or "nb") must be decremented (see boxes 762 to 768).
3. DIFFERENCE IN TARGET RATES
0148The target bit rates for a picture determined with different sets of GOP parameters can be different (see equations 5 and 6). We now analyze the differences in target rates with and without a correct starting GOP structure. For sake of simplification in analysis, we assume that: <ul id="ul0004" list-style="none" compact="compact"><li>1. The transcoder can meet the target rate at each picture. This implies that the remaining number of bits at the end of a GOP is equal to zero, and that a GOP of <i>N</i> pictures is assigned exactly <maths id="math0062" num=""><math display="inline"><mrow><msub><mrow><mtext mathvariant="italic">R</mtext></mrow><mrow><mtext mathvariant="italic">GOP</mtext></mrow></msub><msub><mrow><mtext></mtext></mrow><mrow><mtext>,</mtext></mrow></msub><msub><mrow><mtext></mtext></mrow><mrow><mtext mathvariant="italic">N</mtext></mrow></msub><mtext> = </mtext><mtext mathvariant="italic">N</mtext><mtext>·(</mtext><mtext mathvariant="italic">bit_rate</mtext><mtext>/</mtext><mtext mathvariant="italic">frame_rate</mtext><mtext>)</mtext></mrow></math><img file="EP1005232A2_D0070.tif" /></maths> bits.</li><li>2. Within a GOP, all the pictures of the same type have the same complexity measure.</li><li>3. We have a correct <i>M</i> value. In fact, we can have a correct <i>M</i> right after reading the header of the second picture.</li></ul>
0149Note that the above assumptions are only for simplifying the analysis, and may not be 100% true for a real transcoder. For example, a transcoder may not 100% meet the target rate at a frame, and therefore at the end of a GOP, the remaining number of bits R may not be zero bits.
0150It has been shown that with conditions 1 and 2, equations (5) and (6) will be identical. That is, all the pictures of the same type in a GOP are assigned the same number of bits. We use eqn. (5) in our analysis of differences in target rates. Assume that a pre-compressed bitstream is coded with a set of GOP parameters as follows:<maths id="math0063" num=""><math display="block"><mrow><mtext mathvariant="italic">N</mtext><mtext>,</mtext><msub><mrow><mtext mathvariant="italic">M → N</mtext></mrow><mrow><mtext mathvariant="italic">I</mtext></mrow></msub><mtext>,</mtext><msub><mrow><mtext mathvariant="italic">N</mtext></mrow><mrow><mtext mathvariant="italic">P</mtext></mrow></msub><mtext>,</mtext><msub><mrow><mtext mathvariant="italic">N</mtext></mrow><mrow><mtext mathvariant="italic">B</mtext></mrow></msub></mrow></math><img file="EP1005232A2_D0071.tif" /></maths>
0151For comparison, we start transcoding of the pre-compressed bitstream with two different GOP structures, one with a correct GOP structure (I) and the second with an incorrect GOP structure (II) as follows:<maths id="math0064" num=""><math display="block"><mrow><mtable><mtr><mtd><mrow><mtable><mtr><mtd><mrow><mtext mathvariant="italic">Starting GOP</mtext><mtext>(</mtext><mtext mathvariant="italic">I</mtext><mtext>): </mtext><mtext mathvariant="italic">N</mtext><mtext>,</mtext><mtext mathvariant="italic">M</mtext><mtext> → </mtext><msub><mrow><mtext mathvariant="italic">N</mtext></mrow><mrow><mtext mathvariant="italic">I</mtext></mrow></msub><mtext>,</mtext><msub><mrow><mtext mathvariant="italic">N</mtext></mrow><mrow><mtext mathvariant="italic">P</mtext></mrow></msub><mtext>,</mtext><msub><mrow><mtext mathvariant="italic">N</mtext></mrow><mrow><mtext mathvariant="italic">B</mtext></mrow></msub></mrow></mtd></mtr><mtr><mtd><mrow><mtext mathvariant="italic">Starting GOP</mtext><mtext>(</mtext><mtext mathvariant="italic">II</mtext><mtext>): </mtext><mtext mathvariant="italic">N</mtext><mtext>',</mtext><mtext mathvariant="italic">M</mtext><mtext>' → </mtext><msub><mrow><mtext mathvariant="italic">N</mtext></mrow><mrow><mtext mathvariant="italic">I</mtext></mrow></msub><mtext>,</mtext><msub><mrow><mtext mathvariant="italic">N</mtext></mrow><mrow><mtext mathvariant="italic">P</mtext></mrow></msub><mtext>,</mtext><msub><mrow><mtext mathvariant="italic">N</mtext></mrow><mrow><mtext mathvariant="italic">B</mtext></mrow></msub></mrow></mtd></mtr></mtable></mrow></mtd></mtr></mtable></mrow></math><img file="EP1005232A2_D0072.tif" /></maths>
0152Let <i>T</i><sub><i>n</i></sub> and <i>T</i>'<sub><i>n</i></sub> be the target rates for frame <i>n</i> with GOP(I) and GOP(II), respectively. The difference between these two target rates is:<maths id="math0065" num="(24a)"><math display="block"><mrow><mtext>Δ=</mtext><msub><mrow><mtext mathvariant="italic">T</mtext></mrow><mrow><mtext mathvariant="italic">n</mtext></mrow></msub><mtext>-</mtext><mtext mathvariant="italic">T</mtext><msub><mrow><mtext>'</mtext></mrow><mrow><mtext mathvariant="italic">n</mtext></mrow></msub><mtext>=(1-</mtext><mfrac><mrow><mtext mathvariant="italic">T</mtext><msub><mrow><mtext>'</mtext></mrow><mrow><mtext mathvariant="italic">n</mtext></mrow></msub></mrow><mrow><msub><mrow><mtext mathvariant="italic">T</mtext></mrow><mrow><mtext mathvariant="italic">n</mtext></mrow></msub></mrow></mfrac><mtext>)·</mtext><msub><mrow><mtext mathvariant="italic">T</mtext></mrow><mrow><mtext mathvariant="italic">n</mtext></mrow></msub></mrow></math><img file="EP1005232A2_D0073.tif" /></maths><maths id="math0066" num=""><img file="EP1005232A2_D0074.tif" /></maths><maths id="math0067" num=""><img file="EP1005232A2_D0075.tif" /></maths>
0153To better understand this difference in target bit rate, let us examine two numerical examples. In the first example, we assume the starting GOP (II) is shorter than the actual GOP, i.e.,<maths id="math0068" num=""><math display="block"><mrow><mtable><mtr><mtd><mrow><mtable><mtr><mtd><mrow><mtext mathvariant="italic">N</mtext><mtext> = 15 </mtext><mtext mathvariant="italic">M</mtext><mtext> = 3 → </mtext><msub><mrow><mtext mathvariant="italic">N</mtext></mrow><mrow><mtext mathvariant="italic">I</mtext></mrow></msub><mtext> = 1 </mtext><msub><mrow><mtext mathvariant="italic">N</mtext></mrow><mrow><mtext mathvariant="italic">P</mtext></mrow></msub><mtext> = 4 </mtext><msub><mrow><mtext mathvariant="italic">N</mtext></mrow><mrow><mtext mathvariant="italic">B</mtext></mrow></msub><mtext> = 10</mtext></mrow></mtd></mtr><mtr><mtd><mrow><mtext mathvariant="italic">N</mtext><mtext>' = 12 </mtext><mtext mathvariant="italic">M</mtext><mtext>' = 3 → </mtext><mtext mathvariant="italic">N</mtext><msub><mrow><mtext>'</mtext></mrow><mrow><mtext mathvariant="italic">I</mtext></mrow></msub><mtext> = 1 </mtext><mtext mathvariant="italic">N</mtext><msub><mrow><mtext>'</mtext></mrow><mrow><mtext mathvariant="italic">p</mtext></mrow></msub><mtext> = 3 </mtext><mtext mathvariant="italic">N</mtext><msub><mrow><mtext>'</mtext></mrow><mrow><mtext mathvariant="italic">B</mtext></mrow></msub><mtext> = 8</mtext></mrow></mtd></mtr></mtable></mrow></mtd></mtr></mtable></mrow></math><img file="EP1005232A2_D0076.tif" /></maths>
0154If we set <maths id="math0069" num=""><math display="inline"><mrow><msub><mrow><mtext mathvariant="italic">K</mtext></mrow><mrow><mtext mathvariant="italic">I</mtext></mrow></msub><mtext> = </mtext><msub><mrow><mtext mathvariant="italic">K</mtext></mrow><mrow><mtext mathvariant="italic">P</mtext></mrow></msub><mtext> = 1</mtext></mrow></math><img file="EP1005232A2_D0077.tif" /></maths> and <i>K</i><sub><i>B</i></sub> = 1.4, and use the complexity measures as initialized in MPEG TM5, i.e.,<maths id="math0070" num="(25)"><math display="block"><mrow><mtable><mtr><mtd><mrow><mtable><mtr><mtd><mrow><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">I</mtext></mrow></msub><mtext> = 160·</mtext><mtext mathvariant="italic">bit_rate</mtext><mtext>/</mtext><mtext mathvariant="italic">frame_rate</mtext></mrow></mtd></mtr><mtr><mtd><mrow><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">P</mtext></mrow></msub><mtext> = 60·</mtext><mtext mathvariant="italic">bit_rate</mtext><mtext>/</mtext><mtext mathvariant="italic">frame_rate</mtext></mrow></mtd></mtr><mtr><mtd><mrow><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">B</mtext></mrow></msub><mtext> = 40·</mtext><mtext mathvariant="italic">bit</mtext><mtext>_</mtext><mtext mathvariant="italic">rate</mtext><mtext>/</mtext><mtext mathvariant="italic">frame</mtext><mtext>_</mtext><mtext mathvariant="italic">rate</mtext></mrow></mtd></mtr></mtable></mrow></mtd></mtr></mtable></mrow></math><img file="EP1005232A2_D0078.tif" /></maths> we have the difference between the two target rates as follows:<maths id="math0071" num="(26)"><math display="block"><mrow><mtext>Δ=</mtext><msub><mrow><mtext mathvariant="italic">T</mtext></mrow><mrow><mtext mathvariant="italic">n</mtext></mrow></msub><mtext>-</mtext><mtext mathvariant="italic">T</mtext><msub><mrow><mtext>'</mtext></mrow><mrow><mtext mathvariant="italic">n</mtext></mrow></msub><mtext>=</mtext><mfrac><mrow><mtext>(15-12)</mtext><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">I</mtext></mrow></msub><mtext> + (15·3-12·4)</mtext><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">P</mtext></mrow></msub><mtext> + (15·8-12·10)</mtext><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">B</mtext></mrow></msub><mtext>/1.4</mtext></mrow><mrow><mtext>(</mtext><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">I</mtext></mrow></msub><mtext> + 3</mtext><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">P</mtext></mrow></msub><mtext> + 8</mtext><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">B</mtext></mrow></msub><mtext>/1.4)</mtext></mrow></mfrac><mtext>·</mtext><mfrac><mrow><mtext>1</mtext></mrow><mrow><mtext>15</mtext></mrow></mfrac><mtext>·</mtext><msub><mrow><mtext mathvariant="italic">T</mtext></mrow><mrow><mtext mathvariant="italic">n</mtext></mrow></msub><mtext>=3.5%·</mtext><mtext mathvariant="italic">T</mtext></mrow></math><img file="EP1005232A2_D0079.tif" /></maths> Here, the target rate with <i>a priori</i> knowledge of the GOP structure is 3.5% higher than the rate without <i>a priori</i> knowledge of the GOP structure using the rate control system of the present invention. A shorter GOP results in smaller target rates for all three types of pictures.
0155In the second numerical example, the starting GOP (II) has a length longer than the actual one, i.e.,<maths id="math0072" num=""><math display="block"><mrow><mtable><mtr><mtd><mrow><mtable><mtr><mtd><mrow><mtext mathvariant="italic">N</mtext><mtext> = 15 </mtext><mtext mathvariant="italic">M</mtext><mtext> = 3 → </mtext><msub><mrow><mtext mathvariant="italic">N</mtext></mrow><mrow><mtext mathvariant="italic">I</mtext></mrow></msub><mtext> = 1 </mtext><msub><mrow><mtext mathvariant="italic">N</mtext></mrow><mrow><mtext mathvariant="italic">P</mtext></mrow></msub><mtext> = 4 </mtext><msub><mrow><mtext mathvariant="italic">N</mtext></mrow><mrow><mtext mathvariant="italic">B</mtext></mrow></msub><mtext> = 10</mtext></mrow></mtd></mtr><mtr><mtd><mrow><mtext mathvariant="italic">N</mtext><mtext>' = 18 </mtext><mtext mathvariant="italic">M</mtext><mtext>' = 3 → </mtext><mtext mathvariant="italic">N</mtext><msub><mrow><mtext>'</mtext></mrow><mrow><mtext mathvariant="italic">I</mtext></mrow></msub><mtext> = 1 </mtext><mtext mathvariant="italic">N</mtext><msub><mrow><mtext>'</mtext></mrow><mrow><mtext mathvariant="italic">p</mtext></mrow></msub><mtext> = 5 </mtext><mtext mathvariant="italic">N</mtext><msub><mrow><mtext>'</mtext></mrow><mrow><mtext mathvariant="italic">B</mtext></mrow></msub><mtext> = 12</mtext></mrow></mtd></mtr></mtable></mrow></mtd></mtr></mtable></mrow></math><img file="EP1005232A2_D0080.tif" /></maths>
0156The difference in target rates is<maths id="math0073" num="(27)"><math display="block"><mrow><mtext>Δ=</mtext><msub><mrow><mtext mathvariant="italic">T</mtext></mrow><mrow><mtext mathvariant="italic">n</mtext></mrow></msub><mtext>-</mtext><mtext mathvariant="italic">T</mtext><msub><mrow><mtext>'</mtext></mrow><mrow><mtext mathvariant="italic">n</mtext></mrow></msub><mtext>=</mtext><mfrac><mrow><mtext>(15-18)</mtext><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">I</mtext></mrow></msub><mtext> + (15·5-18·4)</mtext><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">P</mtext></mrow></msub><mtext> + (15·12-18·10)</mtext><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">B</mtext></mrow></msub><mtext>/1.4</mtext></mrow><mrow><mtext>(</mtext><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">I</mtext></mrow></msub><mtext> + 5</mtext><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">P</mtext></mrow></msub><mtext> + 12</mtext><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">B</mtext></mrow></msub><mtext>/1.4)</mtext></mrow></mfrac><mtext>·</mtext><mfrac><mrow><mtext>1</mtext></mrow><mrow><mtext>15</mtext></mrow></mfrac><mtext>·</mtext><msub><mrow><mtext mathvariant="italic">T</mtext></mrow><mrow><mtext mathvariant="italic">n</mtext></mrow></msub><mtext>=-1.7%</mtext></mrow></math><img file="EP1005232A2_D0081.tif" /></maths>
0157Here, the target rate with <i>a priori</i> knowledge of the GOP structure is 1.7% lower than the rate without <i>a priori</i> knowledge of the GOP structure using the rate control system of the present invention. A longer GOP results in the assignment of more bits to all the pictures of three types.
0158The differences in target bit rates will remain until the end of either the starting GOP or the actual GOP, depending on whether the starting GOP is shorter or longer than the actual GOP length.
0159If the starting GOP is shorter than the actual GOP (i.e. <i>N</i>' <<i>N</i>), at the end of the starting GOP, we will extend the GOP of <i>N</i>' pictures by <i>M</i> pictures with additional bits of <i>R</i><sub><i>GOP</i></sub><sub>,<i>M</i></sub>. The remaining number of bits is therefore equal to<maths id="math0074" num="(28)"><math display="block"><mrow><mtext mathvariant="italic">R</mtext><mtext> = </mtext><mtext mathvariant="italic">R</mtext><mtext>+</mtext><msub><mrow><mtext mathvariant="italic">R</mtext></mrow><mrow><mtext mathvariant="italic">GOP</mtext></mrow></msub><msub><mrow><mtext></mtext></mrow><mrow><mtext>,</mtext><mtext mathvariant="italic">M</mtext></mrow></msub><mtext> = </mtext><mtext mathvariant="italic">M</mtext><mtext>·</mtext><mfrac><mrow><mtext mathvariant="italic">bit_rate</mtext></mrow><mrow><mtext mathvariant="italic">frame_rate</mtext></mrow></mfrac></mrow></math><img file="EP1005232A2_D0082.tif" /></maths>
0160Note that we have assumed <i>R</i> = 0 at the end of the starting GOP of <i>N</i>' pictures. The additional <i>M</i> pictures actually form another GOP of <maths id="math0075" num=""><math display="inline"><mrow><mtext mathvariant="italic">N</mtext><mtext> = </mtext><mtext mathvariant="italic">M</mtext></mrow></math><img file="EP1005232A2_D0083.tif" /></maths> pictures with <i>N</i>'<sub><i>I</i></sub> = 0, <i>N</i>'<sub><i>p</i></sub> = 1 and <maths id="math0076" num=""><math display="inline"><mrow><mtext mathvariant="italic">N</mtext><msub><mrow><mtext>'</mtext></mrow><mrow><mtext mathvariant="italic">B</mtext></mrow></msub><mtext> = </mtext><mtext mathvariant="italic">M</mtext><mtext>-1</mtext></mrow></math><img file="EP1005232A2_D0084.tif" /></maths>, and a bit budget of <i>M</i>·(<i>bit_rate</i>/<i>frame_rate</i>) bits. The differences in target rates for the <i>M</i> additional pictures of either P or B type (see eqn. 24) can be simplified as:<maths id="math0077" num=""><img file="EP1005232A2_D0085.tif" /></maths>
0161For the first numerical example, the difference in target bit rates is:<maths id="math0078" num="(30)"><math display="block"><mrow><mtext>Δ=</mtext><msub><mrow><mtext mathvariant="italic">T</mtext></mrow><mrow><mtext mathvariant="italic">n</mtext></mrow></msub><mtext>-</mtext><mtext mathvariant="italic">T</mtext><msub><mrow><mtext>'</mtext></mrow><mrow><mtext mathvariant="italic">n</mtext></mrow></msub><mtext>=</mtext><mfrac><mrow><mtext>(-3)</mtext><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">I</mtext></mrow></msub><mtext> + (15-3·4)</mtext><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">P</mtext></mrow></msub><mtext> + (15·2-3·10)</mtext><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">B</mtext></mrow></msub><mtext>/1..4</mtext></mrow><mrow><mtext>(</mtext><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">P</mtext></mrow></msub><mtext> + 2</mtext><msub><mrow><mtext mathvariant="italic">X</mtext></mrow><mrow><mtext mathvariant="italic">B</mtext></mrow></msub><mtext>/1.4)</mtext></mrow></mfrac><mtext>·</mtext><mfrac><mrow><mtext>1</mtext></mrow><mrow><mtext>15</mtext></mrow></mfrac><mtext>·</mtext><msub><mrow><mtext mathvariant="italic">T</mtext></mrow><mrow><mtext mathvariant="italic">n</mtext></mrow></msub><mtext>=17.0%·</mtext><msub><mrow><mtext mathvariant="italic">T</mtext></mrow><mrow><mtext mathvariant="italic">n</mtext></mrow></msub></mrow></math><img file="EP1005232A2_D0086.tif" /></maths>
0162Here, the target rate with <i>a priori</i> knowledge of the GOP structure is 17.0% higher than the rate without <i>a priori</i> knowledge of the GOP structure using the rate control system of the present invention. Relatively more bits are assigned to the pictures of the extended GOP since relatively fewer bits were assigned to the previous pictures. If the extended GOP of <i>M</i> pictures still cannot end the actual GOP of <i>N</i> pictures, we repeat the above procedure until reaching the end of the actual GOP. The differences in target rates for the pictures in the extended GOPs of <i>M</i> pictures will remain the same because all the extended GOPs of <i>M</i> pictures have the same pattern of picture organization and the same bit budget.
0163At the end of the first actual GOP of <i>N</i> pictures and also at the end of the last extended GOP of <i>M</i> pictures, we have complete information about the actual GOP structure with the remaining number of bits <i>R</i> = 0. Hence, from the second GOP, there will be no difference in target rates. Two target rates with and without <i>a priori</i> knowledge of GOP structure using the rate control system of the present invention will be the same from the second actual GOP.
0164On the other hand, if the assumed starting GOP length is longer than the actual GOP length (i.e. <i>N</i>'><i>N</i>), at the end of the actual GOP, we have the complete information about the actual GOP structure, but the remaining number of bits <i>R</i> ≠ 0. That is, there will be some left over bits to allocate over the second (actual) GOP. Hence, instead of simply giving <i>R</i><sub><i>GOP</i></sub><sub>,<i>N</i></sub> bits to the second (actual) GOP, we have to adjust <i>R</i> as <maths id="math0079" num=""><math display="inline"><mrow><mtext mathvariant="italic">R</mtext><mtext> = 2</mtext><msub><mrow><mtext mathvariant="italic">R</mtext></mrow><mrow><mtext mathvariant="italic">GOP</mtext><mtext>,</mtext><mtext mathvariant="italic">N</mtext></mrow></msub><mtext> -(</mtext><msub><mrow><mtext mathvariant="italic">R</mtext></mrow><mrow><mtext mathvariant="italic">GOP</mtext></mrow></msub><msub><mrow><mtext></mtext></mrow><mrow><mtext>,</mtext><mtext mathvariant="italic">N</mtext><mtext>'</mtext></mrow></msub><mtext> - </mtext><mtext mathvariant="italic">R</mtext><mtext>)</mtext></mrow></math><img file="EP1005232A2_D0087.tif" /></maths> (see eqn. 23). The target bit rates with correct and incorrect starting GOP structures will still not be the same in the second (actual) GOP. The difference in target rates in the second (actual) GOP is<maths id="math0080" num="(31a)"><math display="block"><mrow><mtext>Δ = </mtext><msub><mrow><mtext mathvariant="italic">T</mtext></mrow><mrow><mtext mathvariant="italic">n</mtext></mrow></msub><mtext>-</mtext><mtext mathvariant="italic">T</mtext><msub><mrow><mtext>'</mtext></mrow><mrow><mtext mathvariant="italic">n</mtext></mrow></msub></mrow></math><img file="EP1005232A2_D0088.tif" /></maths><maths id="math0081" num=""><img file="EP1005232A2_D0089.tif" /></maths><maths id="math0082" num=""><img file="EP1005232A2_D0090.tif" /></maths>
0165Here, <i>R</i><sub><i>GOP</i></sub><sub>,<i>N</i>'</sub>-<i>R</i> is the number of bits assigned for the first <i>N</i> pictures, which is equal to:<maths id="math0083" num=""><img file="EP1005232A2_D0091.tif" /></maths>
0166Hence, the difference in target rate becomes:<maths id="math0084" num=""><img file="EP1005232A2_D0092.tif" /></maths>
0167By comparing equations (24) and (33), we should see the differences in target rates in the first and second actual GOP have the same absolute values, but different signs. In fact, a longer starting GOP uses more bits for the first actual GOP and therefore leaves less bits for the second actual GOP. For the second numerical example, the differences in target rates for pictures in the second actual GOP are:<maths id="math0085" num="(34)"><math display="block"><mrow><mtext>Δ=</mtext><msub><mrow><mtext mathvariant="italic">T</mtext></mrow><mrow><mtext mathvariant="italic">n</mtext></mrow></msub><mtext>-</mtext><mtext mathvariant="italic">T</mtext><msub><mrow><mtext>'</mtext></mrow><mrow><mtext mathvariant="italic">n</mtext></mrow></msub><mtext>=1.7%·</mtext><msub><mrow><mtext mathvariant="italic">T</mtext></mrow><mrow><mtext mathvariant="italic">n</mtext></mrow></msub></mrow></math><img file="EP1005232A2_D0093.tif" /></maths>
0168At the end of the second actual GOP, the remaining number of bits <i>R</i> = 0. The third actual GOP will be assigned <i>R</i><sub><i>GOP</i></sub><sub>,<i>N</i></sub> bits. From the third actual GOP, there will be no difference in target rates.
0169Target rates with respect to frame number for the two numerical examples were analyzed. The target rate with a correct starting GOP(<i>N</i> = 15, <i>M</i> = 3) was the benchmark for comparison. Comparative data was obtained for a starting GOP(<i>N</i> = 12, <i>M</i> = 3), and for a starting GOP(<i>N</i> = 18, <i>M</i> = 3). It was verified that all the pictures of the same type are assigned the same number of bits. Moreover, if the starting GOP is shorter than the actual GOP, fewer bits are assigned to the pictures before the end of the starting GOP, and more bits are assigned to the pictures of an extended GOP of <i>M</i> pictures. There is no difference in target rates starting from the second actual GOP.
0170On the other hand, if the starting GOP is longer than the actual one, slightly more bits are assigned to the pictures in the first actual GOP and fewer bits for the pictures in the second actual GOP. From the third actual GOP, the target rates are the same.
4. SIMULATION RESULTS
0171Simulations were conducted in evaluating the rate control system of the present invention. Test sequences were first coded at a bit rate of 15 Mbits/sec. with different sets of GOP parameters, as shown in Table I. The compressed bitstreams were then transcoded to a new rate of 3 Mbits/s with a starting GOP of <i>N</i> = 15 and <i>M</i> = 3. <tables id="tabl0002" num="0002"><table frame="all"><tgroup cols="4" colsep="1" rowsep="0"><colspec colnum="1" colname="col1" colwidth="39.37mm" /><colspec colnum="2" colname="col2" colwidth="39.37mm" /><colspec colnum="3" colname="col3" colwidth="39.37mm" /><colspec colnum="4" colname="col4" colwidth="39.37mm" /><thead valign="top"><row rowsep="1"><entry namest="col1" nameend="col1" /><entry namest="col2" nameend="col2" align="center">GOP1</entry><entry namest="col3" nameend="col3" align="center">GOP2</entry><entry namest="col4" nameend="col4" align="center">GOP3</entry></row></thead><tbody valign="top"><row><entry namest="col1" nameend="col1" align="left"><i>N</i></entry><entry namest="col2" nameend="col2" align="left">30</entry><entry namest="col3" nameend="col3" align="left">12</entry><entry namest="col4" nameend="col4" align="center">8</entry></row><row rowsep="1"><entry namest="col1" nameend="col1" align="left"><i>M</i></entry><entry namest="col2" nameend="col2" align="left">3</entry><entry namest="col3" nameend="col3" align="left">2</entry><entry namest="col4" nameend="col4" align="center">1</entry></row></tbody></tgroup></table></tables>
0172Target rates were analyzed for a correct starting set of GOP parameters, and for a starting GOP of <i>N</i> = 15 and <i>M</i> = 3. Note that, in practice, a transcoder (or encoder) may not always meet the target rates at each frame. Hence, the remaining number of bits at the end of each GOP, <i>R</i>, may not be zero. The non-zero <i>R</i> will be passed to the next GOP (see eqn. 8). This implies that GOPs may be given slightly different number of bits. It was seen that a longer starting GOP assigns more bits for the pictures in the first GOP, as compared with a correct starting GOP. Hence, fewer bits are left for the pictures in the second GOP. The target rates with correct and incorrect GOP starts converging at the third GOP. On the other hand, a shorter starting GOP results in smaller target rates for the first few pictures and then more bits for the rest in the first GOP. Target rates become close from the second GOP.
0173To prove the effectiveness of the bit rate allocation system under a variety of test conditions, a sequence was coded with various GOP lengths, e.g., <i>N</i> = 15, 12, 12, 18, 18, 15, 15, 9, 9, 30. Target rates were analyzed at each GOP for the correct GOP length, and by using the previous GOP structure length as the starting GOP length for each GOP. The results were close with this stress test.
0174FIG. 6 illustrates a rate control system in accordance with the present invention. Pre-compressed bitstreams, e.g., program 1 and program 2, are provided to respective transcoders 620 and 630. One or several bitstreams and transcoders may be present. The bitstreams may be received real-time at the transcoders from a remote source, such as via a satellite broadcast, or may be provided from a local storage medium, for example.
0175The transcoders 620, 630 partially decompress the respective bitstreams, and encode the partially decompressed data at a different data rate, typically by using a different quantization parameter, according to a target bit rate signal provided by a rate control processor 605.
0176The rate control processor 605 receives information from the transcoders, including the picture type of the current picture, and the quantization parameter used to encode the current picture. This information is processed as described herein to set the target bit rates. The rate control processor 605 may include known processing circuitry, such as a central processing unit (CPU) 612, and a memory 614. The memory 614 may be a non-volatile memory that stores data, for example, for providing the initial distances M' and N' discussed previously. The rate control processor includes computing circuitry for executing the C-language like pseudo-code discussed previously.
0177A user interface 608 may communicate with the rate control processor 605 to set the default distances M' and N' or other relevant parameters in the rate control process.
0178The transcoded data from the transcoders 620, 630 is provided to a multiplexer (MUX) 660, and then to an encoder buffer 670. A buffer fullness signal is provided from the encoder buffer 670 to the rate control processor 605. The encoded data is finally transmitted over a channel at its new transcoded data rate.
5. CONCLUSION
0179A novel rate control system suitable for use with a digital video transcoder, such as one conforming to the MPEG standard, has been presented. The proposed rate control causes no processing delay and requires no extra memory. It can start with any reasonable set of GOP parameters, and then gradually corrects them when necessary as successive pictures are coded. Hence, it is able to address changes in the GOP structure of pre-compressed bitstreams, for example, when switching channels, inserting commercials, and the like. It has been shown that the target rates with correct and incorrect starting GOP parameters will converge within one or two GOPs. The differences in target rates are within a fairly small margin. Moreover, similar target rates correspond to a similar PSNR or picture quality.
0180Although the invention has been described in connection with various specific embodiments, those skilled in the art will appreciate that numerous adaptations and modifications may be made thereto without departing from the spirit and scope of the invention as set forth in the claims.
Contents9
124 sheets
Sheet 1 Sheet 2 Sheet 3 Sheet 4 Sheet 5 Sheet 6 Sheet 7 Sheet 8 Sheet 9 Sheet 10 Sheet 11 Sheet 12 Sheet 13 Sheet 14 Sheet 15 Sheet 16 Sheet 17 Sheet 18 Sheet 19 Sheet 20 Sheet 21 Sheet 22 Sheet 23 Sheet 24 Sheet 25 Sheet 26 Sheet 27 Sheet 28 Sheet 29 Sheet 30 Sheet 31 Sheet 32 Sheet 33 Sheet 34 Sheet 35 Sheet 36 Sheet 37 Sheet 38 Sheet 39 Sheet 40 Sheet 41 Sheet 42 Sheet 43 Sheet 44 Sheet 45 Sheet 46 Sheet 47 Sheet 48 Sheet 49 Sheet 50 Sheet 51 Sheet 52 Sheet 53 Sheet 54 Sheet 55 Sheet 56 Sheet 57 Sheet 58 Sheet 59 Sheet 60 Sheet 61 Sheet 62 Sheet 63 Sheet 64 Sheet 65 Sheet 66 Sheet 67 Sheet 68 Sheet 69 Sheet 70 Sheet 71 Sheet 72 Sheet 73 Sheet 74 Sheet 75 Sheet 76 Sheet 77 Sheet 78 Sheet 79 Sheet 80 Sheet 81 Sheet 82 Sheet 83 Sheet 84 Sheet 85 Sheet 86 Sheet 87 Sheet 88 Sheet 89 Sheet 90 Sheet 91 Sheet 92 Sheet 93 Sheet 94 Sheet 95 Sheet 96 Sheet 97 Sheet 98 Sheet 99 Sheet 100 Sheet 101 Sheet 102 Sheet 103 Sheet 104 Sheet 105 Sheet 106 Sheet 107 Sheet 108 Sheet 109 Sheet 110 Sheet 111 Sheet 112 Sheet 113 Sheet 114 Sheet 115 Sheet 116 Sheet 117 Sheet 118 Sheet 119 Sheet 120 Sheet 121 Sheet 122 Sheet 123 Sheet 124
Every citation, both ways
| Document | Relation | Office | Cited during |
|---|---|---|---|
| US6823008B2 | Cited by | United States of America | Search report |
| US6687296B1 | Cited by | United States of America | Search report |
| WO2005006763A1 | Cited by | World Intellectual Property Organization (WIPO) | International search |
| US8050321B2 | Cited by | United States of America | Applicant |
| US8204134B2 | Cited by | United States of America | Applicant |
| EP1496707A1 | Cited by | European Patent Office (EPO) | Search report |
| WO0232141A3 | Cited by | World Intellectual Property Organization (WIPO) | International search |
| US7894521B2 | Cited by | United States of America | Applicant |
| EP1496707A1 | Cited by | European Patent Office (EPO) | Search report |
| WO03063505A1 | Cited by | World Intellectual Property Organization (WIPO) | International search |
| WO2005006763A1 | Cited by | World Intellectual Property Organization (WIPO) | International search |
| WO0232141A2 | Cited by | World Intellectual Property Organization (WIPO) | Search report |
| WO0232141A3 | Cited by | World Intellectual Property Organization (WIPO) | International search |
| WO0184905A2 | Cites | World Intellectual Property Organization (WIPO) | Search report |
| EP0700214A2 | Cites | European Patent Office (EPO) | Search report |
| WO9529559A1 | Cites | World Intellectual Property Organization (WIPO) | Search report |
| WO9844737A1 | Cites | World Intellectual Property Organization (WIPO) | Search report |
17 members in 8 offices; this record represents the family
Priority claims4
| Document | Office | Kind | Date |
|---|---|---|---|
| 198867 | United States of America | – | |
| 19886798 | United States of America | A | |
| 198867 | – | – | – |
| US19980198867 | – | – | – |
Members17
| Document | Office | Kind | |
|---|---|---|---|
| CA2286640A1 | Canada | A1 | |
| CN1255022A | China | A | |
| EP1005232A2This record | European Patent Office (EPO) | A2 | |
| KR20000035651A | Republic of Korea | A | |
| TW450006B | Taiwan Province of China | B | |
| US2002159523A1 | United States of America | A1 | |
| US6570922B1 | United States of America | B1 | |
| EP1005232A3 | European Patent Office (EPO) | A3 | |
| US7020198B2 | United States of America | B2 | |
| CN1269360C | China | C | |
| EP1005232B1 | European Patent Office (EPO) | B1 | |
| AT385650T | Austria | T | |
| ATE385650T1 | Austria | T1 | |
| DE69938093D1 | Germany | D1 | |
| KR100880055B1 | Republic of Korea | B1 | |
| DE69938093T2 | Germany | T2 | |
| CA2286640C | Canada | C |
72 legal events, as 7 offices reported them to INPADOC
Over the term
Point at a mark for the eventEvents
| Event | Code | Office | |
|---|---|---|---|
| Opt-out of the competence of the unified patent court (upc) registeredP01 | P01 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Patent expired after termination of 20 yearsExpiredPE20 | PE20 | GB | |
| Expiry of rightR071 | R071 | DE | |
| Annual fee paid to national office [announced via postgrant information from national office to epo]GrantedPGFP | PGFP | EP | |
| Annual fee paid to national office [announced via postgrant information from national office to epo]GrantedPGFP | PGFP | EP | |
| Annual fee paid to national office [announced via postgrant information from national office to epo]GrantedPGFP | PGFP | EP | |
| Fee paymentPLFP | PLFP | FR | |
| Change of applicant/patenteeR081 | R081 | DE | |
| Change of representativeR082 | R082 | DE | |
| Transmission of propertyTP | TP | FR | |
| Fee paymentPLFP | PLFP | FR | |
| Amendments to the register in respect of changes of name or changes affecting rights (sect. 32/1977)REGISTERED BETWEEN 20170831 AND 20170906732E | 732E | GB | |
| Fee paymentPLFP | PLFP | FR | |
| Fee paymentPLFP | PLFP | FR | |
| Change of representativeR082 | R082 | DE | |
| Change of representativeR082 | R082 | DE | |
| Transmission of propertyTP | TP | FR | |
| Change of applicant/patenteeR081 | R081 | DE | |
| Change of applicant/patenteeR081 | R081 | DE | |
| Change of applicant/patenteeR081 | R081 | DE | |
| Change of representativeR082 | R082 | DE | |
| Change of representativeR082 | R082 | DE | |
| Change of representativeR082 | R082 | DE | |
| Amendments to the register in respect of changes of name or changes affecting rights (sect. 32/1977)REGISTERED BETWEEN 20130919 AND 20130925732E | 732E | GB | |
| Change of representativeR082 | R082 | DE | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Patent ceasedCeasedPL | PL | CH | |
| No opposition filed against granted patent, or epo opposition proceedings concluded without decisionGrantedR097 | R097 | DE | |
| No opposition filedOpposition26N | 26N | EP | |
| No opposition filed within time limitOppositionORIGINAL CODE: 0009261PLBE | PLBE | EP | |
| Information on the status of an ep patent application or granted ep patentGrantedSTATUS: NO OPPOSITION FILED WITHIN TIME LIMITSTAA | STAA | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Fr: translation filedET | ET | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Nl: lapsed or annulled due to failure to fulfill the requirements of art. 29p and 29m of the patents actLapsedNLV1 | NLV1 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Dpma publication of mentioned ep patent grantGrantedR096 | R096 | DE | |
| Corresponds to:REF | REF | EP | |
| European patents granted designating irelandGrantedFG4D | FG4D | IE | |
| European patent takes effect as a national patent in ch/liEP | EP | CH | |
| Designated contracting statesAK | AK | EP | |
| European patent grantedGrantedFG4D | FG4D | GB | |
| (expected) grantORIGINAL CODE: 0009210GRAA | GRAA | EP | |
| Grant fee paidORIGINAL CODE: EPIDOSNIGR3GRAS | GRAS | EP | |
| Despatch of communication of intention to grant a patentORIGINAL CODE: EPIDOSNIGR1GRAP | GRAP | EP | |
| Applications withdrawn, deemed to be withdrawn, or refused after publication in hong kongWithdrawnWD | WD | HK | |
| First examination report despatched17Q | 17Q | EP | |
| Designation fees paidAKX | AKX | EP | |
| Request for examination filed17P | 17P | EP | |
| Designated contracting statesAK | AK | EP | |
| Request for extension of the european patentAX | AX | EP | |
| Information provided on ipc code assigned before grantRIC1 | RIC1 | EP | |
| Information provided on ipc code assigned before grantRIC1 | RIC1 | EP | |
| Information provided on ipc code assigned before grantRIC1 | RIC1 | EP | |
| Information provided on ipc code assigned before grantRIC1 | RIC1 | EP | |
| Search report despatchedORIGINAL CODE: 0009013PUAL | PUAL | EP | |
| Designated contracting statesAK | AK | EP | |
| Request for extension of the european patentAL;LT;LV;MK;RO;SIAX | AX | EP | |
| Public reference made under article 153(3) epc to a published international application that has entered the european phaseORIGINAL CODE: 0009012PUAI | PUAI | EP |
Numbers
- Publication
- 1005232
- Publication, DOCDB
- 1005232
- Publication, EPODOC
- EP1005232
- Application
- 99120843
- Application, DOCDB
- 99120843
- Application, EPODOC
- EP19990120843
Titles3
- German
- Steuerung der Datenrate für einen MPEG-Transcoder ohne a-priori Kenntnis des Bildtyps
- English
- Rate control for an MPEG transcoder without a priori knowledge of picture type
- French
- Contrôle de débit pour un transcodeur MPEG sans connaissance a-priori du type d'image
Classification
- CPC, 10
- H04N21/23655
- H04N19/40
- H04N19/159
- H04N19/172
- H04N19/61
- H04N19/114
- H04N19/152
- H04N19/157
- H04N19/177
- H04N19/577
- IPC, 5
- H04N7 26
- H04N7 46
- H04N7 50
- H04N21 2365
- H04N21 434
Designated states2
- Contracting states, 1
- Sweden
- Extension states, 1
- Slovenia