- The script should be copied to the Raspberry Pi device
Run once:
chmod +x record_video.shProvide the recording duration in minutes:
./record_video.sh <minutes>Example (record 5 minutes):
./record_video.sh 5The script will create a timestamped video file in the same directory as the script:
video_YYYYMMDD_HHMMSS.mkv
On the Raspberry Pi or another machine with VLC installed:
vlc video_YYYYMMDD_HHMMSS.mkvOr open VLC and use Media → Open File.
- Video plays without errors
- Duration matches the requested time
- Resolution is 1920×1080
- Playback is smooth (no corruption or freezing)
If the video plays correctly in VLC, the capture is confirmed to be valid.