Frame Grabbing Mpeg-2 Frames in VC++ to BMP

Hi Everyone,

Does anyone know of an aproach to capturing Mpeg2 frames to BMP in Windows Apparently I can't find any descent way to do this. It can be done with AVI's, but what about Mpeg's I need to find a way to capture the frames.

Thanks,
Jason :)



Answer this question

Frame Grabbing Mpeg-2 Frames in VC++ to BMP

  • Orchid2006

    Hello Jason, I know this isn't the best place to post this, but can you mention the way you said you could rip AVIs to BMPs please

    With Thanks,
                        Gal Beniamini.

  • Simon T

    Hi Jason,

    I think one way to do it is using DirectShow. Have a look into the docs of the DirectX 9.0 SDK (full version, not the updates, these seem not to include DirectShow). Look for the sample grabber filter.

    Of course you need a mpeg2 codec on you system. But with that you could build a filtergraph with the sample grabber that gets you the frames in RGB format. That can be stored in .bmp.

    Look at "Capturing an Image From a Still Image Pin" and "Using the Sample Grabber".

    Bernd

  • Frame Grabbing Mpeg-2 Frames in VC++ to BMP