unifi-cam-proxy: App / FFMPEG crashes

Camera

Netatmo Presence / Doorbird Doorbell

Firmware version of the camera

NA

Description

Error during execution:

2023-01-08 10:57:30 abe5df81ea2d RTSPCam[1] INFO Spawning ffmpeg for video1 (fZelYtY5RqiKTUaI): ffmpeg -nostdin -loglevel error -y -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -stimeout 15000000 -rtsp_transport tcp -i "rtsp://xxxxx:xxxxxxx@192.168.178.207:554/mpeg/media.amp" -c:v copy -ar 32000 -ac 1 -codec:a aac -b:a 32k -metadata streamname=fZelYtY5RqiKTUaI -f flv - | /usr/local/bin/python -m unifi.clock_sync | nc 192.168.178.1 7550 Traceback (most recent call last): File "/usr/local/lib/python3.8/runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/local/lib/python3.8/runpy.py", line 87, in _run_code exec(code, run_globals) File "/app/unifi/clock_sync.py", line 167, in <module> main() File "/app/unifi/clock_sync.py", line 157, in main write(read_bytes(source, payload_size)) File "/app/unifi/clock_sync.py", line 87, in write sys.stdout.buffer.write(data) BrokenPipeError: [Errno 32] Broken pipe Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'> BrokenPipeError: [Errno 32] Broken pipe av_interleaved_write_frame(): Broken pipe Error writing trailer of pipe:: Broken pipe

How to reproduce

start container

Expected behaviour

Video is streamed

Screenshots

No response

Aditional information

No response

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 5
  • Comments: 17 (2 by maintainers)

Most upvoted comments

I have just pushed a PR to update ffmpeg in docker , no errors so far , but still cannot get the stream working.

see whether this does help .

I’m having the exact same issue.

Camera: Generic Chinese IP cam (no idea about brand or model) OS: Ubuntu 22.04 arm64 on a Raspberry Pi 4