fuatakgun / eufy_security

Home Assistant integration to manage Eufy Security devices as cameras, home base stations, doorbells, motion and contact sensors.
877 stars 73 forks source link

Cannot make live stream to work. Getting errors #310

Closed kdober closed 2 years ago

kdober commented 2 years ago

Hello.

I'm sorry for taking more time from you. If you have time, could you take a look at this?

I have follow your guide and I believe I haven’t missed any step. Since I’m relatively new to HA a few things got tricky for me, but I think I manage to get it working for most of it. However, I’m facing a few issues. The first one is that I’m not able to view the camera feed. Let me show first my current set up and settings. I have an original eufy Home base with the original Eufycam + a bunch of entry sensors. I’m running the latest Home assistant OS on a Linux KVM.

This is how my HACS looks like after intalling it: image

Far as I can see, on this section I cannot configure/change any setting. My configuration -> Add ons section: image

The eufy add on settings. image image image image

On the eufy integration side, these are the settings. image

Finally, this is how the configutation.yalm looks like. By the way, quite a log of Eufyxxxxx.ts files being generated, for what i reas on the forum, likely means I'm doing something wrong, but I cannot spot what :( image

Now, when going to Developer tools and try to call the following service I get an error msg about RSTP not enabled image

Similar thing when I try p2p I get the green OK, but nothing happens image

And this is how it HA log looks like just after: image

This is the log from ffmpeg:

ffmpeg started on 2022-04-08 at 12:45:37 Report written to "ffmpeg-20220408-124537.log" Log level: 48 Command line: ffmpeg -re -y -analyzeduration 1000000 -protocol_whitelist pipe,file,tcp -f h264 -i - -vcodec copy -protocol_whitelist pipe,file,tcp,udp,rtsp,rtp -hls_init_time 1 -hls_time 1 -hls_segment_type mpegts -hls_playlist_type event -hls_list_size 2 -preset ultrafast -tune zerolatency -g 15 -sc_threshold 0 -fflags genpts+nobuffer+flush_packets -loglevel debug -report -f rtsp -rtsp_transport tcp rtsp://localhost:8554/T8111H22184503AD ffmpeg version 4.4.1 Copyright (c) 2000-2021 the FFmpeg developers built with gcc 10.3.1 (Alpine 10.3.1_git20210424) 20210424 configuration: --prefix=/usr --enable-avresample --enable-avfilter --enable-gnutls --enable-gpl --enable-libass --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libxvid --enable-libx264 --enable-libx265 --enable-libtheora --enable-libv4l2 --enable-libdav1d --enable-postproc --enable-pic --enable-pthreads --enable-shared --enable-libxcb --enable-libsrt --enable-libssh --enable-libvidstab --disable-stripping --disable-static --disable-librtmp --enable-vaapi --enable-vdpau --enable-libopus --enable-vulkan --enable-libsoxr --enable-libwebp --enable-libaom --disable-debug libavutil 56. 70.100 / 56. 70.100 libavcodec 58.134.100 / 58.134.100 libavformat 58. 76.100 / 58. 76.100 libavdevice 58. 13.100 / 58. 13.100 libavfilter 7.110.100 / 7.110.100 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 9.100 / 5. 9.100 libswresample 3. 9.100 / 3. 9.100 libpostproc 55. 9.100 / 55. 9.100 Splitting the commandline. Reading option '-re' ... matched as option 're' (read input at native frame rate) with argument '1'. Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'. Reading option '-analyzeduration' ... matched as AVOption 'analyzeduration' with argument '1000000'. Reading option '-protocol_whitelist' ... matched as AVOption 'protocol_whitelist' with argument 'pipe,file,tcp'. Reading option '-f' ... matched as option 'f' (force format) with argument 'h264'. Reading option '-i' ... matched as input url with argument '-'. Reading option '-vcodec' ... matched as option 'vcodec' (force video codec ('copy' to copy stream)) with argument 'copy'. Reading option '-protocol_whitelist' ... matched as AVOption 'protocol_whitelist' with argument 'pipe,file,tcp,udp,rtsp,rtp'. Reading option '-hls_init_time' ... matched as AVOption 'hls_init_time' with argument '1'. Reading option '-hls_time' ... matched as AVOption 'hls_time' with argument '1'. Reading option '-hls_segment_type' ... matched as AVOption 'hls_segment_type' with argument 'mpegts'. Reading option '-hls_playlist_type' ... matched as AVOption 'hls_playlist_type' with argument 'event'. Reading option '-hls_list_size' ... matched as AVOption 'hls_list_size' with argument '2'. Reading option '-preset' ... matched as AVOption 'preset' with argument 'ultrafast'. Reading option '-tune' ... matched as AVOption 'tune' with argument 'zerolatency'. Reading option '-g' ... matched as AVOption 'g' with argument '15'. Reading option '-sc_threshold' ... matched as AVOption 'sc_threshold' with argument '0'. Reading option '-fflags' ... matched as AVOption 'fflags' with argument 'genpts+nobuffer+flush_packets'. Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'. Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'. Reading option '-f' ... matched as option 'f' (force format) with argument 'rtsp'. Reading option '-rtsp_transport' ... matched as AVOption 'rtsp_transport' with argument 'tcp'. Reading option 'rtsp://localhost:8554/T8111H22184503AD' ... matched as output url. Finished splitting the commandline. Parsing a group of options: global . Applying option y (overwrite output files) with argument 1. Applying option loglevel (set logging level) with argument debug. Applying option report (generate a report) with argument 1. Successfully parsed a group of options. Parsing a group of options: input url -. Applying option re (read input at native frame rate) with argument 1. Applying option f (force format) with argument h264. Successfully parsed a group of options. Opening an input file: -. [h264 @ 0x7f0046e79000] Opening 'pipe:' for reading [h264 @ 0x7f0046e79000] Before avformat_find_stream_info() pos: 0 bytes read:64288 seeks:0 nb_streams:1 [h264 @ 0x7f0046e6aa00] unknown SEI type 229 [extract_extradata @ 0x7f0046e6f080] nal_unit_type: 7(SPS), nal_ref_idc: 3 [extract_extradata @ 0x7f0046e6f080] nal_unit_type: 8(PPS), nal_ref_idc: 3 [extract_extradata @ 0x7f0046e6f080] nal_unit_type: 6(SEI), nal_ref_idc: 0 [extract_extradata @ 0x7f0046e6f080] nal_unit_type: 5(IDR), nal_ref_idc: 3 [h264 @ 0x7f0046e6aa00] nal_unit_type: 7(SPS), nal_ref_idc: 3 [h264 @ 0x7f0046e6aa00] nal_unit_type: 8(PPS), nal_ref_idc: 3 [h264 @ 0x7f0046e6aa00] nal_unit_type: 6(SEI), nal_ref_idc: 0 [h264 @ 0x7f0046e6aa00] nal_unit_type: 5(IDR), nal_ref_idc: 3 [h264 @ 0x7f0046e6aa00] unknown SEI type 229 [h264 @ 0x7f0046e6aa00] Format yuvj420p chosen by get_format(). [h264 @ 0x7f0046e6aa00] Reinit context to 1920x1088, pix_fmt: yuvj420p [h264 @ 0x7f0046e6aa00] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3 [h264 @ 0x7f0046e6aa00] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3 [h264 @ 0x7f0046e6aa00] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3 [h264 @ 0x7f0046e6aa00] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3 [h264 @ 0x7f0046e6aa00] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3 [h264 @ 0x7f0046e6aa00] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3 [h264 @ 0x7f0046e79000] max_analyze_duration 1000000 reached at 1000000 microseconds st:0 [h264 @ 0x7f0046e79000] After avformat_find_stream_info() pos: 261499 bytes read:263190 seeks:0 frames:27 Input #0, h264, from 'pipe:': Duration: N/A, bitrate: N/A Stream #0:0, 27, 1/1200000: Video: h264 (High), 1 reference frame, yuvj420p(pc, bt709, progressive, left), 1920x1080 (1920x1088), 0/1, 25 fps, 25 tbr, 1200k tbn, 50 tbc Successfully opened the file. Parsing a group of options: output url rtsp://localhost:8554/T8111H22184503AD. Applying option vcodec (force video codec ('copy' to copy stream)) with argument copy. Applying option f (force format) with argument rtsp. Successfully parsed a group of options. Opening an output file: rtsp://localhost:8554/T8111H22184503AD. Successfully opened the file. [tcp @ 0x7f0046e59780] Original list of addresses: [tcp @ 0x7f0046e59780] Address ::1 port 8554 [tcp @ 0x7f0046e59780] Address 127.0.0.1 port 8554 [tcp @ 0x7f0046e59780] Interleaved list of addresses: [tcp @ 0x7f0046e59780] Address ::1 port 8554 [tcp @ 0x7f0046e59780] Address 127.0.0.1 port 8554 [tcp @ 0x7f0046e59780] Starting connection attempt to ::1 port 8554 [tcp @ 0x7f0046e59780] Successfully connected to ::1 port 8554 [rtsp @ 0x7f0046e79600] SDP: v=0 o=- 0 0 IN IP6 ::1 s=No Name c=IN IP6 ::1 t=0 0 a=tool:libavformat 58.76.100 m=video 0 RTP/AVP 96 a=rtpmap:96 H264/90000 a=fmtp:96 packetization-mode=1; sprop-parameter-sets=Z2QAKq2EAQwgCGEAQwgCGEAQwgCEO1A8ARPyzcBAQECA,aO48sAA=; profile-level-id=64002A a=control:streamid=0

Output #0, rtsp, to 'rtsp://localhost:8554/T8111H22184503AD': Metadata: encoder : Lavf58.76.100 Stream #0:0, 0, 1/90000: Video: h264 (High), 1 reference frame, yuvj420p(pc, bt709, progressive, left), 1920x1080 (0x0), 0/1, q=2-31, 25 fps, 25 tbr, 90k tbn, 25 tbc Stream mapping: Stream #0:0 -> #0:0 (copy) cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream) [rtsp @ 0x7f0046e79600] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly [rtp @ 0x7f0046e79c00] Sending NAL 7 of len 33 M=0 [rtp @ 0x7f0046e79c00] Sending NAL 8 of len 4 M=0 [rtp @ 0x7f0046e79c00] Sending NAL 6 of len 5 M=0 [rtp @ 0x7f0046e79c00] Sending NAL 5 of len 21612 M=1 [rtp @ 0x7f0046e79c00] NAL size 21612 > 1460 frame= 1 fps=0.0 q=-1.0 size=N/A time=00:00:00.00 bitrate=N/A speed= 11x
[rtp @ 0x7f0046e79c00] Sending NAL 1 of len 13942 M=1 [rtp @ 0x7f0046e79c00] NAL size 13942 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 46228 M=1 [rtp @ 0x7f0046e79c00] NAL size 46228 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 24008 M=1 [rtp @ 0x7f0046e79c00] NAL size 24008 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 10034 M=1 [rtp @ 0x7f0046e79c00] NAL size 10034 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 12730 M=1 [rtp @ 0x7f0046e79c00] NAL size 12730 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 7280 M=1 [rtp @ 0x7f0046e79c00] NAL size 7280 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 10126 M=1 [rtp @ 0x7f0046e79c00] NAL size 10126 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 6659 M=1 [rtp @ 0x7f0046e79c00] NAL size 6659 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 6454 M=1 [rtp @ 0x7f0046e79c00] NAL size 6454 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 9460 M=1 [rtp @ 0x7f0046e79c00] NAL size 9460 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 6263 M=1 [rtp @ 0x7f0046e79c00] NAL size 6263 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 6155 M=1 [rtp @ 0x7f0046e79c00] NAL size 6155 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 8098 M=1 [rtp @ 0x7f0046e79c00] NAL size 8098 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 6169 M=1 [rtp @ 0x7f0046e79c00] NAL size 6169 > 1460 frame= 15 fps=0.0 q=-1.0 size=N/A time=00:00:00.56 bitrate=N/A speed= 1.1x
[rtp @ 0x7f0046e79c00] Sending NAL 1 of len 7531 M=1 [rtp @ 0x7f0046e79c00] NAL size 7531 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 5978 M=1 [rtp @ 0x7f0046e79c00] NAL size 5978 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 3734 M=1 [rtp @ 0x7f0046e79c00] NAL size 3734 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 9088 M=1 [rtp @ 0x7f0046e79c00] NAL size 9088 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 6242 M=1 [rtp @ 0x7f0046e79c00] NAL size 6242 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 9253 M=1 [rtp @ 0x7f0046e79c00] NAL size 9253 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 5025 M=1 [rtp @ 0x7f0046e79c00] NAL size 5025 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 3098 M=1 [rtp @ 0x7f0046e79c00] NAL size 3098 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 3274 M=1 [rtp @ 0x7f0046e79c00] NAL size 3274 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 3251 M=1 [rtp @ 0x7f0046e79c00] NAL size 3251 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 3163 M=1 [rtp @ 0x7f0046e79c00] NAL size 3163 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 2873 M=1 [rtp @ 0x7f0046e79c00] NAL size 2873 > 1460 frame= 27 fps= 27 q=-1.0 size=N/A time=00:00:01.04 bitrate=N/A speed=1.03x
[rtp @ 0x7f0046e79c00] Sending NAL 1 of len 2581 M=1 [rtp @ 0x7f0046e79c00] NAL size 2581 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 2711 M=1 [rtp @ 0x7f0046e79c00] NAL size 2711 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 2814 M=1 [rtp @ 0x7f0046e79c00] NAL size 2814 > 1460 [NULL @ 0x7f0046e6aa00] unknown SEI type 229 [rtp @ 0x7f0046e79c00] Sending NAL 7 of len 33 M=0 [rtp @ 0x7f0046e79c00] Sending NAL 8 of len 4 M=0 [rtp @ 0x7f0046e79c00] Sending NAL 6 of len 5 M=0 [rtp @ 0x7f0046e79c00] Sending NAL 5 of len 41886 M=1 [rtp @ 0x7f0046e79c00] NAL size 41886 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 2575 M=1 [rtp @ 0x7f0046e79c00] NAL size 2575 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 2481 M=1 [rtp @ 0x7f0046e79c00] NAL size 2481 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 2139 M=1 [rtp @ 0x7f0046e79c00] NAL size 2139 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 1949 M=1 [rtp @ 0x7f0046e79c00] NAL size 1949 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 2149 M=1 [rtp @ 0x7f0046e79c00] NAL size 2149 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 2683 M=1 [rtp @ 0x7f0046e79c00] NAL size 2683 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 2278 M=1 [rtp @ 0x7f0046e79c00] NAL size 2278 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 1707 M=1 [rtp @ 0x7f0046e79c00] NAL size 1707 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 2814 M=1 [rtp @ 0x7f0046e79c00] NAL size 2814 > 1460 frame= 40 fps= 26 q=-1.0 size=N/A time=00:00:01.56 bitrate=N/A speed=1.03x
[rtp @ 0x7f0046e79c00] Sending NAL 1 of len 2858 M=1 [rtp @ 0x7f0046e79c00] NAL size 2858 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 2595 M=1 [rtp @ 0x7f0046e79c00] NAL size 2595 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 2263 M=1 [rtp @ 0x7f0046e79c00] NAL size 2263 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 2045 M=1 [rtp @ 0x7f0046e79c00] NAL size 2045 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 1276 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 2408 M=1 [rtp @ 0x7f0046e79c00] NAL size 2408 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 1220 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 923 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 782 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 718 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 1300 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 569 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 613 M=1 frame= 53 fps= 26 q=-1.0 size=N/A time=00:00:02.08 bitrate=N/A speed=1.03x
[rtp @ 0x7f0046e79c00] Sending NAL 1 of len 513 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 508 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 800 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 479 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 462 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 446 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 373 M=1 [NULL @ 0x7f0046e6aa00] unknown SEI type 229 [rtp @ 0x7f0046e79c00] Sending NAL 7 of len 33 M=0 [rtp @ 0x7f0046e79c00] Sending NAL 8 of len 4 M=0 [rtp @ 0x7f0046e79c00] Sending NAL 6 of len 5 M=0 [rtp @ 0x7f0046e79c00] Sending NAL 5 of len 47806 M=1 [rtp @ 0x7f0046e79c00] NAL size 47806 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 1984 M=1 [rtp @ 0x7f0046e79c00] NAL size 1984 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 2104 M=1 [rtp @ 0x7f0046e79c00] NAL size 2104 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 2174 M=1 [rtp @ 0x7f0046e79c00] NAL size 2174 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 2031 M=1 [rtp @ 0x7f0046e79c00] NAL size 2031 > 1460 frame= 65 fps= 26 q=-1.0 size=N/A time=00:00:02.56 bitrate=N/A speed=1.01x
[rtp @ 0x7f0046e79c00] Sending NAL 1 of len 2089 M=1 [rtp @ 0x7f0046e79c00] NAL size 2089 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 2003 M=1 [rtp @ 0x7f0046e79c00] NAL size 2003 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 1780 M=1 [rtp @ 0x7f0046e79c00] NAL size 1780 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 1352 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 1113 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 1205 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 715 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 638 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 587 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 667 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 813 M=1 frame= 76 fps= 25 q=-1.0 size=N/A time=00:00:03.00 bitrate=N/A speed=0.973x
[rtp @ 0x7f0046e79c00] Sending NAL 1 of len 614 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 464 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 468 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 425 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 633 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 443 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 433 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 418 M=1 frame= 84 fps= 23 q=-1.0 size=N/A time=00:00:03.32 bitrate=N/A speed=0.926x
[rtp @ 0x7f0046e79c00] Sending NAL 1 of len 410 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 549 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 341 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 395 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 401 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 364 M=1 frame= 90 fps= 22 q=-1.0 size=N/A time=00:00:03.56 bitrate=N/A speed=0.87x
[NULL @ 0x7f0046e6aa00] unknown SEI type 229 [rtp @ 0x7f0046e79c00] Sending NAL 7 of len 33 M=0 [rtp @ 0x7f0046e79c00] Sending NAL 8 of len 4 M=0 [rtp @ 0x7f0046e79c00] Sending NAL 6 of len 5 M=0 [rtp @ 0x7f0046e79c00] Sending NAL 5 of len 48002 M=1 [rtp @ 0x7f0046e79c00] NAL size 48002 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 2035 M=1 [rtp @ 0x7f0046e79c00] NAL size 2035 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 2075 M=1 [rtp @ 0x7f0046e79c00] NAL size 2075 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 2156 M=1 [rtp @ 0x7f0046e79c00] NAL size 2156 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 2044 M=1 [rtp @ 0x7f0046e79c00] NAL size 2044 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 1977 M=1 [rtp @ 0x7f0046e79c00] NAL size 1977 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 2295 M=1 [rtp @ 0x7f0046e79c00] NAL size 2295 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 2050 M=1 [rtp @ 0x7f0046e79c00] NAL size 2050 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 1321 M=1 frame= 99 fps= 22 q=-1.0 size=N/A time=00:00:03.92 bitrate=N/A speed=0.852x
[rtp @ 0x7f0046e79c00] Sending NAL 1 of len 1096 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 1257 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 783 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 662 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 672 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 572 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 853 M=1 frame= 106 fps= 21 q=-1.0 size=N/A time=00:00:04.20 bitrate=N/A speed=0.823x
[rtp @ 0x7f0046e79c00] Sending NAL 1 of len 607 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 574 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 529 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 496 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 738 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 478 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 512 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 503 M=1 frame= 114 fps= 20 q=-1.0 size=N/A time=00:00:04.52 bitrate=N/A speed=0.806x
[rtp @ 0x7f0046e79c00] Sending NAL 1 of len 418 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 842 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 466 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 435 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 434 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 485 M=1 frame= 120 fps= 20 q=-1.0 size=N/A time=00:00:04.76 bitrate=N/A speed=0.779x
[NULL @ 0x7f0046e6aa00] unknown SEI type 229 [rtp @ 0x7f0046e79c00] Sending NAL 7 of len 33 M=0 [rtp @ 0x7f0046e79c00] Sending NAL 8 of len 4 M=0 [rtp @ 0x7f0046e79c00] Sending NAL 6 of len 5 M=0 [rtp @ 0x7f0046e79c00] Sending NAL 5 of len 48310 M=1 [rtp @ 0x7f0046e79c00] NAL size 48310 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 2003 M=1 [rtp @ 0x7f0046e79c00] NAL size 2003 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 2114 M=1 [rtp @ 0x7f0046e79c00] NAL size 2114 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 2173 M=1 [rtp @ 0x7f0046e79c00] NAL size 2173 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 2041 M=1 [rtp @ 0x7f0046e79c00] NAL size 2041 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 2026 M=1 [rtp @ 0x7f0046e79c00] NAL size 2026 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 1855 M=1 [rtp @ 0x7f0046e79c00] NAL size 1855 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 1835 M=1 [rtp @ 0x7f0046e79c00] NAL size 1835 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 1630 M=1 [rtp @ 0x7f0046e79c00] NAL size 1630 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 1288 M=1 frame= 130 fps= 20 q=-1.0 size=N/A time=00:00:05.16 bitrate=N/A speed=0.78x
[rtp @ 0x7f0046e79c00] Sending NAL 1 of len 1476 M=1 [rtp @ 0x7f0046e79c00] NAL size 1476 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 986 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 798 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 723 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 772 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 1120 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 711 M=1 frame= 137 fps= 19 q=-1.0 size=N/A time=00:00:05.44 bitrate=N/A speed=0.764x
[rtp @ 0x7f0046e79c00] Sending NAL 1 of len 564 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 570 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 570 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 1035 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 531 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 550 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 497 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 489 M=1 frame= 145 fps= 19 q=-1.0 size=N/A time=00:00:05.76 bitrate=N/A speed=0.755x
[rtp @ 0x7f0046e79c00] Sending NAL 1 of len 1173 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 502 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 483 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 542 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 457 M=1 frame= 150 fps= 18 q=-1.0 size=N/A time=00:00:05.96 bitrate=N/A speed=0.733x
[NULL @ 0x7f0046e6aa00] unknown SEI type 229 [rtp @ 0x7f0046e79c00] Sending NAL 7 of len 33 M=0 [rtp @ 0x7f0046e79c00] Sending NAL 8 of len 4 M=0 [rtp @ 0x7f0046e79c00] Sending NAL 6 of len 5 M=0 [rtp @ 0x7f0046e79c00] Sending NAL 5 of len 48445 M=1 [rtp @ 0x7f0046e79c00] NAL size 48445 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 2052 M=1 [rtp @ 0x7f0046e79c00] NAL size 2052 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 1917 M=1 [rtp @ 0x7f0046e79c00] NAL size 1917 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 2255 M=1 [rtp @ 0x7f0046e79c00] NAL size 2255 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 2100 M=1 [rtp @ 0x7f0046e79c00] NAL size 2100 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 1833 M=1 [rtp @ 0x7f0046e79c00] NAL size 1833 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 2086 M=1 [rtp @ 0x7f0046e79c00] NAL size 2086 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 1803 M=1 [rtp @ 0x7f0046e79c00] NAL size 1803 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 1633 M=1 [rtp @ 0x7f0046e79c00] NAL size 1633 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 1320 M=1 frame= 160 fps= 19 q=-1.0 size=N/A time=00:00:06.36 bitrate=N/A speed=0.736x
[rtp @ 0x7f0046e79c00] Sending NAL 1 of len 1657 M=1 [rtp @ 0x7f0046e79c00] NAL size 1657 > 1460 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 996 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 755 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 780 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 676 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 1273 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 755 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 577 M=1 frame= 168 fps= 18 q=-1.0 size=N/A time=00:00:06.68 bitrate=N/A speed=0.731x
[rtp @ 0x7f0046e79c00] Sending NAL 1 of len 562 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 537 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 1214 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 517 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 481 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 479 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 453 M=1 frame= 175 fps= 18 q=-1.0 size=N/A time=00:00:06.96 bitrate=N/A speed=0.721x
[rtp @ 0x7f0046e79c00] Sending NAL 1 of len 1109 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 509 M=1 [rtp @ 0x7f0046e79c00] Sending NAL 1 of len 428 M=1 av_interleaved_write_frame(): Broken pipe No more output streams to write to, finishing. frame= 179 fps= 18 q=-1.0 Lsize=N/A time=00:00:07.12 bitrate=N/A speed=0.701x
video:649kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown Input file #0 (pipe:): Input stream #0:0 (video): 179 packets read (664896 bytes); Total: 179 packets (664896 bytes) demuxed Output file #0 (rtsp://localhost:8554/T8111H22184503AD): Output stream #0:0 (video): 179 packets muxed (664896 bytes); Total: 179 packets (664896 bytes) muxed 0 frames successfully decoded, 0 decoding errors [AVIOContext @ 0x7f0046e82000] Statistics: 665255 bytes read, 0 seeks Conversion failed!

I have read the instruccions over and over and I cannot find the reason why this is not working for me. There are some settings mentioned on the guide that I’m not able to find, like setting the video quality to low, or the “ALPHA – user RTSP server add on instead…..” Also, at the end of the guide to set conditional cards with the yalm code. I tried to add one, but getting this error.

image

2) Sorry, I have more. Chaging Alarm mode to disarm and then arm again to Away / Home works perfect and it is updated on the dashboard almost instantly even when it is changed from the phone App. Also read on the forum that Schuduled and Geofence are not real status and they cannot be set. However, I’m not able to set our night/ sleeping mode. I tried leaving it as ‘custom1’ or change it ‘sleeping’ (mode of the name in the app), but getting the error “Failed to call service alarm_control_panel/alarm_alarm_arm_custom1. Service not found.” How should I do this?

3) At last, entry sensors status are not working very well. When open the door the status is not updated and sometimes, after doing it a few times it gets updated. I guess this is due to the ping every 600 seconds to the eufy could? Is there any way to get instant status change without enabling the notifications (I’m afraid this is not possible since our phones would be crazzy during the day)? The reason is to allow me to use entry sensors to trigger automations. An alternative I guess it could be to disable notification on the phone and make them work directly from home assistant (HA being like a proxy). Do you know how reliable this is?

Sorry for the long questions and thanks for your time!

kdober commented 2 years ago

Hi, I was able to make it work by adding a card (Picture entity) with: Tap action: Call Service -> Eufy security: Start live stream over P2P (Then selected the camera device a Target) Hold action: Call Service -> Eufy security: Stop live stream over P2P

This works, however. It is quite slow to show the camera feed. It takes exactly 10 seconds to show up. The feed shown is also with 10 seconds delay, and it is more like pictures refreshing rather than a video feed. It is about 1 frame every 2 to 4 seconds.

Any suggestion what I need to change to fix this?

Best regards, Cristian

luminko commented 2 years ago

Same - I can't get the stream working either.

Tap action: Call Service -> Eufy security: Start live stream over P2P (Then selected the camera device a Target) Hold action: Call Service -> Eufy security: Stop live stream over P2P

I followed these instructions and got the same result.

I'd love for someone to show me a way where I can just tap the image, it shows up on a pop up and then the live feed and to stop the streams when I close the pop up!

kongo09 commented 2 years ago

I had a similar problem with getting a live view. My solution was to use the WebRTC integration which works smoothly.

fuatakgun commented 2 years ago

as of now, native streaming should work too, webrtc is very nice to have but not mandatory.