bropat / ioBroker.eusec

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

[Bug]: start_stream ffmpeg error #384

Closed nicoh88 closed 7 months ago

nicoh88 commented 11 months ago

Adapter version

1.1.2

JS-Controller version

4.0.24

Node version

v18.17.0

Operating System type

Linux

Operating system version

Debian 12.1

Describe the bug

Press Button "eusec.0.XXX.cameras.XXX.start_stream" for "Wired Wall Light Cam S100".

eusec.0 | 2023-11-02 12:09:15.547 | error | Station: T84A1P1022510546 Device: T84A1P1022510546 - Error - Stopping livestream... [{}]
-- | -- | -- | --
eusec.0 | 2023-11-02 12:09:15.545 | error | ffmpegStreamToGo2rtc(): ffmpeg stderr: ffmpeg version 6.0-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2023 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-libvmaf --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-libzvbi --enable-libzimg libavutil 58. 2.100 / 58. 2.100 libavcodec 60. 3.100 / 60. 3.100 libavformat 60. 3.100 / 60. 3.100 libavdevice 60. 1.100 / 60. 1.100 libavfilter 9. 3.100 / 9. 3.100 libswscale 7. 1.100 / 7. 1.100 libswresample 4. 10.100 / 4. 10.100 libpostproc 57. 1.100 / 57. 1.100 Input #0, h264, from 'unix:/tmp/eusec.0.1.sock': Duration: N/A, bitrate: N/A Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 1600x1200, 15 fps, 15 tbr, 1200k tbn Input #1, aac, from 'unix:/tmp/eusec.0.2.sock': Duration: N/A, bitrate: 23 kb/s Stream #1:0: Audio: aac (LC), 16000 Hz, mono, fltp, 23 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #1:0 -> #0:1 (aac (native) -> opus (native)) Press [q] to stop, [?] for help
eusec.0 | 2023-11-02 12:09:15.544 | error | ffmpegStreamToGo2rtc(): ffmpeg output:
eusec.0 | 2023-11-02 12:09:15.543 | error | ffmpegStreamToGo2rtc(): An error occurred: ffmpeg was killed with signal SIGSEGV
eusec.0 | 2023-11-02 12:09:10.339 | warn | ffmpegStreamToGo2rtc(): Started

Same for my "Indoor Cam E220" (t8410), but with an additional line:

ffmpegStreamToGo2rtc(): Not support audio codec or unknown audio codec (AAC_ELD)

What can i do?

freakyfreaky commented 11 months ago

Same Issue for S330 eufycam

ffmpegStreamToGo2rtc(): Not support audio codec or unknown audio codec (NONE)

2023-11-08 22:33:57.558 - error: eusec.0 (237875) ffmpegStreamToGo2rtc(): An error occurred: ffmpeg was killed with signal SIGSEGV
--
2023-11-08 22:33:57.559 - error: eusec.0 (237875) ffmpegStreamToGo2rtc(): ffmpeg output:
2023-11-08 22:33:57.559 - error: eusec.0 (237875) ffmpegStreamToGo2rtc(): ffmpeg stderr:
Last message repeated 6 times
[hevc @ 0x6f0f400] Invalid NAL unit 18, skipping.
[hevc @ 0x6f0f400] Invalid NAL unit 16, skipping.
Last message repeated 6 times
[hevc @ 0x6f0f400] Invalid NAL unit 18, skipping.
[hevc @ 0x6f0f400] Invalid NAL unit 16, skipping.
Last message repeated 6 times
[hevc @ 0x6f0f400] Invalid NAL unit 18, skipping.
[hevc @ 0x6f0f400] Invalid NAL unit 16, skipping.
Last message repeated 6 times
[hevc @ 0x6f0f400] Invalid NAL unit 18, skipping.
[hevc @ 0x6f0f400] Invalid NAL unit 16, skipping.
Last message repeated 6 times
[hevc @ 0x6f0f400] Invalid NAL unit 18, skipping.
[hevc @ 0x6f0f400] Invalid NAL unit 16, skipping.
Last message repeated 6 times
[hevc @ 0x6f0f400] Invalid NAL unit 18, skipping.
[hevc @ 0x6f0f400] Invalid NAL unit 16, skipping.
Last message repeated 6 times
[hevc @ 0x6f0f400] Invalid NAL unit 18, skipping.
[hevc @ 0x6f0f400] Invalid NAL unit 16, skipping.
Last message repeated 6 times
[hevc @ 0x6f0f400] Invalid NAL unit 18, skipping.
[hevc @ 0x6f0f400] Invalid NAL unit 16, skipping.
Last message repeated 6 times
[hevc @ 0x6f0f400] Invalid NAL unit 18, skipping.
[hevc @ 0x6f0f400] Invalid NAL unit 16, skipping.
Last message repeated 6 times
[hevc @ 0x6f0f400] Invalid NAL unit 18, skipping.
[hevc @ 0x6f0f400] Invalid NAL unit 16, skipping.
Last message repeated 6 times
[hevc @ 0x6f0f400] Invalid NAL unit 18, skipping.
[hevc @ 0x6f0f400] Invalid NAL unit 16, skipping.
Last message repeated 6 times
[hevc @ 0x6f0f400] Invalid NAL unit 18, skipping.
[hevc @ 0x6f0f400] Invalid NAL unit 16, skipping.
Last message repeated 6 times
[hevc @ 0x6f0f400] Invalid NAL unit 18, skipping.
[hevc @ 0x6f0f400] Invalid NAL unit 16, skipping.
Last message repeated 6 times
[hevc @ 0x6f0f400] Invalid NAL unit 18, skipping.
[hevc @ 0x6f0f400] Invalid NAL unit 16, skipping.
Last message repeated 6 times
[hevc @ 0x6f0f400] Invalid NAL unit 18, skipping.
[hevc @ 0x6f0f400] Invalid NAL unit 16, skipping.
Last message repeated 6 times
[hevc @ 0x6f0f400] Invalid NAL unit 18, skipping.
[hevc @ 0x6f0f400] Invalid NAL unit 16, skipping.
Last message repeated 6 times
[hevc @ 0x6f0f400] Invalid NAL unit 18, skipping.
[hevc @ 0x6f0f400] Invalid NAL unit 16, skipping.
Last message repeated 6 times
[hevc @ 0x6f0f400] Invalid NAL unit 18, skipping.
[hevc @ 0x6f0f400] Invalid NAL unit 16, skipping.
Last message repeated 6 times
[hevc @ 0x6f0f400] Invalid NAL unit 18, skipping.
[hevc @ 0x6f0f400] Invalid NAL unit 16, skipping.
Last message repeated 6 times
[hevc @ 0x6f0f400] Invalid NAL unit 18, skipping.
[hevc @ 0x6f0f400] Invalid NAL unit 16, skipping.
Last message repeated 6 times
[hevc @ 0x6f0f400] Invalid NAL unit 18, skipping.
[hevc @ 0x6f0f400] Invalid NAL unit 16, skipping.
Last message repeated 6 times
[hevc @ 0x6f0f400] Invalid NAL unit 18, skipping.
[hevc @ 0x6f0f400] Invalid NAL unit 16, skipping.
Last message repeated 6 times
[hevc @ 0x6f0f400] Invalid NAL unit 18, skipping.
[hevc @ 0x6f0f400] Invalid NAL unit 16, skipping.
Last message repeated 6 times
[hevc @ 0x6f0f400] Invalid NAL unit 18, skipping.
[hevc @ 0x6f0f400] Invalid NAL unit 16, skipping.
Last message repeated 6 times
[hevc @ 0x6f0f400] Invalid NAL unit 18, skipping.
[hevc @ 0x6f0f400] Invalid NAL unit 16, skipping.
Last message repeated 6 times
[hevc @ 0x6f0f400] Invalid NAL unit 18, skipping.
[hevc @ 0x6f0f400] Invalid NAL unit 16, skipping.
Last message repeated 6 times
[hevc @ 0x6f0f400] Invalid NAL unit 18, skipping.
[hevc @ 0x6f0f400] Invalid NAL unit 16, skipping.
Last message repeated 6 times
[hevc @ 0x6f0f400] Invalid NAL unit 18, skipping.
[hevc @ 0x6f0f400] Invalid NAL unit 16, skipping.
Last message repeated 6 times
[hevc @ 0x6f0f400] Invalid NAL unit 18, skipping.
[hevc @ 0x6f0f400] Invalid NAL unit 16, skipping.
Last message repeated 6 times
[hevc @ 0x6f0f400] Invalid NAL unit 18, skipping.
[hevc @ 0x6f0f400] Invalid NAL unit 16, skipping.
Last message repeated 6 times
[hevc @ 0x6f0f400] Invalid NAL unit 18, skipping.
[hevc @ 0x6f0f400] Invalid NAL unit 16, skipping.
Last message repeated 1 times
[hevc @ 0x6f05b00] Stream #0: not enough frames to estimate rate; consider increasing probesize
Input #0, hevc, from 'unix:/tmp/eusec.0.1.sock':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: hevc (Main), yuvj420p(pc, bt709), 3840x2160, 15 fps, 15 tbr, 1200k tbn
2023-11-08 22:33:57.559 - error: eusec.0 (237875) Station: T8030P2322481A49xxxxxxx Device: T8160P212xxxxxx - Error - Stopping livestream... [{}]

and S100 Wall Light

2023-11-08 22:34:00.402 - error: eusec.0 (237875) Station: T8030P23xxxxxxx command CMD_SDINFO_EX failed with error: undefined (-148)
--
2023-11-08 22:34:00.646 - error: eusec.0 (237875) Station: T8030P23xxxxxxx command CMD_SDINFO_EX failed with error: undefined (-148)
2023-11-08 22:34:14.594 - error: eusec.0 (237875) ffmpegStreamToGo2rtc(): An error occurred: ffmpeg was killed with signal SIGSEGV
2023-11-08 22:34:14.594 - error: eusec.0 (237875) ffmpegStreamToGo2rtc(): ffmpeg output:
2023-11-08 22:34:14.594 - error: eusec.0 (237875) ffmpegStreamToGo2rtc(): ffmpeg stderr:
ffmpeg version 6.0-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2023 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-libvmaf --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-libzvbi --enable-libzimg
libavutil 58. 2.100 / 58. 2.100
libavcodec 60. 3.100 / 60. 3.100
libavformat 60. 3.100 / 60. 3.100
libavdevice 60. 1.100 / 60. 1.100
libavfilter 9. 3.100 / 9. 3.100
libswscale 7. 1.100 / 7. 1.100
libswresample 4. 10.100 / 4. 10.100
libpostproc 57. 1.100 / 57. 1.100
Input #0, h264, from 'unix:/tmp/eusec.0.1.sock':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 2048x1536, 15 fps, 15 tbr, 1200k tbn
Input #1, aac, from 'unix:/tmp/eusec.0.2.sock':
Duration: N/A, bitrate: 23 kb/s
Stream #1:0: Audio: aac (LC), 16000 Hz, mono, fltp, 23 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #1:0 -> #0:1 (aac (native) -> opus (native))
Press [q] to stop, [?] for help
2023-11-08 22:34:14.594 - error: eusec.0 (237875) Station: T84A1P1023xxxxx Device: T8030P23xxxxxxx- Error - Stopping livestream... [{}]
2023-11-08 22:34:14.594 - warn: eusec.0 (237875) The station stream for the device T8030P23xxxxxxxcannot be stopped, because it isn't streaming!
bropat commented 10 months ago

I can't do anything about this because this error ffmpeg was killed with signal SIGSEGV comes from the ffmpeg command itself (SIGSEV meaning), which is supplied as dependency. Please open an issue there.