Method and system for efficient video transcoding
AssigneeEcole De Technologie Superieure
InventorsIsabelle METOEVI, Stephane COULOMBE
Life of this patent
Estimating the term…
Abstract
A method and system for an efficient transcoding of a sequence of input images in a first format to a sequence of output images in a second format are described. The method utilizes the encoding block mode, the motion vectors and the residual information extracted during the decoding of the input image that are effectively reused to select an optimal transcoding block mode and to perform selective refinement of motion vectors. A corresponding system for video transcoding is also provided.
Claims22
A computerized method for transcoding a sequence of input images, each input image comprising one or more input macroblocks of pixels encoded in a first format into a sequence of output images, each output image comprising one or more output macroblocks of pixels encoded in a second format, the method comprising:
- (a) for an input macroblock (MB), identifying an encoding block mode, indicating size of partitions within the input MB, respective motion vectors associated with the partitions, and a residual information;
- (b) determining, based on said residual information, a limited set of candidate transcoding block modes for transcoding the input MB into the output MB, the output MB having one or more partitions, each transcoding block mode indicating size of the partitions within the output MB, the limited set comprising fewer than all possible transcoding block modes, comprising:
- (i) providing all possible transcoding block modes along with respective probabilities of being used in a transcoder;
- (ii) from the all possible transcoding block modes, selecting transcoding block modes that have a high probability;
- and
- (iii) among the transcoding block modes having the high probability, further selecting transcoding block modes based on a predetermined set of constraints for the input MB, to form the limited set;
- (c) for each candidate transcoding block mode in the limited set, selectively improving accuracy of the motion vectors for the input MB using the residual information for the input MB to produce motion vectors for said each candidate transcoding block mode;
- (d) selecting an optimal transcoding block mode from the limited set, which optimizes a characteristic of the output MB;
- and
- (e) encoding the decoded input MB into the output MB by using the optimal transcoding block mode and corresponding motion vectors.
The method of claim , further comprising:
- introducing a first category and a second category for the input MB, which respectively correspond to a first set of encoding block modes and a second set of encoding block modes;
- for the input MB in the first category:
- for transcoding block modes, belonging to a predetermined first list of transcoding block
- modes corresponding to the first set of the encoding block modes, increasing accuracy of the motion vectors associated with partitions whose residual energy is above a first energy threshold;
- and
- for transcoding block modes, belonging to a predetermined second list of transcoding block modes corresponding to the second set of the encoding block modes, increasing accuracy of the motion vectors for the input MB;
- and
- for the input MB in the second category, increasing accuracy of the motion vectors for the input MB provided a residual energy for the input MB exceeds a second energy threshold.
The method of claim , further comprising:
- introducing a first category and a second category for the input MB, which respectively correspond to a first set of encoding block modes and a second set of encoding block modes respectively;
- for the input MB in the first category, increasing accuracy of the motion vectors associated with those partitions for the input MB whose residual energy exceeds a first energy threshold;
- and
- for the input MB in the second category, increasing accuracy of all the motion vectors for the input MB provided the residual energy for the input MB exceeds a second energy threshold.
A system for transcoding a sequence of input images, each input image comprising one or more input macroblocks of pixels encoded in a first format into a sequence of output images, each output image comprising one or more output macroblocks of pixels encoded in a second format, the system comprising:
- a processor;
- and
- a non-transitory computer readable storage medium having computer readable instructions stored thereon for execution by the processor, causing the processor to:
- (a) for an input macroblock (MB), identify an encoding block mode, indicating size of partitions within the input MB, respective motion vectors associated with the partitions, and a residual information;
- (b) determine, based on said residual information, a limited set of candidate transcoding block modes for transcoding the input MB into the output MB, the output MB having one or more partitions, each transcoding block mode indicating size of the partitions within the output MB, the limited set comprising fewer than all possible transcoding block modes, comprising:
- (i) providing all possible transcoding block modes along with respective probabilities of being used in a transcoder;
- (ii) from the all possible transcoding block modes, selecting transcoding block modes that have a high probability;
- and
- (iii) among the transcoding block modes having the high probability, further selecting transcoding block modes based on a predetermined set of constraints for the input MB, to form the limited set;
- (c) for each candidate transcoding block mode in the limited set, selectively improve accuracy of the motion vectors for the input MB using the residual information for the input MB to produce motion vectors for said each candidate transcoding block mode;
- (d) select an optimal transcoding block mode from the limited set, which optimizes a characteristic of the output MB;
- and
- (e) encode the decoded input MB into the output MB by using the optimal transcoding block mode and corresponding motion vectors.
Dependencies are inferred from the claim text.