# IP Camera Viewer Error & Recovery Question

**URL:** <https://forum.inductiveautomation.com/t/ip-camera-viewer-error-recovery-question/9709>\
**Category:** Ignition\
**Created:** [February 13, 2015, 10:56pm UTC](https://forum.inductiveautomation.com/t/ip-camera-viewer-error-recovery-question/9709 "2015-02-13T22:56:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lotuseater](https://avatars.discourse-cdn.com/v4/letter/l/b3f665/32.png) [@lotuseater](https://forum.inductiveautomation.com/u/lotuseater)\
**Post date:** [February 13, 2015, 10:56pm UTC](https://forum.inductiveautomation.com/t/ip-camera-viewer-error-recovery-question/9709/1 "2015-02-13T22:56:12Z")

</div>

I have an ACTi B47 Camera that I am viewing the MJPEG stream using URL [192.168.0.100/cgi-bin/cmd/system?GET\_STREAM](http://192.168.0.100/cgi-bin/cmd/system?GET_STREAM). Ignition Version is 7.7.2.

I keep getting error messages after having the project opened for a period of time, it varies but let’s say 30 minutes to an hour plus. The error message I am getting is: “IIOException: Invalid JPEG file structure: two SOI markers”. I have never gotten any error messages with viewing the same camera’s live stream on the camera webpage in internet explorer or similar. The only way I know to recover from the error in Ignition at this time is the close the project and re-open the project. It works fine for a while again, then will eventually go the same error message.

So, does anyone know what this message means and how to prevent it? Also, does anyone know how to recover from it without having to close the project and re-open it? Is there some sort of script I can run on the IP Camera object to re-initialize the stream?

There was an old thread with a similar problem that was un-resolved here:  
[inductiveautomation.com/for … 54&p=35372](https://www.inductiveautomation.com/forum/viewtopic.php?f=70&t=10054&p=35372)

---

<div class="post-metadata">

**Author:** ![jsorlie](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jsorlie/32/3645_2.png) [@jsorlie](https://forum.inductiveautomation.com/u/jsorlie)\
**Post date:** [May 16, 2018, 9:14pm UTC](https://forum.inductiveautomation.com/t/ip-camera-viewer-error-recovery-question/9709/2 "2018-05-16T21:14:19Z")

</div>

see here:

> [@IP camera status - how to catch "Stream ended." status](http://forum.inductiveautomation.com/t/ip-camera-status-how-to-catch-stream-ended-status/18030):
>
> Is there any way to programmatically monitor the status (quality) of the IP Camera component’s video stream? Seems like there would be some response code attribute available to check if/when things go wrong. There are two situations I need to catch if possible: When the number of connect retries has been reached When (for whatever reason) the stream ends inadvertently. Is there any hidden properties that can be used in scripting (eg. property change scripts) to catch these events?
