you'll need to post some of your code to see what is wrong.

First you need a bmap, that you can render the video to. It has to be a 16-bit image with no alpha channel.

are you using c-script or lite-c?