NVIDIA Tegra
DRIVE 5.0 Linux Open Source Software

Development Guide
5.0.10.3 Release


 
IPP Raw (nvmipp_raw)
 
Features
Constructing an IPP Pipeline
Threads
Configuration Parameters
Example
Parameter Map on DRIVE PX 2 (P3407)
Parameter Map on DRIVE PX 2 (P2379) Tegra A
Parameter Map on DRIVE PX 2 (P2379) Tegra B
Command Options
Required Commands
Optional Commands
Troubleshooting
Video Link Errors
Dark Videos
The NvMedia Raw sample application nvmipp_raw demonstrates how to create NvMedia IPP components to build one or more IPP pipelines to process raw image input from one or more cameras. It provides an example on how to build multiple concurrent IPP pipelines and render aggregate stream output. The output of IPP is sent through EGL Stream to an OpenGL consumer that applies local tone mapping. It operates by parsing command line arguments and a configuration file.
The application requires you to provide a command line input with:
A configuration file
Capture parameter sets
The number of cameras to aggregate
The Auto Control plugin type
The configuration file contains multiple capture parameter sets, one of which is used in the command line. The application parses configuration settings and other command line parameters, and builds the IPP pipeline with the required components. It starts the IPP pipeline to keep capturing frames and sends them to the EGL stream output for display.
The following diagram provides an overview of the process.
Features
The NvMedia RAW IPP sample application support requirements are as follows:
Handles the RAW 12 input format.
Provides parameter sets dvp-svc210-raw12-1280x1080-ab (for Conti cameras), and dvp-ar0231-raw12-1920x1208-ab (for AR0231 cameras). These parameter sets are in <drive-px2-autocruise | drive-px2-a | drive-px2-b>.conf.conf.
Constructing an IPP Pipeline
The NvMedia IPP Raw sample application provides an example on how to build IPP pipelines and process raw data from cameras. The diagram below describes typical IPP pipelines built for processing two cameras. One IPP pipeline is needed for each camera. Each IPP Raw pipeline consists of:
Image Capture Processing (ICP)
Image Sensor Control (ISC)
Image Signal Processor (ISP)
Output
Control Algorithm components
EGL producer and GL consumer are attached to the IPP pipeline output to provide streams for display.
The following diagram shows the system when two IPP pipelines are constructed.
Threads
When only one ICP is created and it is attached to all pipelines, each IPP component, except the Output component, is an individual thread. Besides IPP threads, three more threads are alive:
Main thread
EGL Producer
GL Consumer
Main Thread
The main thread:
Parses command line options
Constructs IPP pipelines
Starts EGL Producer and GL Consumer
After IPP pipelines are started, the main thread processes user input in interactive mode. When the user quits, the main thread stops the pipelines, and releases resources.
EGL Producer
The thread of the EGL Producer is defined as ipp_GetIPPOutputThreadFunc, which runs in a loop that performs the following functions:
1. Gets an IPP output, NvMediaIPPComponentGetOutput
2. Gets metadata for the current output, NvMediaIPPMetadataGetAddress
3. Posts metadata to EGL Stream, NvMediaEglStreamProducerPostMetaData
4. Posts the output image to EGL Stream, NvMediaEglStreamProducerPostImage
5. Retrieves 1 released image from EGL Stream, NvMediaEglStreamProducerGetImage
6. Returns the IPP output, NvMediaIPPComponentReturnOutput
GL Consumer
Like EGL Producer, GL Consumer also runs in a loop. It receives images in semi-planar YUV 4:2:0 format through EGL Stream. The metadata of the local tone mapping is received for each image and used to generate a three-dimensional table. The GL fragment shader applies local tone mapping by looking up the table through a 3D texture. After rendering is finished, the image is displayed. The consumer releases one image for each EGL Stream at the end of one iteration.
Auto Control Plugin
The Auto Control Plugin library provides a set of algorithms to estimate exposure settings and white balance gains for each frame to feed back to the sensor control. The NvMedia IPP pipeline must bind this library during the pipeline creation. An example simple plugin is provided as part of nvmipp_raw application, which can be used with --plugin as an argument in the command line
NvMedia Auto Control Plugin (libnvmedia_acp.so) provides 2 types of behavior:
1. Continuous Auto-Exposure: In this behavior, the Auto-Exposure is adjusted depending on the scene on every frame. This can be used by specifying --nvplugin
2. Bracket Auto-Exposure (BAE): In this behavior, the Auto-Exposure decides between day and night mode based on the scene. Each mode has a fixed exposure or a set of different exposures. Each exposure, in the set, is applied successively while capturing frames. This can be used by specifying --nvbracketae.
Note:
To check image quality, use the --nvplugin argument. The ‑‑plugin argument demonstrates how to write a simple auto control plugin using the NvMedia Plugin API.
Configuration Parameters
Each configuration file is required to start with a list of configuration parameters. These parameters are used by the application to determine the capture settings. The required parameters are:
; Interface: <type>
; Input Format: <format>
; Resolution: <resolution>
; CSI Lanes: <number of lanes>
; I2C Device: <device number>
; Sensor Address: <address>
Interface—specifies the CSI interface type used.
Input Format—specifies the format the sensor is capturing images.
Resolution—specifies the resolution the sensor is capturing. This includes embedded lines.
CSI Lanes—specifies the number of CSI lanes used.
I2C Device—specifies the ID of the I2C device that is connected to the aggregator.
Sensor—address specifies the address of the sensor used for I2C.
You can also provide optional configuration parameters:
; Surface Format: <surface format>
; Max9286 Address: <address>
Surface formatspecifies the CSI surface format. If this is not provided, the application chooses a default surface format based on the input format.
Max9286 Address—provides additional debug information by dumping the registers of the aggregator.
The following is an example configuration for the p2360 board:
; Interface: csi-ab
; Input Format: raw12
; Resolution: 1280x1084
; CSI Lanes: 4
; I2C Device: 2
; Sensor Address: 0x60
; Max9286 Address: 0x90
Example
This example is for OV10640 cameras. If you have OV10635 cameras, use nvmipp_yuv in place of nvmipp_raw.
To run the example
1. Enter the following on Tegra A:
./x11/nvmipp_raw -cf drive-px2-a.conf -c <param_set> -d 0 --nvplugin
2. While nvmipp_raw is running on Tegra A, you can simultaneously run nvmipp_raw on Tegra B:
./x11/nvmipp_raw -cf drive-px2-b.conf -c <param_set> -d 0 --nvplugin --slave
 
 
Parameter Map on DRIVE PX 2 (P3407)
The following table show the parameters map to the Camera CSI physical group on the DRIVE PX 2 (P3407) for the supported camera types.
Camera Group
Camera Type
Number of Cameras
Command Set
A
Maxim OV10640
1
./x11/nvmipp_raw -cf drive-px2-autocruise.conf -c dvp-ov10640-raw12-1280x1080-ab -d 0 --aggregate 1 --nvplugin
4
./x11/nvmipp_raw -cf drive-px2-autocruise.conf -c dvp-ov10640-raw12-1280x1080-ab -d 0 --aggregate 4 --nvplugin
Continental OV10640 (Module name: SVC210)
1
./x11/nvmipp_raw -cf drive-px2-autocruise.conf -c dvp-svc210-raw12-1280x1080-ab -d 0 --aggregate 1 --nvplugin
4
./x11/nvmipp_raw -cf drive-px2-autocruise.conf -c dvp-svc210-raw12-1280x1080-ab -d 0 --aggregate 4 --nvplugin
Continental OV10640 (Module name: SVC212)
1
./x11/nvmipp_raw -cf drive-px2-autocruise.conf -c dvp-svc212-raw12-1280x1080-ab -d 0 --aggregate 1 --nvplugin
4
./x11/nvmipp_raw -cf drive-px2-autocruise.conf -c dvp-svc212-raw12-1280x1080-ab -d 0 --aggregate 4 --nvplugin
AR0231
1
./x11/nvmipp_raw -cf drive-px2-autocruise.conf -c dvp-ar0231-raw12-1920x1208-ab -d 0 --aggregate 1 --nvplugin
4
./x11/nvmipp_raw -cf drive-px2-autocruise.conf -c dvp-ar0231-raw12-1920x1208-ab -d 0 --aggregate 4 --nvplugin
AR0231 RCCB
(Module name:
SS3322)
1
./x11/nvmipp_raw -cf drive-px2-autocruise.conf -c dvp-ss3322-rccb-raw12-1920x1208-ab -d 0 --aggregate 1 --nvplugin
4
./x11/nvmipp_raw -cf drive-px2-autocruise.conf -c dvp-ss3322-rccb-raw12-1920x1208-ab -d 0 --aggregate 4 --nvplugin
AR0231 RCCB
(Module name:
SS3323)
1
./x11/nvmipp_raw -cf drive-px2-autocruise.conf -c dvp-ss3323-rccb-raw12-1920x1208-ab -d 0 --aggregate 1 --nvplugin
4
./x11/nvmipp_raw -cf drive-px2-autocruise.conf -c dvp-ss3323-rccb-raw12-1920x1208-ab -d 0 --aggregate 4 --nvplugin
B
Maxim OV10640
1
./x11/nvmipp_raw -cf drive-px2-autocruise.conf -c dvp-ov10640-raw12-1280x1080-cd -d 0 --aggregate 1 --nvplugin
4
./x11/nvmipp_raw -cf drive-px2-autocruise.conf -c dvp-ov10640-raw12-1280x1080-cd -d 0 --aggregate 4 --nvplugin
Continental OV10640 (Module name: SVC210)
1
./x11/nvmipp_raw -cf drive-px2-autocruise.conf -c dvp-svc210-raw12-1280x1080-cd -d 0 --aggregate 1 --nvplugin
4
./x11/nvmipp_raw -cf drive-px2-autocruise.conf -c dvp-svc210-raw12-1280x1080-cd -d 0 --aggregate 4 --nvplugin
Continental OV10640 (Module name: SVC212)
1
./x11/nvmipp_raw -cf drive-px2-autocruise.conf -c dvp-svc212-raw12-1280x1080-cd -d 0 --aggregate 1 --nvplugin
4
./x11/nvmipp_raw -cf drive-px2-autocruise.conf -c dvp-svc212-raw12-1280x1080-cd -d 0 --aggregate 4 --nvplugin
AR0231
1
./x11/nvmipp_raw -cf drive-px2-autocruise.conf -c dvp-ar0231-raw12-1920x1208-cd -d 0 --aggregate 1 --nvplugin
4
./x11/nvmipp_raw -cf drive-px2-autocruise.conf -c dvp-ar0231-raw12-1920x1208-cd -d 0 --aggregate 4 --nvplugin
AR0231 RCCB
(Module name:
SS3322)
1
./x11/nvmipp_raw -cf drive-px2-autocruise.conf -c dvp-ss3322-rccb-raw12-1920x1208-cd -d 0 --aggregate 1 --nvplugin
4
./x11/nvmipp_raw -cf drive-px2-autocruise.conf -c dvp-ss3322-rccb-raw12-1920x1208-cd -d 0 --aggregate 4 --nvplugin
AR0231 RCCB
(Module name:
SS3323)
1
./x11/nvmipp_raw -cf drive-px2-autocruise.conf -c dvp-ss3323-rccb-raw12-1920x1208-cd -d 0 --aggregate 1 --nvplugin
4
./x11/nvmipp_raw -cf drive-px2-autocruise.conf -c dvp-ss3323-rccb-raw12-1920x1208-cd -d 0 --aggregate 4 --nvplugin
Parameter Map on DRIVE PX 2 (P2379) Tegra A
The following tabsle show the parameters map to the Camera CSI physical group on the DRIVE PX 2 for Tegra A for the supported camera types.
Camera Group
Camera Type
Number of Cameras
Command Set
A
Maxim OV10640
1
./x11/nvmipp_raw -cf drive-px2-a.conf -c dvp-ov10640-raw12-1280x1080-ab -d 0 --aggregate 1 --nvplugin
4
./x11/nvmipp_raw -cf drive-px2-a.conf -c dvp-ov10640-raw12-1280x1080-ab -d 0 --aggregate 4 --nvplugin
Continental OV10640 (Module name: SVC210)
1
./x11/nvmipp_raw -cf drive-px2-a.conf -c dvp-svc210-raw12-1280x1080-ab -d 0 --aggregate 1 --nvplugin
4
./x11/nvmipp_raw -cf drive-px2-a.conf -c dvp-svc210-raw12-1280x1080-ab -d 0 --aggregate 4 --nvplugin
Continental OV10640 (Module name: SVC212)
1
./x11/nvmipp_raw -cf drive-px2-a.conf -c dvp-svc212-raw12-1280x1080-ab -d 0 --aggregate 1 --nvplugin
4
./x11/nvmipp_raw -cf drive-px2-a.conf -c dvp-svc212-raw12-1280x1080-ab -d 0 --aggregate 4 --nvplugin
AR0231
1
./x11/nvmipp_raw -cf drive-px2-a.conf -c dvp-ar0231-raw12-1920x1208-ab -d 0 --aggregate 1 --nvplugin
4
./x11/nvmipp_raw -cf drive-px2-a.conf -c dvp-ar0231-raw12-1920x1208-ab -d 0 --aggregate 4 --nvplugin
AR0231 RCCB
(Module name:
SS3322)
1
./x11/nvmipp_raw -cf drive-px2-a.conf -c dvp-ss3322-rccb-raw12-1920x1208-ab -d 0 --aggregate 1 --nvplugin
4
./x11/nvmipp_raw -cf drive-px2-a.conf -c dvp-ss3322-rccb-raw12-1920x1208-ab -d 0 --aggregate 4 --nvplugin
AR0231 RCCB
(Module name:
SS3323)
1
./x11/nvmipp_raw -cf drive-px2-a.conf -c dvp-ss3323-rccb-raw12-1920x1208-ab -d 0 --aggregate 1 --nvplugin
4
./x11/nvmipp_raw -cf drive-px2-a.conf -c dvp-ss3323-rccb-raw12-1920x1208-ab -d 0 --aggregate 4 --nvplugin
B
Maxim OV10640
1
./x11/nvmipp_raw -cf drive-px2-a.conf -c dvp-ov10640-raw12-1280x1080-cd -d 0 --aggregate 1 --nvplugin
4
./x11/nvmipp_raw -cf drive-px2-a.conf -c dvp-ov10640-raw12-1280x1080-cd -d 0 --aggregate 4 --nvplugin
Continental OV10640 (Module name: SVC210)
1
./x11/nvmipp_raw -cf drive-px2-a.conf -c dvp-svc210-raw12-1280x1080-cd -d 0 --aggregate 1 --nvplugin
4
./x11/nvmipp_raw -cf drive-px2-a.conf -c dvp-svc210-raw12-1280x1080-cd -d 0 --aggregate 4 --nvplugin
Continental OV10640 (Module name: SVC212)
1
./x11/nvmipp_raw -cf drive-px2-a.conf -c dvp-svc212-raw12-1280x1080-cd -d 0 --aggregate 1 --nvplugin
4
./x11/nvmipp_raw -cf drive-px2-a.conf -c dvp-svc212-raw12-1280x1080-cd -d 0 --aggregate 4 --nvplugin
AR0231
1
./x11/nvmipp_raw -cf drive-px2-a.conf -c dvp-ar0231-raw12-1920x1208-cd -d 0 --aggregate 1 --nvplugin
4
./x11/nvmipp_raw -cf drive-px2-a.conf -c dvp-ar0231-raw12-1920x1208-cd -d 0 --aggregate 4 --nvplugin
AR0231 RCCB
(Module name:
SS3322)
1
./x11/nvmipp_raw -cf drive-px2-a.conf -c dvp-ss3322-rccb-raw12-1920x1208-cd -d 0 --aggregate 1 --nvplugin
4
./x11/nvmipp_raw -cf drive-px2-a.conf -c dvp-ss3322-rccb-raw12-1920x1208-cd -d 0 --aggregate 4 --nvplugin
AR0231 RCCB
(Module name:
SS3323)
1
./x11/nvmipp_raw -cf drive-px2-a.conf -c dvp-ss3323-rccb-raw12-1920x1208-cd -d 0 --aggregate 1 --nvplugin
4
./x11/nvmipp_raw -cf drive-px2-a.conf -c dvp-ss3323-rccb-raw12-1920x1208-cd -d 0 --aggregate 4 --nvplugin
C
Maxim OV10640
1
./x11/nvmipp_raw -cf drive-px2-a.conf -c dvp-ov10640-raw12-1280x1080-ef -d 0 --aggregate 1 --nvplugin
4
./x11/nvmipp_raw -cf drive-px2-a.conf -c dvp-ov10640-raw12-1280x1080-ef -d 0 --aggregate 4 --nvplugin
Continental OV10640 (Module name: SVC210)
1
./x11/nvmipp_raw -cf drive-px2-a.conf -c dvp-svc210-raw12-1280x1080-ef -d 0 --aggregate 1 --nvplugin
4
./x11/nvmipp_raw -cf drive-px2-a.conf -c dvp-svc210-raw12-1280x1080-ef -d 0 --aggregate 4 --nvplugin
Continental OV10640 (Module name: SVC212)
1
./x11/nvmipp_raw -cf drive-px2-a.conf -c dvp-svc212-raw12-1280x1080-ef -d 0 --aggregate 1 --nvplugin
4
./x11/nvmipp_raw -cf drive-px2-a.conf -c dvp-svc212-raw12-1280x1080-ef -d 0 --aggregate 4 --nvplugin
AR0231
1
./x11/nvmipp_raw -cf drive-px2-a.conf -c dvp-ar0231-raw12-1920x1208-ef -d 0 --aggregate 1 --nvplugin
4
./x11/nvmipp_raw -cf drive-px2-a.conf -c dvp-ar0231-raw12-1920x1208-ef -d 0 --aggregate 4 --nvplugin
AR0231 RCCB
(Module name:
SS3322)
1
./x11/nvmipp_raw -cf drive-px2-a.conf -c dvp-ss3322-rccb-raw12-1920x1208-ef -d 0 --aggregate 1 --nvplugin
4
./x11/nvmipp_raw -cf drive-px2-a.conf -c dvp-ss3322-rccb-raw12-1920x1208-ef -d 0 --aggregate 4 --nvplugin
AR0231 RCCB
(Module name:
SS3323)
1
./x11/nvmipp_raw -cf drive-px2-a.conf -c dvp-ss3323-rccb-raw12-1920x1208-ef -d 0 --aggregate 1 --nvplugin
4
./x11/nvmipp_raw -cf drive-px2-a.conf -c dvp-ss3323-rccb-raw12-1920x1208-ef -d 0 --aggregate 4 --nvplugin
Parameter Map on DRIVE PX 2 (P2379) Tegra B
The following table show the parameters map to the Camera CSI physical group on the DRIVE PX 2 for Tegra B for the supported camera types.
Camera Group
Camera Type
Number of Cameras
Command Set
A
Maxim OV10640
1
./x11/nvmipp_raw -cf drive-px2-b.conf -c dvp-ov10640-raw12-1280x1080-ab -d 0 --aggregate 1 --nvplugin
4
./x11/nvmipp_raw -cf drive-px2-b.conf -c dvp-ov10640-raw12-1280x1080-ab -d 0 --aggregate 4 --nvplugin
Continental OV10640 (Module name: SVC210)
1
./x11/nvmipp_raw -cf drive-px2-b.conf -c dvp-svc210-raw12-1280x1080-ab -d 0 --aggregate 1 --nvplugin
4
./x11/nvmipp_raw -cf drive-px2-b.conf -c dvp-svc210-raw12-1280x1080-ab -d 0 --aggregate 4 --nvplugin
Continental OV10640 (Module name: SVC212)
1
./x11/nvmipp_raw -cf drive-px2-b.conf -c dvp-svc212-raw12-1280x1080-ab -d 0 --aggregate 1 --nvplugin
4
./x11/nvmipp_raw -cf drive-px2-b.conf -c dvp-svc212-raw12-1280x1080-ab -d 0 --aggregate 4 --nvplugin
AR0231
1
./x11/nvmipp_raw -cf drive-px2-b.conf -c dvp-ar0231-raw12-1920x1208-ab -d 0 --aggregate 1 --nvplugin
4
./x11/nvmipp_raw -cf drive-px2-b.conf -c dvp-ar0231-raw12-1920x1208-ab -d 0 --aggregate 4 --nvplugin
AR0231 RCCB
(Module name:
SS3322)
1
./x11/nvmipp_raw -cf drive-px2-b.conf -c dvp-ss3322-rccb-raw12-1920x1208-ab -d 0 --aggregate 1 --nvplugin
4
./x11/nvmipp_raw -cf drive-px2-b.conf -c dvp-ss3322-rccb-raw12-1920x1208-ab -d 0 --aggregate 4 --nvplugin
AR0231 RCCB
(Module name:
SS3323)
1
./x11/nvmipp_raw -cf drive-px2-b.conf -c dvp-ss3323-rccb-raw12-1920x1208-ab -d 0 --aggregate 1 --nvplugin
4
./x11/nvmipp_raw -cf drive-px2-b.conf -c dvp-ss3323-rccb-raw12-1920x1208-ab -d 0 --aggregate 4 --nvplugin
B
Maxim OV10640
1
./x11/nvmipp_raw -cf drive-px2-b.conf -c dvp-ov10640-raw12-1280x1080-cd -d 0 --aggregate 1 --nvplugin
4
./x11/nvmipp_raw -cf drive-px2-b.conf -c dvp-ov10640-raw12-1280x1080-cd -d 0 --aggregate 4 --nvplugin
Continental OV10640 (Module name: SVC210)
1
./x11/nvmipp_raw -cf drive-px2-b.conf -c dvp-svc210-raw12-1280x1080-cd -d 0 --aggregate 1 --nvplugin
4
./x11/nvmipp_raw -cf drive-px2-b.conf -c dvp-svc210-raw12-1280x1080-cd -d 0 --aggregate 4 --nvplugin
Continental OV10640 (Module name: SVC212)
1
./x11/nvmipp_raw -cf drive-px2-b.conf -c dvp-svc212-raw12-1280x1080-cd -d 0 --aggregate 1 --nvplugin
4
./x11/nvmipp_raw -cf drive-px2-b.conf -c dvp-svc212-raw12-1280x1080-cd -d 0 --aggregate 4 --nvplugin
AR0231
1
./x11/nvmipp_raw -cf drive-px2-b.conf -c dvp-ar0231-raw12-1920x1208-cd -d 0 --aggregate 1 --nvplugin
4
./x11/nvmipp_raw -cf drive-px2-b.conf -c dvp-ar0231-raw12-1920x1208-cd -d 0 --aggregate 4 --nvplugin
AR0231 RCCB
(Module name:
SS3322)
1
./x11/nvmipp_raw -cf drive-px2-b.conf -c dvp-ss3322-rccb-raw12-1920x1208-cd -d 0 --aggregate 1 --nvplugin
4
./x11/nvmipp_raw -cf drive-px2-b.conf -c dvp-ss3322-rccb-raw12-1920x1208-cd -d 0 --aggregate 4 --nvplugin
AR0231 RCCB
(Module name:
SS3323)
1
./x11/nvmipp_raw -cf drive-px2-b.conf -c dvp-ss3323-rccb-raw12-1920x1208-cd -d 0 --aggregate 1 --nvplugin
4
./x11/nvmipp_raw -cf drive-px2-b.conf -c dvp-ss3323-rccb-raw12-1920x1208-cd -d 0 --aggregate 4 --nvplugin
C
Maxim OV10640
1
./x11/nvmipp_raw -cf drive-px2-b.conf -c dvp-ov10640-raw12-1280x1080-ef -d 0 --aggregate 1 --nvplugin
4
./x11/nvmipp_raw -cf drive-px2-b.conf -c dvp-ov10640-raw12-1280x1080-ef -d 0 --aggregate 4 --nvplugin
Continental OV10640 (Module name: SVC210)
1
./x11/nvmipp_raw -cf drive-px2-b.conf -c dvp-svc210-raw12-1280x1080-ef -d 0 --aggregate 1 --nvplugin
4
./x11/nvmipp_raw -cf drive-px2-b.conf -c dvp-svc210-raw12-1280x1080-ef -d 0 --aggregate 4 --nvplugin
Continental OV10640 (Module name: SVC212)
1
./x11/nvmipp_raw -cf drive-px2-b.conf -c dvp-svc212-raw12-1280x1080-ef -d 0 --aggregate 1 --nvplugin
4
./x11/nvmipp_raw -cf drive-px2-b.conf -c dvp-svc212-raw12-1280x1080-ef -d 0 --aggregate 4 --nvplugin
AR0231
1
./x11/nvmipp_raw -cf drive-px2-b.conf -c dvp-ar0231-raw12-1920x1208-ef -d 0 --aggregate 1 --nvplugin
4
./x11/nvmipp_raw -cf drive-px2-b.conf -c dvp-ar0231-raw12-1920x1208-ef -d 0 --aggregate 4 --nvplugin
AR0231 RCCB
(Module name:
SS3322)
1
./x11/nvmipp_raw -cf drive-px2-b.conf -c dvp-ss3322-rccb-raw12-1920x1208-ef -d 0 --aggregate 1 --nvplugin
4
./x11/nvmipp_raw -cf drive-px2-b.conf -c dvp-ss3322-rccb-raw12-1920x1208-ef -d 0 --aggregate 4 --nvplugin
AR0231 RCCB
(Module name:
SS3323)
1
./x11/nvmipp_raw -cf drive-px2-b.conf -c dvp-ss3323-rccb-raw12-1920x1208-ef -d 0 --aggregate 1 --nvplugin
4
./x11/nvmipp_raw -cf drive-px2-b.conf -c dvp-ss3323-rccb-raw12-1920x1208-ef -d 0 --aggregate 4 --nvplugin
Command Options
The command line options to run the script is as follows.
./nvmipp_raw -cf [filename] -c [name] --aggregate [n] --[plugin|nvplugin] [options]
Required Commands
Note:
You must specify --plugin or --nvplugin in the command line; you cannot use both. The --slave option is only applicable to Tegra B when both Tegra A and Tegra B simultaneously capture on the same CSI port.
The following table describes the required command line arguments.
Option
Parameter
Description
-cf
[filename]
Specifies the configuration file.
-c
[name]
Specifies the parameters set name.
In some cases, *.conf files specifies multiple parameter sets. This option identifies the set to use in the *.conf file specified with the -cf option.
--aggregate
[n]
Specifies the number of aggregated images.
By default, this option is set to 1.
--plugin
N/A
Specifies to use the sample IPP plugins (provided as part of the tests) for control algorithm components.
--nvplugin
N/A
Specifies to use NvMedia IPP plugins for control algorithm components.
--slave
N/A
Specifies that the application is running with a slave aggregator.
Optional Commands
The following table describes optional command line arguments.
Option
Parameter
Description
Default Settings
-h
N/A
Prints usage and help menu.
N/A
--ext_sync
[duty_ratio]
Enables external synchronization. (AR0231 or OV10635 sensors only.)
0.25
-v
[level]
Logging level =
0—Errors)
1—Warnings)
2—Information)
3—Debug)
If no level is provided, defaults to 3. If option is not provided, defaults to 0.
-lps
N/A
Lists the available configuration parameter sets.
N/A
--mailbox
N/A
Specifies to manage frames in Mailbox Mode.
Default: FIFO Mode.
-d
[id]
Enables the display. If provided, uses the display with the specified ID.
Default: Display is disabled.
If ID is not provided, the sample uses the first display available.
--show-timestamp
N/A
Shows the timestamp information. Use with -v option.
N/A
--show-metadata
N/A
Shows the metadata information. Use with -v option.
N/A
--cam_enable
[n]
Enable or disable camera [3210]; enable:1, disable:0
Default: 0001
--cam_mask
[n]
Mask or unmask camera [3210]; mask:1, unmask:0
Default: 0000
--csi_outmap
[n]
Sets CSI out order for camera[3210]; 0,1,2,3
Default: 3210
--vc_enable
N/A
Enables virtual channels for capturing the frames.
N/A
--nvbracketae
N/A
Uses NvMedia IPP bracketed auto-exposure plugin for control algorithm components.
N/A
--save-isp
N/A
Saves ISP output to the file specified by ‑f as prefix.
N/A
--save-raw
N/A
Saves ICP output to the file specified by -f as prefix.
N/A
Troubleshooting
Users of this application have encountered the following issues.
Video Link Errors
Several situations can cause generic video link errors.
Test Command:
./x11/nvmipp_raw -cf drive-px2-a.conf -c dvp-svc210-raw12-1280x1080-ab -d 0 --aggregate 1 --plugin
 
Error Messages:
nvmedia: ERROR: ConfigISC_m: Video Link(0) is not detected
nvmedia: ERROR: IPP_Init: Failed to create ISC Device
nvmedia: ERROR: IPP_Init: Failed
Possible causes include:One or more cameras are not connected to the right CSI port or not started at port numbered 0. The number of cameras connected must match the number specified in the --aggregate option.
The type of sensor connected and the configuration parameter specified in the command line conflict.
One of the cameras failed to start or is not functioning.
Dark Videos
This is image quality issue could be because of not using an auto-control plugin.
Example Test Command:
./x11/nvmipp_raw -cf drive-px2-a.conf -c dvp-svc210-raw12-1280x1080-ab -d 0 --aggregate 1
—Or—
Warning Message:
No autocontrol plugin, default settings will be used
This issue may be caused because no auto-control plugin is used with the application. Because there is no currently-defined auto control algorithm, fixed exposure and gains are applied for the sensor and thus video may look dark. To fix this issue, update the test command to include --nvplugin, and run again.