Git Product home page Git Product logo

flowerinthenight / windows-camera-tools Goto Github PK

View Code? Open in Web Editor NEW
28.0 4.0 10.0 88 KB

A generic command line tool to control camera properties in Windows. Useful camera related functions (DirectShow, Media Foundation) are included in a dll as well for easy reuse in other projects.

License: MIT License

C++ 70.86% C 29.14%
cpp windows-desktop windows-camera camera directshow media-foundation

windows-camera-tools's Introduction

Build status

windows-camera-tools

A generic command line tool to control camera properties in Windows. The tool's name is camera-cmd.exe. You can also view the information below in command line by running camera-cmd.exe without arguments.

Syntax

camera-cmd.exe option [parameters...]

Options

fnames

Lists the available/attached camera(s) in the system. Returns the number of available camera(s) found if any, otherwise returns -1.

mediainfo
mediainfo -fname:<camera_friendly_name>

Lists media-related information of the provided camera name. Returns the number of information structures retrieved. camera_friendly_name is the friendly name of the camera device/driver. You can use the fnames option to get the available friendly names, or see Device Manager -> Imaging devices.

Example
camera-cmd.exe mediainfo -fname:Integrated Camera
proppage
proppage -fname:<camera_friendly_name>

Opens the driver-provided (if any) extended property page(s). camera_friendly_name is the friendly name of the camera device/driver. You can use the fnames option to get the available friendly names, or see Device Manager -> Imaging devices.

Example
camera-cmd.exe proppage -fname:Integrated Camera
issyscam
issyscam -fname:<camera_friendly_name>

Returns the index of the camera friendly name being queried. Returns -1 on failure, or when the camera is not found. camera_friendly_name is the friendly name of the camera device/driver. You can use the fnames option to get the available friendly names, or see Device Manager -> Imaging devices.

Example
camera-cmd.exe issyscam -fname:Integrated Camera
privacy
privacy -fname:<camera_friendly_name> [-state:<0|1>]

Controls the camera privacy properties (if supported). camera_friendly_name is the friendly name of the camera device/driver. You can use the fnames option to get the available friendly names, or see Device Manager -> Imaging devices. Valid -state: values are 0 (disabled), and 1 (enabled). If only -fname:... is provided, returns the current state. If -state:... is provided after fname:..., sets the privacy state to the value provided. Returns 0 on success, -1 on failure.

Examples
camera-cmd.exe privacy -fname:Integrated Camera
camera-cmd.exe privacy -fname:Integrated Camera -state:1
flash
flash -fname:<camera_friendly_name> [-state:<0|1|2>]

Controls the camera flash properties (if supported). camera_friendly_name is the friendly name of the camera device/driver. You can use the fnames option to get the available friendly names, or see Device Manager -> Imaging devices. Valid -state: values are 0 (flash off), 1 (flash on), and 2 (auto-flash). If only -fname:... is provided, returns the current state. If -state:... is provided after fname:..., sets the flash state to the value provided. Returns 0 on success, -1 on failure.

Examples
camera-cmd.exe flash -fname:Integrated Camera
camera-cmd.exe flash -fname:Integrated Camera -state:2

windows-camera-tools's People

Contributors

flowerinthenight avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

windows-camera-tools's Issues

The camera's different, the machine's different

Hello, May I ask why I use meidiainfo to read the camera information, some machine decoder types include Subtype: MFVideoFormat_NV12, MFVideoFormat_MJPG, MFVideoFormat_YUY2. Some machines have only Subtype: MFVideoFormat_MJPG, MFVideoFormat_YUY2

Another tool!

Can u do the same tool but with the microphone? I am trying to find one but i really cant and im not able to do it myself.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.