# Showing a Video stream from a web based camera

**URL:** <https://forum.inductiveautomation.com/t/showing-a-video-stream-from-a-web-based-camera/38999>\
**Category:** General Discussion\
**Created:** [September 23, 2020, 8:38pm UTC](https://forum.inductiveautomation.com/t/showing-a-video-stream-from-a-web-based-camera/38999 "2020-09-23T20:38:47Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![bob.cappelletti](https://avatars.discourse-cdn.com/v4/letter/b/7c8e57/32.png) [@bob.cappelletti](https://forum.inductiveautomation.com/u/bob.cappelletti)\
**Post date:** [September 23, 2020, 8:38pm UTC](https://forum.inductiveautomation.com/t/showing-a-video-stream-from-a-web-based-camera/38999/1 "2020-09-23T20:38:47Z")

</div>

I have a FLIR A400 IR camera that has a web interface.  
Can that be shown on a screen?

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [September 23, 2020, 8:54pm UTC](https://forum.inductiveautomation.com/t/showing-a-video-stream-from-a-web-based-camera/38999/2 "2020-09-23T20:54:36Z")

</div>

If you log onto the web interface for it and either right click on the stream and look at properties, or inspect the page source, you're looking for the path to the mjpeg. You can then use that link in the video player component in ignition.  
If you need to pass in credentials to Perspective, try this:

> [@Perspective: Video player live stream with username/password](http://forum.inductiveautomation.com/t/perspective-video-player-live-stream-with-username-password/38113/2):
>
> You could try the prefix style - I believe it’s only valid with Basic authentication, but worth a try: https://username:password@hostname/path

However I can't recall if this worked or not

---

<div class="post-metadata">

**Author:** ![bob.cappelletti](https://avatars.discourse-cdn.com/v4/letter/b/7c8e57/32.png) [@bob.cappelletti](https://forum.inductiveautomation.com/u/bob.cappelletti)\
**Post date:** [September 24, 2020, 8:26pm UTC](https://forum.inductiveautomation.com/t/showing-a-video-stream-from-a-web-based-camera/38999/3 "2020-09-24T20:26:04Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/e/0e119a1004cb64eb418ad8b3c129ed2118c77499.png)

---

<div class="post-metadata">

**Author:** ![bob.cappelletti](https://avatars.discourse-cdn.com/v4/letter/b/7c8e57/32.png) [@bob.cappelletti](https://forum.inductiveautomation.com/u/bob.cappelletti)\
**Post date:** [September 24, 2020, 8:26pm UTC](https://forum.inductiveautomation.com/t/showing-a-video-stream-from-a-web-based-camera/38999/4 "2020-09-24T20:26:40Z")

</div>

Those are the URL choices I have so it probably wont work?

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [September 25, 2020, 3:36am UTC](https://forum.inductiveautomation.com/t/showing-a-video-stream-from-a-web-based-camera/38999/5 "2020-09-25T03:36:56Z")

</div>

It looks like there’s an mjpeg4 stream. Give one of those a go.

Have you had a read of the user manual?  
[https://docs.inductiveautomation.com/display/DOC80/Vision+-+IP+Camera+Viewer](https://docs.inductiveautomation.com/display/DOC80/Vision+-+IP+Camera+Viewer)

---

<div class="post-metadata">

**Author:** ![Sanderd17](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sanderd17/32/8735_2.png) [@Sanderd17](https://forum.inductiveautomation.com/u/Sanderd17)\
**Post date:** [September 25, 2020, 9:55am UTC](https://forum.inductiveautomation.com/t/showing-a-video-stream-from-a-web-based-camera/38999/6 "2020-09-25T09:55:41Z")

</div>

You need Motion JPEG (mjpeg or mjpg) or JPEG stills (jpeg or jpg). Both send full JPEG images at once.

MPEG is a completely different protocol. It’s still based on JPEG, but with added compression: for similar looking frames only the difference is encoded. This protocol is not supported in the IP Camera viewer.

You would need a full stream for this, as you also need the intermediate frames to construct the final result. The IP Camera only does polling.

And yes, these names are confusing…

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [September 25, 2020, 11:44am UTC](https://forum.inductiveautomation.com/t/showing-a-video-stream-from-a-web-based-camera/38999/7 "2020-09-25T11:44:08Z")

</div>

Whoops, I read mpeg4 as mjpeg4 😅 but yes, mjpg should be usable

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [September 25, 2020, 12:28pm UTC](https://forum.inductiveautomation.com/t/showing-a-video-stream-from-a-web-based-camera/38999/8 "2020-09-25T12:28:28Z")

</div>

Vision's IP Camera Viewer can't do RTSP, no matter what encoding is present. You might consider using my Image Streamer module:

> [@Automation Professionals' Image Streamer Driver Module](http://forum.inductiveautomation.com/t/automation-professionals-image-streamer-driver-module/29371):
>
> Automation Professionals is pleased to announce a Release Candidate for its new driver module, supporting the live Network Image transmission format of [Keyence CV-5000](https://www.keyence.com/products/vision/vision-sys/cv-5000/index.jsp) machine vision controllers, plus support for common Network Video streams via [OpenCV](https://opencv.org/). Stream metadata is exposed as OPC items, and the output streams are Motion JPEG. The IP Camera Viewer Component in Vision can consume these streams, making it possible to integrate IP Cameras that don't have MJPEG support or have poor support f…

---

<div class="post-metadata">

**Author:** ![jonasuppling](https://avatars.discourse-cdn.com/v4/letter/j/3ec8ea/32.png) [@jonasuppling](https://forum.inductiveautomation.com/u/jonasuppling)\
**Post date:** [September 30, 2020, 11:41am UTC](https://forum.inductiveautomation.com/t/showing-a-video-stream-from-a-web-based-camera/38999/9 "2020-09-30T11:41:30Z")

</div>

Hi, I was having trouble getting the Flir AX8 into the “IP Camera Viewer”. But after a while I solved it by taking this address:

[http://xxx.xxx.xxx.xxx/snapshot.jpg](http://xxx.xxx.xxx.xxx/snapshot.jpg)

And then select JPEG in video mode. And use “Use Authentication” and enter the username and password.

Then test the refresh rate until you are satisfied.

---

<div class="post-metadata">

**Author:** ![bob.cappelletti](https://avatars.discourse-cdn.com/v4/letter/b/7c8e57/32.png) [@bob.cappelletti](https://forum.inductiveautomation.com/u/bob.cappelletti)\
**Post date:** [September 30, 2020, 3:38pm UTC](https://forum.inductiveautomation.com/t/showing-a-video-stream-from-a-web-based-camera/38999/10 "2020-09-30T15:38:49Z")

</div>

jonasuppling Thank you!  
That actually worked…!

---

<div class="post-metadata">

**Author:** ![bob.cappelletti](https://avatars.discourse-cdn.com/v4/letter/b/7c8e57/32.png) [@bob.cappelletti](https://forum.inductiveautomation.com/u/bob.cappelletti)\
**Post date:** [September 30, 2020, 9:25pm UTC](https://forum.inductiveautomation.com/t/showing-a-video-stream-from-a-web-based-camera/38999/11 "2020-09-30T21:25:37Z")

</div>

I get the video feed to show up but it only stays there for about 20 seconds, the I get the following error that shows up.

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/d/bdbcaa1e2932bd3e7c2c338fff3fe2f3b5203052.png)  
Any ides?

---

<div class="post-metadata">

**Author:** ![jonasuppling](https://avatars.discourse-cdn.com/v4/letter/j/3ec8ea/32.png) [@jonasuppling](https://forum.inductiveautomation.com/u/jonasuppling)\
**Post date:** [October 1, 2020, 10:34am UTC](https://forum.inductiveautomation.com/t/showing-a-video-stream-from-a-web-based-camera/38999/12 "2020-10-01T10:34:15Z")

</div>

Strange, no problem here.

This is my setup:

![urklipp](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/5/75129d28828172e41eb3370ce57c36f4c1e39fb9.jpeg)

---

<div class="post-metadata">

**Author:** ![bob.cappelletti](https://avatars.discourse-cdn.com/v4/letter/b/7c8e57/32.png) [@bob.cappelletti](https://forum.inductiveautomation.com/u/bob.cappelletti)\
**Post date:** [October 1, 2020, 3:03pm UTC](https://forum.inductiveautomation.com/t/showing-a-video-stream-from-a-web-based-camera/38999/13 "2020-10-01T15:03:16Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/3/23de0f98beee5f6bde83bcccc4890f1ba4823eb0.png)  
I tried with Authentication and without, it still drops out?

---

<div class="post-metadata">

**Author:** ![jonasuppling](https://avatars.discourse-cdn.com/v4/letter/j/3ec8ea/32.png) [@jonasuppling](https://forum.inductiveautomation.com/u/jonasuppling)\
**Post date:** [October 2, 2020, 5:34am UTC](https://forum.inductiveautomation.com/t/showing-a-video-stream-from-a-web-based-camera/38999/14 "2020-10-02T05:34:36Z")

</div>

Try "[http://192.168.1.6/snapshot.jpg?"](http://192.168.1.6/snapshot.jpg?%22)

Or test another adress from this page:  
[https://www.ispyconnect.com/man.aspx?n=Flir](https://www.ispyconnect.com/man.aspx?n=Flir)

maybe it needs another adress.

---

<div class="post-metadata">

**Author:** ![bob.cappelletti](https://avatars.discourse-cdn.com/v4/letter/b/7c8e57/32.png) [@bob.cappelletti](https://forum.inductiveautomation.com/u/bob.cappelletti)\
**Post date:** [October 6, 2020, 5:46pm UTC](https://forum.inductiveautomation.com/t/showing-a-video-stream-from-a-web-based-camera/38999/15 "2020-10-06T17:46:38Z")

</div>

I tried different URL’s and buffer sizes, still is dropping out.  
I am bummed…

---

<div class="post-metadata">

**Author:** ![jonasuppling](https://avatars.discourse-cdn.com/v4/letter/j/3ec8ea/32.png) [@jonasuppling](https://forum.inductiveautomation.com/u/jonasuppling)\
**Post date:** [October 7, 2020, 9:39am UTC](https://forum.inductiveautomation.com/t/showing-a-video-stream-from-a-web-based-camera/38999/16 "2020-10-07T09:39:08Z")

</div>

Test this:

Use [http://IP/snapshot.jpg](http://IP/snapshot.jpg) (JPEG Stream)

And browse in to your cameras webpage (login as admin) and let it run in the background.

Maybe its a authentication problem.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [October 7, 2020, 12:50pm UTC](https://forum.inductiveautomation.com/t/showing-a-video-stream-from-a-web-based-camera/38999/17 "2020-10-07T12:50:42Z")

</div>

Did you test my module?

---

<div class="post-metadata">

**Author:** ![bob.cappelletti](https://avatars.discourse-cdn.com/v4/letter/b/7c8e57/32.png) [@bob.cappelletti](https://forum.inductiveautomation.com/u/bob.cappelletti)\
**Post date:** [October 7, 2020, 3:04pm UTC](https://forum.inductiveautomation.com/t/showing-a-video-stream-from-a-web-based-camera/38999/18 "2020-10-07T15:04:49Z")

</div>

I have not tried your module, I am so new at this I am not sure what to do?

---

<div class="post-metadata">

**Author:** ![bob.cappelletti](https://avatars.discourse-cdn.com/v4/letter/b/7c8e57/32.png) [@bob.cappelletti](https://forum.inductiveautomation.com/u/bob.cappelletti)\
**Post date:** [October 7, 2020, 3:30pm UTC](https://forum.inductiveautomation.com/t/showing-a-video-stream-from-a-web-based-camera/38999/19 "2020-10-07T15:30:36Z")

</div>

I did just realize something.  
If I am not logged into the camera’s web page on my computer, Ignition will not refresh and is only showing me a snapshot.

---

<div class="post-metadata">

**Author:** ![bob.cappelletti](https://avatars.discourse-cdn.com/v4/letter/b/7c8e57/32.png) [@bob.cappelletti](https://forum.inductiveautomation.com/u/bob.cappelletti)\
**Post date:** [October 7, 2020, 6:28pm UTC](https://forum.inductiveautomation.com/t/showing-a-video-stream-from-a-web-based-camera/38999/20 "2020-10-07T18:28:11Z")

</div>

And when not logged into the camera’s web page the image stays up and I do not get the message ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/2/c26ceb3ba72fe84262836038783061cd054f3312.png)

[Next page](https://forum.inductiveautomation.com/t/showing-a-video-stream-from-a-web-based-camera/38999.md?page=2)
