homebridge / docker-homebridge

Homebridge Docker. HomeKit support for the impatient using Docker on x86_64, Raspberry Pi (armhf) and ARM64. Includes ffmpeg + libfdk-aac.
https://hub.docker.com/r/homebridge/homebridge/
GNU General Public License v3.0
2.57k stars 240 forks source link

Homebridge ffmpeg issues #370

Closed crossic84 closed 3 years ago

crossic84 commented 3 years ago

I am not sure if it is bug or I just did mistake somewhere. I have been trying to add my iGet cameras into the HB. Adding as itself worked pretty well, I have all my cameras in homebridge and homekit. Unfortunately I do have a weird problem - once I am connected to the home network I am not able to opet cameras and have a live stream...I keep getting errors like:

[4/15/2021, 7:29:52 AM] [Camera FFmpeg] [Kamera - branka] Starting video stream: 1280 x 720, native fps, 299 kbps (AAC-eld) [4/15/2021, 7:29:55 AM] [Camera FFmpeg] [Kamera - branka] [h264 @ 0x56464fcec680] [error] error while decoding MB 10 43, bytestream -6 [4/15/2021, 7:29:57 AM] [Camera FFmpeg] [Kamera - branka] [h264 @ 0x56464fa5ce40] [error] error while decoding MB 17 36, bytestream -8 [4/15/2021, 7:29:57 AM] [Camera FFmpeg] [Kamera - branka] [h264 @ 0x56464fa5ce40] [error] error while decoding MB 118 34, bytestream -10 [4/15/2021, 7:30:00 AM] [Camera FFmpeg] [Kamera - branka] [h264 @ 0x56464fa9a500] [error] error while decoding MB 50 23, bytestream -19 [4/15/2021, 7:30:01 AM] [Camera FFmpeg] [Kamera - branka] [h264 @ 0x56464fa5ce40] [error] error while decoding MB 42 42, bytestream -6 [4/15/2021, 7:30:03 AM] [Camera FFmpeg] [Kamera - branka] Device appears to be inactive. Stopping stream. [4/15/2021, 7:30:03 AM] [Camera FFmpeg] [Kamera - branka] Stopped video stream.

Once I am disconnected from my home network and try to connect from data or other network I am able to get the live stream without any problem.

Don't you have any idea if I did something wrong?

My json looks like:

{ "name": "Camera FFmpeg", "cameras": [ { "name": "Kamera - vchod", "manufacturer": "iGet", "unbridge": true, "videoConfig": { "source": "-re -i rtsp://xxx:xxx@xxx.xxx.xxx.xxx:554/ch01/0", "maxStreams": 3, "maxWidth": 1280, "maxHeight": 720, "maxFPS": 0, "forceMax": true, "audio": true } }, { "name": "Kamera - garáž", "manufacturer": "iGet", "unbridge": true, "videoConfig": { "source": "-re -i rtsp://xxx:xxx@xxx.xxx.xxx.xxx:554/ch01/0", "maxStreams": 3, "maxWidth": 1280, "maxHeight": 720, "maxFPS": 0, "forceMax": true, "audio": true } }, { "name": "Kamera - branka", "manufacturer": "iGet", "unbridge": true, "videoConfig": { "source": "-re -i rtsp://xxx:xxx@xxx.xxx.xxx.xxx:554/ch01/0", "maxStreams": 3, "maxWidth": 1280, "maxHeight": 720, "maxFPS": 0, "forceMax": true, "audio": true } } ], "platform": "Camera-ffmpeg" }

114832823-38b35500-9dcf-11eb-9fb7-062bf3203414

Environment:

Node.js Version: v14.17.0 (showed in system info) x but log shows this: [4/15/2021, 7:48:14 AM] [HB Supervisor] Started Homebridge v1.3.4 with PID: 27565 Initializing HAP-NodeJS v0.9.4...

NPM Version: v7.13.0 Homebridge Version: v1.3.4 Homebridge Camera FFmpeg Version: homebridge-camera-ffmpeg v3.1.2 Homebridge Config UI X Plugin Version: homebridge-config-ui-x v4.41.1 Operating System: Alpine Linux (3.12.4) - running on docker from QNAP NAS

Thank you in advance for any idea which helps.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.