Merge pull request #1054 from AlucardZero/patch-3

English editing for camera.ffmpeg.markdown
This commit is contained in:
Robbie Trencheny 2016-10-02 15:04:07 -07:00 committed by GitHub
commit d182e31eba

View File

@ -1,7 +1,7 @@
--- ---
layout: page layout: page
title: "FFmpeg Camera" title: "FFmpeg Camera"
description: "Instructions how to integrate a Video fees with FFmpeg as cameras within Home Assistant." description: "Instructions on how to integrate a video feed via FFmpeg as a camera within Home Assistant."
date: 2016-08-13 08:00 date: 2016-08-13 08:00
sidebar: true sidebar: true
comments: false comments: false
@ -13,7 +13,7 @@ ha_release: 0.26
--- ---
The `ffmpeg` platform allows you to use every video feed with [FFmpeg](http://www.ffmpeg.org/) as camera in Home Assistant. The input for ffmpeg need to support that could have multiple connection to source (input) in same time. For every user in UI and all 10 seconds (snapshot image) it make a new connection/reading to source. Normally that should never be a trouble only in strange selfmade constructs can be make mistakes. The `ffmpeg` platform allows you to use any video feed as a camera in Home Assistant via [FFmpeg](http://www.ffmpeg.org/). This video source must support multiple simultaenous 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.
To enable your FFmpeg feed in your installation, add the following to your `configuration.yaml` file: To enable your FFmpeg feed in your installation, add the following to your `configuration.yaml` file:
@ -28,13 +28,13 @@ camera:
Configuration variables: Configuration variables:
- **input** (*Required*): A ffmpeg compatible input file, stream or feed. - **input** (*Required*): An FFmpeg-compatible input file, stream, or feed.
- **name** (*Optional*): This parameter allows you to override the name of your camera. - **name** (*Optional*): Override the name of your camera.
- **extra_arguments** (*Optional*): Extra option they will pass to `ffmpeg`. i.e. image quality or video filter options. - **extra_arguments** (*Optional*): Extra options to pass to `ffmpeg`, e.g. image quality or video filter options.
### {% linkable_title Image quality %} ### {% linkable_title Image quality %}
You can control the `image quality` with [`extra_arguments`](https://www.ffmpeg.org/ffmpeg-codecs.html#jpeg2000) `-q:v 2-32` or with lossless option `-pred 1`. You can control the `image quality` with [`extra_arguments`](https://www.ffmpeg.org/ffmpeg-codecs.html#jpeg2000) `-q:v 2-32` or with lossless option `-pred 1`.
If you are running into trouble with this sensor, please refer to this [Troubleshooting section](/components/ffmpeg/#troubleshooting). If you are running into trouble with this sensor, please refer to the [Troubleshooting section](/components/ffmpeg/#troubleshooting).