bropat / ioBroker.eusec

This ioBroker adapter allows to control Eufy security devices by connecting to the Eufy cloud servers.
MIT License
132 stars 17 forks source link

Livestream funktioniert nicht - Fehlermeldung im Log #117

Closed FloMeh closed 3 years ago

FloMeh commented 3 years ago

Hallo, ich möchte gerne ein aktuelles Bild der Kamera abrufen und darstellen. Meine Idee war, den Livestream kurz zu starten und anschließend wieder zu stoppen, um dann das Last-Livestream-Pic zu haben. Wenn ich allerdings den Livestream starte und anschließend wieder stoppe, bekomme ich im Logn nur viele Fehlermeldung und es funktioniert nicht. Leider weiß ich aktuell überhaupt nicht woran das liegen könnte, ob es fehlende Pakete in meiner Umgebung sind oder am Adapter liegt. Siehe Meldungen anbei.

Vielen Dank für die Hilfe und der Entwicklung des Adapters.

Screenshot_08_04_21__15_39
knutbrecht commented 3 years ago

Das mit dem Stream starten und beenden und dann das letzte Live-Bild nehmen mache ich genau so... Es funktioniert allerdings erst relativ zuverlässig, seit dem ich die Verzögerung zwischen Start und Stop auf 7,5 sek erhöht habe. Bei weniger Verzögerung kamen auch oft Fehler...

FloMeh commented 3 years ago

Das mit dem Stream starten und beenden und dann das letzte Live-Bild nehmen mache ich genau so... Es funktioniert allerdings erst relativ zuverlässig, seit dem ich die Verzögerung zwischen Start und Stop auf 7,5 sek erhöht habe. Bei weniger Verzögerung kamen auch oft Fehler...

Funktioniert leider trotzdem nicht... :(

lolongan commented 3 years ago

Hello, I do not read/write german but AFAIS I have also a similar issue with broken livestream. I have a Pan & Tilt cam.

Below are the logs:

2021-04-17 11:08:31.438  - error: eufy-security.0 (1709) uncaught exception: read ECONNRESET
--
2021-04-17 11:08:31.440  - error: eufy-security.0 (1709) Error: read ECONNRESET
at Pipe.onStreamRead (internal/stream_base_commons.js:209:20)
2021-04-17 11:08:31.440  - error: eufy-security.0 (1709) Exception-Code: ECONNRESET: read ECONNRESET
2021-04-17 11:08:31.448  - error: eufy-security.0 (1709) ffmpegStreamToHls(): An error occurred: ffmpeg exited with code 1:
2021-04-17 11:08:31.449  - error: eufy-security.0 (1709) ffmpegStreamToHls(): ffmpeg output:
2021-04-17 11:08:31.450  - error: eufy-security.0 (1709) ffmpegStreamToHls(): ffmpeg stderr:
ffmpeg version 4.3.2-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 8 (Debian 8.3.0-6)
configuration: --enable-gpl --enable-version3 --enable-static  --disable-debug --disable-ffplay --disable-indev=sndio  --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r  --enable-gnutls --enable-gmp --enable-libgme --enable-gray  --enable-libaom --enable-libfribidi --enable-libass --enable-libfreetype  --enable-libmp3lame --enable-libopencore-amrnb  --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband  --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis  --enable-libopus --enable-libtheora --enable-libvidstab  --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp  --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d  --enable-libxvid --enable-libzimg
libavutil      56. 51.100 / 56. 51.100
libavcodec     58. 91.100 / 58. 91.100
libavformat    58. 45.100 / 58. 45.100
libavdevice    58. 10.100 / 58. 10.100
libavfilter     7. 85.100 /  7. 85.100
libswscale      5.  7.100 /  5.  7.100
libswresample   3.  7.100 /  3.  7.100
libpostproc    55.  7.100 / 55.  7.100
[h264 @ 0x316fb0a0] error while decoding MB 77 67, bytestream -5
[h264 @ 0x316fb0a0] concealing 92 DC, 92 AC, 92 MV errors in I frame
Input #0, h264, from 'unix:/tmp/eufy-security.0.1.sock':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 1920x1080, 24 fps, 24 tbr, 1200k tbn, 48 tbc
[aac  @ 0x31713ed0] More than one AAC RDB per ADTS frame is not implemented.  Update your FFmpeg version to the newest one from Git. If the problem  still occurs, it means that your file has a feature which has not been  implemented.
[aac @ 0x31713ed0] Number of bands (16) exceeds limit (14).
[aac @ 0x31713ed0] Error decoding AAC frame header.
[aac  @ 0x31713ed0] Assuming an incorrectly encoded 7.1 channel layout  instead of a spec-compliant 7.1(wide) layout, use -strict 1 to decode  according to the specification instead.
[aac @ 0x31713ed0] Multiple frames in a packet.
[aac @ 0x31713ed0] channel element 1.5 is not allocated
[aac @ 0x31713ed0] channel element 3.12 is not allocated
[aac @ 0x31713ed0] channel element 0.15 is not allocated
[aac @ 0x31713ed0] Number of bands (22) exceeds limit (19).
[aac @ 0x31713ed0] channel element 1.1 is not allocated
[aac @ 0x31713ed0] channel element 2.12 is not allocated
[aac @ 0x31713ed0] Number of bands (45) exceeds limit (27).
[aac @ 0x31713ed0] Reserved bit set.
[aac @ 0x31713ed0] Prediction is not allowed in AAC-LC.
[aac @ 0x31713ed0] channel element 3.2 is not allocated
[aac @ 0x31713ed0] channel element 2.0 is not allocated
[aac @ 0x31713ed0] SBR was found before the first channel element.
Last message repeated 1 times
[aac @ 0x31713ed0] channel element 2.1 is not allocated
[aac @ 0x31713ed0] channel element 3.13 is not allocated
[aac @ 0x31713ed0] Number of bands (22) exceeds limit (11).
[aac @ 0x31713ed0] SBR was found before the first channel element.
[aac @ 0x31713ed0] Reserved bit set.
[aac @ 0x31713ed0] Number of bands (15) exceeds limit (10).
[aac @ 0x31713ed0] Error decoding AAC frame header.
[aac @ 0x31713ed0] channel element 2.2 is not allocated
[aac @ 0x31713ed0] Reserved bit set.
[aac @ 0x31713ed0] Number of bands (30) exceeds limit (13).
[aac @ 0x31713ed0] channel element 2.8 is not allocated
[aac @ 0x31713ed0] channel element 2.12 is not allocated
[aac @ 0x31713ed0] Error decoding AAC frame header.
[aac @ 0x31713ed0] channel element 1.10 is not allocated
[aac @ 0x31713ed0] Error decoding AAC frame header.
[aac @ 0x31713ed0] Sample rate index in program config element does not match the sample rate index configured by the container.
[aac @ 0x31713ed0] Inconsistent channel configuration.
[aac @ 0x31713ed0] get_buffer() failed
[aac @ 0x31713ed0] channel element 1.2 is not allocated
[aac @ 0x316fc370] decoding for stream 0 failed
[aac  @ 0x316fc370] Could not find codec parameters for stream 0 (Audio: aac  (Main), 4.0, fltp, 120 kb/s): unspecified sample rate
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #1, aac, from 'unix:/tmp/eufy-security.0.2.sock':
Duration: N/A, bitrate: 120 kb/s
Stream #1:0: Audio: aac (Main), 4.0, fltp, 120 kb/s
[hls @ 0x31710000] sample rate not set
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #1:0 -> #0:1 (copy)
Last message repeated 1 times
2021-04-17 11:08:31.453  - error:  eufy-security.0 (1709) EufySecurity.onStartLivestream(): station:  Txxxxxxxxxxxxxxx channel: 0 - Error: Error: ffmpeg exited with code 1:  -  Stopping livestream...
2021-04-17 11:08:31.463  - warn: eufy-security.0 (1709) The stream for the device Txxxxxxxxxxxxxxx  cannot be stopped, because it isn't streaming!
2021-04-17 11:08:31.464  - info: eufy-security.0 (1709) Disconnect from station Txxxxxxxxxxxxxxx.
2021-04-17 11:08:31.466  - info: eufy-security.0 (1709) terminating
2021-04-17 11:08:31.467  - warn: eufy-security.0 (1709) Terminated (UNCAUGHT_EXCEPTION): Without reason
2021-04-17 11:08:32.043  - error: host.f1c878cb-iobroker instance system.adapter.eufy-security.0 terminated with code 6 (UNCAUGHT_EXCEPTION)

One of the lines reads that I should update my FFmeg version but I do not know how to do that ?

bishop9191 commented 3 years ago

Ich bekomme die gleichen Fehlermeldungen im Log. Allerdings starte ich nicht aktiv den Stream, sondern es scheint zu Fehlermeldungen zu kommen, wenn die Kamera etwas aufzeichnet. Hat jemand eine Lösung?

bropat commented 3 years ago

@lolongan Your issue was fixed in version 0.6.0.

@bishop9191 @FloMeh Testet bitte die letzte Version (0.6.0) und lasst mich Wissen ob das Problem noch auftritt.

FloMeh commented 3 years ago

Hi @bropat Ich konnte den Fehler jetzt nicht mehr nachstellen. Sieht soweit gut aus! Vielen Dank für die Umsetzung und ständige Weiterentwicklung des Adapters... :)