Thank for reply
i use FFdshow to display frame type , it shows I P B frame in an Excel file .
But i want source code , ffshow is open source code program but it has too many source code on http://sourceforge.net/p/ffdshow-tryout/code/HEAD/tree/
and i need to find source code for my programs, but many code there , too hard and try to found it Hue hue .

Thank for reply
i use FFdshow to display frame type , it shows I P B frame in an Excel file .
But i want source code , ffshow is open source code program but it has too many source code on http://sourceforge.net/p/ffdshow-tryout/code/HEAD/tree/
and i need to find source code for my programs, but many code there , too hard and try to found it Hue hue .

This is why i pointed you to mpeg2enc - whis is very basic mpeg encoder and code is not ASM optimized thus is way easier to analyse it and modify or learn.

For structure analysis just use ffprobe (also open source) with simple comands you can extract all necessary informations about video structure also to csv file.