开发者

detect key-frame in TS with H264 codec

Is there an easy not horrifyingly complex way to detect key-frame in an H264 video stream wrapped in a Transport Stream?

Also, if extra pr开发者_运维百科evious packets needed for the decoding of the key-frame is there a way to find those as well?


There is no super simple way of finding the I frame. You have to read the transport stream packets of the AVC stream. Then you have to assemble the packetized elementry stream packets (PES), strip the PES header and then identify the NAL type 5. So you will need an transport stream demuxer, find the beginning of PES packets and do minimal H.264 parsing. For demuxing you could look at this source code: http://tsdemuxer.googlecode.com/svn/trunk/v1.0/tsdemux.cpp

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜