run_live.sh:
- Background process management for main pipeline
- Web server startup with logging
- Zrok tunnel for remote access
- PID file management for process tracking
kill_live.sh:
- Clean process termination using stored PIDs
- UDP packet reception on port 5000 with 16MB buffer
- Ring buffer implementation for real-time processing
- EMA-based motion detection with configurable thresholds
- Automatic AVIF image saving for detected motion segments
- Gradient metadata generation for web visualization
- Performance monitoring with latency warnings
- Debug mode for development troubleshooting