Creating video from images using Microsoft media foundation

Is there a way to create video of pre defined duration from a set of images using Microsoft media foundation?

Say for example, I have 50 images, can Is there a way to use those 50 images and create a video of say 50 seconds or 100 seconds ?


Sink Writer API is exactly for this.


(source: s-msft.com)

You set it up and start feeding with images (such as RGB data) and associated time data. The respectively configured API will create a pipeline to accept images, convert and encode them as necessary, write into file such as MP4.

MSDN article links tutorial at the bottom of the page. You will find other questions on StackOverflow which also reference this tutorial.