If picture header is codec dependent or there is some general location where we can find picture header in transport stream ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
What you’re trying to do is Start Codes Extraction.
If you have a raw Transport Stream with MPEG-2 video:
You need to look at the 4th byte of such PES packet to determine the StreamId. The PES Start Code looks like this
0x00 0x00 0x01 0xXY
The PES Start Code for a packet with a Picture header is
For H.264 I believe you would be interested in packets which have the Sequence Parameter Set (SPS) and/or the Picture Parameter Set (PPS) NAL units instead of the picture header.