# View Local Camera as Live Feed in Video Player component in Perspective

**URL:** <https://forum.inductiveautomation.com/t/view-local-camera-as-live-feed-in-video-player-component-in-perspective/65911>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [November 1, 2022, 4:00am UTC](https://forum.inductiveautomation.com/t/view-local-camera-as-live-feed-in-video-player-component-in-perspective/65911 "2022-11-01T04:00:37Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Omii](https://avatars.discourse-cdn.com/v4/letter/o/9fc29f/32.png) [@Omii](https://forum.inductiveautomation.com/u/Omii)\
**Post date:** [November 1, 2022, 4:00am UTC](https://forum.inductiveautomation.com/t/view-local-camera-as-live-feed-in-video-player-component-in-perspective/65911/1 "2022-11-01T04:00:37Z")

</div>

Hello Everyone,

Is it any way to use Local device camera as live feed in video player component in perspective.

Basically i want to show local camera in this component  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/a/eab9bd4e5264c444b1c8369e5784e4be669515b3.png)

I am waiting for your positive responses.

---

<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:** [November 1, 2022, 10:43am UTC](https://forum.inductiveautomation.com/t/view-local-camera-as-live-feed-in-video-player-component-in-perspective/65911/2 "2022-11-01T10:43:57Z")

</div>

Pretty sure the camera needs to support mjpeg streams to stream their feed directly. If it only supports rtsp then you can use @pturmel's module

> [@Automation Professionals' Image Streamer Driver Module](https://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:** ![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:** [November 1, 2022, 11:33am UTC](https://forum.inductiveautomation.com/t/view-local-camera-as-live-feed-in-video-player-component-in-perspective/65911/3 "2022-11-01T11:33:46Z")

</div>

Well, I think the Perspective viewer has more capabilities. But you still have cross-origin restrictions that my module would address. In Perspective, you have to script reload of the player any time the stream stops.

---

<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:** [November 1, 2022, 11:36am UTC](https://forum.inductiveautomation.com/t/view-local-camera-as-live-feed-in-video-player-component-in-perspective/65911/4 "2022-11-01T11:36:30Z")

</div>

What about streams that use basic authentication? Does your module support that, Phil?

---

<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:** [November 1, 2022, 11:42am UTC](https://forum.inductiveautomation.com/t/view-local-camera-as-live-feed-in-video-player-component-in-perspective/65911/5 "2022-11-01T11:42:51Z")

</div>

Current OpenCV support appears to work with basic auth. (I don't claim to support anything not supported by OpenCV's VideoCapture class.)

(You can always use trial mode with your sample....)

---

<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:** [November 1, 2022, 11:44am UTC](https://forum.inductiveautomation.com/t/view-local-camera-as-live-feed-in-video-player-component-in-perspective/65911/6 "2022-11-01T11:44:25Z")

</div>

I might have to give your module a go in trial mode then for one of my customer's sites, as they're missing their video streams they had in Vision since moving to perspective

---

<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:** [November 1, 2022, 11:46am UTC](https://forum.inductiveautomation.com/t/view-local-camera-as-live-feed-in-video-player-component-in-perspective/65911/7 "2022-11-01T11:46:34Z")

</div>

Do remember that it is a CPU hog, even when no-one is watching.

---

<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:** [November 1, 2022, 11:51am UTC](https://forum.inductiveautomation.com/t/view-local-camera-as-live-feed-in-video-player-component-in-perspective/65911/8 "2022-11-01T11:51:00Z")

</div>

I seem to recall you saying that. Maybe just proof of concept for now and we'll run it in its own VM with separate platform licence if they choose to go ahead with it.

---

<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:** [November 1, 2022, 12:15pm UTC](https://forum.inductiveautomation.com/t/view-local-camera-as-live-feed-in-video-player-component-in-perspective/65911/9 "2022-11-01T12:15:00Z")

</div>

I recommend turning your cameras' frame rates down. 12fps instead of 30 or 60 fps. Makes a big difference.

---

<div class="post-metadata">

**Author:** ![scott.ashby](https://avatars.discourse-cdn.com/v4/letter/s/b9e5f3/32.png) [@scott.ashby](https://forum.inductiveautomation.com/u/scott.ashby)\
**Post date:** [March 26, 2023, 3:09am UTC](https://forum.inductiveautomation.com/t/view-local-camera-as-live-feed-in-video-player-component-in-perspective/65911/10 "2023-03-26T03:09:14Z")

</div>

I am having the same issue. Was the OP able to solve this?

---

<div class="post-metadata">

**Author:** ![drojas](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/drojas/32/3403_2.png) [@drojas](https://forum.inductiveautomation.com/u/drojas)\
**Post date:** [August 22, 2023, 5:25pm UTC](https://forum.inductiveautomation.com/t/view-local-camera-as-live-feed-in-video-player-component-in-perspective/65911/11 "2023-08-22T17:25:03Z")

</div>

If you don't need high frame rate, something like 1fps or so (yes 1...not a typo), you could just use the Perspective Video Player component to capture the still images from the camera (you will have to figure out the URL for your specific camera brand). For example, I did a test using an Amcrest IP camera and the source parameter used a binding expression to update/refresh the image that had the following:

`"http://<camperaIPAddress>/cgi-bin/snapshot.cgi?user=<username>&password=<password>&t=" + toMillis(now(1000))`

to poll and display a high-res image every second. The &t=1692723892428 part of the URL is ignored by the camera and helps with refreshing the source parameter with something new to fetch.

Note: you won't get a preview in the designer. In fact it will display File not valid just like the OP shows, but if you save and launch the project in a browser, it will display it. It is very glitchy, from my experience. If you save the project, you will have to refresh the browser (so hopes for unattended video wall may not work) and sometimes the polling just stops. If you try to poll too fast, you might just get video with a "loading" icon.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/d/8d914e631511aa4e65b8c1c480028f6b3ecafcf8.png)  
Note that with this high-res image, your network usage will spike. A single 4k image spiked throughput by about 5Mbps

Picture showing 1 camera 4k image polling at 1000ms then switching to 5000ms.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/e/0e4fe97c883b7e1b7ad262fcc86eccb35b6f5a42.png)

---

<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:** [August 22, 2023, 5:48pm UTC](https://forum.inductiveautomation.com/t/view-local-camera-as-live-feed-in-video-player-component-in-perspective/65911/12 "2023-08-22T17:48:14Z")

</div>

OP's profile says they haven't even visited since the beginning of May. You might just want to try the recommendations in this topic.
