SaveVideo is a small tool to capture and encoding videos. Supports simultaneous capturing from multiple Point Grey USB cameras. See this TechNote how to install the ptGrey cameras under linux.
Needs OpenCV, FlyCapSDK, ncurses to be installed. Edit the Makefile to your liking. Then
make
./saveVideo inputvideoName [CODEC WAITMSEC]
Supported codecs (via OpenCV): X264 MPEG DIVX
If WAITMSEC=0 no display is shown. Otherwise to number of msec to wait before refreshing. Press "q" (while pointing in the video) to exit and stop the video recording.
./saveVideo test.avi X264 500
Alternatively the capturing and writing can be used by OpenCV compatible cameras (such as webcams) without the FlyCapture SDK. For this one needs only OpenCV to be installed. The tool is called saveVideoBase
make -f MakefileBase
./saveVideoBase camidx inputvideoname [CODEC WAITSEC]
where camidx is the camera index to be used (usually 0 for the first camera installed on the system).