home-assistant.github.io/source/_components/camera.ffmpeg.markdown
Pascal Vizeli 8a127d27bd add ffmpeg support (#753)
* add ffmpeg support

* add image quality options
2016-08-13 18:10:05 +02:00

1.4 KiB

layout title description date sidebar comments sharing footer logo ha_category
page FFmpeg Camera Instructions how to integrate a Video feet with FFmpeg as cameras within Home Assistant. 2015-09-17 08:01 true false true true ffmpeg.png Camera

The ffmpeg platform allows you to use every video feet with FFmpeg as camera in Home Assistant.

You need a ffmpeg binary in your system path. On debain 8 you can install it from backports. If you want HW support on raspberry you need self build from source. Windows binary are avilable on ffmpeg homepage.

To enable your Foscam IP camera in your installation, add the following to your configuration.yaml file:

# Example configuration.yaml entry
camera:
  platform: ffmpeg
  input: FFMPEG_SUPPORTED_INPUT
  name: FFmpeg
  ffmpeg_bin: /usr/bin/ffmpeg
  extra_arguments: -q:v 2

Configuration variables:

  • input (Required): A ffmpeg compatible input file, stream or feet.
  • name (Optional): This parameter allows you to override the name of your camera.
  • ffmpeg_bin (Optional): Default 'ffmpeg'.
  • extra_arguments (Optional): Extra option they will pass to ffmpeg. i.e. image quality or video filter options.

Image quality:

You can controll the image quality with extra_arguments -q:v 2-32 or with lossless option -pred 1.