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 (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\", line 114, in open
  File "C:\python3\lib\asyncio\", line 212, in create_subprocess_exec
    stderr=stderr, **kwds)
  File "C:\python3\lib\asyncio\", line 1079, in subprocess_exec
    bufsize, **kwargs)
  File "C:\python3\lib\asyncio\", line 373, in _make_subprocess_transport
  File "C:\python3\lib\asyncio\", line 40, in __init__
    stderr=stderr, bufsize=bufsize, **kwargs)
  File "C:\python3\lib\asyncio\", line 757, in _start
    bufsize=bufsize, **kwargs)
  File "C:\python3\lib\asyncio\", line 204, in __init__
    stderr=stderr_wfd, **kwds)
  File "C:\python3\lib\", line 947, in __init__
    restore_signals, start_new_session)
  File "C:\python3\lib\", line 1224, in _execute_child
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\", line 61, in handle_request
    resp = yield from self._handler(request)
  File "C:\Users\de_va\AppData\Roaming\.homeassistant\deps\aiohttp\", line 249, in _handle
    resp = yield from handler(request)
  File "C:\python3\lib\asyncio\", line 209, in coro
    res = yield from res
  File "C:\python3\lib\asyncio\", 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\", 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\", 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\", 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\", line 60, in async_camera_image
  File "C:\Users\de_va\AppData\Roaming\.homeassistant\deps\haffmpeg\", 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:

  - 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_bin: ‘C:\ffmpeg\bin\ffmpeg.exe’

Not more error after that …