techyian / MMALSharp

C# wrapper to Broadcom's MMAL with an API to the Raspberry Pi camera.
MIT License
195 stars 33 forks source link

Timelapse Resolution 0x0. #101

Closed hackerncoder closed 4 years ago

hackerncoder commented 4 years ago

Hello! I'm trying to make a time-lapse with this. However it wont work. All i get is "Preparing to take picture. Resolution: 0 x 0. Encoder: JPEG. Pixel Format: I420"

techyian commented 4 years ago

Hey,

Can you confirm which version you're using please? Have you cloned from the "dev" branch? If so, that's still in alpha (v0.6) and I'm fully aware there's some outstanding issues which need fixing. If you're using v0.5.1 from NuGet and having issues then I'll investigate for you although the timelapse unit tests were passing on that version.

Thanks.

hackerncoder commented 4 years ago

Im using the Nuget v5.0.1. I just tried using video. And it seems fine

hackerncoder commented 4 years ago

I also dont know much about how this works. Anything i need to do?

techyian commented 4 years ago

Are you following the example in the Wiki? Also, which runtime are you using, Mono or .NET Core?

hackerncoder commented 4 years ago

Yes. I am using the example on the wiki with a slight difference: I'm using FromDays. And i tried FromMinutes... Did not work either. And I'm using .NET Core runtime 3.0.1 Edit: Trying to use PNG encoder and Pixel format did not help. Another edit: Setting resolution to As1080p manually did nothing

techyian commented 4 years ago

Yes it looks as though there is a bug here. I will raise it and fix ASAP. Thank you for letting me know. It'll likely be patched into the v0.6 release.