I have a loop where I start a gstreamer pipeline and then manually set the camera focus value on the first pass through of the loop. The video produced in this first pass of the loop are clean and high resolution. On the second pass through of the loop, I restart the gstreamer pipeline because I want to create a new video. The the image quality of the subsequent videos is blurry and low resolution. I believe this is because gstreamer reinitializes the focus value of the camera during a pipeline restart. Refocusing the camera adds about 1 second per loop pass through so I would like to avoid this. Is there any way to prevent gstreamer from reinitializing the focus value of the camera?
Any insight would be greatly appreciated!