mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-05 13:41:36 +02:00
After an RTSP session dropped, ffmpeg could keep writing the same JPEG indefinitely with no connection to the printer left (two hours at ~29 fps on a P2S), and every check that counts frames saw a healthy stream. The stream now restarts ffmpeg after 20 s without a changed frame, on the existing reconnect path, while viewers stay attached. If the first frame after the restart is the same picture again, the camera really shows a still scene (a dark, idle chamber): it is then only re-checked every 5 minutes until the picture changes.