Record a MJPG Stream using wget

This example shows how to record a MJPG stream with wget from an URL:

wget --save-headers -O output.mjpg

With this invocation wget receives the MJPG stream including the initial header. The frame rate is actually stored nowhere, so any replay or conversion program used afterwards needs to know the intended frame rate by some other means.