using a series of bitmaps in memory as the source for a filter graph

Dear DirectShow forum,

I would like to create a series of bitmap files in memory, then use them as the source of a directshow filter graph to create a video file (one bitmap per frame). I understand the video end (use AVI encoder and FileWriter filter or ASFWriter filter), but how can I use bitmap files in memory as the source for a directshow filter graph I can't find any appropriate filter. Thanks in advance for your time.

Best regards,

wtrn


Answer this question

using a series of bitmaps in memory as the source for a filter graph

  • TheQuietShadow

    Well, I've written something that may be useful.

    It lets you specify the AM_MEDIA_TYPE, then calls your callback method to populate each sample.

    It's written in c++, but the samples showing how to use it are written in c#.

    Feel free to check it out. It's at http://DirectShowNet.SourceForge.Net in the Samples project (GSSF). Source is included.


  • Sean Connolly

    Hi LGS,

    That sounds very useful thank you! I will test it soon and report back.

    Kind regards,

    wtrn

  • djshades2004

    Hi Geraint Davies,

    Thanks for the info, I may have to write the filter based on the ball sample as you suggest, but is anybody aware of any standard filter which could be used for this task Like the samplegrabber filter but in reverse. I'm surprised that this task doesn't have an associated standard filter (I thought it would be a common requirement).

    Kind regards,

    wtrn

  • AcrossThePond

    Personally, I would build an image source filter. This would be based on the ball sample, with each FillBuffer returning the next image as an RGB32 buffer or something like that.

    G


  • using a series of bitmaps in memory as the source for a filter graph