This shows you the differences between two versions of the page.
video:api:foscam_mjpeg [2022/11/16 15:55] James Sentman created |
video:api:foscam_mjpeg [2022/11/17 12:12] (current) James Sentman added rate and resolution information |
||
---|---|---|---|
Line 12: | Line 12: | ||
Most of these older cameras want the user and password embedded into the URL you are using to either get snapshots or the mjpeg stream. The camera API however needs them to also be filled into the interfaces user and password fields so make sure to fill them in both places if necessary. | Most of these older cameras want the user and password embedded into the URL you are using to either get snapshots or the mjpeg stream. The camera API however needs them to also be filled into the interfaces user and password fields so make sure to fill them in both places if necessary. | ||
+ | |||
+ | In addition to these API commands some information about controlling the resolution and fps via the query string in the request are also available. | ||
+ | <code> | ||
+ | /snapshot.cgi?user=&pwd= | ||
+ | /videostream.cgi?user=&pwd=&resolution=&rate= | ||
+ | </code> | ||
+ | **Resolution:** | ||
+ | * 8: 320*240 | ||
+ | * 32: 640x480 | ||
+ | |||
+ | **rate:** | ||
+ | * 0: full speed | ||
+ | * 1: 20 fps | ||
+ | * 3: 15 fps | ||
+ | * 6: 10 fps | ||
+ | * 11: 5 fps | ||
+ | * 12: 4 fps | ||
+ | * 13: 3 fps | ||
+ | * 14: 2 fps | ||
+ | * 15: 1 fps | ||
+ | * 17: 1 fp/2s | ||
+ | * 19: 1 fp/3s | ||
+ | * 21: 1 fp/4s | ||
+ | * 23: 1 fp/5s | ||
+ | |||
----- | ----- |