Picture encoding method, picture encoding apparatus and picture recording medium
Abstract
This invention employs a scheme to allow an input video signal to undergo encoding, e.g., predictive encoding, DCT processing quantization at fixed quantization step size and variable length encoding to generate first encoded data to determine (calculate) allocated code quantity every frame or every GOP on the basis of data quantity every predetermined time, e.g., every frame or every GOP of the first encoded data and total quantity of usable data to encode the input video signal every predetermined time on the basis of the allocated code quantity to generate second encoded data. Thus, variable rate encoding such that encoding rate changes every predetermined time is realized. As a result, even if pictures (frames) of complicated are successive, there is no possibility that quantization step size is caused to be large with respect to these pictures as in the conventional apparatus. Thus, uniform high picture quality can be obtained through the entirety. Further, since second encoded data obtained in a manner as described above has variable rate, in the case where such encoded data is recorded onto picture recording media, limited memory capacity can be effectively used, and recording time of picture recording media can be prolonged. In addition, picture data of high picture quality uniform over the entirety can be reproduced from the picture recording media.
Claims
exact text as granted — not AI-modified1. An encoding method, comprising the steps of:
receiving an input video signal; selectively encoding at least a portion of said input video signal by intra-frame encoding or predictive encoding to generate first encoded data, said predictive encoding including forward predictive encoding and backward predictive encoding; transform encoding said first encoded data to generate first coefficient data; quantizing said first coefficient data by a fixed step size; variable length encoding said first quantized data to generate a first bit stream; determining an encoding rate of said first bit stream every GOP as a function of a data quantity of intra-frame and forward-predictive encoded pictures only in the GOP; selectively encoding said input video signal by intra-frame or predictive encoding to generate second encoded data; transform encoding said second encoded data to generate second coefficient data; setting a variable step size according to the encoding rate determined every GOP; quantizing said second coefficient data by said variable step size; variable length encoding said second quantized data to generate a second bit stream; and outputting said second bit stream.
2. An encoding apparatus, comprising:
means for receiving an input video signal; means for selectively encoding at least a portion of said input video signal by intra-frame encoding or predictive encoding to generate first encoded data, said predictive encoding including forward predictive encoding and backward predictive encoding; means for transform encoding said first encoded data to generate first coefficient data; means for quantizing said first coefficient data by a fixed step size; means for variable length encoding said first quantized data to generate a first bit stream; means for determining an encoding rate of said first bit stream every GOP as a function of a data quantity of intra-frame and forward-predictive encoded pictures only in the GOP; means for selectively encoding said input video signal by intra-frame or predictive encoding to generate second encoded data; means for transform encoding said second encoded data to generate second coefficient data; means for setting a variable step size according to the encoding rate determined every GOP; means for quantizing said second coefficient data by said variable step size; means for variable length encoding said second quantized data to generate a second bit stream; and means for outputting said second bit stream.
3. A recording medium on which there is recorded a second bit stream obtained by:
receiving an input video signal; selectively encoding at least a portion of said input video signal by intra-frame encoding or predictive encoding to generate first encoded data, said predictive encoding including forward predictive encoding and backward predictive encoding; transform encoding said first encoded data to generate first coefficient data; quantizing said first coefficient data by a fixed step size; variable length encoding said first quantized data to generate a first bit stream; determining an encoding rate of said first bit stream every GOP as a function of a data quantity of intra-frame and forward-predictive encoded pictures only in the GOP; selectively encoding said input video signal by intra-frame or predictive encoding to generate second encoded data; transform encoding said second encoded data to generate second coefficient data; setting a variable step size according to the encoded data rate determined every GOP; quantizing said second coefficient data by said variable step size; variable length encoding said second quantized data to generate a second bit stream; and recording said second bit stream on said recording medium.
4. An encoding method, comprising the steps of:
receiving an input video signal; selectively encoding at least a portion of said input video signal by inter-frame encoding or predictive encoding to generate first encoded data, said predictive encoding including forward predictive encoding and backward predictive encoding; transform encoding said first encoded data to generate first coefficient data; quantizing said first coefficient data by a fixed step size; variable length encoding said first quantized data to generate a first bit stream; determining a difficulty of encoding said first bit stream every GOP based on inter-frame and forward-predictive encoded pictures only in the GOP; calculating an encoding rate from said difficulty of encoding determined every GOP; selectively encoding said input video signal by intra-frame or predictive encoding to generate second encoded data; transform encoding said second encoded data to generate second coefficient data; quantizing the second coefficient data by a step size set according to said calculated encoding rate; variable length encoding said second quantized data to generate a second bit stream; and outputting said second bit stream.
5. An encoding apparatus, comprising:
means for receiving an input video signal; means for selectively encoding at least a portion of said input video signal by intra-frame encoding or predictive encoding to generate first encoded data, said predictive encoding including forward predictive encoding and backward predictive encoding; means for transform encoding said first encoded data to generate first coefficient data; means for quantizing said first coefficient data by a fixed step size; means for variable length encoding said first quantized data to generate a first bit stream; means for determining a difficulty of encoding said first bit stream every GOP based on intra-frame and forward-predictive encoded pictures only in the GOP; means for calculating an encoding rate from said difficulty of encoding determined every GOP; means for selectively encoding said input video signal by intra-frame or predictive encoding to generate second encoded data; means for transform encoding said second encoded data to generate second coefficient data; means for quantizing the second coefficient data by a step size set according to said calculated encoding rate; means for variable length encoding said second quantized data to generate a second bit stream; and means for outputting said second bit stream.
6. A recording medium on which there is recorded a second bit stream obtained by:
receiving an input video signal; selectively encoding at least a portion of said input video signal by intra-frame encoding or predictive encoding to generate first encoded data, said predictive encoding including forward predictive encoding and backward predictive encoding; transform encoding said first encoded data to generate first coefficient data; quantizing said first coefficient data by a fixed step size; variable length encoding said first quantized data to generate a first bit stream; determining a difficulty of encoding said first bit stream every GOP based on intra-frame and forward-predictive encoded pictures only in the GOP; calculating an encoding rate from said difficulty of encoding determined every GOP; selectively encoding said input video signal by intra-frame or predictive encoding to generate second encoded data; transform encoding said second encoded data to generate second coefficient data; quantizing the second coefficient data by a step size set according to said calculated encoding rate; variable length encoding said second quantized data to generate a second bit stream; and recording said second bit stream on said recording medium.
7. An encoding method, comprising the steps of:
receiving an input video signal; selectively encoding at least a portion of said input video signal by intra-frame or predictive encoding to generate first encoded data representing intra-frame or predictive encoded pictures, respectively; transform encoding said first encoded data to generate first coefficient data; quantizing said first coefficient data by a fixed step size; variable length encoding said first quantized data to generate a first bit stream; counting a data quantity of said first bit stream every predetermined time to indicate a difficulty of encoding; determining said difficulty of encoding said first bit stream based on intra-frame and forward-predictive encoded pictures only; calculating an allocated code quantity for each unit of predetermined time as a function of said difficulty of encoding so that said allocated code quantity is set to be larger for complex pictures and smaller for simple pictures; selectively encoding said input video signal by intra-frame or predictive encoding to generate second encoded data; transform encoding said second encoded data to generate second coefficient data; quantizing said second coefficient data at a step size set in response to said allocated code quantity; variable length encoding said second quantized data to generate a second bit stream; and outputting said second bit stream.
8. A method according to claim 7 , wherein the fixed quantization step size equals one.
9. A method according to claim 7 , further comprising the step of storing said second bit stream in a buffer before it is output, wherein said quantization step size is further based on a quantity of said second bit stream stored in said buffer.
10. A method according to claim 7 , wherein said predetermined time is a frame.
11. An encoding apparatus, comprising:
means for receiving an input video signal; means for selectively encoding at least a portion of said input video signal by intra-frame or predictive encoding to generate first encoded data representing intra-frame or predictive encoded pictures, respectively; means for transform encoding said first encoded data to generate first coefficient data; means for quantizing said first coefficient data by a fixed step size; means for variable length encoding said first quantized data to generate a first bit stream; means for counting a data quantity of said first bit stream every predetermined time to indicate a difficulty of encoding; means for determining said difficulty of encoding said first bit stream based on intra-frame and forward-predictive encoded pictures only; means for calculating an allocated code quantity for each unit of predetermined time as a function of said difficulty of encoding so that said allocated code quantity is set to be larger for complicated pictures and smaller for simple pictures; means for selectively encoding said input video signal by intra-frame or predictive encoding to generate second encoded data; means for transform encoding said second encoded data to generate second coefficient data; means for quantizing said second coefficient data at a step size set in response to said allocated code quantity; means for variable length encoding said second quantized data to generate a second bit stream; and means for outputting said second bit stream.
12. An apparatus according to claim 11 , wherein the fixed quantization step size equals one.
13. An apparatus according to claim 11 , further comprising a buffer for storing said second bit stream before it is output, wherein said quantization step size is further based on a quantity of said second bit stream stored in said buffer.
14. An apparatus according to claim 11 , wherein said predetermined time is a frame.
15. A recording medium on which there is recorded a second bit stream obtained by:
receiving an input video signal; selectively encoding at least a portion of said input video signal by intra-frame or predictive encoding to generate first encoded data representing intra-frame or predictive encoded pictures, respectively; transform encoding said first encoded data to generate first coefficient data; quantizing said first coefficient data by a fixed step size; variable length encoding said first quantized data to generate a first bit stream; counting a data quantity of said first bit stream every predetermined time to indicate a difficulty of encoding; determining said difficulty of encoding said first bit stream based on intra-frame and forward-predictive encoded pictures only; calculating an allocated code quantity for each unit of predetermined time as a function of said difficulty of encoding so that said allocated code quantity is set to be larger for complicated pictures and smaller for simple pictures; selectively encoding said input video signal by intra-frame or predictive encoding to generate second encoded data; transform encoding said second encoded data to generate second coefficient data; quantizing said second coefficient data at a step size set in response to said allocated code quantity; variable length encoding said second quantized data to generate a second bit stream; and recording said second bit stream on said recording medium.
16. An encoding method for generating output encoded video data by encoding input video data, comprising the steps of:
receiving the code quantity of each picture of first encoded video data, said first encoded video data comprising each picture of the input video data encoded by a first encoder; acquiring a total quantity of usable data that is a function of the data capacity of a recording medium for recording the encoded output video data; determining a code quantity allocated to each picture based on the received code quantity and the total quantity of usable, the allocated code quantity being set larger for a complex picture and smaller for a simple picture, and the data quantity of the output encoded video data being equal to or less than the total quantity of the usable data; and generating the output encoded video data by encoding the input video data for each picture based on the determined code quantity.
17. An encoding method for generating output encoded video data by encoding input video data, comprising the steps of:
receiving from an encoding control circuit data representing difficulty by which each picture of first encoded video data was encoded, said first encoded video data comprising each picture of the input video data encoded by a first encoder; acquiring a total quantity of usable data that is a function of the data capacity of a recording medium for recording the encoded output video data; determining a code quantity allocated to each picture based on said difficulty and the total quantity of usable data, the allocated code quantity being set larger for a complex picture and smaller for a simple picture, and the data quantity of the output encoded video data being equal to or less than the total quantity of the usable data; and generating the output encoded video data by encoding the input video data for each picture based on the determined code quantity.
18. An encoding method for generating output encoded video data by encoding input video data, comprising the steps of:
receiving the code quantity of each group of pictures (GOP) of first encoded video data, said first encoded video data comprising each GOP of the input video data encoded by a first encoder; acquiring a total quantity of usable data that is a function of the data capacity of a recording medium for recording the encoded output video data; determining a code quantity allocated to each GOP based on the received code quantity and the total quantity of usable data, the allocated code quantity being set larger for a complex GOP and smaller for a simple GOP, and the data quantity of the output encoded video data being equal to or less than the total quantity of the usable data; and generating the output encoded video data by encoding the input video data for each GOP based on the determined code quantity.
19. An encoding method for generating output encoded video data by encoding input video data, comprising the steps of:
receiving from an encoding control circuit data representing difficulty by which each group of pictures (GOP) of first encoded video data was encoded, said first encoded video data comprising each GOP of the input video data encoded by a first encoder; acquiring a total quantity of usable data that is a function of the data capacity of a recording medium for recording the encoded output video data; determining a code quantity allocated to each GOP based on said difficulty and the total quantity of usable data, the allocated code quantity being set larger for a complex GOP and smaller for a simple GOP, and the data quantity of the output encoded video data being equal to or less than the total quantity of the usable data; and generating the output encoded video data by encoding the input video data for each GOP based on the determined code quantity.
20. A picture encoder to generate output encoded video data by encoding input video data, comprising:
a receiver configured to receive the code quantity of each picture of first encoded video data, said first encoded video data comprising each picture of the input video data encoded by a first encoder; means for acquiring a total quantity of usable data that is a function of the data capacity of a recording medium for recording the encoded output video data; a calculator configured to calculate a code quantity allocated to each picture based on the received code quantity and the total quantity of usable data, the allocated code quantity being set larger for a complex picture and smaller for a simple picture, and the data quantity of the output encoded video data being equal to or less than the total quantity of the usable data; and an output encoder configured to generate the output encoded video data by encoding the input video data for each picture based on the determined code quantity.
21. A picture encoder to generate output encoded video data by encoding input video data, comprising:
a receiver configured to receive from an encoding control circuit data representing difficulty by which each picture of first encoded video data was encoded, said first encoded video data comprising each picture of the input video data encoded by a first encoder; means for acquiring a total quantity of usable data that is a function of the data capacity of a recording medium for recording the encoded output video data; a calculator configured to calculate a code quantity allocated to each picture based on said difficulty and the total quantity of usable data, the allocated code quantity being set larger for a complex picture and smaller for a simple picture, and the data quantity of the output encoded video data being equal to or less than the total quantity of the usable data; and an output encoder configured to generate the output encoded video data by encoding the input video data for each picture based on the determined code quantity.
22. A picture encoder to generate output encoded video data by encoding input video data, comprising:
a receiver configured configuredto receiveto receive the code quantity of each group of pictures (GOP) of first encoded video data, said first encoded video data comprising each GOP of the input video data encoded by a first encoder; means for acquiring a total quantity of usable data that is a function of the data capacity of a recording medium for recording the encoded output video data; a calculator configured to calculate a code quantity allocated to each GOP based on the received code quantity and the total quantity of usable data, the allocated code quantity being set larger for a complex GOP and smaller for a simple GOP, and the data quantity of the output encoded video data being equal to or less than the total quantity of the usable data; and an output encoder configured to generate the output encoded video data by encoding the input video data for each GOP based on the determined code quantity.
23. A picture encoder to generate output encoded video data by encoding input video data, comprising:
a receiver configured to receive from an encoding control circuit data representing difficulty by which each group of pictures (GOP) of first encoded video data was encoded, said first encoded video data comprising each GOP of the input video data encoded by a first encoder; means for acquiring a total quantity of usable data that is a function of the data capacity of a recording medium for recording the encoded output video data; a calculator configured to calculate a code quantity allocated to each GOP based on said difficulty and the total quantity of usable data, the allocated code quantity being set larger for a complex GOP and smaller for a simple GOP, and the data quantity of the output encoded video data being equal to or less than the total quantity of the usable data; and an output encoder configured to generate the output encoded video data by encoding the input video data for each GOP based on the determined code quantity.Cited by (0)
No later patents cite this yet.
References (0)
No backward citations on record.