where is $PDK_INSTALL_DIR/samples/nvmedia/nvsipl/query/database/?

I tested SIPL sample on AGX device, I have saved output files to RAW,but I cannot replay it.
I noticed a sentence in document as below:

-i “file” Enables simulator mode testing and specify the RAW file to be used as input source for the SIPL library. If enabled, only one module must be enabled using -link-enable-masks. Simulator mode is disabled.

I forced db.isSimulatorModeEnabled to be assigned 0 but failed.
I want to change configuration in database to enable simolator mode, but I cannot find $PDK_INSTALL_DIR/samples/nvmedia/nvsipl/query/database on my host. Where is it? and how to enable Simulator mode?

The following information is my directories on host:

yangkm@yangkm-pc:~/nvidia/nvidia_sdk/DRIVE_Software_9.0_Linux_hyperion_E3550/DriveSDK/drive-t186ref-linux/samples/nvmedia/nvsipl/query$ ls
include

Dear kmyang,

Could you please refer to below link and Example 4 for your topic? Thanks.

https://docs.nvidia.com/drive/active/5.1.0.2L/nvvib_docs/index.html#page/DRIVE_OS_Linux_SDK_Development_Guide%2FNvMedia%2Fnvmedia_nvsipl_camera.html

Example 4: File input mode
$./nvsipl_camera -c “SF3324_DPHY_x2” --link-enable-masks “0x0001 0x0000 0x0000 0x0000” -i <raw_file_name> -d 0 -w 1

Hi SteveNV,

Yes,what I said is the example:nvsipl_camera.

I have saved the output file,but I cannot replay it using "./nvsipl_camera -c "SF3324_DPHY_x2" --link-enable-masks "0x0001 0x0000 0x0000 0x0000" -i <raw_file_name> -d 0 -w 1 ". Maybe it is because of Simulator Mode is disabled.
I tried to change configuration to enable Simulator Mode,but I cannot find $PDK_INSTALL_DIR/samples/nvmedia/nvsipl/query/database/. 

Can you tell me how to enable Simulator Mode?

Thank you.

Dear kmyang,

Can we get a log of the run with nvsipl_camera? Did the application exit with some error or the playback did not show good image?
Was the RAW file capture done with SF3324 or some custom module?
If it was done with SF3324, you can use the following command line (for PDK 5.1.0.2) Thanks.

$./nvsipl_camera -c “SF3324_file_mode” -i <raw_file_name> -d 0 -w 1

Hi kmyang,

Have you managed to get it working? or please help to reply with last comments suggested.
Then we can help to move this issue forward.

Thanks

Hi SteveNV ,kayccc

I typed the following command and record a video.

./nvsipl_camera -c “SF3325_DPHY_x2” --link-enable-masks “0x0001 0x0000 0x0000 0x0000” -f “data/sipl” -d 0 -w 1
Then I found there are many raw files under the data directory.

Then I typed the following command to replay it.but I found it output real-time image instead of replay on the screen,

./nvsipl_camera -c “SF3325_DPHY_x2” --link-enable-masks “0x0001 0x0000 0x0000 0x0000” -i “data” -d 0 -w 1

I added print statement in code and tested again,I found db.isSimulatorModeEnabled is always false.

I tried SF3324_file_mode option,but program crashed. I pasted error log as below.

nvidia@tegra-ubuntu:~/yangkm$ ./nvsipl_camera -c “SF3324_file_mode” --link-enable-masks “0x0001 0x0000 0x0000 0x0000” -f “data2/sipl” -d 0 -w 1
Checking SIPL version
NvSIPL library version: 0.0.0
NVSIPL header version: 0.0.0
CNvMPlatform: board string is e3550_t194a
CNvMPlatform: platform is found with key = e3550_t194a
Parsing command line arguments
Platform configuration name: SF3324_file_mode
Display ID: 0
Display window ID: 1
Display window Depth: 0
Display window position: 0 0 0 0
File dump prefix: data2/sipl
Verbosity level: 1
Raw output: disabled
ISP0 output: disabled
ISP1 output: disabled
Disabled FPS logging
Disabled Metadata logging
Creating compositor
Setting verbosity level: 1
Setting up signal handler
Getting platform configuration for SF3324_file_mode
Setting link masks
ApplyMask : 71: Too many masks specified
nvsipl_camera: ERROR: INvSIPLQuery::ApplyMask failed. status: 1

Dear kmyang,

Could you please re-try it with the following command?

nvsipl_camera -c “SF3325_DPHY_x2” -m “0x0001 0x0000 0x0000 0x0000” --showfps -d 0 -w 1 --disableISP1Output

Dear SteveNV,

I have tried the command,it output image normally,but it still cannot replay record.I pasted the log as below:

nvidia@tegra-ubuntu:~/yangkm$ ./nvsipl_camera -c “SF3325_DPHY_x2” --link-enable-masks “0x0001 0x0000 0x0000 0x0000” --showfps --disableISP1Output -f “data2/” -d 0 -w 1
Checking SIPL version
NvSIPL library version: 0.0.0
NVSIPL header version: 0.0.0
CNvMPlatform: board string is e3550_t194a
CNvMPlatform: platform is found with key = e3550_t194a
Parsing command line arguments
Platform configuration name: SF3325_DPHY_x2
Display ID: 0
Display window ID: 1
Display window Depth: 0
Display window position: 0 0 0 0
File dump prefix: data2/
Verbosity level: 1
Raw output: disabled
ISP0 output: disabled
ISP1 output: enabled
Enabled FPS logging
Disabled Metadata logging
Creating compositor
Setting verbosity level: 1
Setting up signal handler
Getting platform configuration for SF3325_DPHY_x2
Setting link masks
Creating camera master
Setting up master
Platform: ddpx-a
Platform configuration: SF3325_DPHY_x2
Platform configuration description: SF3325 module in 2 lane DPHY mode

CSI Port: 0
I2C Device 0
Deserializer Name:MAX96712
             Description: Maxim 96712 Aggregator
             I2C Address: 0x29
CameraModule on link 0
             Name: SF3325
             Description: Sekonix SF3325 module - 60-deg FOV, DVP AR0231-RCCB, MAX96705
	Serializer Name: MAX96705
	           Address: 0x40
	Sensor Name: AR0231
	       ID: 0
	       Address: 0x10
	EEPROM Name: N24C64
	       Address: 0x57

CNvMPlatform: board string is e3550_t194a
CNvMPlatform: platform is found with key = e3550_t194a
Setting up consumer descriptor for output: 1 of sensor: 0
Setting up consumer descriptor for output: 2 of sensor: 0
db.isSimulatorModeEnabled0
Initializing master interface
Init : 225: Initializing device blocks
nvmedia isc: IscPwrCtrlInit: 939: Camera power control library: NVCCP
MAX96712: Revision 2 detected
Init_1 : 55: in CNvMN24C64 NvMediaISCCheckPresence failed!. Warning: Image quality may not be correct
Init : 63: Creating 1 pipelines for block:0
Init : 98: sensorHandle:0x7f8c0011d0
Init : 100: Creating pipeline for first link
PipelineOutputInit : 104: PipelineOutputInit: index:0 output:1
PipelineOutputInit : 106: GetOutputSurfProperties
SetPostMethod : 327: Setting post method for pipeline 0, output:1
PipelineOutputInit : 104: PipelineOutputInit: index:0 output:2
PipelineOutputInit : 106: GetOutputSurfProperties
SetPostMethod : 327: Setting post method for pipeline 0, output:2
Initializing compositor
Created display - Display Info - Enabled:1 displayId:0 type:B306 size:1920x1080 refresh:60.000000 type:HDMI
Creating consumers
Creating consumer Sensor0_Out1
Creating INvSIPLClient
Init : 25: CNvMClient::Init
Creating consumer Sensor0_Out2
Creating INvSIPLClient
Init : 25: CNvMClient::Init
Starting compositor
Rect for Quad:0 Link:0 Out:0 is [(0,0):(640, 270)]
Rect for Quad:0 Link:0 Out:1 is [(640,0):(1280, 270)]
Starting master
Enter ‘ld’ to list display-able outputs.
Enter ‘e’ followed by ‘ID’ to enable display for specific Quad
Enter ‘q’ to quit the application

Width: 1920 Height: 1208
Bpp: 2
Output FPS
Sensor0_Out1 0
Sensor0_Out2 28.711
Output FPS
Sensor0_Out1 28.4086
Sensor0_Out2 28.711
Output FPS
Sensor0_Out1 29.994
Sensor0_Out2 29.9818
Output FPS
Sensor0_Out1 29.989
Sensor0_Out2 30.0215
Output FPS
Sensor0_Out1 30.005
Sensor0_Out2 29.9967
Output FPS
Sensor0_Out1 29.9657
Sensor0_Out2 30.0042
Output FPS
Sensor0_Out1 30.0475
Sensor0_Out2 29.9998
Output FPS
Sensor0_Out1 29.9986
Sensor0_Out2 29.9962
qOutput FPS
Sensor0_Out1 29.9966
Sensor0_Out2 30.0069

Output FPS
Sensor0_Out1 29.9981
Sensor0_Out2 29.9935
Stopping master
Stopping compositor
De-initializing consumer Sensor0_Out1
De-initializing consumer Sensor0_Out2
De-initializing compositor
De-initilaizing master
nvidia@tegra-ubuntu:~/yangkm$

nvidia@tegra-ubuntu:~/yangkm$ ./nvsipl_camera -c “SF3325_DPHY_x2” --link-enable-masks “0x0001 0x0000 0x0000 0x0000” --showfps --disableISP1Output -i “data2/” -d 0 -w 1
Checking SIPL version
NvSIPL library version: 0.0.0
NVSIPL header version: 0.0.0
CNvMPlatform: board string is e3550_t194a
CNvMPlatform: platform is found with key = e3550_t194a
Parsing command line arguments
Platform configuration name: SF3325_DPHY_x2
Display ID: 0
Display window ID: 1
Display window Depth: 0
Display window position: 0 0 0 0
Verbosity level: 1
Input raw file: data2/
Raw output: disabled
ISP0 output: disabled
ISP1 output: enabled
Enabled FPS logging
Disabled Metadata logging
Creating compositor
Setting verbosity level: 1
Setting up signal handler
Getting platform configuration for SF3325_DPHY_x2
Setting link masks
Creating camera master
Setting up master
Platform: ddpx-a
Platform configuration: SF3325_DPHY_x2
Platform configuration description: SF3325 module in 2 lane DPHY mode

CSI Port: 0
I2C Device 0
Deserializer Name:MAX96712
             Description: Maxim 96712 Aggregator
             I2C Address: 0x29
CameraModule on link 0
             Name: SF3325
             Description: Sekonix SF3325 module - 60-deg FOV, DVP AR0231-RCCB, MAX96705
	Serializer Name: MAX96705
	           Address: 0x40
	Sensor Name: AR0231
	       ID: 0
	       Address: 0x10
	EEPROM Name: N24C64
	       Address: 0x57

CNvMPlatform: board string is e3550_t194a
CNvMPlatform: platform is found with key = e3550_t194a
Setting up consumer descriptor for output: 1 of sensor: 0
Setting up consumer descriptor for output: 2 of sensor: 0
db.isSimulatorModeEnabled0
Initializing master interface
Init : 225: Initializing device blocks
nvmedia isc: IscPwrCtrlInit: 939: Camera power control library: NVCCP
MAX96712: Revision 2 detected
Init_1 : 55: in CNvMN24C64 NvMediaISCCheckPresence failed!. Warning: Image quality may not be correct
Init : 63: Creating 1 pipelines for block:0
Init : 98: sensorHandle:0x7f840011d0
Init : 100: Creating pipeline for first link
PipelineOutputInit : 104: PipelineOutputInit: index:0 output:1
PipelineOutputInit : 106: GetOutputSurfProperties
SetPostMethod : 327: Setting post method for pipeline 0, output:1
PipelineOutputInit : 104: PipelineOutputInit: index:0 output:2
PipelineOutputInit : 106: GetOutputSurfProperties
SetPostMethod : 327: Setting post method for pipeline 0, output:2
Initializing compositor
Created display - Display Info - Enabled:1 displayId:0 type:B306 size:1920x1080 refresh:60.000000 type:HDMI
Creating consumers
Creating consumer Sensor0_Out1
Creating INvSIPLClient
Init : 25: CNvMClient::Init
Creating consumer Sensor0_Out2
Creating INvSIPLClient
Init : 25: CNvMClient::Init
Starting compositor
Rect for Quad:0 Link:0 Out:0 is [(0,0):(640, 270)]
Rect for Quad:0 Link:0 Out:1 is [(640,0):(1280, 270)]
Starting master
Enter ‘ld’ to list display-able outputs.
Enter ‘e’ followed by ‘ID’ to enable display for specific Quad
Enter ‘q’ to quit the application

Output FPS
Sensor0_Out1 0
Sensor0_Out2 0
Output FPS
Sensor0_Out1 28.4622
Sensor0_Out2 28.4016
Output FPS
Sensor0_Out1 29.9997
Sensor0_Out2 30.0074
qOutput FPS
Sensor0_Out1 30.0011
Sensor0_Out2 30.0006

Output FPS
Sensor0_Out1 29.9988
Sensor0_Out2 30.0034
Stopping master
Stopping compositor
De-initializing consumer Sensor0_Out1
De-initializing consumer Sensor0_Out2
De-initializing compositor
De-initilaizing master
nvidia@tegra-ubuntu:~/yangkm$

Dear SteveNV,

Have you found out the reason why nvsipl_camera sample cannot replay?
I can’t find anywhere to call FillRawBuffer, why is it so? I look forward to getting the result.

Thanks.

Dear kmyang,

Can you please file a bug for this topic?
Please share bug ID, we will look into this issue.
Please login to https://developer.nvidia.com/drive with your credentials. Please check MyAccount->MyBugs->Submit a new bug to file bug. Thanks.

Dear SteveNV,

I have submitted a bug(ID:2674211).
Thank you.

Dear SteveNV,

Is there any progress on the issue?
Thanks.

Dear kmyang,

We are checking this symptom internally.
I will update once I any update. Thanks.

Dear SteveNV,

I want to know when you solve the issue.
Thank you.

Dear kmyang,

Could you try to reply the recorded file with below command?
$./nvsipl_camera -c “SF3325_file_mode” --showfps --disableISP1Output --disableRawOutput -i “data2/” -d 0 -w 1

Dear SteveNV,

I have tried the commanad.
I found that no image was shown on screen.the following log were printed continuously.

Output FPS
Sensor0_Out2 0
Output FPS
Sensor0_Out2 0
Output FPS
Sensor0_Out2 0
Output FPS
Sensor0_Out2 0

Dear SteveNV,

Have you solve the issue? Can you tell me the progress of the issue?
Thank you.

Dear kmyang,

We are checking this topic on Bug 2674211.
Once we get any update, we will update it. Thanks.

Dear SteveNV ,

The issue has been solved,Thank you.

Dear kmyang,

Thank you for your update.
We will close the bug. Thanks.