Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Why my camera gives only 8FPS in linux using v4l?

Status
Not open for further replies.

Terminator3

Advanced Member level 3
Advanced Member level 3
Joined
Feb 25, 2012
Messages
802
Helped
71
Reputation
142
Reaction score
63
Trophy points
1,308
Activity points
9,027
Resolution 320x240, but frame rate is very low - about 8FPS. Tried two cameras, two different ways: compiled FPC v4l demo source code and tried mplayer from command line. Same camera gives about 20FPS min in windows. Driver issue? What i can do to improve camera FPS under linux?

update: I tried other notebook with faster CPU and get 14 FPS. But still not >20FPS. Light condition are goood. As can be seen, FPS depends on CPU. How i can get high FPS on atom CPU? I want to attach camera to embedded PC with linux, and able to see good frame rate on low resolution image, like 320x240...
 
Last edited:

Which webcam (model) do you have? Also what linux do you use (type "uname -a" in a terminal and post the output)? Most of the recent cameras should be UVC-compatible, and linux uses a general UVC driver for all of them. It's strange that you don't get good framerate. Did you try out the camera at different light condidions? Some webcams will drop the framerate in dark areas, and speed up when there is sufficient light available. Try recording outside a window on a sunny day. Additionally you might want to download and try a program called guvcview (in debian based systems type "sudo apt-get install guvcview" to install it). It gives you various fine-tune options, so you might want to play with them. See, if it offers you to change the framerate to a higher value.


It's also useful to check, if your webcam is supported on linux, or it has some issues.
https://www.ideasonboard.org/uvc/
 
Some Webcams allow direct interface to its internal image configuration parameters, so that being the case you could disable the automatic exposure and frame rate and define a fixed one.
 
Thank for your replies, i tried guvcview, and it works surprisingly fast. I found out that it uses other image format that program source code i used before. Now when using some yuv or mjpeg it works fast. I guess it was frame skipping or something because of image format converting routines. I use linux mint 32bit, downloaded it recently.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top