Switching my 3D printer webcam from MJPEG-based to h264-based streaming (https://github.com/AlexxIT/go2rtc/) is easily one of the biggest-payoff changes I've done with my setup, only surpassed by PEI print surfaces.