Skip to content

A commandline webcam server to stream a web cam on windows via http mjpeg

Notifications You must be signed in to change notification settings

shivan/WebCamServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebCamServer

This is a simple web cam server to stream a local camera via http (jpeg)

Requirements

.NET 6.0

Usage

Simply copy the binary files to a directory and execute the main application.

WebCamServer.exe --help

shows the help information.

Usage:
WebCamServer --device=<device name> --width=<resWidth> --heigth=<resHeigth> --port=<port>

Device can be a part of the device name (case insensitive).

Width and/or heigth can be selected, too. Otherwise default will be used.

If you don't pass any parameters, it will show all available cameras and use the first one. Also it will show the available resolutions on the selected camera.

Port is the http port to be used. Optional parameter.

Run as service

You can use NSSM (non-sucking service manager - https://nssm.cc/) to run it as a service.

nssm install

URLs

URL Description
http://server:8080/current.jpg current live picture
http://server:8080/stream.jpg livestream

How to add the camera to home-assistant

  1. add new generic camera
  2. use http://server:8080/current.jpg for current url
  3. use http://server:8080/stream.jpg for stream url
  4. use http as transport protocol
  5. leave everything else as default

About

A commandline webcam server to stream a web cam on windows via http mjpeg

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages