MMALSharp icon indicating copy to clipboard operation
MMALSharp copied to clipboard

StereoMode not being set

Open mike-a-fischer opened this issue 4 years ago • 1 comments

I am trying to configure a CM4 with two cameras to operate in side-by-side stereomode. I saw the note that stereomode is untested. I was able to set the MMALCameraConfig.StereoMode to be MMAL_STEREOSCOPIC_MODE_T.MMAL_STEREOSCOPIC_MODE_SIDE_BY_SIDE but the video is not recording stereo.

mike-a-fischer avatar Jan 29 '21 03:01 mike-a-fischer

Without access to the hardware in question, it's very difficult for me to implement and test the code required to get this working for you. I would be happy to accept a PR if you can implement this yourself. The notes clearly state that MMALSharp currently supports just 1 camera module, and therefore stereo mode will not work. The code was simply added for consistency with Raspistill/vid. I suspect the library will need to parse all available cameras and build MMAL pipelines for each in order for this to work, unless MMAL is clever enough to send frames containing data from both cameras using just a single pipeline.

techyian avatar Jan 30 '21 19:01 techyian