Distance-measurement clip encoded as an animated GIF

SpecMP4GIF
File Size409kB413kB
Resolution320x240320x240
FPS50.8
Qualitymedium (crf=28)low (256 colors)
Audioyesno
SupportHTML5 browser with the good video decoderany browser from the 21st century.

Gif

ffmpeg -i input.avi -vf scale=320:-1 -r 0.8 -f image2pipe -vcodec ppm - | convert -delay 80 -loop 0 - gif:- | convert -layers Optimize - output.gif

(from StackExchange)

The output fps and delay values have to follow the rule $$100 * \text{output fps}=\text{delay}$$ to keep a realistic speed playback.

MP4

ffmpeg -i input.avi -vf scale=320:-1 -r 5 -c:v libx264 -preset slow -crf 28 -c:a copy -y output.mp4