Log in

View Full Version : How to find MPEG-2 keyframe in MPEG-TS?


maxlapshin
3rd June 2011, 15:37
I've parsed TS and get PES packets. What is the best way to find out if this PES packet is a keyframe or not?

mplayer somehow detects it and starts to decode only from keyframe.

kieranrk
4th June 2011, 23:48
random_access_flag should be set.

You should also parse the picture header in the MPEG-2 ES.

maxlapshin
10th June 2011, 12:04
Thank you!