Comments (7)
Can you check dmesg while capturing an image. It sounds like the USB transfer is being interrupted.
It's also possible the first image the camera returns is corrupt, but subsequent ones OK. You can test this by trying --skip 10 (skips 10 frames before capturing).
from fswebcam.
How can i check dmesg while capturing? My ssh client is blocked during the execution of the fswebcam command.
I made a bunch of tests with different resolutions and skips with the result being:
The higher the resolution, the bigger the green pixel areas
Skips have no impact really
But it is kind of randomly. Even most 300x200 pics are 50% green and completely 'puzzled'. I get one good pic with 380x240 (80 skips) and one good 160x120 with no skipped frames. Maybe not enough power?
from fswebcam.
Swapped the webcam (which works fine at my desktop pc) with a playstation cam and this works - even at high resolution.
from fswebcam.
Reading up on it most USB issues with the Raspberry Pi seem to be power problems. I can reset mine simply by plugging in a Wifi card. You might be able to work around this by using a powered USB hub.
I'm going to close this for now as I don't believe it is an issue with fswebcam.
from fswebcam.
My 5 cents...
If powered USB hub does not help, ommiting -r option might help sometimes.
from fswebcam.
You should try to update your Raspberry Pi firmware.
sudo rpi-update
I had similar issues all the time with my older Logitech webcam on resolution 640x480 (only the 320x240 resolutione was working). After updating the RPi firmware (accidentally, I wanted just to have the raspicam accessed by v4l2 driver), it looks like this kind of issues have vanished; not even one bad image.
from fswebcam.
Adding --skip 10
helped on my old Creative Labs vf0415
cam. Thx!
from fswebcam.
Related Issues (20)
- Raw pixel HOT 1
- Random behaviour. Ignores parameters? HOT 2
- Re-get image on error
- Attempting to set non-existent control silently fails HOT 1
- When in --loop mode add option to run command after each frame is captured. HOT 1
- Cameras that lie about their properties
- "Error Querying Menu" when setting value
- Add ability to exit the loop after a specified number of iterations (--count ?)
- Release HOT 5
- Floating point vs Integer Math
- Write png with compression level 9 is pretty slow
- subsecond looping?
- gzip option `--best` not universal; use `-9` instead
- More astro features
- Running multiple cameras on raspberry HOT 2
- Read continuous frames from camera
- [suggestion] Capture directly to clipboard HOT 1
- "Opening /dev/video0... stat: No such file or directory" after taken 10 Pictures HOT 1
- A use after free bug in src_v41_set_read.c HOT 2
- Raspberry pi camera module error
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 fswebcam.