Git Product home page Git Product logo

v4l2camera's Introduction

CircleCI CirusCI Snap Status

Release Download Docker Pulls Openwrt

v4l2camera

Web server & UI for v4l2rtspserver

The civetweb HTTP server give access to the Video4Linux interface, web interface is using VueJS, RTSP server is using project v4l2rtspserver

Build

cmake . && make

Usage

./v4l2web [-v[v]] [-P httpport] [-c sslkeycert] [-R rtspport] [-f format] [-G width x height [x fps]] [device]
     -v               : verbose 
     -v v             : very verbose 
     -c sslkeycert    : path to private key and certificate for HTTPS 
     -P port          : server port (default 8080)
     -p path          : server root path (default webroot)
     -R port          : RTSP server port (default 8554)
     -f format        : V4L2 capture using format
     -G <w>x<h>[x<f>] : V4L2 capture geometry (default 640x480x25)
     -r               : V4L2 capture using memory mapped buffers (default use read interface)
     -w               : V4L2 capture using write interface (default use memory mapped buffers)
     device           : V4L2 capture device (default /dev/video0)

Using Docker image

You can start the application using the docker image :

    docker run -p 8080:8080 -it mpromonet/v4l2camera

You can expose V4L2 devices from your host using :

    docker run --device=/dev/video0 -p 8080:8080 -it mpromonet/v4l2camera

The container entry point is the v4l2web application, then you can :

  • get the help using :

      docker run -it mpromonet/v4l2camera -h
    
  • run the container specifying some paramters :

      docker run --device=/dev/video0 -p 8080:8080 -it mpromonet/v4l2camera -G 800x600x25 
    

v4l2camera's People

Contributors

dependabot[bot] avatar mpromonet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

v4l2camera's Issues

compile error

I get the following error when I try to build.

make
g++ -o v4l2web -W -Wall -pthread -g -pipe  -lssl -g -O0  -I /usr/include/jsoncpp  -I mongoose -I h264_v4l2_rtspserver/inc v4l2web.c mongoose.o h264_v4l2_rtspserver/src/V4l2Device.cpp h264_v4l2_rtspserver/src/V4l2MMAPDeviceSource.cpp -ljsoncpp -lv4l2
v4l2web.c: In function ‘unsigned int add_ctrl(int, unsigned int, Json::Value&)’:
v4l2web.c:85:64: error: ‘V4L2_CTRL_TYPE_INTEGER_MENU’ was not declared in this scope
v4l2web.c:91:57: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
v4l2web.c:103:41: error: ‘struct v4l2_querymenu’ has no member named ‘value’
v4l2web.c: In function ‘int send_capabilities_reply(mg_connection*)’:
v4l2web.c:141:11: error: ‘struct v4l2_capability’ has no member named ‘device_caps’
v4l2web.c:142:11: error: ‘struct v4l2_capability’ has no member named ‘device_caps’
v4l2web.c:143:11: error: ‘struct v4l2_capability’ has no member named ‘device_caps’
v4l2web.c:144:11: error: ‘struct v4l2_capability’ has no member named ‘device_caps’
v4l2web.c:145:11: error: ‘struct v4l2_capability’ has no member named ‘device_caps’
Makefile:20: recipe for target 'v4l2web' failed
make: *** [v4l2web] Error 1

I was able to build and run h264_v4l2_rtspserver/ just fine. Thus, I'm confident I have the correct dependencies.

v4l2rtsp server on with web

Hi there!

Great work with this! im running your rtspserver and thought that this would give the chance to control brightness and so on for the camera but i cant get it work due to busy resource.

is there a chance to work around this? running the rtsp server and have access to the webinterface "control" functions? without activating the camera streaming on the webpage due to this is causing the problem.

Thanks again for a great work!

Cross-compilation with Buildroot and integration with localtunnel

Hello. I would like to run this web interface on a headless IoT device (Raspberry Pi 3B with Defender webcam) with an OS image built with Buildroot, and expose this web interface to the Internet using localtunnel. Please add an ability to cross-compile this V4L2 web interface project to aarch64 and integrate it into Buildroot. Localtunnel integration is secondary.

Cannot set format, Cannot init device

Hi,

I have a new Raspberry Pi and a Logitech C920 webcam.
I installed the dependencies. I cloned the repository. And I built it.
And I run it with default options:

2015-03-04 02:45:22,680 [NOTICE] - v4l2wrapper/src/V4l2Capture.cpp:94
    driver:uvcvideo 85000001
2015-03-04 02:45:22,680 [NOTICE] - v4l2wrapper/src/V4l2Capture.cpp:102
    /dev/video0 support read/write
2015-03-04 02:45:22,680 [NOTICE] - v4l2wrapper/src/V4l2Capture.cpp:103
    /dev/video0 support streaming
2015-03-04 02:45:22,682 [ERROR ] - v4l2wrapper/src/V4l2Capture.cpp:133
    Cannot set format format:1448695129
2015-03-04 02:45:22,682 [ERROR ] - v4l2wrapper/src/V4l2Capture.cpp:43
    Cannot init device:/dev/video0
2015-03-04 02:45:22,684 [NOTICE] - v4l2wrapper/src/V4l2Capture.cpp:94
    driver:uvcvideo 85000001
2015-03-04 02:45:22,684 [NOTICE] - v4l2wrapper/src/V4l2Capture.cpp:102
    /dev/video0 support read/write
2015-03-04 02:45:22,684 [NOTICE] - v4l2wrapper/src/V4l2Capture.cpp:103
    /dev/video0 support streaming
2015-03-04 02:45:22,686 [NOTICE] - v4l2wrapper/src/V4l2Capture.cpp:144
    bufferSize:153600
2015-03-04 02:45:22,687 [NOTICE] - v4l2wrapper/src/V4l2Capture.cpp:163
    fps:1/10
2015-03-04 02:45:22,687 [NOTICE] - v4l2wrapper/src/V4l2Capture.cpp:164
    nbBuffer:0

And it is running and running without adding now line the console. However the default 8080 port is not opened...

(I'm much more interested in your h264_v4l2_rtspserver, but I hope that this log can help us with the other problem too.)

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.