The invention relates to an H.264 / AVC to H.265 / HEVC
transcoding method and transcoder based on an H.264 / AVC
macro block structure and texture. The method includes the steps of extracting inter-frame
macro block division mode information in a code
stream of H.264 / AVC standard codes, combining every four 16*16 H.264 / AVC
macro blocks to form one 32*32 large macro block, judging whether four division
modes of the four 16*16 H.264 / AVC macro blocks in each 32*32 large macro block are all 16*16 division
modes or not, if not, mapping the macro block division
modes to an H.265 / HEVC coding mode in a direct mapping mode, if yes, judging other modes of each 32*32 large macro block through a mode judging method based on texture, enabling the division mode selected through judgment to serve as the macro block division mode for H.265 / HEVC codes, and coding the code
stream of the H.265 / HEVC codes according to the macro block division modes of the H.265 / HEVC codes. By means of the H.264 / AVC to H.265 / HEVC
transcoding method and transcoder based on the H.264 / AVC macro
block structure and texture, by selecting and using the macro block division mode information in the code
stream of H.264 / AVC codes, the
transcoding speed is increased, and the coding effect is improved.