New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting 'sensor_mode' has no effect #324

dneunkirch opened this Issue Sep 11, 2016 · 3 comments


None yet
2 participants

dneunkirch commented Sep 11, 2016

After the upgrade from version 1.09 to 1.12 has setting the sensor_mode no effect anymore (same behavior on 6 pi's).


import picamera

with picamera.PiCamera(sensor_mode=2, resolution=(1920, 1080), framerate=15) as camera:
  camera.capture('preview.jpg', format='jpeg', quality=10, use_video_port=True, splitter_port=2)

If I take a picture with raspistill it's working (raspistill -w 1920 -h 1080 -md 2 -o test.jpg).

Problem on:
4.4.20-v7+ #908 SMP Wed Sep 7 14:44:27 BST 2016 armv7l GNU/Linux (Raspberry 3)
4.4.20+ #908 Wed Sep 7 14:35:04 BST 2016 armv6l GNU/Linux (Raspberry B, B+, 2)

sensor_mode has only no effect if the parameter use_video_port with the value True is given.


This comment has been minimized.

dneunkirch commented Sep 14, 2016

After further analysis I have found out that the problem comes with the release 1.11.

If you want to get the current sensor_mode with camera.sensor_mode it always returns 0 but the method configure_camera(...) is correctly invoked and sets the given sensor_mode. It seems so that the parameter MMAL_PARAMETER_CAMERA_CUSTOM_SENSOR_CONFIG is wrong, but on the same firmware with release 1.10 it's working.


This comment has been minimized.


waveform80 commented Sep 29, 2016

Yup, confirmed - I'll have a look into this tonight.

@waveform80 waveform80 added the bug label Sep 29, 2016

@waveform80 waveform80 added this to the 1.13 milestone Sep 29, 2016

@waveform80 waveform80 self-assigned this Sep 29, 2016


This comment has been minimized.


waveform80 commented Sep 29, 2016

Doh, I knew this rang a bell - 6by9 pointed it out back in #307 and I completely forgot about it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment