Comments (5)
Thanks again for your responses, and thanks for creating such a great library.
from mmalsharp.
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.
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.
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.
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)
- TakePicture not setting ImageContext resolution HOT 4
- Bitmap.Save writes a raw RGB array as BGR HOT 4
- Unnecessary file output to post-process still captures
- Add user provided name to MMALPortConfig
- Allow user provided buffer number and size for camera ports HOT 1
- Raw ImageContext output and padded resolutions HOT 1
- StereoMode not being set HOT 1
- Default motion detection example for v0.6 throws "Unhandled exception. System.TypeInitializationException: The type initializer for 'Gdip' threw an exception." HOT 10
- How to set camera number to capture from HOT 3
- MMALCamera.ProcessAsync sometimes hangs indefinitely HOT 7
- Question: LineDetection in Video HOT 3
- Capturing still image to memory stream no longer working HOT 2
- Camera warmup time question HOT 5
- Investigate use of ArrayPool to reduce allocations
- MMALSharp not working with new Raspbian GNU/Linux 11 (bullseye) OS HOT 4
- MMAP gives exception when initialising camera HOT 1
- Howto change PreviewPort after cam.Camera.PreviewPort.ConnectTo(video)
- How to change JPEG quality when using rapid image capture HOT 5
- MMALCameraConfig.IntraPeriod not working?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mmalsharp.