Hello,
I have a question, if you could please provide me with answers if you have encountered this problem before:
I have been getting this error upon reading a video capture:
Assertion fctx->async_lock failed at libavcodec/pthread_frame.c:173
I have been getting this error too:
cv2.error: Unknown C++ exception from OpenCV code
ret, frame = VideoCapture(RTSP_LINK, cv.FFMPEG).read()
knowing that this is how I’m using it:
def read_cam(channel):
while True:
ret, frame = vcaps[channel].read()
if ret:
with fr_bf_modify_lock:
frames_buffer[channel].append(frame)