I am using csi , imx415 camera with Tx2 j . I am getting frames without problem but I want to take photo with flash light sync way. Do you have any suggestion how to achieve this?
I run the command below without problem for getting image from sensor.
gst-launch-1.0 nvarguscamerasrc sensor-id=0 sensor-mode=3
! ‘video/x-raw(memory:NVMM), width=3840, height=2160, format=(string)NV12, framerate=(fraction)30/1’
! ‘video/x-raw(memory:NVMM), width=3840, height=2160’
! nvjpegenc quality=85 ! multifilesink location=“test%d.jpg”
I write c++ applications which simulates this pipeline. And when input came from user, I just write the latest available frame to the file. To use flash light, first I activate flash then get the latest frame, the whole frame was not enlightened yet. I think the camera should not be on continues acqusition, only on request it should get 1 frame (in fastest way)
I also tried
sudo service nvargus-daemon stop
sudo enableCamInfiniteTimeout=1 nvargus-daemon
nvgstcapture-1.0 -J 1 -m 1 --image-res=8
when I want to capture 10 image with j:10 , the image write rate is 2 per second, while the first pipeline ı wrote can write at 30 fps.
I am not sure which way is correct. How should I approach the problem?