Skip to content

eras/webcamviewer

Repository files navigation

Webcam Viewer

This is a simple tool for viewing multiple HTTP Webcam streams simultaneously. Licensed under the MIT license.

screenshot

Compiling

You need OCaml 4.01.0 and the following OCaml libraries, all easily acquired with opam:

  • batteries
  • cairo2
  • curl
  • lablgtk2
  • pcre
  • toml
  • ctypes
  • ocplib-endian

In addition you need libturbojpeg and FFmpeg development headers and libraries installed. Tested with Debian Unstable's libturbojpeg1-dev 1.3 and FFmpeg 2.8.6.

apt-get install libturbojpeg1-dev libavcodec-dev libavformat-dev libswscale-dev libavutil-dev

The following command should bring the OCaml dependencies if you have opam installed:

opam install lablgtk ocurl pcre-ocaml batteries cairo2 toml ctypes ocplib-endian

Then compiling is done by:

ocamlbuild webcamViewer.itarget

And install it:

install webcamViewer.native ~/bin/webcamviewer

You can also run tests (for the FFmpeg bindings):

ocamlbuild ffmpegTests.native && ./ffmpegTests.native

Setting up

The configuration is written to ~/.webcamviewer in the traditional Windows format:

[general]
output="/mnt/data/cameras"

[cam1]
url="http://admin:admin@foscam1/videostream.cgi"

[cam2]
url="http://admin:admin@foscam2/videostream.cgi"

About

Webcam viewer for multiple jpeg camera streams

Resources

License

Stars

Watchers

Forks

Packages

No packages published