keshavdv / unifi-cam-proxy

Enable non-Ubiquiti cameras to work with Unifi NVR
MIT License
1.59k stars 223 forks source link

ALP-600 Doorline Cam? #308

Closed gitpower2017 closed 1 year ago

gitpower2017 commented 1 year ago

Description

Hello. I have a many Problem with the ALP-600. Can you integradet?

The ALP600 can MJPG and h.264

How to solve the problem

Im Testing: Cam-URL rtsp://192.168.1.170:554/av0_1&user=admin&password=geheim This Work with SMPlayer on Linux.

The unifi-cam-proxy String:

unifi-cam-proxy -H 192.168.178.69 -c ./client.pem -t xxxyyyzzz rtsp -s 'rtsp://192.168.178.70:554/av0_1&user=admin&password=admin'

Error 2023-05-11 09:21:43 unifi-video-proxy RTSPCam[2720] INFO Processing [ubnt_avclient_paramAgreement] message Traceback (most recent call last): File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.10/runpy.py", line 86, in _run_code exec(code, run_globals) File "/usr/local/lib/python3.10/dist-packages/unifi/clock_sync.py", line 167, in main() File "/usr/local/lib/python3.10/dist-packages/unifi/clock_sync.py", line 153, in main write(create_script_tag("onClockSync", data, timestamp)) File "/usr/local/lib/python3.10/dist-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='' 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 2023-05-11 09:21:46 unifi-video-proxy RTSPCam[2720] INFO Processing [ChangeVideoSettings] message ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers built with gcc 11 (Ubuntu 11.2.0-19ubuntu1) configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared libavutil 56. 70.100 / 56. 70.100 libavcodec 58.134.100 / 58.134.100 libavformat 58. 76.100 / 58. 76.100 libavdevice 58. 13.100 / 58. 13.100 libavfilter 7.110.100 / 7.110.100 libswscale 5. 9.100 / 5. 9.100 libswresample 3. 9.100 / 3. 9.100 libpostproc 55. 9.100 / 55. 9.100 2023-05-11 09:21:46 unifi-video-proxy RTSPCam[2720] INFO Spawning ffmpeg for video1 (OktfVKzRpXqZPTac): ffmpeg -nostdin -loglevel error -y -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -stimeout 15000000 -rtsp_transport tcp -i "rtsp://192.168.178.70:554/av0_1&user=admin&password=admin" -c:v copy -ar 32000 -ac 1 -codec:a aac -b:a 32k -metadata streamname=OktfVKzRpXqZPTac -f flv - | /usr/bin/python3 -m unifi.clock_sync | nc 192.168.178.69 7550 2023-05-11 09:21:47 unifi-video-proxy RTSPCam[2720] INFO Processing [NetworkStatus] message

Describe alternatives you've considered

No response

Additional context

Auflösung: 720 x 576 Seitenverhältnis: 1.25 Format: h264 Bitrate: 0 Kbit/s Bilder pro Sekunde: 5.000000 Verwendeter Codec: h264

Format: pcm_mulaw Bitrate: 64 Kbit/s Samplingrate: 8000 Hz Kanäle: 1 Verwendeter Codec: pcm_mulaw

stale[bot] commented 1 year 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.