-1

can i save several videos, or each time i run the program the saved video is replaced?

because every time I run the program, the previously saved video is replaced by the new one

for example. after write the video

 out = cv2.VideoWriter('video.avi', fourcc, fps, (int(width), int(height))) 

it saves a file with the name "video", I wanted that the next time I run it save the next video as video1 etc ...

1 Answers1

1

Assuming you are using the class VideoWriter, you would have to create different instances of that class to write to files of different names. OR every time that your program runs, you change the filename argument for VideoWriter. Hopefully this helps!