Replies: 1 comment
-
It works fine if you use ffmpeg v5. I rebuilt the docker image using ubuntu as a base and it's all working fine. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a Cloud Key Gen2 Plus with Protect 2.1.2 and I'm trying to get the tsp stream from my Imou camera with the link
unifi-cam-proxy -H 192.168.1.120 -i 192.168.1.122 -c ./client.pem -t 1zFB0YZKNhESzpTfjoPoIKSD22FVHUAA --model 'UVC G4 Pro' rtsp -s 'rtsp://admin:[email protected]:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif'
The camera is seen by protect but I can get the snapshot and not the camera streaming that remains with the three dots
In the log I noticed this error:
2022-09-12 16:32:45 raspberrypi RTSPCam[7646] INFO Spawning ffmpeg for video1 (mqvcuCKPAXjvn3ZE): ffmpeg -nostdin -loglevel error -y -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -stimeout 15000000 -rtsp_transport tcp -i "rtsp://admin:[email protected]:554/cam/realmonitor?channel=1&subtype=0" -c:v copy -ar 32000 -ac 1 -codec:a aac -b:a 32k -metadata streamname=mqvcuCKPAXjvn3ZE -f flv - | /usr/bin/python3 -m unifi.clock_sync | nc 192.168.1.124 7550 2022-09-12 16:32:45 raspberrypi RTSPCam[7646] INFO Processing [ChangeVideoSettings] message Traceback (most recent call last): File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.9/runpy.py", line 87, in _run_code exec(code, run_globals) File "/home/pi/.local/lib/python3.9/site-packages/unifi/clock_sync.py", line 167, in <module> main() File "/home/pi/.local/lib/python3.9/site-packages/unifi/clock_sync.py", line 161, in main write(read_bytes(source, payload_size)) File "/home/pi/.local/lib/python3.9/site-packages/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 Last message repeated 1 times Error writing trailer of pipe:: Broken pipe ffmpeg version 4.3.4-0+deb11u1+rpt3 Copyright (c) 2000-2021 the FFmpeg developers built with gcc 10 (Raspbian 10.2.1-6+rpi1)...
Can someone help me?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions