Skip to content

qpycam-rtsp Command

The qpycam-rtsp command starts an RTSP streaming server, allowing remote access to the camera feed over a network.

Usage

To start streaming with default settings:

qpycam-rtsp --output_ip <YOUR_IP>

To see all available options:

qpycam-rtsp --help

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.

RTSP Streaming Options

Option Description
--output_ip (Required) RTSP server IP address.
--output_port RTSP server port (default: 8900).

Note

The qpycam-rtsp command does not display video or save files.

Example Usage

  1. Stream from the default CSI camera

    qpycam-rtsp --output_ip 192.168.1.100
    

    (Default RTSP URL: rtsp://192.168.1.100:8900/live)

  2. Stream from a USB camera (device ID 1)

    qpycam-rtsp -ct 1 -id 1 --output_ip 192.168.1.100
    
  3. Stream an RTSP input source to another RTSP server

    qpycam-rtsp -ct 2 -url rtsp://10.1.9.22:8554/input --output_ip 192.168.1.100 --output_port 8554