DriveWorks SDK Reference
3.5.78 Release
For Test and Development only

/dvs/git/dirty/gitlab-master_av/dw/sdk/samples/sensors/camera/cameraserver_client/README.md
Go to the documentation of this file.
1 # Copyright (c) 2020-2021 NVIDIA CORPORATION. All rights reserved.
2 
3 @page dwx_cameraserver_client_sample Camera Server Client Camera Capture Sample
4 
5 @tableofcontents
6 
7 @note SW Release Applicability: This sample is available in both **NVIDIA DriveWorks** and **NVIDIA DRIVE Software** releases.
8 
9 @section dwx_cameraserver_client_sample_description Description
10 
11 The Camera Server Client Camera Capture Sample uses the GMSL camera interface, if available, on
12 NVIDIA DRIVE<sup>&trade;</sup> platforms. The sample opens an X-window
13 displaying the first camera's input on the selected camera group.
14 
15 @section dwx_cameraserver_client_sample_running Running the Sample
16 
17 @note Ensure @ref sensor_distribution_tool is running before launching this sample.
18 
19 Ensure a camera is connected to one of the NVIDIA DRIVE platform camera groups.
20 
21 The Camera Server Client Camera Capture Sample, sample_cameraserver_client, accepts the following parameters:
22 
23  ./sample_cameraserver_client --host=[ip_address]
24  --port=[tcp_port_num]
25  --link=[sibling-num]
26  --mode=[fifo|mailbox]
27  --fifo-size=[3..16]
28  --serializer-type=[h264|h265]
29  --serializer-bitrate=[integer]
30  --serializer-framerate=[integer]
31  --write-file=[path/to/output/file]
32 
33 Where:
34 
35  --host=[ip_address]
36  Specifies the host IP address of the camera server.
37  Default value: 127.0.0.1
38 
39  --port=[tcp_port_num]
40  Specifies the port # to connect to the server, each port number maps to one camera group.
41  Default value: 49252
42 
43  --link=[sibling-num]
44  Specifies the sibling index of the camera group to connect to.
45  Default value: 0
46 
47  --mode=[fifo|mailbox]
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.
51  Default value: fifo
52 
53  --fifo-size[3..16]
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.
56  Default value: 4
57 
58  --serializer-type=[h264|h265]
59  Represents the format of the video with two possible options:
60  h264 or uncompressed.
61  Default value: h264
62 
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
68 
69  --serializer-framerate=[integer]
70  Allows to override frame rate of the recorded video.
71  Default value: 30
72 
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.
76  Default value: none