Does anyone have the MPEG2-PS format documentation? I've been having a very hard time finding it. All I want to do is chop frames out of existing MPEG2 files (removing commercials...) From what I understand, if I drop sections between I-frames, I can do this safely. As in, if I had:
...IBBPBBPBBPIBBPBBPBBPI... I could make it ...II... to drop all the B and P frames safely without disrupting any B and P frames before the first I or after the final I. (I realize that it's actually IPBBPBBPBBI.) My trouble is that I need to drop the audio sections as well. And to do this, I need to parse sync information, and possibly rebuild the entire Program Stream. Does anything like this exist? I imagine a application that gives me a scroll bar, and "next/prev I-frame" buttons, and a "start/end cut" button, with the preview frame window, and I just go through the MPEG2 file marking all the commercials, and click "export", and I'm done. :P -- Kees Cook @outflux.net