Score:0

Setting zoom on guvcview.control-panel from the command line

in flag

guvcview control panel

Is there any way I can set the zoom value (which defaults to 100) from the command line?

I can't find anything useful in the manpage or with the --help

$ guvcview.control-panel --help                                         

Guvcview version 2.0.6

Usage:
   guvcview [OPTIONS]

OPTIONS:
-h,--help                               :Print help
-v,--version                            :Print version
-w,--verbosity=LEVEL                    :Set Verbosity level (def: 0)
-d,--device=DEVICE                      :Set device name (def: /dev/video0)
-c,--capture=METHOD                     :Set capture method [read | mmap (def)]
-b,--disable_libv4l2                    :disable calls to libv4l2
-x,--resolution=WIDTHxHEIGHT            :Request resolution (e.g 640x480)
-f,--format=FOURCC                      :Request format (e.g MJPG)
-F,--fps=FPS_NUM[/FPS_DENOM]            :Request fps (e.g 25 ; 7/3; ...)
-r,--render=RENDER_API                  :Select render API (e.g none; sdl; sfml)
-m,--render_window=RENDER_WINDOW_FLAGS  :Set render window flags (e.g none; full; max; WIDTHxHEIGHT)
-a,--audio=AUDIO_API                    :Select audio API (e.g none; port; pulse)
-k,--audio_device=AUDIO_DEVICE          :Select audio device index for selected api (0..N)
-g,--gui=GUI_API                        :Select GUI API (e.g none; gtk3)
-o,--audio_codec=CODEC                  :Audio codec [pcm mp2 mp3 aac ac3 vorb]
-u,--video_codec=CODEC                  :Video codec [raw mjpg mpeg flv1 wmv1 mpg2 mp43 dx50 h264 vp80 theo]
-p,--profile=FILENAME                   :load control profile
-j,--video=FILENAME                     :filename for captured video)
-i,--image=FILENAME                     :filename for captured image)
-y,--video_timer=TIME_IN_SEC            :time (double) in sec. for video capture)
-t,--photo_timer=TIME_IN_SEC            :time (double) in sec. between captured photos)
-n,--photo_total=TOTAL                  :total number of captured photos)
-e,--exit_on_term                       :exit app after video or image capture ends
-z,--control_panel                      :Start in control panel mode

Update:

For more context, I want to write a script that sets up my webcam when I login as a startup script.

I have figured I can save the profile and run it from the command line this way

$ guvcview -p Cam-Profile.gpfl -z 

However this doesn't close Guvcview after setting up the zoom factor.

Are there other commandline tools that I can use with similar functionality?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.