Coder Social home page Coder Social logo

gphoto-live-threading's Introduction

gphoto-threading

This python script allows you to provide v4l2loopback, or other applications, with frames from a DSLR. Unlike other options, this script allows you to send commands to your camera while capturing preview frames. This lets you, for example, adjust the ISO and control focus.

Windows

For windows to work you have to install libgphoto2 using msys2. Then replace the driver with Win-USB using Zadig (I have tested this with my D5600 and without it, you won't be able to access the camera.)

mpv playback

To play with mpv --demuxer-lavf-probescore=10 must be used since the stream has no timestamps. For low latency add --no-cache --untimed --demuxer-thread=no --vd-lavc-threads=1 --no-audio

--demuxer-thread=no must be used otherwise mpv will be buffering a lot, and the output will be choppy.

This can use a lot of CPU without hardware decoding. On my i7 9700k on Windows 10, it hits 25% utilization sometimes.

Example

mpv --no-cache --untimed --no-demuxer-thread --vd-lavc-threads=1 --demuxer-lavf-probescore=10 --no-border --no-audio udp://127.0.0.1:8833

Hardware Decoding

For mpv to do hardware decoding add --hwdec-codecs=mjpeg This may or may not cause issues for you. On my i7 9700k on Windows 10 with an RTX 2080 SUPER it significantly reduces CPU usage with little noticeable latency.

gphoto-live-threading's People

Contributors

scj643 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

gphoto-live-threading's Issues

Changing F-Stop doesn't actually work

This is an issue with how F-Stop is handled at least on the D5600.
It can not be changed while the shutter is up.
A work around needs to be made to lower the shutter manually.

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.