ElphelOgm is a command line program that receives
a realtime multicast UDP stream in RTP/MJPEG
format and saves it as JPEGs or in Ogg/MJPEG format with variable framerate. It has a fastidious algorithm with reordering UDP packets and detection of errors and losses.