Iv been at this for a full day now and finally figured out how to get this working.
This is in the readme but its missing some parts after it on ubuntu
sudo ip link add onvif-proxy-1 link ens34 address a2:a2:a2:a2:a2:a1 type macvlan mode bridge
I had to do this after
ip link set onvif-proxy-1 up
ip addr add 192.168.40.114/24 dev onvif-proxy-1
And amazingly its working!!