The application will capture the local webcam and stream the video as mjpeg at the highest quality (by default). The stream can be customised via command parameters. I prefer to use -f="Motion-JPEG" parameter as this way the CPU load of the streaming machine is minimal. It works OK in a raspberyPi 3b and works fabulous on higher end machines.
Simple to use parameters: EX:
mjpg -f="Motion-JPEG" -d="/dev/video0" -s="800x600" -l=":8080"
Parameters:
-f -> video format to use from camera
-d -> video capture device
-s -> video size
-l -> local port to use for stream
The resulting stream can be viewed in any browser(including mobile ones) at http://network-IP:8080/