http://www.delaat.net/

WebCam Demo & Test

Streaming: http://work.delaat.net:10456/1/stream.mjpg Still : http://work.delaat.net:10456/1/image.jpg
http://work.delaat.net:10456/1/image.jpg
http://work.delaat.net:10456/1/image.jpg
Streaming: iframe height="270" width="480" seamless scrolling="no" src="http://work.delaat.net:10456/1/embed.html" Still : http://work.delaat.net:10456/1/image.jpg

Embed tag, cam1-offline-embed.html HTML5 video tag, cam1-offline-video.html

Other types of streaming:

Still Picture:

EvoCam:

Camera's:


To set up WebCam:

  • MacMini with Logitech c910 - c920 camera
  • EvoCam 4.3
  • Open two windows with canvas
    • one with desired high resolution (1280*720 or 960*540)
    • one with low resolution for higher speed (480*270 or 320*180)
    • make sure to open the largest last as it will adapt the capture resolution.
  • No sound
  • change port (e.g. to 10456)
  • low res -> item 1, high res -> item 2
  • Quality -> high, frame rate high res -> 10, low res -> 15
  • log access
  • Enable webserver

To use the stream in a web page:

<div align="center">
<a href="cam1.html">
<img src="http://work.delaat.net:10456/1/stream.mjpg" border="2" height="270" width="480">
</a>
</div>

To use offline movie in a web page using embed:

<div align="center" border="2" height="270" width="480">
<a href="cam1-offline-embed.html">
<embed src="cam1-small.mov" loop="true" autostart="true" controller="true" scale="aspect">
</a>
</div>

To use offline movie in a web page using html5:

<a href="cam1-offline-video.html">
<video width="480" height="270" autoplay controls loop poster="cam1-small.jpeg">
<source src="cam1-small.mp4" type="video/mp4"></source>
<source src="cam1-small.ogg" type="video/ogg"></source>
Your browser does not support the video tag.
</video>
</a>

To auto-restart EvoCam in case of crash:

  • disable Crash Dialogs:
defaults write com.apple.CrashReporter DialogType none
  • Then create a text file “EvoCam.plist” in ~/Library/LaunchAgents with this content:
<?xml version=”1.0? encoding=”UTF-8??>
<!DOCTYPE plist PUBLIC “-//Apple//DTD PLIST 1.0//EN” “http://www.apple.com/DTDs/PropertyList-1.0.dtd”>
<plist version=”1.0?>
<dict>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>EvoCam.restart</string>
<key>ProgramArguments</key>
<array>
<string>/Applications/EvoCam.app/Contents/MacOS/EvoCam</string>
</array>
</dict>
</plist>
  • Now all you need to do is to load your newly created launch agent in Terminal:
launchctl load /Library/LaunchAgents/EvoCam.plist


16 9
7680 4320
3840 2160
1920 1080
1280
720
960 540
720 405
640 360
480 270
400 225
360 203
320 180
270 152
240 135