摘要 |
<p>A method and apparatus for retrieving an I frame are disclosed in the present invention, wherein, the method includes: analyzing transport stream packets in a transport stream one by one, and if it is determined that the current transport stream packet is a video packet and includes a Packet Elementary Stream (PES) header, then making a determination according to data after the PES header in the current transport stream packet to locate initial and/or end locations of the I frame. In the present invention, without parsing syntax elements in H.264, such as a Sequence Parameter Set (SPS), a Picture Parameter Set (PPS), a slice etc., the location of the I frame can be positioned by simply comparing various Transport stream (TS) packets in the TS stream and making a determination, thus being able to find the initial and end locations of the I frame and being able to implement retrieving and positioning of the I frame quickly and accurately to provide a rapid response for user-related service applications.</p> |