What video camera/dvr should I buy?

Im looking for a good outdoor and indoor video surveillance camera system to use with vera. Some features I would like are:

-Being able to use the camera seeing motion as an event in vera. Ie… camera sees motion, pop up video on table/tv and make a sound, send alert, etc…
-Would also like to have a DVR that is always recording all cameras, but writing over every 48 hours unless there is movement then it archives that off per defined time.
-Pan/tilt would be nice
-Doesn?t need to be wireless, but if IP, PoE would be nice

I know there are some ?kits? out there that Costco sell etc… but not sure of the integration into Vera. Due to price an analog setup would be nice if vera could talk IP to the DVR for all its needs, but not sure that?s possible from what I?ve seen so far.
side note: Do they make a video DVR system that supports lua?
Any thoughts?
Thanks

There are plenty of camera/DVR security systems that have IPCam capabilities. If you buy a security camera/DVR combo you need to look to be sure that it has IPCam capability and not just a proprietary remote (smartphone or internet) viewer.

Regarding the cameras, it is all about the value curve. For outdoor, look for products whose users talk about great nighttime (Infrared) capabilities, good image quality and reliable motion sensing.

Virtually all cameras you buy may become IP cameras if you buy an encoder to do that. So if you endue installing great analog cameras because you liked everything about them, you can split the signal and broadcast video over IP (but add the cost of the encoder).