diff --git a/atom.xml b/atom.xml index 70744334da..0b538974de 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@
The ffmpeg
component allows other Home Assistant components to process video and audio streams. This component supports all FFmpeg versions since 3.0.0; if you have a older version, please update.
The ffmpeg
component allows other Home Assistant components to process video and audio streams. This component supports all FFmpeg versions since 3.0.0; if you have an older version, please update.
You need the ffmpeg
binary in your system path. On Debian 8 or Raspbian (Jessie) you can install it from debian-backports. If you want hardware acceleration support on a Raspberry Pi, you will need to build from source by yourself. Windows binaries are available on the FFmpeg website.
In most cases, ffmpeg
automatically detects all needed options to read a video or audio stream or file. But it is possible in rare cases that you will need to set options to help ffmpeg
out.
First check that your stream is playable by ffmpeg
outside of Home Assistant with (use option -an
or -vn
to disable video or audio stream):
First, check that your stream is playable by ffmpeg
outside of Home Assistant with (use option -an
or -vn
to disable video or audio stream):
$ ffmpeg -i INPUT -an -f null -
Now you should be able to see what is going wrong. The following list contains some common problems and solutions:
[rtsp @ ...] UDP timeout, retrying with TCP
: You need to set an RTSP transport in the configuration with: input: -rtsp_transport tcp -i INPUT
[rtsp @ ...] Could not find codec parameters for stream 0 (Video: ..., none): unspecified size
: FFmpeg needs more data or time for autodetection (the default is 5 seconds). You can set the analyzeduration
and/or probesize
options to experiment with giving FFmpeg more leeway. If you find the needed value, you can set it with: input: -analyzeduration xy -probesize xy -i INPUT
. More information about this can be found here.[rtsp @ ...] Could not find codec parameters for stream 0 (Video: ..., none): unspecified size
: FFmpeg needs more data or time for autodetection (the default is 5 seconds). You can set the analyzeduration
and/or probesize
options to experiment with giving FFmpeg more leeway. If you find the needed value, you can set it with: input: -analyzeduration xy -probesize xy -i INPUT
. More information about this can be found here.For INPUT
a valid source is needed. USB camera are an easy way to test your video setup. To get all available USB cameras connected to the system, eg. use the v4l2 tools on a Linux machine.
For INPUT
a valid source is needed. A USB camera is an easy way to test your video setup. To get all available USB cameras connected to the system, e.g., use the v4l2 tools on a Linux machine.
$ v4l2-ctl --list-devices
UVC Camera (046d:0825) (usb-0000:00:14.0-1):
- /dev/video1
+ /dev/video1
Integrated Camera (usb-0000:00:14.0-10):
- /dev/video0
+ /dev/video0
Record a test video with your USB device /dev/video1
:
sqlite:///PATH/TO/DB_NAME
mysql://SERVER_IP/DB_NAME
mysql://user:password@SERVER_IP/DB_NAME
mysql://SERVER_IP/DB_NAME
Not all Python bindings for the chosen database engine can be installed directly. This section contains additional details which should help you to get it working.
-For MariaDB you may have to install a few dependencies. On the Python side we use the mysqlclient
:
$ sudo apt-get install libmariadbclient-dev
+$ pip3 install mysqlclient
+
+For MySQL you may have to install a few dependencies. You can choose between pymysql
and mysqlclient
:
$ sudo apt-get install libmysqlclient-dev
$ pip3 install mysqlclient
If you are in a virtual environment, don’t forget to activate it before installing the pymysql package.
-pi@homeassistant:~ $ sudo -i
-root@homeassistant:~# su homeassistant
-homeassistant@homeassistant:/root$ cd /srv/homeassistant/homeassistant_venv/
-homeassistant@homeassistant:/srv/homeassistant/homeassistant_venv$ source bin/activate
-(homeassistant_venv) homeassistant@homeassistant:/srv/homeassistant/homeassistant_venv$ pip3 install mysqlclient
+If you are in a virtual environment, don’t forget to activate it before installing the mysqlclient
Python package.
+pi@homeassistant:~ $ sudo su homeassistant -s /bin/bash
+homeassistant@homeassistant:~$ source /srv/homeassistant/bin/activate
+(homeassistant) homeassistant@homeassistant:~$ pip3 install mysqlclient
After installing the dependencies, it is required to create the database manually. During the startup, Home Assistant will look for the database specified in the db_url
. If the database doesn’t exist, it will not automatically create it for you.
diff --git a/sitemap.xml b/sitemap.xml
index 42701fece8..dd7a84b3a9 100644
--- a/sitemap.xml
+++ b/sitemap.xml
@@ -3374,7 +3374,7 @@
https://home-assistant.io/components/switch.hook/
-2017-10-02T05:57:34+00:00
+2017-10-02T12:18:50+00:00
https://home-assistant.io/cookbook/automation_for_rainy_days/
@@ -4006,99 +4006,99 @@
https://home-assistant.io/docs/autostart/init.d/
-2017-10-02T05:57:34+00:00
+2017-10-02T12:18:50+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/
-2017-10-02T05:57:34+00:00
+2017-10-02T12:18:50+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/api/
-2017-10-02T05:57:34+00:00
+2017-10-02T12:18:50+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/configuration/
-2017-10-02T05:57:34+00:00
+2017-10-02T12:18:50+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/example_apps/
-2017-10-02T05:57:34+00:00
+2017-10-02T12:18:50+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/installation/
-2017-10-02T05:57:34+00:00
+2017-10-02T12:18:50+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/operation/
-2017-10-02T05:57:34+00:00
+2017-10-02T12:18:50+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/reboot/
-2017-10-02T05:57:34+00:00
+2017-10-02T12:18:50+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/running/
-2017-10-02T05:57:34+00:00
+2017-10-02T12:18:50+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/tutorial/
-2017-10-02T05:57:34+00:00
+2017-10-02T12:18:50+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/updating/
-2017-10-02T05:57:34+00:00
+2017-10-02T12:18:50+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/windows/
-2017-10-02T05:57:34+00:00
+2017-10-02T12:18:50+00:00
https://home-assistant.io/docs/ecosystem/certificates/
-2017-10-02T05:57:34+00:00
+2017-10-02T12:18:50+00:00
https://home-assistant.io/docs/ecosystem/hadashboard/
-2017-10-02T05:57:34+00:00
+2017-10-02T12:18:50+00:00
https://home-assistant.io/docs/ecosystem/hass-configurator/
-2017-10-02T05:57:34+00:00
+2017-10-02T12:18:50+00:00
https://home-assistant.io/docs/ecosystem/ios/
-2017-10-02T05:57:34+00:00
+2017-10-02T12:18:50+00:00
https://home-assistant.io/docs/ecosystem/nginx/
-2017-10-02T05:57:34+00:00
+2017-10-02T12:18:50+00:00
https://home-assistant.io/docs/ecosystem/notebooks/
-2017-10-02T05:57:34+00:00
+2017-10-02T12:18:50+00:00
https://home-assistant.io/docs/ecosystem/scenegen/
-2017-10-02T05:57:34+00:00
+2017-10-02T12:18:50+00:00
https://home-assistant.io/docs/ecosystem/synology/
-2017-10-02T05:57:34+00:00
+2017-10-02T12:18:50+00:00
https://home-assistant.io/docs/tools/
-2017-10-02T05:57:34+00:00
+2017-10-02T12:18:50+00:00
https://home-assistant.io/docs/tools/dev-tools/
-2017-10-02T05:57:34+00:00
+2017-10-02T12:18:50+00:00
https://home-assistant.io/docs/tools/hass/
-2017-10-02T05:57:34+00:00
+2017-10-02T12:18:50+00:00
https://home-assistant.io/docs/tools/scripts/
-2017-10-02T05:57:34+00:00
+2017-10-02T12:18:50+00:00
https://home-assistant.io/faq/after-upgrading/
@@ -5122,62 +5122,62 @@
https://home-assistant.io/demo/frontend.html
-2017-10-02T05:57:03+00:00
+2017-10-02T12:18:11+00:00
https://home-assistant.io/demo/index.html
-2017-10-02T05:57:03+00:00
+2017-10-02T12:18:11+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-event.html
-2017-10-02T05:57:03+00:00
+2017-10-02T12:18:11+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-info.html
-2017-10-02T05:57:03+00:00
+2017-10-02T12:18:11+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-service.html
-2017-10-02T05:57:03+00:00
+2017-10-02T12:18:11+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-state.html
-2017-10-02T05:57:03+00:00
+2017-10-02T12:18:11+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-template.html
-2017-10-02T05:57:03+00:00
+2017-10-02T12:18:11+00:00
https://home-assistant.io/demo/panels/ha-panel-history.html
-2017-10-02T05:57:03+00:00
+2017-10-02T12:18:11+00:00
https://home-assistant.io/demo/panels/ha-panel-iframe.html
-2017-10-02T05:57:03+00:00
+2017-10-02T12:18:11+00:00
https://home-assistant.io/demo/panels/ha-panel-logbook.html
-2017-10-02T05:57:03+00:00
+2017-10-02T12:18:11+00:00
https://home-assistant.io/demo/panels/ha-panel-map.html
-2017-10-02T05:57:03+00:00
+2017-10-02T12:18:11+00:00
https://home-assistant.io/googlef4f3693c209fe788.html
-2017-10-02T05:57:03+00:00
+2017-10-02T12:18:11+00:00
https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html
-2017-10-02T05:57:03+00:00
+2017-10-02T12:18:11+00:00
https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html
-2017-10-02T05:57:03+00:00
+2017-10-02T12:18:11+00:00
https://home-assistant.io/static/mdi-demo.html
-2017-10-02T05:57:03+00:00
+2017-10-02T12:18:11+00:00