IP camera software

Ive been trying to get video from a usb camera displayed in ignition - ive tried a number webcam servers including webcamxp, sentry vision, VLC media server, yaw cam and Gmax IP camera. Ignitions IP camera function doesnt want to play nice with any of them. most of them arent the correct mjpeg stream - the Gmax IPcamera program seemed the most promising. I was able to display a stream briefly but every time ignition connects to the url the program freezes. has anyone had any luck doing something like this or suggest an ip camera converter/emulator that works.

thx.

After many many hours of trying different methods I figured out how to stream my usb webcam into an ignition window (IP Camera Viewer) using VLC media players stream functionality. this should work for any other video source too.

To stream video source (video file, network file, webcam ect) install VLC media player. In VLC click “Media” menu go to “Stream…” then choose a video source , in this example im going to use a webcam – click on the “Capture Device” tab. In the device selection box under Video device name click the drop down and select your webcam, in this example I’ll choose “USB Video Device”. At the bottom of the VLC window click “Stream”. The next window shows you Source: “dshow://”. ¾ down the page click “Next” – you are now on the destination window, I am going to directly paste the destination code in so don’t bother with any settings on this page just click “Next”. You are now in the option setup screen. In the “Generated stream output string” box paste in this code:

:sout=#transcode{vcodec=MJPG,vb=400,width=620,height=480}:duplicate{dst=std{access=http{mime=multipart/x-mixed-replace; boundary=--7b3cc56e5f51db803f790dad720ed50a},mux=mpjpeg,dst=:8080}}Then click “Stream” at the bottom of the window – you are now streaming the webcam to port 8080 in mjpeg format.

In ignition create an IP Camera Viewer and under URL insert localhost:8080/ and you will be connected to the webcam.

If you want to autostart VLC stream you can just create a batch file with the following code (just edit the video source and make sure the location for VLC.exe is correct):

"C:\Program Files\VideoLAN\VLC\vlc.exe" dshow:// :dshow-vdev="USB Video Device" :dshow-size="640x480" :dshow-caching=1000 :sout=#transcode{vcodec=MJPG,vb=400,width=620,height=480}:duplicate{dst=std{access=http{mime=multipart/x-mixed-replace;boundary=--7b3cc56e5f51db803f790dad720ed50a},mux=mpjpeg,dst=:8080}}VLC is picky about format and spaces Ive attached file - just edit and change to .bat
VLC startup.txt (311 Bytes)

1 Like