Hi @eylul4, I never did this, but from reading your code I suspect that you need a variable filename. Otherwise, it gets overwritten each time there is a new output. Maybe
out = cv2.VideoWriter(participant + '_output.avi', fourcc, 20.0, (640, 480))
does the trick?