Video encoding control method, video encoding apparatus, and video encoding program
First Claim
1. A video encoding control method which encodes an input video signal by controlling a generated bit rate so that a hypothetical buffer in a decoder does not overflow or underflow, the method comprising utilizing a processor and a memory device storing instructions causing the processor to execute the following operations:
- sequentially encoding each picture in an encoding-order picture group in accordance with a predetermined encoding parameter, the encoding-order picture group including a predetermined number of pictures and being a collection of successive pictures in the order of encoding;
calculating a quantization statistic of each picture based on quantization parameter information used to encode each picture each time each picture is encoded, and checking whether the quantization statistic exceeds a predetermined threshold value; and
if the quantization statistic exceeds the predetermined threshold value, changing the encoding parameter so that the generated bit rate resulting from encoding is reduced and performing re-encoding from a first picture of an encoding-order picture group that is being encoded using the changed encoding parameter,wherein when sequentially encoding, each picture in the encoding-order picture group is sequentially encoded in accordance with an encoding parameter set depending on a retry count indicating the number of times of the re-encoding, andwhen performing the re-encoding, the retry count is incremented if the quantization statistic exceeds the predetermined threshold value and the encoding parameter is changed to an encoding parameter with which the generated bit rate resulting from encoding is reduced as the value of the retry count increases.
1 Assignment
0 Petitions
Accused Products
Abstract
A video encoding control method encodes an input video signal by controlling a generated bit rate so a hypothetical buffer in a decoder does not overflow or underflow includes: sequentially encoding each picture in an encoding-order picture group in accordance with a predetermined encoding parameter, the encoding-order picture group including a predetermined number of pictures and being a collection of successive pictures in the order of encoding; calculating a quantization statistic of each picture based on quantization parameter information used to encode each picture each time each picture is encoded, and checking whether the quantization statistic exceeds a predetermined threshold value, and if the quantization statistic exceeds the predetermined threshold value, changing the encoding parameter so the generated bit rate resulting from encoding is reduced and performing re-encoding from a first picture of an encoding-order picture group that is being encoded using the changed encoding parameter.
66 Citations
19 Claims
-
1. A video encoding control method which encodes an input video signal by controlling a generated bit rate so that a hypothetical buffer in a decoder does not overflow or underflow, the method comprising utilizing a processor and a memory device storing instructions causing the processor to execute the following operations:
-
sequentially encoding each picture in an encoding-order picture group in accordance with a predetermined encoding parameter, the encoding-order picture group including a predetermined number of pictures and being a collection of successive pictures in the order of encoding; calculating a quantization statistic of each picture based on quantization parameter information used to encode each picture each time each picture is encoded, and checking whether the quantization statistic exceeds a predetermined threshold value; and if the quantization statistic exceeds the predetermined threshold value, changing the encoding parameter so that the generated bit rate resulting from encoding is reduced and performing re-encoding from a first picture of an encoding-order picture group that is being encoded using the changed encoding parameter, wherein when sequentially encoding, each picture in the encoding-order picture group is sequentially encoded in accordance with an encoding parameter set depending on a retry count indicating the number of times of the re-encoding, and when performing the re-encoding, the retry count is incremented if the quantization statistic exceeds the predetermined threshold value and the encoding parameter is changed to an encoding parameter with which the generated bit rate resulting from encoding is reduced as the value of the retry count increases. - View Dependent Claims (2, 3, 4)
-
-
5. A video encoding control method which encodes an input video signal by controlling a generated bit rate so that a hypothetical buffer in a decoder does not overflow or underflow, the method comprising:
-
sequentially encoding each picture in an encoding-order picture group in accordance with a predetermined encoding parameter, the encoding-order picture group including a predetermined number of pictures, with a first picture being an intra-predictive encoded picture, and being a collection of successive pictures in the order of encoding; calculating a quantization statistic of each picture based on quantization parameter information used to encode each picture each time each picture is encoded, and checking whether the quantization statistic exceeds a predetermined threshold value; if the quantization statistic exceeds the predetermined threshold value, changing the encoding parameter so that the generated bit rate resulting from encoding is reduced, and performing re-encoding from a first picture of the encoding-order picture group set as a retry point using the changed encoding parameter; 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 if the residual bit rate is larger than or equal to a predetermined residual bit rate threshold value, not changing the retry point if 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 next encoding-order picture group if the quantization statistic does not exceed the predetermined threshold value in encoding of the first picture in the next encoding-order picture group. - View Dependent Claims (7, 9, 11)
-
-
6. A video encoding control method which encodes an input video signal by controlling a generated bit rate so that a hypothetical buffer in a decoder does not overflow or underflow, the method comprising:
-
sequentially encoding each picture in an encoding-order picture group in accordance with a predetermined encoding parameter, the encoding-order picture group including a predetermined number of pictures and being a collection of successive pictures in the order of encoding; calculating a quantization statistic of each picture based on quantization parameter information used to encode each picture each time each picture is encoded, and checking whether the quantization statistic exceeds a predetermined threshold value; if the quantization statistic exceeds the predetermined threshold value, changing the encoding parameter so that the generated bit rate resulting from encoding is reduced, performing re-encoding from a picture in an encoding-order picture group that is being encoded set as a retry point using the changed encoding parameter; and setting the retry point so as to indicate a position of the picture from which the re-encoding starts based on a maximum inter-picture distance that is the number of maximum pictures capable of being traced back as re-encoding target pictures at the time of the re-encoding. - View Dependent Claims (8, 10, 12)
-
-
13. A video encoder which encodes an input video signal by controlling a generated bit rate so that a hypothetical buffer in a decoder does not overflow or underflow, comprising:
-
an encoding circuit which sequentially encodes each picture of an encoding-order picture group in accordance with a predetermined encoding parameter, the encoding-order picture group including a predetermined number of pictures and being a collection of successive pictures in the order of encoding; a quantization statistic calculation circuit which calculates a quantization statistic of each picture based on quantization parameter information used to encode each picture each time each picture is encoded, checks whether the quantization statistic exceeds a predetermined threshold value, and outputs retry information if detecting that the quantization statistic exceeds the predetermined threshold value; and a parameter adjustment circuit which, if the retry information is output, changes the encoding parameter so that the generated bit rate resulting from encoding is reduced and notifies the encoding circuit of the changed encoding parameter, wherein if the retry information is output, the encoding circuit re-encodes the input video signal from a first picture in an encoding-order picture group that is being encoded, using the encoding parameter changed by the parameter adjustment circuit, wherein the encoding circuit sequentially encodes each picture of the encoding-order picture group in accordance with an encoding parameter set depending on a retry count indicating the number of times of re-encoding, the video encoder includes a retry count management circuit which increments the retry count if the retry information is output and decrements the retry count if the retry information is not output until encoding of a last picture in the encoding-order picture group is completed, and the parameter adjustment circuit sets an encoding parameter with which the generated bit rate resulting from encoding is reduced as the value of the retry count increases, and notifies the encoding circuit of the set encoding parameter, the encoding parameter being determined depending on the retry count. - View Dependent Claims (14)
-
-
15. A video encoder which encodes an input video signal by controlling a generated bit rate so that a hypothetical buffer in a decoder does not overflow or underflow, comprising:
-
an encoding circuit which sequentially encodes each picture in an encoding-order picture group in accordance with a predetermined encoding parameter, the encoding-order picture group including a predetermined number of pictures and being a collection of successive pictures in the order of encoding; a quantization statistic calculation circuit which calculates a quantization statistic of each picture based on quantization parameter information used to encode each picture each time each picture is encoded, checks whether the quantization statistic exceeds a predetermined threshold value, and outputs retry information if detecting that the quantization statistic exceeds the predetermined threshold value; a parameter adjustment circuit which, if the retry information is output, changes the encoding parameter so that the generated bit rate resulting from encoding is reduced, and notifies the encoding circuit of the changed encoding parameter; a buffer state prediction circuit which 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 larger than or equal to a predetermined residual bit rate threshold value; and a retry point management circuit which, in accordance with a determination result of the buffer state prediction circuit, sets a retry point to a first picture in a next encoding-order picture group if the residual bit rate of the hypothetical buffer is larger than or equal to the predetermined residual bit rate threshold value, does not change the retry point if the residual bit rate of the hypothetical buffer is smaller than the predetermined residual bit rate threshold value, and sets the retry point to the first picture in the next encoding-order picture group if the quantization statistic does not exceed the predetermined threshold value in encoding of the first picture in the next encoding-order picture group, wherein if the retry information is output, the encoding circuit 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 circuit.
-
-
16. A video encoder which encodes an input video signal by controlling a generated bit rate so that a hypothetical buffer in a decoder does overflow or underflow, comprising:
-
an encoding circuit which sequentially encode each picture in an encoding-order picture group in accordance with a predetermined encoding parameter, the encoding-order picture group including a predetermined number of pictures and being a collection of successive pictures in the order of encoding; a quantization statistic calculation circuit which calculates a quantization statistic of each picture based on quantization parameter information used to encode each picture each time each picture is encoded, checks whether the quantization statistic exceeds a predetermined threshold value, and outputs retry information if detecting that the quantization statistic exceeds the predetermined threshold value; a parameter adjustment circuit which, if the retry information is output, changes the encoding parameter so that the generated bit rate resulting from encoding is reduced, and notifies the encoding circuit of the changed encoding parameter; and a retry point management circuit which sets a retry point indicating a position of a picture from which re-encoding starts based on a maximum inter-picture distance that is the number of maximum pictures capable of being traced back as re-encoding target pictures at the time of the re-encoding, wherein if the retry information is output, the encoding circuit re-encodes the input video signal from the picture set as the retry point in an encoding-order picture group that is being encoded using the encoding parameter changed by the parameter adjustment circuit.
-
-
17. A non-transitory computer-readable recording medium which stores a video encoding program for causing a computer to execute a video encoding control method comprising:
-
sequentially encoding each picture in an encoding-order picture group in accordance with a predetermined encoding parameter, the encoding-order picture group including a predetermined number of pictures and being a collection of successive pictures in the order of encoding; calculating a quantization statistic of each picture based on quantization parameter information used to encode each picture each time each picture is encoded, and checking whether the quantization statistic exceeds a predetermined threshold value; and if the quantization statistic exceeds the predetermined threshold value, changing the encoding parameter so that a generated bit rate resulting from encoding is reduced and performing re-encoding from a first picture of an encoding-order picture group that is being encoded using the changed encoding parameter, wherein when sequentially encoding, each picture in the encoding-order picture group is sequentially encoded in accordance with an encoding parameter set depending on a retry count indicating the number of times of the re-encoding, and when performing the re-encoding, the retry count is incremented if the quantization statistic exceeds the predetermined threshold value and the encoding parameter is changed to an encoding parameter with which the generated bit rate resulting from encoding is reduced as the value of the retry count increases.
-
-
18. A non-transitory computer-readable recording medium which stores a video encoding program for causing a computer to execute a video encoding control method comprising:
-
sequentially encoding each picture in an encoding-order picture group in accordance with a predetermined encoding parameter, the encoding-order picture group including a predetermined number of pictures, with a first picture being an intra-predictive encoded picture, and being a collection of successive pictures in the order of encoding; calculating a quantization statistic of each picture based on quantization parameter information used to encode each picture each time each picture is encoded, and checking whether the quantization statistic exceeds a predetermined threshold value; if the quantization statistic exceeds the predetermined threshold value, changing the encoding parameter so that a generated bit rate resulting from encoding is reduced, and performing re-encoding from a first picture of the encoding-order picture group set as a retry point using the changed encoding parameter; 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 if the residual bit rate is larger than or equal to a predetermined residual bit rate threshold value, not changing the retry point if 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 next encoding-order picture group if the quantization statistic does not exceed the predetermined threshold value in encoding of the first picture in the next encoding-order picture group.
-
-
19. A non-transitory computer-readable recording medium which stores a video encoding program for causing a computer to execute a video encoding control method comprising:
-
sequentially encoding each picture in an encoding-order picture group in accordance with a predetermined encoding parameter, the encoding-order picture group including a predetermined number of pictures and being a collection of successive pictures in the order of encoding; calculating a quantization statistic of each picture based on quantization parameter information used to encode each picture each time each picture is encoded, and checking whether the quantization statistic exceeds a predetermined threshold value; if the quantization statistic exceeds the predetermined threshold value, changing the encoding parameter so that a generated bit rate resulting from encoding is reduced, performing re-encoding from a picture in an encoding-order picture group that is being encoded set as a retry point using the changed encoding parameter; and setting the retry point so as to indicate a position of the picture from which the re-encoding starts based on a maximum inter-picture distance that is the number of maximum pictures capable of being traced back as re-encoding target pictures at the time of the re-encoding.
-
Specification