Jay Taylor's notes

back to listing index

Foscam Forum • View topic - How to fetch snapshots and MJPEG stream on HD cameras

[web search]
Original source (foscam.us)
Tags: foscam ipcam foscam.us
Clipped on: 2016-01-27

Image (Asset 1/33) alt=

Call 713-893-7866 - 8:00 AM to 7:30 PM CST


Image (Asset 5/33) alt=

Featured Products

How to fetch snapshots and MJPEG stream on HD cameras

Users can ask and answer questions regarding Foscam IP Cameras

Moderators: mycam, FOSCAM

1 post • Page 1 of 1

How to fetch snapshots and MJPEG stream on HD cameras

Image (Asset 28/33) alt=by FOSCAM » Fri Feb 01, 2013 6:24 am

Hi everyone,

In order to assist with some customer requests of a HTTP URL stream for fetching JPG snapshots and MJPEG streams on HD cameras, the Foscam R&D team was able to add these features in the latest firmware!

Note: The R2/C2/FI9900P IP Camera models currently don't support the MJPEG stream.

First, please upgrade your camera with the latest firmware to use these two features.

Please see this forum thread for more information on how to download and install the latest firmware.

Fetching JPG snapshots by URL parameters

The URL example is as follows:

http://ip address: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 camerasonly 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://ip address: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:

<CGI_Result>
<result>0</result>
</CGI_Result>


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://ip address: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.

The new CGI documentation can be found here: cgi-sdk-for-hd-camera-t6045.html

Regards,

The Foscam Technical Support Team
FOSCAM
 
Posts: 766
Joined: Thu Nov 03, 2011 9:11 pm
1 post • Page 1 of 1

Return to Technical Support

Jump to:

Who is online

Users browsing this forum: No registered users and 5 guests



 

  • Image (Asset 29/33) alt=
  • Image (Asset 30/33) alt=
  • Image (Asset 31/33) alt=
  • Image (Asset 32/33) alt=
  • Image (Asset 33/33) alt=

 

Foscam Digital Technologies LLC - A United States Limited Liability Corporation

Copyright © 2015, Foscam.us All rights reserved