DriveWorks SDK Reference
4.0.0 Release
For Test and Development only

Camera Server Client Camera Capture Sample

Table of Contents


The Camera Server Client Camera Capture Sample uses the GMSL camera interface, if available, on NVIDIA DRIVE platforms. The sample opens an X-window displaying the first camera's input on the selected camera group.

Running the Sample

Ensure Camera Server Daemon Process Tool is running before launching this sample.

Ensure a camera is connected to one of the NVIDIA DRIVE platform camera groups.

The Camera Server Client Camera Capture Sample, sample_cameraserver_client, accepts the following parameters:

./sample_cameraserver_client --host=[ip_address]


    Specifies the host IP address of the camera server.
    Default value:

    Specifies the port # to connect to the server, each port number maps to one camera group.
    Default value: 49252   

    Specifies the sibling index of the camera group to connect to.
    Default value: 0

    Specifies the streaming mode. Available options: fifo/mailbox.
    If "fifo" is selected, the server queues the frames up to fifo-size frames. If the client is still slow, drop frame happens.
    If "mailbox" is selected, each readFrame call fetches the latest frame from the server, and the server will not queue frames.
    Default value: fifo

    Specifies the fifo size of the sensor. It has no effect when the client is connected in `mailbox` mode.
    If it exceeds a certain threshold defined by the camera server, the size is cut off to a safer value.
    Default value: 4

    Represents the format of the video with two possible options:
    h264 or uncompressed.
    Default value: h264

    Allows to override the bitrate of the recorded video.
    Note: An exact bitrate cannot be enforced, so the actual bitrate might
    differ from the proposed one.
    Default value: 8000000

    Allows to override frame rate of the recorded video.
    Default value: 30  

    Specifies the output file.
    If --write-file is not provided, no file is written out on disk.
    Default value: none