Giter VIP home page Giter VIP logo

Comments (7)

sarxos avatar sarxos commented on August 22, 2024

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.

sarxos avatar sarxos commented on August 22, 2024

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.

sarxos avatar sarxos commented on August 22, 2024

@decebals

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.

sarxos avatar sarxos commented on August 22, 2024

Please reopen if this is not the case.

from webcam-capture.

He-Pin avatar He-Pin commented on August 22, 2024

i use the ScheduledThreadpool to handle the fps,and expose the data with an listener

from webcam-capture.

sarxos avatar sarxos commented on August 22, 2024

Is that mean that you also observed the same issue?

from webcam-capture.

He-Pin avatar He-Pin commented on August 22, 2024

@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)

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.