I had no luck doing that and gave up on that idea. I am running zoneminder in a jail of FreeNAS. The plugin was just recently updated and so I updated the jail and now Zoneminder is running v1.34.9.
I ended up setting ZM to use RTSP UDP instead of TCP and tweaked my wifi network quite a bit. It seems to be a bit more stable now. TCP would drop out way too long for continuous recording, so I can deal with the few artifacts occuring when using UDP instead.
--------------
On a side note, I am using Dafang Hacks (
https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks) on my Wyze v2 and works pretty well with the right settings. However, the Wyze RTSP firmware does some strange things. Events are set to record for 300 secs and ZM is usually close (+/-3 secs) but viewing the event shows anywhere from 180 to 300 secs when viewing the event, but the timestamp from the camera shows start to finish being the full 300 secs. It is like it loses the connection in between start/finish and ZM doesn't blank it out during that time but shortens the whole recording instead.
ZM is set to use h264 passthrough so maybe that is normal behavior with that? In any case, I plan on changing all my Wyze cameras to use the Dafang firmware but if anyone is interested I can start a new post to help investigate this further.