ffmpeg can access it as a directshow source. Pixel format is a bit messed up so you also have to do a grayscale video post effect with ffmpeg to get a mono video. I think ffmpegs libraries are trying to debayer the mono sensor otherwise.
Here's an example command, but it is for a different purpose and is saving a compressed untimed video. You can easily just save the raw rgb8 in an avi wrapper. There are a plethora of options but the ffmpeg wiki/docs is a bit hard to navigate sometimes. You can set framerate, video length, resolution, and even stream to a rtmp server.
ffmpeg -f dshow -s 1280x960 -vcodec rawvideo -pix_fmt rgb8 -i vid
eo="ASI120MM Camera (ZWO Design)"="Microphone (High Definition Aud" -vcode
c h264 -pix_fmt yuv420p -vf format=gray -b 3000k -bufsize 3000k -acodec aac -s
trict experimental -max_interleave_delta 0 test.mp4