Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Livestream funktioniert nicht - Fehlermeldung im Log #117

Closed
FloMeh opened this issue Apr 8, 2021 · 6 comments
Closed

Livestream funktioniert nicht - Fehlermeldung im Log #117

FloMeh opened this issue Apr 8, 2021 · 6 comments

Comments

@FloMeh
Copy link

FloMeh commented Apr 8, 2021

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
Copy link

knutbrecht commented Apr 9, 2021

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
Copy link
Author

FloMeh commented Apr 12, 2021

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
Copy link

lolongan commented Apr 17, 2021

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
Copy link

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 added a commit that referenced this issue Aug 13, 2021
…tates will be dropped and recreated (Note: some states where renamed)

Supports Admin 5
Added new adapter setting "Accept incoming invitations" to automatically accept device invitations
Added new adapter setting "Alarm sound duration (sec)" used for triggering alarm sound on supported devices/stations (#76)
Added enable/disable led setting for camera 1 products
Added motion detection sensitivity setting for camera 1 products and wired doorbell
Added motion detection type setting for camera 1 products
Added motion audio recording setting for camera 1 products and wired doorbell
Added ringtone volume setting for wired doorbell
Added enable/disable indoor chime setting for wired doorbell (#100)
Added notification ring setting for wired doorbell
Added notification motion setting for wired doorbell
Added video streaming quality setting for wired doorbell
Added video recording quality setting for wired doorbell
Added video HDR setting for wired doorbell
Added video distortion correction setting for wired doorbell
Added video ring recording setting for wired doorbell
Added notification type setting for camera 1 products, solo cameras and wired doorbell
Added chirp volume setting for entry sensor
Added chirp tone setting for entry sensor
Added pan an tilt functionality to supported indoor cameras (#129)
Added error detection if stopping or starting stream that isn't running or already running
Added new setting "acceptInvitations" to "EufySecurity" to accept invitations automatically
Added floodlight camera light switch (#133)
Added motion detection sensitivity for indoor cameras, solo cameras, floodlight cameras, camera 2 products and battery doorbells (#133)
Added motion detection type for indoor cameras, solo cameras, floodlight cameras, camera 2 products and battery doorbells (#133)
Added motion tracking for indoor camera pan & tilt cameras
Added video stream quality setting for indoor cameras, solo cameras, floodlight cameras and battery doorbell (#133)
Added video recording quality setting for indoor cameras
Added WDR setting for battery doorbells
Added microphone mute setting for indoor cameras, solo cameras, floodlight cameras, camera 2 products and battery doorbells (#133)
Added audio recording setting for indoor cameras, solo cameras, floodlight cameras, camera 2 products and battery doorbells (#133)
Added enable/disable speaker setting for indoor cameras, solo cameras, floodlight cameras, camera 2 products (#133)
Added speaker volume setting for indoor cameras, solo cameras, floodlight cameras, camera 2 products and battery doorbells (#133)
Added power source setting for camera 2 products cameras, eufy cameras and eufy E cameras
Added power working mode setting for solo cameras, camera 2 products, battery doorbells, eufy cameras and eufy E cameras
Added power custom working mode recording clip length setting for solo cameras, floodlight cameras, camera 2 products, battery doorbells, eufy cameras and eufy E cameras (#133)
Added power custom working mode recording retrigger interval setting for solo cameras, floodlight cameras, camera 2 products, battery doorbells, eufy cameras and eufy E cameras (#133)
Added power custom working mode recording ends if motion stops setting for solo cameras, floodlight cameras, camera 2 products, battery doorbells, eufy cameras and eufy E cameras (#133)
Added video streaming quality setting for indoor cameras, solo cameras, floodlight cameras, 2c pro cameras and battery doorbells (#133)
Added video recording quality setting for indoor 2k cameras and 2c pro cameras
Added motion detection sensitivity setting for indoor cameras, floodlight cameras and camera 2 products (#133)
Added enable/disable motion tracking setting for indoor pan & tilt cameras
Added motion detection type setting for indoor cameras, solo cameras, floodlight cameras, camera 2 products and battery doorbells (#133)
Added enable/disable WDR setting for battery doorbells
Added ringtone volume setting for battery doorbells
Added enable/disable chime indoor setting for battery doorbells (#100)
Added enable/disable chime homebase setting for battery doorbells (#100)
Added chime homebase ringtone volume setting for battery doorbells
Added chime homebase ringtone type setting for battery doorbells
Added notification type setting for solo cameras, floodlight cameras, camera 2 products, battery doorbells, eufy cameras and eufy E cameras (#133)
Added enable/disable person notification setting for indoor cameras
Added enable/disable pet notification setting for indoor cameras
Added enable/disable all other motion notification setting for indoor cameras
Added enable/disable all sound notification setting for indoor cameras
Added enable/disable crying notification setting for indoor cameras
Added enable/disable motion notification setting for battery doorbells
Added enable/disable ring notification setting for battery doorbells
Added trigger alarm sound for camera 2 products, indoor cameras, solo cameras (incl. new) and floodlight cameras (#76)
Added reset alarm sound for camera 2 products, indoor cameras, solo cameras (incl. new) and floodlight cameras (#76)
Added trigger alarm sound for homebase 1+2 (#76)
Added reset alarm sound for homebase 1+2 (#76)
Added alarm tone setting for homebase 1+2
Added alarm volume setting for homebase 1+2
Added prompt volume setting for homebase 1+2
Added time format setting for homebase 1+2
Added enable/disable switch mode app notification setting for homebase 1+2
Added enable/disable switch mode geofence notification setting for homebase 1+2
Added enable/disable switch mode schedule notification setting for homebase 1+2
Added enable/disable switch mode keypad notification setting for homebase 1+2
Added enable/disable start alarm delay notification setting for homebase 1+2
Added new floodlight, solo and outdoor cameras (untested!)
Added brightness light setting for 2c/2c pro cameras, new solo cameras and new outdoor cameras
Added enable/disable light setting for 2c/2c pro cameras, new solo cameras and new outdoor cameras
Added battery charging state for keypad devices
Added wifi rssi state for keypad devices
Added nightvision setting for devices supporting the "light" nightvision mode
Added enable disable "switch mode with access code" for station with registered keypad
Added enable disable "auto end alarm" for station with registered keypad
Added enable disable "turn off alarm with button" for station with registered keypad
Fixed issue #98
Fixed issue #140
Fixed issue #146
Fixed issue #117
Many small bugfixes
Updated versions of the package dependencies
@bropat
Copy link
Owner

bropat commented Aug 13, 2021

@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
Copy link
Author

FloMeh commented Aug 14, 2021

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... :)

@bropat bropat closed this as completed Aug 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants