Detect MPEG4/H264 I-Frame (IDR) in RTP stream
I need to detect MPEG4 I-Frame in RTP packet. I know how to remove RTP header and get the MPEG4 frame in it, but I can't figure out how to identify the I-Frame. Does it have a specific signature/header? Ok so I figured it out for h264 stream. How to detect I-Frame: remove RTP header check the value of the first byte in h264 payload if the value is 124 (0x7C) it is an I-Frame I cant figure it out for the MPEG4-ES stream... any suggestions? EDIT: H264 IDR This works for my h264 stream ( fmtp:96 packetization-mode=1; profile-level-id=420029; ). You just pass byte array that represents the h264