Recording videos while minimal movement with android phone

My goal is to create an app that measures movement through the built in accelerometer in the phone and records video while there is little movement. I am easily able to get accelerometer readings from tutorial example and I came across the Ketai library for starting with the camera. After going through the Ketai library, I am unsure about how to record a video as the tutorials only discuss taking photos and there does not appear to be a record video function?