@jwz I'm just trying to understand your setup. Where is the video stream coming from, initially?
I didn't mean to come off sounding rude, but after 10+ years writing software monitoring RTMP, it is not something I would recommend anyone to use. It's probably not the culprit in this scenario, though.