TMX185 Camera with libargus+v4l2+opencv Issue

Hi,

I modified tegra_multimedia_api/samples/11_camera_object_identification to remove all CAFFE related stuff and I can see my TMX185 video streaming in opencv imshow() fine on my TX2 with Jetson 3.1. The only issue is that sometimes it failed to display any camera video, probably happens once every three tries.

[693418.406175] misc tegra_camera_ctrl: ISO BW req 2147483647 > 4687500 (max) capping to max
[693418.414434] misc tegra_camera_ctrl: vi_v4l2_update_isobw: requested iso bw is larger than max
[693422.052177] host1x 13e10000.host1x: cdma_handle_timeout: timeout: 48 (15600000.isp_tmx185_0) clientid 28264, HW thresh 31976, done 31978
[693422.064564] host1x 13e10000.host1x: cdma_handle_timeout: timeout: 54 (15600000.isp_tmx185_1) clientid 28264, HW thresh 59359, done 59360
[693422.076936] host1x 13e10000.host1x: cdma_handle_timeout: timeout: 55 (15600000.isp_tmx185_2) clientid 28264, HW thresh 16298, done 16299
[693422.089272] host1x 13e10000.host1x: cdma_handle_timeout: timeout: 56 (15600000.isp_tmx185_3) clientid 28264, HW thresh 9967, done 9968
[693422.101471] host1x 13e10000.host1x: cdma_handle_timeout: timeout: 58 (15600000.isp_tmx185_5) clientid 28264, HW thresh 11390, done 11390
[693422.113840] host1x 13e10000.host1x: cdma_handle_timeout: timeout: 57 (15600000.isp_tmx185_4) clientid 28264, HW thresh 59471, done 59471
[693422.126205] ---- mlocks ----
[693422.129187] 8: locked by channel 6

[693422.134266] ---- syncpts ----
[693422.137331] id 4 (disp_d) min 72286 max 72286 refs 1 (previous client : )
[693422.144240] id 5 (disp_e) min 1447 max 1447 refs 1 (previous client : )
[693422.151286] id 7 (vblank1) min 360071 max 0 refs 1 (previous client : )
[693422.158068] id 18 (17000000.gp10b_507) min 142724340 max 142724340 refs 1 (previous client : )
[693422.166769] id 19 (17000000.gp10b_506) min 574 max 574 refs 1 (previous client : )
[693422.174461] id 21 (17000000.gp10b_505) min 5842958 max 5842958 refs 1 (previous client : 17000000.gp10b_505)
[693422.184369] id 22 (17000000.gp10b_504) min 8 max 8 refs 1 (previous client : )
[693422.191688] id 23 (17000000.gp10b_503) min 12742 max 12742 refs 1 (previous client : )
[693422.199688] id 24 (17000000.gp10b_502) min 10386 max 10386 refs 1 (previous client : 17000000.gp10b_502)
[693422.209247] id 25 (17000000.gp10b_501) min 18208 max 18208 refs 1 (previous client : )
[693422.217247] id 28 (17000000.gp10b_500) min 1110 max 1110 refs 1 (previous client : 17000000.gp10b_500)
[693422.226634] id 29 (17000000.gp10b_499) min 15454 max 15454 refs 1 (previous client : )
[693422.234637] id 30 (17000000.gp10b_498) min 760 max 760 refs 1 (previous client : )
[693422.242312] id 31 (17000000.gp10b_497) min 116 max 116 refs 1 (previous client : )
[693422.249982] id 32 (17000000.gp10b_496) min 208 max 208 refs 1 (previous client : )
[693422.257654] id 33 (17000000.gp10b_495) min 336 max 336 refs 1 (previous client : )
[693422.265317] id 34 (17000000.gp10b_494) min 8 max 8 refs 1 (previous client : )
[693422.272635] id 35 (17000000.gp10b_493) min 8 max 8 refs 1 (previous client : )
[693422.279953] id 36 (17000000.gp10b_492) min 8 max 8 refs 1 (previous client : )
[693422.287272] id 37 (17000000.gp10b_491) min 8 max 8 refs 1 (previous client : )
[693422.294600] id 38 (17000000.gp10b_490) min 8 max 8 refs 1 (previous client : )
[693422.301925] id 39 (17000000.gp10b_489) min 31564 max 31564 refs 1 (previous client : 17000000.gp10b_489)
[693422.311507] id 40 (17000000.gp10b_488) min 2262 max 2262 refs 1 (previous client : 17000000.gp10b_488)
[693422.320906] id 41 (17000000.gp10b_487) min 956 max 956 refs 1 (previous client : ) 
[693422.328589] id 42 (17000000.gp10b_486) min 6728 max 6728 refs 1 (previous client : )
[693422.336507] id 43 (17000000.gp10b_485) min 1370 max 1370 refs 1 (previous client : )
[693422.344351] id 44 (17000000.gp10b_484) min 1350 max 1350 refs 1 (previous client : )
[693422.352295] id 45 (17000000.gp10b_483) min 360 max 360 refs 1 (previous client : )
[693422.359972] id 46 (17000000.gp10b_482) min 8 max 8 refs 1 (previous client : )
[693422.367294] id 47 (15340000.vic_tmx185_0) min 8540 max 8540 refs 1 (previous client : 15340000.vic_tmx185_0)
[693422.377217] id 48 (15600000.isp_tmx185_0) min 31976 max 31978 refs 2 (previous client : 17000000.gp10b_460)
[693422.387044] id 49 (17000000.gp10b_479) min 25338 max 25338 refs 1 (previous client : )
[693422.395050] id 50 (17000000.gp10b_478) min 6146 max 6146 refs 1 (previous client : )
[693422.402952] id 51 (17000000.gp10b_477) min 6961 max 6961 refs 1 (previous client : 15600000.isp_tmx185_1)
[693422.412669] id 52 (17000000.gp10b_476) min 9123 max 9123 refs 1 (previous client : 17000000.gp10b_476)
[693422.422078] id 53 (17000000.gp10b_475) min 8181 max 8181 refs 1 (previous client : 15600000.isp_tmx185_3)
[693422.431730] id 54 (15600000.isp_tmx185_1) min 59359 max 59360 refs 2 (previous client : 17000000.gp10b_450)
[693422.441557] id 55 (15600000.isp_tmx185_2) min 16298 max 16299 refs 2 (previous client : 17000000.gp10b_449)
[693422.451383] id 56 (15600000.isp_tmx185_3) min 9967 max 9968 refs 2 (previous client : 17000000.gp10b_448)
[693422.461113] id 57 (15600000.isp_tmx185_4) min 59471 max 59473 refs 3 (previous client : 17000000.gp10b_447)
[693422.471026] id 58 (15600000.isp_tmx185_5) min 11390 max 11390 refs 2 (previous client : 15340000.vic_tmx185_0)
[693422.481235] id 59 (17000000.gp10b_481) min 14374 max 14374 refs 1 (previous client : 17000000.gp10b_481)
[693422.490865] id 60 (17000000.gp10b_480) min 2706 max 2706 refs 1 (previous client : 17000000.gp10b_480)
[693422.500267] id 61 (17000000.gp10b_474) min 951 max 951 refs 1 (previous client : 17000000.gp10b_474)
[693422.509500] id 62 (17000000.gp10b_462) min 20156 max 20156 refs 1 (previous client : 17000000.gp10b_462)
[693422.519072] id 63 (17000000.gp10b_472) min 10367 max 10367 refs 1 (previous client : 17000000.gp10b_472)
[693422.528647] id 64 (15600000.isp_tmx185_0) min 9477 max 9477 refs 1 (previous client : 17000000.gp10b_456)
[693422.538354] id 65 (17000000.gp10b_467) min 7314 max 7314 refs 1 (previous client : 15340000.vic_nvgstcapture_0)
[693422.548570] id 66 (17000000.gp10b_463) min 29886 max 29886 refs 1 (previous client : 15340000.vic_nvgstcapture_0)
[693422.558949] id 67 (17000000.gp10b_458) min 6848 max 6848 refs 1 (previous client : 15340000.vic_nvgstcapture_0)
[693422.569176] id 68 (17000000.gp10b_473) min 706 max 706 refs 1 (previous client : 15340000.vic_nvgstcapture_0)
[693422.579294] id 69 (15600000.isp_tmx185_1) min 20315 max 20315 refs 1 (previous client : 17000000.gp10b_468)
[693422.589153] id 70 (17000000.gp10b_459) min 354 max 354 refs 1 (previous client : 17000000.gp10b_467)
[693422.598428] id 71 (15600000.isp_tmx185_2) min 2515 max 2515 refs 1 (previous client : 17000000.gp10b_464)
[693422.608183] id 72 (15600000.isp_tmx185_3) min 1906 max 1906 refs 1 (previous client : 17000000.gp10b_457)
[693422.617837] id 73 (15600000.isp_tmx185_4) min 8467 max 8471 refs 4 (previous client : 17000000.gp10b_469)
[693422.627504] id 74 (15600000.isp_tmx185_5) min 4628 max 4628 refs 1 (previous client : 15700000.vi_0)
[693422.636763] id 75 (17000000.gp10b_456) min 12833 max 12833 refs 1 (previous client : 15700000.vi_0)
[693422.645903] id 76 (17000000.gp10b_468) min 2070 max 2070 refs 1 (previous client : 15700000.vi_1)
[693422.654866] id 77 (17000000.gp10b_464) min 2728 max 2728 refs 1 (previous client : 15700000.vi_2)
[693422.663841] id 78 (17000000.gp10b_457) min 18315 max 18315 refs 1 (previous client : 150c0000.nvcsi_0)
[693422.673284] id 79 (17000000.gp10b_469) min 5501 max 5501 refs 1 (previous client : 15340000.vic_tmx185_0)
[693422.682950] id 80 (15700000.vi_0) min 20953 max 20953 refs 2 (previous client : 15700000.vi_0)
[693422.691655] id 81 (15700000.vi_0) min 146 max 146 refs 1 (previous client : 15700000.vi_0)
[693422.700019] id 82 (15700000.vi_1) min 6079 max 6079 refs 1 (previous client : 15700000.vi_1)
[693422.708548] id 83 (15700000.vi_2) min 19377 max 19377 refs 1 (previous client : 15700000.vi_2)
[693422.717254] id 84 (150c0000.nvcsi_0) min 455 max 455 refs 2 (previous client : 150c0000.nvcsi_0)
[693422.726132] id 85 (15340000.vic_tmx185_0) min 3042 max 3042 refs 1 (previous client : 15340000.vic_tmx185_0)
[693422.736040] id 86 (17000000.gp10b_447) min 62 max 62 refs 1 (previous client : 17000000.gp10b_451)
[693422.745092] id 87 (17000000.gp10b_448) min 28 max 28 refs 1 (previous client : 17000000.gp10b_453)
[693422.754137] id 88 (17000000.gp10b_449) min 28 max 28 refs 1 (previous client : 17000000.gp10b_465)
[693422.763185] id 89 (17000000.gp10b_450) min 24 max 24 refs 1 (previous client : 17000000.gp10b_471)
[693422.772231] id 90 (15340000.vic_tmx185_0) min 22 max 22 refs 1 (previous client : 17000000.gp10b_461)
[693422.781534] id 91 (17000000.gp10b_460) min 336 max 336 refs 1 (previous client : 17000000.gp10b_470)
[693422.790745] id 92 (17000000.gp10b_451) min 285 max 285 refs 1 (previous client : 15340000.vic_tmx185_0)
[693422.800216] id 93 (17000000.gp10b_453) min 598 max 598 refs 1 (previous client : 15340000.vic_tmx185_0)
[693422.809688] id 94 (17000000.gp10b_465) min 2691 max 2691 refs 1 (previous client : 15340000.vic_tmx185_0)
[693422.819333] id 95 (17000000.gp10b_471) min 16 max 16 refs 1 (previous client : 17000000.gp10b_454)
[693422.828375] id 96 (17000000.gp10b_461) min 16 max 16 refs 1 (previous client : 17000000.gp10b_453)
[693422.837412] id 97 (17000000.gp10b_470) min 16 max 16 refs 1 (previous client : 17000000.gp10b_452)
[693422.846452] id 98 (15340000.vic_tmx185_0) min 10 max 10 refs 1 (previous client : 17000000.gp10b_451)

[693422.857794] ---- channels ----
[693422.860945]
                channel 1 - 15820000.se

[693422.867641] NvHost basic channel registers:
[693422.871911] CMDFIFO_STAT_0:  00002040
[693422.875664] CMDFIFO_RDATA_0: 00200080
[693422.879415] CMDP_OFFSET_0:   00000000
[693422.883164] CMDP_CLASS_0:    00000000
[693422.886916] CHANNELSTAT_0:   00000000
[693422.890666] The CDMA sync queue is empty.

[693422.896345]
                channel 2 - 15830000.se

[693422.903052] NvHost basic channel registers:
[693422.907329] CMDFIFO_STAT_0:  00002040
[693422.911079] CMDFIFO_RDATA_0: 008d0780
[693422.914836] CMDP_OFFSET_0:   00000000
[693422.918593] CMDP_CLASS_0:    00000000
...
[693423.064136]
                ffffffc04f12dc00: JOB, syncpt_id=73, syncpt_val=8469, first_get=00000cd0, timeout=10000, num_slots=9
[693423.075953]     GATHER at 5a710000+0000, 7484 words
[693423.080920] 12030005 00000000 00000000 00000000 00000000 00000000 12010002 00000000 00000000 12080004 00000000 00000000 00000000 00000000 17500010 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 1d01000a 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 1d0b0001 00000000 2d0c01e0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[693423.152813] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[693423.223729] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[693423.294717] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[693423.365372] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[693423.436508] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 1d0d0002 00000000 00000000 1d31000a 00000000 00000000 00000000 00000000 00000000
[693423.507193] 00000000 00000000 00000000 00000000 00000000 1d3b0001 00000000 2d3c01e0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
...
[693424.724269] host1x 13e10000.host1x: CaptureSchedule: syncpoint id 73 (15600000.isp_tmx185_4) stuck waiting 8468, timeout=-1
[693424.724270] ---- syncpts ----
[693424.724279] id 4 (disp_d) min 72298 max 72298 refs 1 (previous client : )
[693424.724282] id 5 (disp_e) min 1447 max 1447 refs 1 (previous client : )
[693424.724286] id 7 (vblank1) min 360226 max 0 refs 1 (previous client : )
[693424.724300] id 18 (17000000.gp10b_507) min 142724814 max 142724814 refs 1 (previous client : )
[693424.724303] id 19 (17000000.gp10b_506) min 574 max 574 refs 1 (previous client : )
[693424.724307] id 21 (17000000.gp10b_505) min 5843020 max 5843020 refs 1 (previous client : 17000000.gp10b_505)
[693424.724309] id 22 (17000000.gp10b_504) min 8 max 8 refs 1 (previous client : )
[693424.724312] id 23 (17000000.gp10b_503) min 12742 max 12742 refs 1 (previous client : )
[693424.724315] id 24 (17000000.gp10b_502) min 10386 max 10386 refs 1 (previous client : 17000000.gp10b_502)
[693424.724318] id 25 (17000000.gp10b_501) min 18208 max 18208 refs 1 (previous client : )
[693424.724323] id 28 (17000000.gp10b_500) min 1110 max 1110 refs 1 (previous client : 17000000.gp10b_500)
[693424.724325] id 29 (17000000.gp10b_499) min 15454 max 15454 refs 1 (previous client : )
[693424.724328] id 30 (17000000.gp10b_498) min 760 max 760 refs 1 (previous client : )
[693424.724330] id 31 (17000000.gp10b_497) min 116 max 116 refs 1 (previous client : )
[693424.724333] id 32 (17000000.gp10b_496) min 208 max 208 refs 1 (previous client : )
[693424.724336] id 33 (17000000.gp10b_495) min 336 max 336 refs 1 (previous client : )
[693424.724338] id 34 (17000000.gp10b_494) min 8 max 8 refs 1 (previous client : )
                                                                                      
...

Could anyone help? thanks,

Steve

Hi Steve,
It looks to be an issue in the camera source. Do you observe the same in running 09_camera_jpeg_capture and 10_camera_recording?

I may get errors in both 09_camera_jpeg_capture and 10_camera_recording.

sample 09,

nvidia@tegra-ubuntu:~/tegra_multimedia_api/samples/09_camera_jpeg_capture$ ./camera_jpeg_capture 
[INFO] (NvEglRenderer.cpp:109) <renderer0> Setting Screen width 640 height 480
OFParserGetVirtualDevice: virtual device driver node not found in proc device-tree
OFParserGetVirtualDevice: virtual device driver node not found in proc device-tree
LoadOverridesFile: looking for override file [/Calib/camera_override.isp] 1/16LoadOverridesFile: looking for override file [/data/nvcam/settings/camera_overrides.isp] 2/16LoadOverridesFile: looking for override file [/opt/nvidia/nvcam/settings/camera_overrides.isp] 3/16LoadOverridesFile: looking for override file [/var/nvidia/nvcam/settings/camera_overrides.isp] 4/16---- imager: Found override file [/var/nvidia/nvcam/settings/camera_overrides.isp]. ----
CAM-SWAP: camera module looks been swapped!
NvCameraIspConfigFileLoad: Config file "sensor.cfg" Line 195: Error: Invalid isp config attribute element: "aoltm.Enable=FALSE"
CAM: serial no file already exists, skips storing againLSC: LSC surface is not based on full res!
CAM-SWAP: camera module looks been swapped!
NvCameraIspConfigFileLoad: Config file "sensor.cfg" Line 195: Error: Invalid isp config attribute element: "aoltm.Enable=FALSE"
CAM: serial no file already exists, skips storing againLSC: LSC surface is not based on full res!
PRODUCER: Creating output stream
PRODUCER: Launching consumer thread
CONSUMER: Waiting until producer is connected...
CONSUMER: Waiting until producer is connected...
PRODUCER: Starting repeat capture requests.
CONSUMER: Producer has connected; continuing.
CONSUMER: Producer has connected; continuing.
SCF: Error InvalidState:  NonFatal ISO BW requested not set. Requested = 2147483647 Set = 4687500 (in src/services/power/PowerServiceCore.cpp, function setCameraBw(), line 653)
CONSUMER: Done.
CONSUMER: Done.
PRODUCER: Done -- exiting.
nvbuf_utils: dmabuf_fd 1828717871 mapped entry NOT found
nvbuf_utils: Can not get HW buffer from FD... Exiting...
nvidia@tegra-ubuntu:~/tegra_multimedia_api/samples/09_camera_jpeg_capture$

sample 10,

nvidia@tegra-ubuntu:~/tegra_multimedia_api/samples/10_camera_recording$ ./camera_recording 
Set governor to performance before enabling profiler
OFParserGetVirtualDevice: virtual device driver node not found in proc device-tree
OFParserGetVirtualDevice: virtual device driver node not found in proc device-tree
LoadOverridesFile: looking for override file [/Calib/camera_override.isp] 1/16LoadOverridesFile: looking for override file [/data/nvcam/settings/camera_overrides.isp] 2/16LoadOverridesFile: looking for override file [/opt/nvidia/nvcam/settings/camera_overrides.isp] 3/16LoadOverridesFile: looking for override file [/var/nvidia/nvcam/settings/camera_overrides.isp] 4/16---- imager: Found override file [/var/nvidia/nvcam/settings/camera_overrides.isp]. ----
CAM-SWAP: camera module looks been swapped!
NvCameraIspConfigFileLoad: Config file "sensor.cfg" Line 195: Error: Invalid isp config attribute element: "aoltm.Enable=FALSE"
CAM: serial no file already exists, skips storing againLSC: LSC surface is not based on full res!
CAM-SWAP: camera module looks been swapped!
NvCameraIspConfigFileLoad: Config file "sensor.cfg" Line 195: Error: Invalid isp config attribute element: "aoltm.Enable=FALSE"
CAM: serial no file already exists, skips storing againLSC: LSC surface is not based on full res!
PRODUCER: Creating output stream
PRODUCER: Launching consumer thread
Failed to query video capabilities: Inappropriate ioctl for device
NvMMLiteOpen : Block : BlockType = 4 
===== MSENC =====
NvMMLiteBlockCreate : Block : BlockType = 4 
875967048
842091865
create video encoder return true
CONSUMER: Waiting until producer is connected...
PRODUCER: Starting repeat capture requests.
CONSUMER: Producer has connected; continuing.
SCF: Error InvalidState:  NonFatal ISO BW requested not set. Requested = 2147483647 Set = 4687500 (in src/services/power/PowerServiceCore.cpp, function setCameraBw(), line 653)
===== MSENC blits (mode: 1) into tiled surfaces =====
CONSUMER: Got EOS, exiting...
CONSUMER: Done.
PRODUCER: Done -- exiting.
************************************
Total Profiling Time = 0 sec
************************************
nvidia@tegra-ubuntu:~/tegra_multimedia_api/samples/10_camera_recording$

10_camera_recording is run successfully. You should see saved output.h264.

There is error in running 09_camera_jpeg_capture

nvbuf_utils: dmabuf_fd 1828717871 mapped entry NOT found
nvbuf_utils: Can not get HW buffer from FD... Exiting...

Do you run it with ‘export DISPLAY=:0’ being executed?

I just tried it with “export DISPLAY=:0” and it didn’t help. I still got same error on 09_camera_jpeg_capture.

Hi liren,
The sample is verified on r28.1. Do you flash system image and install samples via Jetpack3.1?