I follow the example, "Generating a Movie File from a List of (JPEG) Images [Custom DataSource"
Generating a Movie File from a List of (JPEG) Images

I found example source code here...