title: IP camera: open source software for recording H.264
body: <p>I have an IP camera (<a href="http://www.axis.com/products/cam_m1054/">Axis M1054</a>) and I would like to record video stream. I would probably start with continuous recording, but then I would like to switch to clips triggered by motion detection (with pre-rec of couple seconds before the trigger occured), recording being encoded in MPEG4 (H.264), not in MJPEG.</p>
  
  <p>Is there a free open source Linux software that can do it? I did not find anything by searching the Internet. Can you recommend something that works and you successfully use? Or am I stuck with commercial software? </p>
  
  <p>I have no problem replacing the camera if different model would work better with Linux.</p>