FFmpeg 1.8 (#9944)

* Update requirements_all.txt

* Update requirements_test_all.txt

* Update ffmpeg.py

* Update ffmpeg.py

* Update yi.py

* Update onvif.py

* Update yi.py
This commit is contained in:
Pascal Vizeli authored and GitHub committed 2017-10-18 17:11:22 +02:00
1 parent 628b9bd8d8
commit 8a93cc147a
6 files changed
+10 -9

No files matched your search

+3 -2
View File
@@ -115,8 +115,9 @@ class YiCamera(Camera):
url = yield from self.hass.async_add_job(self.get_latest_video_url)
if url != self._last_url:
ffmpeg = ImageFrame(self._manager.binary, loop=self.hass.loop)
self._last_image = yield from ffmpeg.get_image(
url, output_format=IMAGE_JPEG, extra_cmd=self._extra_arguments)
self._last_image = yield from asyncio.shield(ffmpeg.get_image(
url, output_format=IMAGE_JPEG,
extra_cmd=self._extra_arguments), loop=self.hass.loop)
self._last_url = url
return self._last_image