DriveWorks SDK Reference
4.0.0 Release
For Test and Development only

Image Capture Sample


The Image Capture sample shows how to record a video from an NVIDIA® CUDA® image or directly from the rendering window. To differentiate the two sources, the sample renders different text on the screen.

Running the Sample

The command line for the sample is:

./sample_image_capture --capture-bitrate=[integer]


    Defines the suggested bitrate for the output file. The actual bitrate might be different, depending on the input.
    For example, if the input is a black windows the output frame rate will be very close to 0.
    Default value: 10000000

    Specifies the path to the captured video.
    Default value: capture.h264

    Specifies the rate at which frames are captured.
    Default value: 30

    Specifies whether to capture the current window on a synthetic CUDA image.
    Default value: 1


To record with default parameters in a specific output file

./sample_image_capture --capture-file=path/to/captureOutput.h264


The sample creates a window and renders a coloured pattern and a floating "DriveWorks" text.

  • When recording directly from screen, the text is also visible in the recording.
  • When recording from a synthetic CUDA image, there is no rendered text.
image screen capture

Additional information

For more information, see Image .