Feb-24-2023, 04:58 PM
(This post was last modified: Feb-24-2023, 05:37 PM by Montezuma1502.)
My video output is as follows: It correctly records and prints the timestamp on the videoframes. After one hour, the timestamp stops showing the accurate time (i.e. freezes at at the timepoint the camera should have stopped recording), but the camera continues to record.
UPDATE and SOLUTION: I played around with the code a bit and stumbled about a person doing similar recordings as me. After combining the both the comment of deanhystad and the other one I finally found out that the problem is actually this:
UPDATE and SOLUTION: I played around with the code a bit and stumbled about a person doing similar recordings as me. After combining the both the comment of deanhystad and the other one I finally found out that the problem is actually this:
while (datetime.datetime.now() - start).seconds < (3600):#this indicates to continue filming until you reach the maximize time for a given recording sgement camera.annotate_text = datetime.datetime.now().strftime('%d-%m-%Y %H:%M:%S') camera.wait_recording(0.2) ##############camera.wait_recording(3600)############ camera.stop_recording()When I delete this line, it perfectly runs the exact amount of time it should have. Seems that I told python to run the while-loop for 3600 seconds and then record another 3600 seconds. Sometimes it is as simple as that. I´ll leave my problem description in here in case someone else manages to do this weird mistake...