Giter Club home page Giter Club logo

Comments (3)

peplin avatar peplin commented on July 16, 2024

I don't know if there's a limit in the kernel, I'd guess not, but the device might have a hard time processing multiple streams simultaneously. Let me know if you get it working!

from android-webcam.

sarxos avatar sarxos commented on July 16, 2024

On normal Linux kernel that uses V4L this is limited to the USB I/O throughput depending on the currently used camera device streaming format. For example, RGB VGA data requires 640x480x3 bytes for every frame (3 bytes for every pixel), so when one would like to stream 30 FPS, the necessary throughput will be 26.3 MB/s for a single camera and RGB HD 720p will require 80.1 MB/s.

From the USB Description at Wikipedia you can found that the following are the USB limits:

  • 1.5 MB/s for USB 1.1,
  • 60 MB/s for USB 2.0,
  • 650 MB/s for USB 3.0.

Therefore, if one needs to stream RGB VGA from 2 cameras using USB 2.0 (which is most common), the simultaneous active connections number will be limited to only 2 cameras. I tested this on my Ubuntu Linux and indeed I cannot stream from more that 2 cameras with RGB VGA format at the same time. With lower resolution and/or with better format (e.g. MJPEG) I can actively stream from more.

EDIT: Just a note, even the cheapest UVC devices supports YUV and/or RGB, and some better ones has support for MJPEG which increase the estimated limit to many more devices connected at once.

from android-webcam.

luisfgfurtado avatar luisfgfurtado commented on July 16, 2024

Thank you Sarxos.
I had to give up of this project, but your information is very useful.

from android-webcam.

Related Issues (20)

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.