
Or with a dedicated tool: # apt install v4l-utilsĪnd then $ v4l2-ctl -list-formats-ext -d /dev/video0 Let ffmpeg list the formats: $ ffplay -f video4linux2 -list_formats all /dev/video0 Show the webcam’s image on screen, the ffmpeg way: $ ffplay -f video4linux2 /dev/video0 Note to self: I keep this in the misc/utils git repo, under surveillance-cam/. Overall verdict: It’s as good as the stability of the USB connection with the camera. The laptop’s clear advantage is when there’s a brief power outage. It depends much on how well ffmpeg performs on that platform. I’m not sure if a Raspberry Pi would be up for this job, even when connected to an external hard disk through USB. Having a laptop that I barely use, and a cheap e-bay web camera, I thought I set up something and let ffmpeg do the job.

This post was written by eli on August 20, 2022ĭue to an incident that is beyond the scope of this blog, I wanted to put a 24/7 camera that watched a certain something, just in case that incident repeated itself.
