I am using ffmpeg with an exec node to capture stills from my Motion based cameras. Maybe you can adopt some of this.