question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

shutter_speed TypeError

See original GitHub issue

Dear Reader,

I would like to set the shutter speed below 1ms - for example 0.1ms (which i know is possible with the hq cam)

therefore a change in the source code is nessecary (solve TypeError). Are there any instructions on how to do that?

I would be infinitly grateful for help.

Traceback (most recent call last):
  File "/home/pi/kotzmichan.py", line 39, in <module>
    camera.shutter_speed = 0.5
  File "/usr/lib/python3/dist-packages/picamera/camera.py", line 2594, in _set_shutter_speed
    self._camera.control.params[mmal.MMAL_PARAMETER_SHUTTER_SPEED] = value
  File "/usr/lib/python3/dist-packages/picamera/mmalobj.py", line 1493, in __setitem__
    func(self._port, key, conv(value)),
ctypes.ArgumentError: argument 3: <class 'TypeError'>: wrong type

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:12

github_iconTop GitHub Comments

1reaction
6by9commented, May 26, 2022

What would you recommend me?

Already stated in https://github.com/waveform80/picamera/issues/719#issuecomment-1138513164

It should be possible with libcamera.

libcamera-hello --shutter 100 should request a 100usec exposure time.

1reaction
6by9commented, May 26, 2022

Any chance to set shutter speed below 1ms?

Not with the firmware stack (ie raspistill/vid or picamera).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use data from .txt and then applicate calculation with a ...
I am trying to extract data from a .txt file (Aperture, ShutterSpeed) and then apply some calculations with a function I already created,...
Read more >
Understanding Shutter Speed for Beginners - Photography Life
Shutter speed exists because of the camera shutter – which is a curtain in front of the camera sensor that stays closed until...
Read more >
TypeError: Cannot read property 'indexOf' of undefined · Issue #226 ...
Maybe we can output corrupted file names so they can be moved out of the way, or continue processing when they're encountered?
Read more >
Milky Way Exposure Calculator - Lonely Speck
The shutter speed is calculated based on the focal length of your lens and the size of your camera's sensor. Longer focal lengths...
Read more >
Category: Photo 1 Assignments - Edublogs
Aperture and Shutter Speed Projects Due Monday 12/12/22. The 4 photo projects are due in a week!! Use every opportunity you have to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found