thaytan / gst-rpicamsrc

GStreamer element for the Raspberry Pi camera module
Other
261 stars 101 forks source link

Refuses to capture at 40 fps in mode 4, works in raspivid #81

Open xloem opened 6 years ago

xloem commented 6 years ago

I had a v2 camera (unfortunately broken as of today), and was trying to capture at 1640x1232 at 40fps (mode 4).

Unfortunately, rpicamsrc crashes with these settings with an mmal error EINVAL I believe. However, the settings work fine with raspivid.

thaytan commented 6 years ago

What are your command lines?

xloem commented 6 years ago

hey, I haven't figured out my busted camera to check yet, but from memory I was manually setting the width, height, and framerate, but not setting the camera mode. Checking the source it seemed like gst-rpicamsrc may not recognize v2 mode configurations.

My next attempt, when I make enough time to resolve the broken camera issue, will be to try manually setting the mode number.

thaytan commented 6 years ago

I don't think there's anywhere that the rpicamsrc code needs to know individual camera sensor modes - it's just an integer that gets passed through to MMAL, or left as 0 for the driver to auto-select