From 5e51889d04d6a41920e729ad0a62eda70ebf2c23 Mon Sep 17 00:00:00 2001 From: Daniel Shokouhi Date: Fri, 1 May 2020 07:21:49 -0700 Subject: [PATCH] Manual install troubleshooting step for stream (#13211) --- source/_integrations/stream.markdown | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/source/_integrations/stream.markdown b/source/_integrations/stream.markdown index 42f34c02134..b031c1f21dc 100644 --- a/source/_integrations/stream.markdown +++ b/source/_integrations/stream.markdown @@ -11,7 +11,7 @@ ha_codeowners: ha_domain: stream --- -The `stream` integration provides a way to proxy live streams through Home Assistant. The integration currently only supports proxying H.264 source streams to the HLS format and requires at least FFmpeg >= 3.2. +The `stream` integration provides a way to proxy live streams through Home Assistant. The integration currently only supports proxying H.264 source streams to the HLS format and requires at least FFmpeg >= 4. ## Configuration @@ -59,16 +59,17 @@ To do this add either [picture-entity](/lovelace/picture-entity/), [picture-glan ## Troubleshooting -Some users on manual installs may see the following error in their logs after restarting: +Users on manual installs with FFmpeg < 4 may see an error similar to: ```text -2019-03-12 08:49:59 ERROR (SyncWorker_5) [homeassistant.util.package] Unable to install package av==6.1.2: Command "/home/pi/home-assistant/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-udfl2b3t/av/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-ftn5zmh2/install-record.txt --single-version-externally-managed --compile --install-headers /home/pi/home-assistant/include/site/python3.6/av" failed with error code 1 in /tmp/pip-install-udfl2b3t/av/ -2019-03-12 08:49:59 ERROR (MainThread) [homeassistant.requirements] Not initializing stream because could not install requirement av==6.1.2 -2019-03-12 08:49:59 ERROR (MainThread) [homeassistant.setup] Setup failed for stream: Could not install all requirements. +2020-04-28 13:35:43 ERROR (SyncWorker_5) [homeassistant.util.package] Unable to install package av==7.0.1: ERROR: Command errored out with exit status 1: + command: /mnt/c/dev/home-assistant/venv/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-twd7glz2/av/setup.py'"'"'; __file__='"'"'/tmp/pip-install-twd7glz2/av/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-x9tw2ql2/install-record.txt --single-version-externally-managed --compile --install-headers /mnt/c/dev/home-assistant/venv/include/site/python3.7/av + cwd: /tmp/pip-install-twd7glz2/av/ ``` -If you see this error you can solve it by running the following commands and restarting Home Assistant (commands do not need to be ran as the `homeassistant` user): +You can solve this by running the following steps to update FFmpeg >= 4: ```text -sudo apt-get install -y python-dev pkg-config libavformat-dev libavcodec-dev libavdevice-dev libavutil-dev libswscale-dev libavresample-dev libavfilter-dev +sudo add-apt-repository ppa:jonathonf/ffmpeg-4 +sudo apt upgrade ```