Sunoo / homebridge-camera-ffmpeg

Homebridge Plugin Providing FFmpeg-based Camera Support
https://sunoo.github.io/homebridge-camera-ffmpeg/
Apache License 2.0
1.08k stars 225 forks source link

FFmpeg exited with code: 1 and signal: null (Error) #1446

Open psmanek opened 1 month ago

psmanek commented 1 month ago

Old problem, but I can't solve this ;/

Still image works well, but stream give Error: FFmpeg exited with code: 1 and signal: null (Error)

Any ideas?

Newest Homebridge, plugins, RPi 3B, ffmpeg version 6.0-homebridge-alpine-armv7l-static.

Sunoo commented 1 month ago

I’ll need logs with debug enabled to even begin to troubleshoot this.

github-actions[bot] commented 6 days 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.

psmanek commented 6 days ago

I'll send logs asap.

psmanek commented 1 day ago

---LOG [Kamera 4 130F] The image snapshot handler for the given accessory is slow to respond! See https://homebridge.io/w/JtMGR for more info. [7/5/2024, 7:36:42 PM] [Camera FFmpeg] [Kamera 4] Video stream requested: 1280 x 720, 30 fps, 299 kbps [7/5/2024, 7:36:42 PM] [Camera FFmpeg] [Kamera 4] Starting video stream: 720 x 480, 10 fps, 299 kbps [7/5/2024, 7:36:42 PM] [Camera FFmpeg] [Kamera 4] Stream command: ffmpeg -rtsp_transport tcp -i rtsp://192.168.1.201:554/unicast -an -sn -dn -codec:v h264_omx -pix_fmt yuv420p -color_range mpeg -r 10 -f rawvideo -filter:v scale='min(720,iw)':'min(480,ih)':force_original_aspect_ratio=decrease,scale=trunc(iw/2)2:trunc(ih/2)2 -b:v 299k -payload_type 99 -ssrc 14430241 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params e/+WJjoL+A8ZP6lWmAjjS/3yo42PpGrfGBsYjeUG srtp://192.168.1.50:49651?rtcpport=49651&pkt_size=1316 -loglevel level -progress pipe:1 [7/5/2024, 7:36:44 PM] [Camera FFmpeg] [Kamera 4] FFmpeg exited with code: 1 and signal: null (Error) [7/5/2024, 7:36:44 PM] [Camera FFmpeg] [Kamera 4] Stopped video stream.

---CONFIG "name": "Kamera 4", "unbridge": true, "videoConfig": { "source": "-rtsp_transport tcp -i rtsp://192.168.1.201:554/unicast", "stillImageSource": "-i rtsp://192.168.1.201:554/unicast -vframes 1 -r 1", "maxStreams": 2, "maxWidth": 720, "maxHeight": 480, "maxFPS": 10, "vcodec": "h264_omx" }