DriveWorks SDK Reference
3.5.78 Release
For Test and Development only

/dvs/git/dirty/gitlab-master_av/dw/sdk/samples/image/image_capture/README.md
Go to the documentation of this file.
1 # Copyright (c) 2018-2019 NVIDIA CORPORATION. All rights reserved.
2 
3 @page dwx_image_capture_sample Image Capture Sample
4 @tableofcontents
5 
6 @note SW Release Applicability: This sample is available in both **NVIDIA DriveWorks** and **NVIDIA DRIVE Software** releases.
7 
8 @section dwx_image_capture_description Description
9 
10 The Image Capture sample shows how to record a video from an NVIDIA<sup>&reg;</sup> CUDA<sup>&reg;</sup> image or
11 directly from the rendering window. To differentiate the two sources, the sample renders different text on the screen.
12 
13 @section dwx_image_capture_running Running the Sample
14 
15 The command line for the sample is:
16 
17  ./sample_image_capture --capture-bitrate=[integer]
18  --capture-file=[path/to/output/h264/file]
19  --capture-framerate=[integer]
20  --capture-screen=[0|1]
21 
22 where
23 
24  --capture-bitrate=[integer]
25  Defines the suggested bitrate for the output file. The actual bitrate might be different, depending on the input.
26  For example, if the input is a black windows the output frame rate will be very close to 0.
27  Default value: 10000000
28 
29  --capture-file=[path/to/output/h264/file]
30  Specifies the path to the captured video.
31  Default value: capture.h264
32 
33  --capture-framerate=[integer]
34  Specifies the rate at which frames are captured.
35  Default value: 30
36 
37  --capture-screen=[0|1]
38  Specifies whether to capture the current window on a synthetic CUDA image.
39  Default value: 1
40 
41 @subsection dwx_image_capture_examples Example
42 
43 #### To record with default parameters in a specific output file
44 
45  ./sample_image_capture --capture-file=path/to/captureOutput.h264
46 
47 @section dwx_image_capture_output Output
48 
49 The sample creates a window and renders a coloured pattern and a floating "DriveWorks" text.
50 
51 - When recording directly from screen, the text is also visible in the recording.
52 - When recording from a synthetic CUDA image, there is no rendered text.
53 
54 ![image screen capture](image_capture.png)
55 
56 @section dwx_image_capture_more Additional information
57 
58 For more information, see @ref image_mainsection .