Wait, what if the user wants a more detailed Python example for automation? Maybe include a script that starts recording when motion is detected using a PiCamera library. But maybe that's too advanced. The user might just want the basics first. Probably better to keep it simple unless the user asks for more.
from picamera import PiCamera from time import sleep
Including a sample section on converting the video to MP4 using avconv since the original format might not be playable on all devices. Also, Python scripts for automation could be useful for advanced users.