Hi,
I want to record stereo video from my rasp cams via jetson inference library. this is my code.
import jetson.inference
import jetson.utils
import time
camera_sag = jetson.utils.videoSource("csi://0") # '/dev/video0' for V4L2
camera_sol = jetson.utils.videoSource("csi://1") # '/dev/video0' for V4L2
display_sol = jetson.utils.videoOutput("sol_kamera.mp4") # 'my_video.mp4' for file
display_sag = jetson.utils.videoOutput("sag_kamera.mp4") # 'my_video.mp4' for file
while display_sol.IsStreaming():
start = time.time()
img_sag = camera_sag.Capture()
img_sol = camera_sol.Capture()
display_sol.Render(img_sol)
display_sag.Render(img_sag)
print(time.time() - start)
then I watch the videos but one of them is longer than the other one (I do not know why)
And there are not synchronous. this is the sample video: https://youtu.be/fynNNzgCwcQ
I changed The code and started left camera first but nothing changed. Still left cam is lagging.
What causes this problem. Why one of the videos is longer then the other one?