Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
C

cam2ip

> 编程语言
Open source

Turn any webcam into an IP camera

1.1K stars0 likes0 views
WebsiteGitHub

About

Turn any webcam into an IP camera

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

  • On Linux/RPi native Go Video4Linux (V4L) implementation is used to capture images.
  • On Windows Media Foundation is used (or Video for Windows with the vfw build tag).
  • On macOS AVFoundation is used over purego, no cgo required.

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

…

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

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Gocameramjpegwebcam

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言