<p>The commands in your documentation only work with the Raspi camera.  If that's the camera you're using, you can use the tools mentioned from terminal on your Raspberry Pi, or over SSH.  </p>

<p>If you don't have SSH setup and are using your Raspberry Pi with a keyboard and mouse, you can access the command line by pressing <kbd>ctrl</kbd>+<kbd>alt</kbd>+<kbd>f1</kbd>  <strong>remembering that</strong> <kbd>ctrl</kbd>+<kbd>alt</kbd>+<kbd>f7</kbd> brings back your GUI.</p>

<h1>Setting exposure for Raspi camera</h1>

<p>First navigate to the folder you installed <code>mjpg-streamer</code>.  If you installed it in your home folder:</p>

<pre><code>cd ~/mjpg-streamer/mjpg-streamer-experimental
</code></pre>

<p>Then use the <code>input_raspicam.so</code> utility to set the exposure using whatever preset you'd like.  </p>

<pre><code>./input_raspicam.so -ex night
</code></pre>

<h1>If you don't have a Raspi camera</h1>

<p>I'm currently using a Logitech HD Webcam C310 with OctoPrint.  I'm pretty sure setting the exposure for that is a pretty standard operation and you shouldn't need to install anything.  v4l2 (video 4 linux 2) comes installed with Raspian. </p>

<p>To set the exposure for a Logitech camera (possibly others too) first enable manual exposure mode (1 for manual, 0 for auto)</p>

<pre><code>v4l2-ctl -c exposure_auto=1
</code></pre>

<p>Then set the exposure value with</p>

<pre><code>v4l2-ctl -c exposure_absolute=100
</code></pre>

<p>replacing 100 with whatever value you'd like.  The values start at 1 and have a maximum value of 10,000.</p>

<p>These commands can of course be run over SSH.</p>

<p>You can also run </p>

<pre><code>v4l2-ctl --list-ctrls-menus
</code></pre>

<p>to see all the options for your camera.</p>

<p>Here's a screenshot of my ssh session and my OctoPrint interface for context:</p>

<p><a href="https://i.sstatic.net/tn0rn.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/tn0rn.png" alt="Screenshot of ssh session and OctoPrint interface"></a></p>

CC BY-SA 3.0
2017-06-08T06:18:28.793Z
v4l2-ctl worked very well with my lifecam studio. With my Flashforge Creator Pro, white_balance_temperature=5000 focus_absolute=29 zoom_absolute=0  sharpness=35 looks pretty good!
Michael Brown
CC BY-SA 3.0
2016-12-24T06:51:22.783Z
2016-12-27T08:40:49.933Z
2016-12-27T08:40:49.933Z
Lukas Valine
<p>I'm running an OctoPi Raspberry Pi installation of OctoPrint, and the webcam images are too bright. </p>

<p>I found some documentation on changing the exposure of mjpg-streamer, see <a href="https://github.com/foosel/OctoPrint/wiki/MJPG-Streamer-configuration" rel="noreferrer">github:foosel/OctoPrint/MJPG Streamer configuration</a>, but I don't understand where, or how, to change these settings. </p>

CC BY-SA 3.0
2016-12-23T14:08:57.410Z
Can you edit your post to include the links to the documentation in your question?
Greenonline
<octoprint>
OctoPrint mjpg-streamer configuration
Steve
# OctoPrint mjpg-streamer configuration

(Asked by: username_0 on 2016-12-22)

I'm running an OctoPi Raspberry Pi installation of OctoPrint, and the webcam images are too bright.

I found some documentation on changing the exposure of mjpg-streamer, see [github:foosel/OctoPrint/MJPG Streamer configuration](https://github.com/foosel/OctoPrint/wiki/MJPG-Streamer-configuration), but I don't understand where, or how, to change these settings.

**Tags:** octoprint

> **Comments:**
> **username_1**: Can you edit your post to include the links to the documentation in your question?  

---

## 1 answers

### Answer by username_2 on 2016-12-24. Score: 6

The commands in your documentation only work with the Raspi camera. If that's the camera you're using, you can use the tools mentioned from terminal on your Raspberry Pi, or over SSH.

If you don't have SSH setup and are using your Raspberry Pi with a keyboard and mouse, you can access the command line by pressing `ctrl`+`alt`+`f1` **remembering that** `ctrl`+`alt`+`f7` brings back your GUI.

# Setting exposure for Raspi camera

First navigate to the folder you installed `mjpg-streamer`. If you installed it in your home folder:

```
cd ~/mjpg-streamer/mjpg-streamer-experimental

```

Then use the `input_raspicam.so` utility to set the exposure using whatever preset you'd like.

```
./input_raspicam.so -ex night

```

# If you don't have a Raspi camera

I'm currently using a Logitech HD Webcam C310 with OctoPrint. I'm pretty sure setting the exposure for that is a pretty standard operation and you shouldn't need to install anything. v4l2 (video 4 linux 2) comes installed with Raspian.

To set the exposure for a Logitech camera (possibly others too) first enable manual exposure mode (1 for manual, 0 for auto)

```
v4l2-ctl -c exposure_auto=1

```

Then set the exposure value with

```
v4l2-ctl -c exposure_absolute=100

```

replacing 100 with whatever value you'd like. The values start at 1 and have a maximum value of 10,000.

These commands can of course be run over SSH.

You can also run

```
v4l2-ctl --list-ctrls-menus

```

to see all the options for your camera.

Here's a screenshot of my ssh session and my OctoPrint interface for context:

[![Screenshot of ssh session and OctoPrint interface](https://i.sstatic.net/tn0rn.png)](https://i.sstatic.net/tn0rn.png)

> **Comments:**
> **username_3**: v4l2-ctl worked very well with my lifecam studio. With my Flashforge Creator Pro, white_balance_temperature=5000 focus_absolute=29 zoom_absolute=0  sharpness=35 looks pretty good!  

---

