Code Monkey home page Code Monkey logo

camd's Introduction

camd

pipeline

Stream camera frames from a device to a virtual video device on Linux.

About

camd is a command-line utility for Linux that streams camera frames from a device to a virtual video device. Using FFmpeg, the application converts the camera frames into a suitable format for the virtual video device.

Installation

Requirements

  • A virtual video device available
  • FFmpeg (already installed in most of Linux distributions)

Build

Clone this repository:

git clone https://github.com/zenoxygen/camd.git

Build the binary with optimizations:

cargo build --release

Install the binary on your system:

sudo install -m 0755 -o root -g root -t /usr/local/bin ./target/release/camd

Usage

camd 0.1.0

USAGE:
    camd [OPTIONS]

OPTIONS:
        --host_camera <host_camera>          the host of the camera server [default: 0.0.0.0:4321]
        --host_video <host_video>            the host of the video server [default: 0.0.0.0:1234]
        --virtual_device <virtual_device>    the name of the virtual device [default: /dev/video2]

Debug

Run with the environment variable set:

RUST_LOG=trace camd

Setup a virtual video device on Linux

  1. Install v4l2loopback:
sudo apt-get install v4l2loopback-dkms v4l-utils
  1. Load the v4l2loopback module into the kernel:
sudo modprobe v4l2loopback
  1. List available video devices using v4l2-ctl:
v4l2-ctl --list-devices

camd's People

Contributors

zenoxygen avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.