A method for transcoding from an H.264 format to an MPEG-2 format is disclosed. The method generally comprises the steps of (A) decoding an input video stream in the H.264 format to generate a picture having a plurality of macroblock pairs that used an H.264 macroblock adaptive field/frame coding; (B) determining a mode indicator for each of the macroblock pairs; and (C) coding the macroblock pairs into an output video stream in the MPEG-2 format using one of (i) an MPEG-2 field mode coding and (ii) an MPEG-2 frame mode coding as determined from the mode indicators.
Legal claims defining the scope of protection, as filed with the USPTO.
1. A method for transcoding from an H.264 format to an MPEG-2 format, comprising the steps of: (A) decoding an input video stream in said H.264 format to generate a picture; (B) determining whether said picture had an H.264 picture adaptive field/frame coding in said input video stream; (C) adjusting an MPEG-2 group of pictures to utilize a least number of lowest priority frames among a plurality of MPEG-2 reference frames; and (D) coding said picture into an output video stream in said MPEG-2 format using an MPEG-2 frame mode coding in response to concluding that said picture has said H.264 picture adaptive field/frame coding.
2. The method according to claim 1 , further comprising the step of: determining an H.264 scan order of said picture, wherein said coding of said picture into said output video stream is seeded using said H.264 scan order.
3. The method according to claim 1 , further comprising the step of: mapping an H.264 16×16 macroblock partition in said picture to at least one of (i) an MPEG-2 16×16 partition and (ii) an MPEG-2 16×8 partition.
4. The method according to claim 1 , further comprising the step of: mapping an H.264 16×8 macroblock partition in said picture to an MPEG-2 16×8 partition.
5. The method according to claim 1 , further comprising the step of: combining a plurality of H.264 motion vectors from an H.264 macroblock partition in said picture to generate a seed motion vector of an MPEG-2 partition.
6. The method according to claim 5 , further comprising the step of: using said seed motion vector as a motion estimation center in a search of an MPEG-2 motion vector.
7. The method according to claim 1 , wherein said input video stream has an H.264 hierarchical group of pictures, the method further comprising the step of: prioritizing a plurality of frames in said H.264 hierarchical group of pictures from a highest priority to a lowest priority to use as said MPEG-2 reference frames.
8. The method according to claim 7 , wherein one or more of said frames highest in said H.264 hierarchical group of pictures receive said highest priority.
9. An apparatus comprising: a circuit configured to (i) decode an input video stream in an H.264 format to generate a picture, (ii) determine whether said picture had an H.264 picture adaptive field/frame coding in said input video stream, (iii) adjust an MPEG-2 group of pictures to utilize a least number of lowest priority frames among a plurality of MPEG-2 reference frames and (iv) code said picture into an output video stream in an MPEG-2 format using an MPEG-2 frame mode coding in response to concluding that said picture has said H.264 picture adaptive field/frame coding.
10. The apparatus according to claim 9 , wherein (i) said circuit is further configured to determine an H.264 scan order of said picture and (ii) said code of said picture into said output video stream is seeded using said H.264 scan order.
11. The apparatus according to claim 9 , wherein said circuit is further configured to map an H.264 16×16 macroblock partition in said picture to at least one of (i) an MPEG-2 16×16 partition and (ii) an MPEG-2 16×8 partition.
12. The apparatus according to claim 9 , wherein said circuit is further configured to map an H.264 16×8 macroblock partition in said picture to an MPEG-2 16×8 partition.
13. The apparatus according to claim 9 , wherein said circuit is further configured to combine a plurality of H.264 motion vectors from an H.264 macroblock partition in said picture to generate a seed motion vector of an MPEG-2 partition.
14. The apparatus according to claim 13 , wherein said circuit is further configured to use said seed motion vector as a motion compensation center of an MPEG-2 motion vector.
15. The apparatus according to claim 9 , wherein (i) said input video stream has an H.264 hierarchical group of pictures and (ii) the circuit is further configured to prioritize a plurality of frames in said H.264 hierarchical group of pictures from a highest priority to a lowest priority to use as said MPEG-2 reference frames.
16. The apparatus according to claim 15 , wherein one or more intra-frames used as reference frames receive said highest priority.
Cooperative Patent Classification codes for this invention. Click any code to explore related patents in that topic.
February 20, 2012
August 5, 2014
Browse 5M+ US patents with plain-English claim translations and AI-generated analysis.