rpicam-vid

Capture a video using a Raspberry Pi camera. Some subcommands such as vlc have their own usage documentation. More information: https://www.raspberrypi.com/documentation/computers/camera_software.html#rpicam-vid.

rpicam-vid -t 10000 -o path/to/file.h264

vlc path/to/file.h264