The Computer Oracle

Open webcam settings dialog in Windows

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Underwater World

--

Chapters
00:00 Open Webcam Settings Dialog In Windows
00:21 Answer 1 Score 2
00:54 Answer 2 Score 35
01:43 Accepted Answer Score 18
02:03 Answer 4 Score 10
02:13 Thank you

--

Full question
https://superuser.com/questions/1287366/...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#windows10 #window

#avk47



ANSWER 1

Score 35


Thanks to Fishcake's answer, I was able to find a program that offers command-line access to the same ISpecifyPropertyPages interface as AForge's DisplayPropertyPage, and thus allows us to open the dialog: ffmpeg.

  1. Download an ffmpeg Windows executable (e.g. from zeranoe) and expand bin\ffmpeg.exe into a directory, e.g. c:\utils
  2. Start a cmd prompt and change to that directory: cd \utils
  3. Find the exact name of your device, either from Control Panel | Devices and Printers or by running ffmpeg:

    C:\utils>ffmpeg -list_devices true -f dshow -i dummy -hide_banner
    [dshow @ 0000022fd7ac8440] DirectShow video devices (some may be both video and audio devices)
    [dshow @ 0000022fd7ac8440]  "USB 2.0 CAMERA"
    
  4. Run ffmpeg to show the dialog:

    ffmpeg -f dshow -show_video_device_dialog true -i video="USB 2.0 CAMERA"
    



ACCEPTED ANSWER

Score 18


I know this thread is old but inspired from stevek_mcc's answer, I made a small script to launch the webcam settings dialog directly from Windows.

Github: webcam-settings-dialog-windows

Hope this could help someone!




ANSWER 3

Score 10


I have written a little program to do this and also to allow saving camera settings in different profiles.

http://faltinek.de/freestuff/CamooZ.zip

CamooZ at work...




ANSWER 4

Score 2


The only way I've managed to launch it without using an external program (e.g. Skype) was to use AForge.Net

Using AForge.Net, you can launch the property window by simply calling DisplayPropertyPage on a VideoCaptureDevice

videoCaptureDevice.DisplayPropertyPage(IntPtr.Zero);

Using AForge.Net might be overkill for just displaying the property page (I was using it already for some image manipulation) but you can view the source to see what it is doing under the hood. The DisplayPropertyPage method is in the class VideoCaptureDevice.cs