Comments (7)
Hi,
For now there is no way to set requested FPS, but there is such argument in native code, so I will try to expose it somehow.
In terms of the message you are getting. I found this comment:
Problem
$ ./my_webcam_program
libv4lconvert: warning more framesizes then I can handle!
Solution
Install v4l version 0.8.4 or later, and then run sudo ldconfig. Rerun your program; the message should go away. Note: I don’t really know in what version of v4l this was fixed, but I do know that it is fixed in version 0.8.4.
Not sure if it's related to FPS.
from webcam-capture.
Hi,
I dig a little in a code and found that rate (FPS) argument which is being passed to native code is never used there, so it means that FPS rate is a number of consecutive getImage()
calls per second.
from webcam-capture.
I'm not sure if this is the root cause, since I'm not a v4l2 guru, but from the code I've googled, it seams like your webcam supports more resolutions than libv4lconvert can handle.
http://git.linuxtv.org/v4l-utils.git/blob/HEAD:/lib/libv4lconvert/libv4lconvert.c
if (data->no_framesizes == V4LCONVERT_MAX_FRAMESIZES) {
fprintf(stderr, "libv4lconvert: warning more framesizes then I can handle!\n");
return;
}
http://git.linuxtv.org/v4l-utils.git/blob/HEAD:/lib/libv4lconvert/libv4lconvert-priv.h
#define V4LCONVERT_MAX_FRAMESIZES 256
As you can see, in HEAD version value of V4LCONVERT_MAX_FRAMESIZES
is set to 256, but in old releases it was 16. I can only assume that it's enough to update the package and it should work fine.
from webcam-capture.
Please reopen if this is not the case.
from webcam-capture.
i use the ScheduledThreadpool to handle the fps,and expose the data with an listener
from webcam-capture.
Is that mean that you also observed the same issue?
from webcam-capture.
@sarxos no ,i read the native code,it's set to 30,and i just use that to simplify my code.
but i have seen that warnning message before,
from webcam-capture.
Related Issues (20)
- WebCam is not access by using Java in MAC ventura version HOT 3
- Strange Trouble (not an issue but i can't work with your wonderful API) HOT 2
- Is there support for aarch64 ?
- Kotlin Multiplatform Desktop MacOS HOT 3
- Setting driver while program is running
- The link to zipped libraries from the latest released do not work HOT 1
- OBS + webcam-capture = "cannot execute task" on Webcam.open()
- dont render well HOT 4
- Plan for release 0.3.13
- Opening OBS Virtual Camera crashes app with "ERROR: SampleCB() - buffer sizes do not match" HOT 5
- Not working on Mac m1 HOT 3
- wiki link is dead, idk replacement.
- webcam-capture with v4l4j crash on RaspPi (64b)
- facing issue importing : import com.github.sarxos.webcam.Webcam; HOT 1
- How to handle exceptions in IpCamDevice threads
- Unable to match the human face matrix after setting image rotation and mirroring HOT 1
- jlink command error "org.openjfx:javafx-maven-plugin:0.0.8:jlink" with jdk21\javafx19 HOT 1
- The memory will keep increasing if the camera keeps previewing
- 有没有linux_arm64版本OpenIMAJGrabber.so文件? #378
- Webcam Capture API not working in Mac with Arm architecture HOT 2
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 webcam-capture.