DriveWorks SDK Reference
4.0.0 Release
For Test and Development only

Camera Server Client with Raw Data Capture Sample

Table of Contents


The Camera Server Client with Raw Data Capture sample uses the GMSL camera interface available on NVIDIA DRIVE platforms. The sample creates a file for the RAW data from the first camera on the selected camera group, and writes it to a disk.

Running the Sample

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

The Camera Server Client with Raw Data Capture sample, sample_cameraserver_client_raw, accepts the following parameters:

./sample_cameraserver_client_raw --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 mapsto 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:
    raw or lraw.
    Default value: raw

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