1 # Copyright (c) 2020-2021 NVIDIA CORPORATION. All rights reserved.
3 @page dwx_cameraserver_client_sample Camera Server Client Camera Capture Sample
7 @note SW Release Applicability: This sample is available in both **NVIDIA DriveWorks** and **NVIDIA DRIVE Software** releases.
9 @section dwx_cameraserver_client_sample_description Description
11 The Camera Server Client Camera Capture Sample uses the GMSL camera interface, if available, on
12 NVIDIA DRIVE<sup>™</sup> platforms. The sample opens an X-window
13 displaying the first camera's input on the selected camera group.
15 @section dwx_cameraserver_client_sample_running Running the Sample
17 @note Ensure @ref sensor_distribution_tool is running before launching this sample.
19 Ensure a camera is connected to one of the NVIDIA DRIVE platform camera groups.
21 The Camera Server Client Camera Capture Sample, sample_cameraserver_client, accepts the following parameters:
23 ./sample_cameraserver_client --host=[ip_address]
28 --serializer-type=[h264|h265]
29 --serializer-bitrate=[integer]
30 --serializer-framerate=[integer]
31 --write-file=[path/to/output/file]
36 Specifies the host IP address of the camera server.
37 Default value: 127.0.0.1
40 Specifies the port # to connect to the server, each port number maps to one camera group.
44 Specifies the sibling index of the camera group to connect to.
48 Specifies the streaming mode. Available options: fifo/mailbox.
49 If "fifo" is selected, the server queues the frames up to fifo-size frames. If the client is still slow, drop frame happens.
50 If "mailbox" is selected, each readFrame call fetches the latest frame from the server, and the server will not queue frames.
54 Specifies the fifo size of the sensor. It has no effect when the client is connected in `mailbox` mode.
55 If it exceeds a certain threshold defined by the camera server, the size is cut off to a safer value.
58 --serializer-type=[h264|h265]
59 Represents the format of the video with two possible options:
63 --serializer-bitrate=[integer]
64 Allows to override the bitrate of the recorded video.
65 Note: An exact bitrate cannot be enforced, so the actual bitrate might
66 differ from the proposed one.
67 Default value: 8000000
69 --serializer-framerate=[integer]
70 Allows to override frame rate of the recorded video.
73 --write-file=[path/to/output/file]
74 Specifies the output file.
75 If --write-file is not provided, no file is written out on disk.