Thanks that did help. But i still get ghosting when somebody is walking.
Sounds like "motion blur" is what you're experiencing, which can be caused by the shutter speed being too low. A slower shutter speed lets more light into the camera and gives a brighter image, but at the cost of blurring objects in motion. I would try changing the shutter speed to a faster value. Just not too fast or your image will look too dark.
If that doesn't help, make sure you're streaming at least 15 frames per second. May also try adjusting the "frame interval" to different values and see if anything changes.
As a last course, if you're encoding at a Variable Bit Rate, you can try changing it to Constant Bit Rate..Sometimes Constant Bit Rate can perform better in high motion environments. Make sure the bitrate is at least a couple thousand kb/s.
As a side note, I'm assuming you are connected to a router and not going through a DVR in which the DVR settings may need adjusting. If it's going straight to a router, make sure your router can handle the bandwidth of your stream and make sure the computer/device you are viewing on is able to handle the stream. On my computer, I get a smooth stream when looking through webcomponents plugin, but my stream is very choppy/ skips frames if I'm viewing through VLC Media Player as if it can't process the stream fast enough.