home-assistant.io/source/_components/camera.ffmpeg.markdown
Franck Nijhof ebca3218c7
🔥Removes linkable_title everywhere (#9772)
* Automatically create linkable headers

* Visually improve position of linkable header chain icon

* Do not auto link  headers on homepage

* Remove linkable_title everywhere

* 🚑 Re-instante linkable_title plugin as NOOP
2019-07-04 19:08:27 +02:00

1.7 KiB

layout, title, description, date, sidebar, comments, sharing, footer, logo, ha_category, ha_release, ha_iot_class
layout title description date sidebar comments sharing footer logo ha_category ha_release ha_iot_class
page FFmpeg Camera Instructions on how to integrate a video feed via FFmpeg as a camera within Home Assistant. 2016-08-13 08:00 true false true true ffmpeg.png
Camera
0.26 Local Polling

The ffmpeg platform allows you to use any video feed as a camera in Home Assistant via FFmpeg. This video source must support multiple simultaneous reads, because for every concurrent Home Assistant user, a connection will be made to the source every 10 seconds. Normally this should not be a problem.

Configuration

To enable your FFmpeg feed in your installation you must first configure the ffmpeg integration, then add the following to your configuration.yaml file:

# Example configuration.yaml entry
camera:
  - platform: ffmpeg
    input: FFMPEG_SUPPORTED_INPUT

{% configuration %} input: description: An FFmpeg-compatible input file, stream, or feed. required: true type: string name: description: Override the name of your camera. required: false type: string extra_arguments: description: Extra options to pass to ffmpeg, e.g., image quality or video filter options. required: false type: string default: "-pred 1" {% endconfiguration %}

Image quality

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

If you are running into trouble with this sensor, please refer to the Troubleshooting section.