Video encoding control method, video encoding apparatus and video encoding program
First Claim
1. A video encoding control method performed by a microprocessor operating on executable program steps stored in memory to generate a bit rate and to control the overflow and underflow in a decoder hypothetical buffer and to encode an input video signal, the method comprising the steps of:
- sequentially encoding each picture in an encoding-order picture group according to a predetermined encoding parameter, the encoding-order picture group including a predetermined number of pictures and being a collection of pictures successive in an encoding order;
checking if underflow has occurred in the hypothetical buffer based on bit rate information generated in encoding of each picture;
when the underflow has occurred in the hypothetical buffer, changing the encoding parameter in such a manner that a generated bit rate resulting from encoding is reduced and re-encoding the encoding-order picture group that is being encoded from its first picture using the changed encoding parameter,setting the retry point indicating a position of the picture from which the re-encoding starts based on a maximum inter-picture distance that is a maximum number of pictures capable of being traced back as re-encoding target pictures at the time of re-encoding; and
when encoding of the encoding-order picture group is completed, checking a residual bit rate of the hypothetical buffer, setting the retry point to a first picture in a next encoding-order picture group when the residual bit rate is equal to or greater than a predetermined residual bit rate threshold value, retaining unchanged the retry point when the residual bit rate of the hypothetical buffer is smaller than the predetermined residual bit rate threshold value, and setting the retry point to the first picture in the encoding-order picture group after encoding of the first picture of the next encoding-order picture group is completed without occurrence of the underflow of the hypothetical buffer, wherein;
the step of sequentially encoding includes sequentially encoding each picture in the encoding-order picture group according to an encoding parameter set according to a retry count indicating the number of times of re-encoding,the step of re-encoding includes incrementing the retry count when the underflow has occurred in the hypothetical buffer and changing the encoding parameter into an encoding parameter with which the generated bit rate resulting from encoding is reduced as a value of the retry count increases.
1 Assignment
0 Petitions
Accused Products
Abstract
In a video encoding control method of the present invention, each picture is encoded in units of encoding-order picture groups such as GOPs, and when CPB underflow has occurred, an encoding parameter such as a quantization parameter and filter strength of a pre-filter is changed in such a manner that a generated bit rate is reduced, and an encoding-order picture group that is being encoded is re-encoded from its first picture using the changed encoding parameter.
-
Citations
11 Claims
-
1. A video encoding control method performed by a microprocessor operating on executable program steps stored in memory to generate a bit rate and to control the overflow and underflow in a decoder hypothetical buffer and to encode an input video signal, the method comprising the steps of:
-
sequentially encoding each picture in an encoding-order picture group according to a predetermined encoding parameter, the encoding-order picture group including a predetermined number of pictures and being a collection of pictures successive in an encoding order; checking if underflow has occurred in the hypothetical buffer based on bit rate information generated in encoding of each picture; when the underflow has occurred in the hypothetical buffer, changing the encoding parameter in such a manner that a generated bit rate resulting from encoding is reduced and re-encoding the encoding-order picture group that is being encoded from its first picture using the changed encoding parameter, setting the retry point indicating a position of the picture from which the re-encoding starts based on a maximum inter-picture distance that is a maximum number of pictures capable of being traced back as re-encoding target pictures at the time of re-encoding; and when encoding of the encoding-order picture group is completed, checking a residual bit rate of the hypothetical buffer, setting the retry point to a first picture in a next encoding-order picture group when the residual bit rate is equal to or greater than a predetermined residual bit rate threshold value, retaining unchanged the retry point when the residual bit rate of the hypothetical buffer is smaller than the predetermined residual bit rate threshold value, and setting the retry point to the first picture in the encoding-order picture group after encoding of the first picture of the next encoding-order picture group is completed without occurrence of the underflow of the hypothetical buffer, wherein; the step of sequentially encoding includes sequentially encoding each picture in the encoding-order picture group according to an encoding parameter set according to a retry count indicating the number of times of re-encoding, the step of re-encoding includes incrementing the retry count when the underflow has occurred in the hypothetical buffer and changing the encoding parameter into an encoding parameter with which the generated bit rate resulting from encoding is reduced as a value of the retry count increases. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A video encoding apparatus in which a generated bit rate is controlled so that a hypothetical buffer in a decoder does not collapse and an input video signal is encoded, the apparatus comprising:
-
an encoding device that sequentially encodes each picture of an encoding-order picture group according to a predetermined encoding parameter, the encoding-order picture group including a predetermined number of pictures and being a collection of pictures successive in an encoding order; a buffer management device that checks if underflow has occurred in the hypothetical buffer based on bit rate information generated in encoding of each picture and output retry information when detecting that the underflow has occurred in the hypothetical buffer; a parameter adjustment device that changes the encoding parameter in such a manner that a generated bit rate resulting from encoding is reduced when the retry information is output and signal the encoding device of the changed encoding parameter; a buffer state prediction device that checks a residual bit rate of the hypothetical buffer when encoding of the encoding-order picture group is completed and determines whether the residual bit rate is equal to or greater than a predetermined residual bit rate threshold value; and a retry point management device that sets the retry point to a first picture in a next encoding-order picture group when the residual bit rate of the hypothetical buffer is equal to or greater than the predetermined residual bit rate threshold value according to a determination result of the buffer state prediction device, retaining unchanged the retry point when the residual bit rate of the hypothetical buffer is smaller than the predetermined residual bit rate threshold value, and to set the retry point to the first picture in the encoding-order picture group after encoding of the first picture in the next encoding-order picture group is completed without occurrence of underflow of the hypothetical buffer, wherein when the retry information is output, the encoding device re-encodes the input video signal from a first picture in the encoding-order picture group that is being encoded, using the encoding parameter changed by the parameter adjustment device, and the encoding device sequentially encodes each picture of the encoding-order picture group according to an encoding parameter set according to a retry count indicating the number of times of re-encoding; the video encoding apparatus includes a retry count management device that increments the retry count when the retry information is output and that decrements the retry count when the retry information output is deferred until encoding of a last picture in the encoding-order picture group is completed, the parameter adjustment device sets an encoding parameter with which a generated bit rate resulting from encoding is reduced as a value of the retry count increases, and notifies the encoding device of the set encoding parameter, the encoding parameter being determined according to the retry count, and the encoding device re-encodes the input video signal from the first picture in the encoding-order picture group set as the retry point using the encoding parameter changed by the parameter adjustment device when the retry information is output. - View Dependent Claims (9)
-
-
10. A video encoding apparatus that generates a bit rate and controls the overflow and underflow in a decoder hypothetical buffer and that encodes an input video signal, the apparatus comprising:
-
an encoding device that sequentially encodes each picture in an encoding-order picture group according to a predetermined encoding parameter, the encoding-order picture group including a predetermined number of pictures and being a collection of pictures successive in an encoding order; a buffer management device that checks if underflow has occurred in the hypothetical buffer based on bit rate information generated in encoding of each picture, and output retry information when detecting that the underflow has occurred in the hypothetical buffer; a parameter adjustment device that changes the encoding parameter in such a manner that a generated bit rate resulting from encoding is reduced when the retry information is output, and signal the encoding device of the changed encoding parameter; and a retry point management device that sets a retry point indicating a position of the picture from which the re-encoding starts based on a maximum inter-picture distance that is a maximum number of pictures capable of being traced back as re-encoding target pictures at the time of re-encoding, wherein the encoding device re-encodes the input video signal from the picture set as the retry point in the encoding-order picture group that is being encoded using the encoding parameter changed by the parameter adjustment device when the retry information is output.
-
-
11. A non-transitory computer-readable recording medium which stores video encoding program for causing a computer to execute a video encoding control method comprising the steps of:
-
sequentially encoding each picture in an encoding-order picture group according to a predetermined encoding parameter, the encoding-order picture group including a predetermined number of pictures and being a collection of pictures successive in an encoding order; checking if underflow has occurred in a hypothetical buffer based on bit rate information generated in encoding of each picture; when the underflow has occurred in the hypothetical buffer, changing the encoding parameter in such a manner that a generated bit rate resulting from encoding is reduced and re-encoding the encoding-order picture group that is being encoded from its first picture using the changed encoding parameter; setting the retry point indicating a position of the picture from which the re-encoding starts based on a maximum inter-picture distance that is a maximum number of pictures capable of being traced back as re-encoding target pictures at the time of re-encoding; and when encoding of the encoding-order picture group is completed, checking a residual bit rate of the hypothetical buffer, setting the retry point to a first picture in a next encoding-order picture group when the residual bit rate is equal to or greater than a predetermined residual bit rate threshold value, not changing the retry point when the residual bit rate of the hypothetical buffer is smaller than the predetermined residual bit rate threshold value, and setting the retry point to the first picture in the encoding-order picture group after encoding of the first picture of the next encoding-order picture group is completed without occurrence of the underflow of the hypothetical buffer, wherein; the step of sequentially encoding includes sequentially encoding each picture in the encoding-order picture group according to an encoding parameter set according to a retry count indicating the number of times of re-encoding, the step of re-encoding includes incrementing the retry count when the underflow has occurred in the hypothetical buffer and changing the encoding parameter into an encoding parameter with which the generated bit rate resulting from encoding is reduced as a value of the retry count increases.
-
Specification