I've found the answer !
Why this only execute once was the 301 answer (permanent redirection) the browser have memorized ! So, to avoid it, i've put a simple html redirection.
from datetime import datetime
from threading import Condition
from http import server
from time import sleep
Thanks to you, i've made this, i try to make the same thing as you (take a snap from a stream to save a picture).
I thought about stopping the stream, taking the picture and going back to stream via another URL. It has worked once but no way to make it work a second time...
I've added some functions to manage the camera to the server.
For the GPIO input i ...