Use FFmpeg Encode Images to an video
Library for Android Camera 1 and 2 APIs. Massively increase stability and reliability of photo and video capture on all Android devices.
Ruby interface to the ffmpeg C library. It is able to extract images from videos but do not allow to encode full video.
Use linuxtv.org video grabber example using libv4l to capture images from a USB camera on the Beaglebone Black (BBB) running Debian Linux. Also, a small python script is provided to convert PPM images to JPG format