Saturday, April 27, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 745  / 2 Years ago, thu, july 28, 2022, 7:10:45

I use



gst-launch-0.10 v4l2src num-buffers=1 ! jpegenc ! filesink location=$HOME/Desktop/test.jpg


to take snapshots. It works well. However in some light situation I need to drop some of the first frames the webcam outputs so that the webcam white balance doesn't provide me with an impossible to view image.



Do you know how could I do that?



With the GUI of cheese I can do it without any problem, but I need to automate this via CLI.



Many thanks.


More From » webcam

 Answers
5

I had exactly the same problem with my webcam. I ended up using streamer.



streamer -t 7 -o image00.jpeg


This command will save seven frames shot by your webcam. My webcam needs between five and six pictures to adapt to the lighting conditions with the seventh picture of good quality.



Streamer is in the repository under the name streamer. (Surprise! ;)


[#37041] Saturday, July 30, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
peafowkes

Total Points: 356
Total Questions: 102
Total Answers: 117

Location: Lebanon
Member since Tue, Oct 12, 2021
3 Years ago
peafowkes questions
;