After further investigation, I see that the issue is unrelated to the picamere2 module. I have the same issue with writing random generated frame to kmssink with opencv:
Code:
import timeimport numpy as npimport cv2writer = cv2.VideoWriter("appsrc ! kmssink driver-name=\"drm-rp1-vec\" skip-vsync=1", 0, 25, (720, 576))while True: startTime = time.monotonic() frame = np.random.randint(255, size=(720,576,3),dtype=np.uint8) # process frame time.sleep(0.060) writer.write(frame) print("t ", time.monotonic() - startTime)
Statistics: Posted by al1img — Sun Mar 24, 2024 1:33 pm