Coder Social home page Coder Social logo

Comments (5)

stwolfe avatar stwolfe commented on September 22, 2024 1

Thanks again for your responses, and thanks for creating such a great library.

from mmalsharp.

stwolfe avatar stwolfe commented on September 22, 2024

I see the settings for framerate have changed in the dev branch from master. And I have tried to compare what is going on in MMALSharp vs Raspistill.

Raspistill setting just the ShutterSpeed does works.

from mmalsharp.

techyian avatar techyian commented on September 22, 2024

The shutter speed is constrained by the camera still port's frame rate. Raspistill uses a variable frame rate by setting the value to 0. If you want to see the same behaviour as Raspistill, depending on whether you're using v0.6 or the current dev branch, you'll want to do one of the following:

For v0.6 (current NuGet build): MMALCameraConfig.VideoFramerate = new MMAL_RATIONAL_T(0, 1); - see here for context.

For v0.7 (current dev branch): MMALCameraConfig.Framerate = 0;

Please let me know if that fixes the problem for you.

from mmalsharp.

stwolfe avatar stwolfe commented on September 22, 2024

@techyian,

Yes, setting the VideoFramerate allowed the shutter speed to take. I was setting the StillFramerate, I assume that bit of confusion is why the dev build only has 1 setting.

The only difference I see between my simple application just setting the VideoFramerate and shutter speed is the selected resolution. My program with MMALSharp takes picture @ 2560 x 1920, where as rapsistill with just setting shutter speed takes picture @ 3280 x 2464

Thanks for the quick response, this has me moving forward.

from mmalsharp.

techyian avatar techyian commented on September 22, 2024

No problem. On v0.6, MMALCameraConfig.StillResolution is set to Resolution.As5MPixel by default and you can override it with your desired resolution.

from mmalsharp.

Related Issues (20)

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.