Toasty
(Colin)
January 26, 2016, 12:33am
327
since the amcrest cameras are actually foscam’s, it’s quite possible, this device type might work, @RBoy would have to answer specifically. As for SmartTiles, Go to Foscam’s site and browse the cameras - you’ll typically get a salesperson livechat, and you can ask them if the amcrest cameras also support MJPEG feed, which SmartTiles needs. The instructions to set up a foscam camera is here:
Fetching JPG snapshots by URL parameters
The URL example is as follows:
http://ipaddress :port/cgi-bin/CGIProxy.fcgi?cmd=snapPicture2&usr=admin&pwd=xxx
Use the above to attain a snapshot image, this also supports fetching the highest resolution stream image.
Fetching MJPEG stream by URL
There are two steps needed to fetch the MJPEG URL stream.
Step 1: Set one of the streams to MJPEG.
As the current chipset on HD cameras only supports two H.264 streams (Mainstream and Substream), we need to set one of the streams to an MJPEG stream, as the chipset does not support three streams. After we set one of the streams to an MJPEG stream, we can fetch the videostream using an HTTP URL.
Here is an example URL on how to set one stream to an MJPEG stream:
http://ipaddress :port/cgi-bin/CGIProxy.fcgi?cmd=setSubStreamFormat&format=1&usr=admin&pwd=
Here “1” sets an MJPEG stream, if we don’t want to set the MJPEG stream, we would set the number to “0”, “0” sets an H.264 stream.
When inputting this URL and pushing “Enter” in your browser, it will return the following result:
0
Step 2: After setting the MJPEG stream, it can be fetched using an HTTP URL.
See the example HTTP URL you would use to fetch the MJPEG videostream. Note that this differs from older MJPEG cameras like the FI8910W, but the videostream result is the same.
http://ipaddress :port/cgi-bin/CGIStream.cgi?cmd=GetMJStream&usr=admin&pwd=xxx
Simply replace the IP address, port, username, and password into the above URL to access your camera’s MJPEG stream.
You can refer to the CGI document on setSubStreamFormat and GetMJStream if you wish.