BeagleBone Webcam Streaming

I am trying to stream my webcam connected to beaglebone via vlc. But when I connect to server from another computer, video seems so laggy. Do you have any suggestions? Anybody using beaglebone as an IP camera?