Comments (3)
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.
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.
Thank you Sarxos.
I had to give up of this project, but your information is very useful.
from android-webcam.
Related Issues (20)
- Unable to load frame, buffers not initialized HOT 1
- Monochrome camea HOT 1
- NativeWebcamJNI(2427): VIDIOC_DQBUF error 9, Bad file number HOT 4
- Black rectangle instead of photo HOT 1
- Use with Android Studio HOT 3
- Which ROMs are known to work? HOT 2
- Nothing showing up on screen HOT 2
- Insufficient permissions, /dev/video4 owned by system user HOT 7
- A Video as an input possible?
- java.lang.UnsatisfiedLinkError HOT 1
- Is there Gradle support? HOT 1
- Can we use it for our project. HOT 1
- Cannot open '/dev/video0': 11, Try again HOT 1
- Getting a .jar?
- Error:Execution failed for task ':example:processDebugResources'. > Error: A library uses the same package as this project: com.ford.openxc.webcam HOT 3
- Android Studio version here
- Different library for Novathor Chipset?
- issue with appbuilder
- Insufficient permissions on /dev/video0 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-webcam.