Our use case is to capture images/snapshots on demand, which is very similar to nvgstcapture when “j” clicked.
As we go through the sample code and create our own pipeline basically just running
capbin -> cap_tee -> ienc_q -> svc_imgbin -> img_bin
with copying the part of trigger_image_capture() and the callback cam_image_captured().
We couldn’t figure out how to start the pipeline and keep it in an idle mode (if that’s the right word). Like in nvgstcapture, only when “j” clicked, there is a frame captured and go through the pipeline.
But in our own application, there are frames going through the pipeline constantly. We’ve checked “mode” for nvtee, and “intent”/“trigger” for nvcamerasrc, but still coudn’t figure out.
I guess my question is how to turn off the auto-capture after the pipeline runs. Capturing only on-demand.
I edit the title.
Please help. Thanks a lot.