Giter Site home page Giter Site logo

vdealer's Introduction

vdealer

A simple video device and streaming video duplication utility for linux (AARCH64 / NVIDIA Jetson TX2)

vdealer runs a script 'video_startup.sh', which does:

  1. uses v4l2loopback to duplicate an existing video device /dev/video# to n other device copies.

    modprobe v4l2loopback video_nr=5,6,7 # duplicates /dev/video1 to /dev/video5, /dev/video6, and /dev/video7

  2. uses ffmpeg to stream from /dev/video* to the extra devices created in (1)

    ffmpeg -f v4l2 -i /dev/video1 -f v4l2 /dev/video5 -f v4l2 /dev/video6 # streams output from /dev/video1 to /dev/video5 and 6

  3. upon termination of the docker container, cleans up the ffmpeg streams and removes the devices created in (1)

Usage:

Run as a docker container:

docker run --name vdealer -it --rm --privileged --ipc=host --cap-add=ALL -v /dev:/dev -v /lib/modules:/lib/modules aarch64-tx2-vdealer

Because the container is pre-build with the CMD option, it will launch its script 'video_startup.sh' automatically Options: '-it' will run interactive, '-td' willrun in detached mode

Build:

Build the docker container on your AARCH64 system:

docker build -f Dockerfile -t aarch64-tx2-vdealer .

(or just pull the image: docker pull openhorizon/aarch64-tx2-vdealer)

Prerequisites:

OS / Architecture / System: Linux / AARCH64 / NVIDIA Jetson TX2 (as tested) Supporting Kernel Modules: The kernel module v4l2loopback is required*

Caveats and Cautions:

This container is built to run on the NVIDIA Jetson TX2 with a custom kernel (compiled with these instructions), running JetPack3.1.

*Caution: v4l2loopback must be built from umlaeute's source, or you may run into (serious) device problems if kernel software conflicts.

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.