Problem with ffmpeg

Hi everyone,

I’m trying to get my D-Link DCS-820L in HA.

I’m trying to run it with ffmpeg, but I get this error:

17-02-16 11:43:18 INFO (MainThread) [homeassistant.components.http] Serving /api/camera_proxy/camera.ffmpeg to 81.82.254.94 (auth: True)
17-02-16 11:43:18 ERROR (MainThread) [haffmpeg.core] FFmpeg fails [WinError 5] Toegang geweigerd
Traceback (most recent call last):
  File "C:\Users\de_va\AppData\Roaming\.homeassistant\deps\haffmpeg\core.py", line 114, in open
    stderr=stderr
  File "C:\python3\lib\asyncio\subprocess.py", line 212, in create_subprocess_exec
    stderr=stderr, **kwds)
  File "C:\python3\lib\asyncio\base_events.py", line 1079, in subprocess_exec
    bufsize, **kwargs)
  File "C:\python3\lib\asyncio\windows_events.py", line 373, in _make_subprocess_transport
    **kwargs)
  File "C:\python3\lib\asyncio\base_subprocess.py", line 40, in __init__
    stderr=stderr, bufsize=bufsize, **kwargs)
  File "C:\python3\lib\asyncio\windows_events.py", line 757, in _start
    bufsize=bufsize, **kwargs)
  File "C:\python3\lib\asyncio\windows_utils.py", line 204, in __init__
    stderr=stderr_wfd, **kwds)
  File "C:\python3\lib\subprocess.py", line 947, in __init__
    restore_signals, start_new_session)
  File "C:\python3\lib\subprocess.py", line 1224, in _execute_child
    startupinfo)
PermissionError: [WinError 5] Toegang geweigerd
17-02-16 11:43:19 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "C:\Users\de_va\AppData\Roaming\.homeassistant\deps\aiohttp\web_server.py", line 61, in handle_request
    resp = yield from self._handler(request)
  File "C:\Users\de_va\AppData\Roaming\.homeassistant\deps\aiohttp\web.py", line 249, in _handle
    resp = yield from handler(request)
  File "C:\python3\lib\asyncio\coroutines.py", line 209, in coro
    res = yield from res
  File "C:\python3\lib\asyncio\coroutines.py", line 209, in coro
    res = yield from res
  File "C:\python3\lib\site-packages\homeassistant-0.38.0.dev0-py3.5.egg\homeassistant\components\http\__init__.py", line 427, in handle
    result = yield from result
  File "C:\python3\lib\site-packages\homeassistant-0.38.0.dev0-py3.5.egg\homeassistant\components\camera\__init__.py", line 253, in get
    response = yield from self.handle(request, camera)
  File "C:\python3\lib\site-packages\homeassistant-0.38.0.dev0-py3.5.egg\homeassistant\components\camera\__init__.py", line 272, in handle
    image = yield from camera.async_camera_image()
  File "C:\python3\lib\site-packages\homeassistant-0.38.0.dev0-py3.5.egg\homeassistant\components\camera\ffmpeg.py", line 60, in async_camera_image
    extra_cmd=self._extra_arguments)
  File "C:\Users\de_va\AppData\Roaming\.homeassistant\deps\haffmpeg\tools.py", line 82, in get_image
    image, _ = yield from self._proc.communicate()
AttributeError: 'NoneType' object has no attribute 'communicate'

any help would be nice. :slight_smile:
my config is:

camera:
  - platform: ffmpeg
    input: -rtsp_transport tcp -i rtsp://*username*:*password*@*ip address of cam*/play3.sdp
    name: FFmpeg
    ffmpeg_bin: 'C:\ffmpeg\bin'
    extra_arguments: -q:v

never mind, the ffmpeg_bin should have been 'C:\ffmpeg

in my case with Windows 10, ffmep_bin must be fill with all the path, included the executable file :slight_smile:

ffmpeg:
ffmpeg_bin: ‘C:\ffmpeg\bin\ffmpeg.exe’

Not more error after that …