Volver al ranking

gen2brain/cam2ip

Go

Turn any webcam into an IP camera

webcamcameramjpeg
Crecimiento de estrellas
Estrellas
1.1k
Forks
116
Crecimiento semanal
Issues
1
5001k
oct 2017sept 2020ago 2023jul 2026
ArtefactosGo Modulesgo get github.com/gen2brain/cam2ip
README

cam2ip

Turn any webcam into an IP camera.

Example (in web browser):

http://localhost:56000/html

or

http://localhost:56000/mjpeg

You can also use apps like ffplay or vlc:

ffplay -i http://localhost:56000/mjpeg

Requirements

Build tags

  • vfw - on Windows, use Video for Windows to access camera instead of the default Media Foundation
  • libjpeg - build with libjpeg (go-libjpeg) instead of native image/jpeg

Download

Download the latest binaries from the releases.

Installation

go install github.com/gen2brain/cam2ip/cmd/cam2ip@latest

This command will install cam2ip in GOBIN, you can point GOBIN to e.g. /usr/local/bin or ~/.local/bin.

Usage

Usage: cam2ip [<flags>]
  --index
    	Camera index [CAM2IP_INDEX] (default "0")
  --device
    	Camera name to use, matched as substring, overrides index [CAM2IP_DEVICE] (default "")
  --delay
    	Delay between frames, in milliseconds [CAM2IP_DELAY] (default "10")
  --width
    	Frame width [CAM2IP_WIDTH] (default "640")
  --height
    	Frame height [CAM2IP_HEIGHT] (default "480")
  --quality
    	Image quality [CAM2IP_QUALITY] (default "75")
  --rotate
    	Rotate image, valid values are 90, 180, 270 [CAM2IP_ROTATE] (default "0")
  --flip
    	Flip image, valid values are horizontal and vertical [CAM2IP_FLIP] (default "")
  --no-webgl
    	Disable WebGL drawing of image (html handler) [CAM2IP_NO_WEBGL] (default "false")
  --timestamp
    	Draws timestamp on image [CAM2IP_TIMESTAMP] (default "false")
  --time-format
    	Time format [CAM2IP_TIME_FORMAT] (default "2006-01-02 15:04:05")
  --bind-addr
    	Bind address [CAM2IP_BIND_ADDR] (default ":56000")
  --htpasswd-file
    	Path to htpasswd file, if empty auth is disabled [CAM2IP_HTPASSWD_FILE] (default "")
  --add-user
    	Add a user to the htpasswd file (with --htpasswd-file) and exit (default "")
  --lazy
    	Open the camera only while clients are connected [CAM2IP_LAZY] (default "false")
  --list-devices
    	List available cameras and exit (default "false")
  --version
    	Print version and exit (default "false")

Handlers

  • /html: HTML handler, frames are pushed to canvas over websocket
  • /jpeg: Static JPEG handler
  • /mjpeg: Motion JPEG, supported natively in major web browsers

camview

cmd/camview is a small native window that shows the local camera live, using iv for display.

go install github.com/gen2brain/cam2ip/cmd/camview@latest
Repositorios relacionados
hacksider/Deep-Live-Cam

real time face swap and one-click video deepfake with only a single image

PythonPyPIGNU Affero General Public License v3.0ai-facedeepfake
deeplivecam.net
95.1k13.8k
iperov/DeepFaceLive

Real-time face swap for PC streaming or video calls

PythonPyPIGNU General Public License v3.0deepfakereal-time
31k1.3k
NickeManarin/ScreenToGif

🎬 ScreenToGif allows you to record a selected area of your screen, edit and save it as a gif or video.

C#Microsoft Public Licensegifrecorder
screentogif.com
27.3k2.3k
pion/webrtc

Pure Go implementation of the WebRTC API

GoGo ModulesMIT Licensegogolang
pion.ly
16.7k1.9k
MathewSachin/Captura

Capture Screen, Audio, Cursor, Mouse Clicks and Keystrokes

C#MIT Licensecapturescreenshot
mathewsachin.github.io/Captura/
10.8k2k
mviereck/x11docker

Run GUI applications and desktops in docker and podman containers. Focus on security.

ShellMIT Licensedockergui
6.3k418
amdegroot/ssd.pytorch

A PyTorch Implementation of Single Shot MultiBox Detector

PythonPyPIMIT Licensepytorchdeep-learning
5.2k1.7k
lolcommits/lolcommits

:camera: git-based selfies for software developers

RubyRubyGemsGNU Lesser General Public License v3.0gitgit-addons
lolcommits.com
4.8k246
avinashkranjan/Amazing-Python-Scripts

🚀 Curated collection of Amazing Python scripts from Basics to Advance with automation task scripts.

Jupyter NotebookMIT Licenseprojectspython-projects
amazing-python-scripts.avinashranjan.com
3.6k1.3k
schmich/instascan

HTML5 QR code scanner using your webcam

JavaScriptnpmMIT Licensehtml5qr-code
schmich.github.io/instascan/
3k854
webcamoid/webcamoid

Webcamoid is a full featured and multiplatform camera suite.

C++GNU General Public License v3.0webcamvirtual-camera
webcamoid.github.io
2.5k285
ErickWendel/semana-javascript-expert07

JS Expert Week 7.0 - 🙅🤏🏻 Controlling Streaming Platforms using Eye and Hand Detection 👁🖐

JavaScriptnpmeye-detectionhand-detection
semana.javascriptexpert.com.br
2.4k507