Friday, May 17, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 583  / 2 Years ago, sun, november 27, 2022, 12:52:47

I'm tring to use builtin webcam from my laptop to capture image.
Currently I'm using cheese. I know vlc will do the job but I wonder if cheese can do this.


I haven't found any option to change saving image format, both in preference or cheese config file.
How can I save image with image formats with low data loss, such as .bmp or .png


More From » 20.04

 Answers
2

cheese apparently can't do this in the current version.


The source code looks as if the file extension '.jpg' is hard-coded.


So if you want to change that, you could start with an issue at https://gitlab.gnome.org/GNOME/cheese/-/issues.
And if you know C, then you could even provide a merge request there.


However, there are other programs that take snapshots in lossless formats and can be used from the command line interface, e.g. gucview:


guvcview -i my_image1.png -g none -e -t 1 -n 1

This creates a single snapshot (see guvcview --help for details).


According to another stackoverflow thread, vlc can also be used from the command line:


vlc -I dummy v4l2:///dev/video0 --video-filter scene --no-audio --scene-path /tmp --scene-prefix image_prefix --scene-format png vlc://quit --run-time=1

seems to save many snapshots until you abort the process with ctrl-c. (The last two params seem to be ignored in my system.)


[#1260] Monday, November 28, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
howesale

Total Points: 224
Total Questions: 117
Total Answers: 116

Location: Nauru
Member since Thu, May 18, 2023
1 Year ago
;