The camera and snapshot function within core HA is working fine, but when I try to execute:
Service:
camera.logi_circle_livestream_snapshot
Entity:
camera.front_door
Service Data:
{
“entity_id”: “camera.front_door”, “filename”:"/tmp/snapshot_{{ entity_id }}.jpg"
}
ffmpeg crashes:
subprocess.CalledProcessError: Command ‘[‘ffmpeg’, ‘-i’, ‘/tmp/tmpyljuiriu’, ‘-vf’, ‘select=eq(n\,0)’, ‘-q:v’, ‘3’, ‘-f’, ‘singlejpeg’, ‘-’]’ died with <Signals.SIGSEGV: 11>.
2019-02-03 16:32:18 ERROR (MainThread) [homeassistant.core] Error doing job: Future exception was never retrieved
Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/logi_circle/camera.py”, line 276, in get_livestream_image
image = _get_first_frame_from_video(segment_temp_file_path)
File “/usr/local/lib/python3.6/site-packages/logi_circle/utils.py”, line 92, in _get_first_frame_from_video
stderr=subprocess.DEVNULL
File “/usr/local/lib/python3.6/subprocess.py”, line 336, in check_output
**kwargs).stdout
File “/usr/local/lib/python3.6/subprocess.py”, line 418, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command ‘[‘ffmpeg’, ‘-i’, ‘/tmp/tmplg4lt_wl’, ‘-vf’, ‘select=eq(n\,0)’, ‘-q:v’, ‘3’, ‘-f’, ‘singlejpeg’, ‘-’]’ died with <Signals.SIGSEGV: 11>.
I was able to run it ONCE and I got a snapshot .jpg image successfully. But every time since the code crashes with same error every time.
I upgraded to the latest version of ffmpeg available for Raspberry Pi B and it did not make a difference. Directories seem to have correct whitelist access properties. As I said, it worked once.
Also, the ‘camera.logi_circle_livestream_record’ works fine to capture a video from the logi circle camera.
action:
- service: camera.logi_circle_livestream_record
data:
entity_id: camera.front_door
filename: "/config/www/cam_captures/front_door_{{ now().strftime('%Y%m%d-%H%M%S') }}.mp4"
duration: 30
ffmpeg --help
ffmpeg version 3.2.12-1~deb9u1+rpt1 Copyright © 2000-2018 the FFmpeg developers
built with gcc 6.3.0 (Raspbian 6.3.0-18+rpi1+deb9u1) 20170516
configuration: --prefix=/usr --extra-version=‘1~deb9u1+rpt1’ --toolchain=hardened --libdir=/usr/lib/arm-linux-gnueabihf --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-omx-rpi --enable-mmal --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --arch=armhf --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
libavutil 55. 34.101 / 55. 34.101
libavcodec 57. 64.101 / 57. 64.101
libavformat 57. 56.101 / 57. 56.101
libavdevice 57. 1.100 / 57. 1.100
libavfilter 6. 65.100 / 6. 65.100
libavresample 3. 1. 0 / 3. 1. 0
libswscale 4. 2.100 / 4. 2.100
libswresample 2. 3.100 / 2. 3.100
libpostproc 54. 1.100 / 54. 1.100
# Logi Circle
logi_circle:
username: !secret logi_username
password: !secret logi_password
camera:
- platform: logi_circle
sudo file core
core: ELF 32-bit LSB core file ARM, version 1 (SYSV), SVR4-style, from ‘ffmpeg -i /tmp/tmpaxo57guv -vf select=eq(n,0) -q:v 3 -f singlejpeg -’, real uid: 0, effective uid: 0, real gid: 0, effective gid: 0, execfn: ‘/usr/bin/ffmpeg’, platform: ‘v7l’
pi@homeassistant:~/homeassistan