> > > Hi, > > > How to extract frames(I/B/P) in MPEG2 TS file and > > save > > > them to file? > > > > Use libavformat and an AVParser. > > Have a look at pktdumper.c ? Fran?ois.