Running mjpg-streamer, my pan and tilt controls were not available.

There were lots of errors like

UVCIOC_CTRL_ADD - Error at Pan (relative): Inappropriate ioctl for device (25)

To fix this, make sure that libwebcam0 and uvcdynctl are installed

sudo apt install libwebcam0 uvcdynctrl

Running the following command, there are likely no pan/tilt controls present.

uvcdynctrl -c

Now import the logitech IOCTL bindings

uvcdynctrl --import=/usr/share/uvcdynctrl/data/046d/logitech.xml

Now, you should have pan/tilt bindings

uvcdynctrl -c

  Brightness
  Contrast
  Saturation
  White Balance Temperature, Auto
  Gain
  Power Line Frequency
  White Balance Temperature
  Sharpness
  Backlight Compensation
  Exposure, Auto
  Exposure (Absolute)
  Exposure, Auto Priority
  Pan (relative)
  Tilt (relative)
  Pan Reset
  Tilt Reset
  Focus
  Pan/tilt Reset
  Focus
  LED1 Mode
  LED1 Frequency
  Disable video processing
  Raw bits per pixel

Now you can run mjpg_streamer again and use pan/tilt!