# IP Camera Assistance - ACTi Camera

**URL:** <https://forum.inductiveautomation.com/t/ip-camera-assistance-acti-camera/9367>\
**Category:** Ignition\
**Created:** [November 21, 2014, 4:27pm UTC](https://forum.inductiveautomation.com/t/ip-camera-assistance-acti-camera/9367 "2014-11-21T16:27:30Z")\
**Posts on this page:** 6\
**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:** [November 21, 2014, 4:27pm UTC](https://forum.inductiveautomation.com/t/ip-camera-assistance-acti-camera/9367/1 "2014-11-21T16:27:30Z")

</div>

I have an ACTi B47 Camera I am trying to view the MJPEG stream as well as issue URL CGI commands to the camera. I have successfully done this with a Sony camera, but I cannot get either to work with this ACTi camera. I am hoping someone will be able to assist.

For viewing the feed I have tried both of the following URLs. They both result in displaying “IOException: Max buffer size reached.”. What does this error mean?

`http://192.168.0.100/cgi-bin/cmd/system?GET_STREAM&USER=admin&PWD=123456
http://192.168.0.100/cgi-bin/encoder?USER=admin&PWD=123456&channel=1&GET_STREAM`

A second issue is I am not able to send URL CGI commands from Ignition to this camera. I can enter a URL command such as an absolute zoom position in a normal web browser and the camera will zoom to that position. Such as: “[http://192.168.0.100/cgi-bin/encoder?USER=Admin&PWD=123456&ZOOM=DIRECT,1000](http://192.168.0.100/cgi-bin/encoder?USER=Admin&PWD=123456&ZOOM=DIRECT,1000)”

I have tried the following code in a button mouse pressed event, but nothing happens when attempting these commands from Ignition.

```auto
system.net.httpPost("http://192.168.0.100/cgi-bin/encoder?USER=Admin&PWD=123456&ZOOM=DIRECT,1000")
```

Any thoughts?

---

<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:** [November 21, 2014, 8:11pm UTC](https://forum.inductiveautomation.com/t/ip-camera-assistance-acti-camera/9367/2 "2014-11-21T20:11:05Z")

</div>

I made some progress on the second part using the URL CGI commands. I still have not had any luck displaying the live stream, I can only get the “IOException: Max buffer size reached” error.

For anyone that needs it, you can format the URL commands as follows for ACTi:

```auto
system.net.httpPost("http://192.168.0.100/cgi-bin/cmd/encoder?ZOOM=DIRECT,500","/","/",10000,60000,"Admin","123456")
```

Or the following format allows the user/password to be encrypted and prompts for it:

```auto
system.net.httpPost("http://192.168.0.100/cgi-bin/cmd/encoder", {"ZOOM":"DIRECT,1000"})
```

---

<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:** [November 21, 2014, 9:16pm UTC](https://forum.inductiveautomation.com/t/ip-camera-assistance-acti-camera/9367/3 "2014-11-21T21:16:12Z")

</div>

Ok, I got the mjpeg stream to display finally with the URL below and the objects built-in authentication. I am having to play with reducing the cameras resolution and the MJPEG quality on the camera side. Hopefully I can find a happy medium with this. I assume there is no way to increase the buffer size of the camera object.

```auto
http://192.168.0.100/cgi-bin/cmd/system?GET_STREAM
```

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [November 21, 2014, 9:37pm UTC](https://forum.inductiveautomation.com/t/ip-camera-assistance-acti-camera/9367/4 "2014-11-21T21:37:37Z")

</div>

In 7.7.2-rc2, which will be out soon, we’ve made the buffer size into a settable property.

---

<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:** [November 21, 2014, 9:57pm UTC](https://forum.inductiveautomation.com/t/ip-camera-assistance-acti-camera/9367/5 "2014-11-21T21:57:29Z")

</div>

Do you know how long before Ignition supports the H.264 encoder type?

I have some lagging problems with the MJPEG type that I do not see with H.264.

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [November 21, 2014, 10:42pm UTC](https://forum.inductiveautomation.com/t/ip-camera-assistance-acti-camera/9367/6 "2014-11-21T22:42:45Z")

</div>

As far as I know, there’s no immediate plans to support H.264. It’s definitely a popular encoding with the camera makers, but it’s not free to license. Their licensing model is murky at best and doesn’t work well with how we charge for our software. IIRC, they are going to revamp their licensing in a year or so – we might take a look at it again when they do.
