qpycam-record Command
The qpycam-record command allows users to record video from a selected camera source and save it as an MP4 file.
Usage
To start recording with default settings:
To see all available options:
Commonly Used Options
| Option | Description |
|---|---|
-ct, --camera_type |
Selects the camera type (0: CSI, 1: USB, 2: RTSP). |
-id, --device_id |
Specifies the device ID for USB cameras (default: 2). |
-url, --input_rtsp_url |
RTSP stream URL (only for RTSP cameras). |
-t, --timeout |
Sets the stream duration in ms (0 for infinite). |
For a full list of common options, refer to Common Options.
Recording Options
| Option | Description |
|---|---|
-o, --output_file |
Path to save the recorded video (MP4 format only). Default: test.mp4. |
Note
qpycam-record does not display the video feed. It only records and saves the file.
Ensure you have enough disk space for longer recordings.
Example Usage
-
Record video from the default CSI camera
(Default output file:
test.mp4) -
Record from a USB camera (device ID 1)
-
Record an RTSP stream
-
Record video for 10 seconds
-
Record with a custom resolution and frame rate