|
1
2
3
|
|
Editor: sse
Time: 2009/01/08 07:54:24 GMT+0
|
Note:
|
changed:
-
<h1>Optional parameters for Images and JPEG Streams</h1>
<p>Various settings can be set on demand.</p>
<h4>Video Size</h4>
<ul>
<li><b>Size Parameter</b><br>
size sets height and width of the image. It scales your images to any size
<p>Examples:</p>
JPEG stream: <a href="http://localhost:8080/current.mjpg?size=640x480">http://localhost:8080/current.mjpg?size=640x480</a><br>
scaled screen shot <a href="http://localhost:8080/screen.jpg?size=320x240">http://localhost:8080/current.jpg?size=320x240</a><br>
</li><li><b>Height Parameter</b><br>
the height parameter sets the height of the image and maintains aspect ratio
<p>Examples:</p>
JPEG stream: <a href="http://localhost:8080/current.mjpg?height=100">http://localhost:8080/current.mjpg?height=100</a><br>
</li><li><b>Width Parameter</b><br>
the width parameter sets the width of the image and maintains aspect ratio
<p>Examples:</p>
JPEG stream: <a href="http://localhost:8080/current.mjpg?width=200">http://localhost:8080/current.mjpg?width=200</a><br>
</li></ul>
<p> </p>
<b>note:</b> height and width are not available for screen shots
<p> </p>
<h4>Picture border</h4>
<p>you may request a picture with a frame around it. The image will be scaled to fit the remaining space.</p>
<ul><li>borderwidth=w<br>w = width of the border in pixels. Values 0-99 are allowed
</li><li>bordercolor=RrGgBb<br>RGB value of the border color. Example: bordercolor=FF0000 for a red border
</li></ul>
<p> </p>
<p>Examples:</p>
black border <a href="http://localhost:8080/current.jpg?borderwidth=5&bordercolor=000000">http://localhost:8080/current.jpg?borderwidth=5&bordercolor=000000</a><br>
light blue <a href="http://localhost:8080/current.jpg?borderwidth=2&bordercolor=8888FF">http://localhost:8080/current.jpg?borderwidth=2&bordercolor=8888FF</a><br>
<p><i>Picture border is only available for current.jpg, not for screen shots or motion JPEG streams.</i></p>
<p> </p>
<h4>Frame rate</h4>
all JPEG streams can stream at a selectable frame rate. The maximum frame rate is defined for the video device in
<a href="devices.html" target="popup" onclick="PopWin('devices.html','devices', 50, 50, 800, 800); return false;">Devices</a>
<p>To set the frame rate on demand, define the fps parameter.</p>
<p>Examples:</p>
<a href="http://localhost:8080/current.mjpg?fps=2">http://localhost:8080/current.mjpg?fps=2</a><br>
<a href="http://localhost:8080/screen.mjpg?fps=0.5">http://localhost:8080/screen.mjpg?fps=0.5</a><br>
<a href="http://localhost:8080/motion.mjpg?fps=15">http://localhost:8080/motion.mjpg?fps=15</a><br>
<p> </p>
<h4>Selection for replay of stored shots</h4>
<p>to filter picture replay, use the filter parameter:</p>
<p>Example:</p>
<p><a href="http://localhost:8080/motion.mjpg?filter=20051019*">http://localhost:8080/motion.mjpg?filter=20051019*</a><br>
this will show pictures taken on Oct 19th 2005 (if pictures were save with time based names)
</p>
<h4>Combine parameters</h4>
to use more than one parameter in a request, combine them using <b>&</b>
<p>Example:</p>
<p><a href="http://localhost:8080/screen.mjpg?size=640x480&fps=1">http://localhost:8080/screen.mjpg?size=640x480<b>&</b>fps=1</a><br>
this will show your desktop sized to 640x480 and refreshed once per second
</p>