unifi-cam-proxy icon indicating copy to clipboard operation
unifi-cam-proxy copied to clipboard

streaming not working in 1.21.3

Open jurajs5 opened this issue 3 years ago • 80 comments
trafficstars

no streaming in version 1.21.3

snapshots are there, but streaming is KO in proxy site, looks like all is ok, but in unifi UDM pro - there is no video, 3dost all the time (loading)

  • tried rtsp coding - KO
  • tried hikvsion coding - KO

Camera:

  • hikvision

jurajs5 avatar Mar 08 '22 06:03 jurajs5

Same problem here! Screenshots do work, but no video stream. Reolink RLC-410-5MP Already tried readopting ..

2022-03-08 10:09:12 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Core[1] INFO Creating ws connection to wss://172.20.10.1:7442/camera/1.0/ws?token=Qk8IHpfFVlgWhuQmOQ09FEOgFwcnokE3
2022-03-08 10:09:12 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Adopting with token [Qk8IHpfFVlgWhuQmOQ09FEOgFwcnokE3] and mac [EC:71:DB:BA:1B:3D]
2022-03-08 10:09:12 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Connecting to motion events API: http://172.20.60.20/api.cgi?cmd=GetMdState&user=[user]&password=[password]
2022-03-08 10:09:12 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [ubnt_avclient_hello] message
2022-03-08 10:09:12 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [ubnt_avclient_hello] message
2022-03-08 10:09:13 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [ubnt_avclient_paramAgreement] message
2022-03-08 10:09:13 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [ubnt_avclient_paramAgreement] message
2022-03-08 10:09:13 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [StopService] message
2022-03-08 10:09:13 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [ChangeVideoSettings] message
2022-03-08 10:09:13 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [ChangeIspSettings] message
2022-03-08 10:09:13 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [ChangeIspSettings] message
2022-03-08 10:09:13 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [ChangeOsdSettings] message
2022-03-08 10:09:13 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [ChangeSoundLedSettings] message
2022-03-08 10:09:13 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [ChangeVideoSettings] message
2022-03-08 10:09:13 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [ChangeSmartMotionSettings] message
2022-03-08 10:09:13 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [EnableLogging] message
2022-03-08 10:09:13 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [ChangeDeviceSettings] message
2022-03-08 10:09:13 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [ChangeDeviceSettings] message
2022-03-08 10:09:13 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [SmartMotionTest] message
2022-03-08 10:09:13 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [ChangeVideoSettings] message
2022-03-08 10:09:13 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [UpdateUsernamePassword] message
2022-03-08 10:09:13 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [ChangeVideoSettings] message
2022-03-08 10:09:13 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [NetworkStatus] message
2022-03-08 10:09:13 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [ChangeVideoSettings] message
2022-03-08 10:09:13 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [GetSystemStats] message
2022-03-08 10:09:13 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [GetRequest] message
2022-03-08 10:09:13 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Grabbing snapshot: http://172.20.60.20/cgi-bin/api.cgi?cmd=Snap&channel=0&rs=6PHVjvf0UntSLbyT&user=[user]&password=[password]
2022-03-08 10:09:14 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [UpdateFirmwareRequest] message
2022-03-08 10:09:14 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Reconnecting...
2022-03-08 10:09:14 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Cleaning up instance
2022-03-08 10:09:14 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Core[1] INFO Backing off connect(...) for 2.0s (True)
2022-03-08 10:09:16 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Core[1] INFO Creating ws connection to wss://172.20.10.1:7442/camera/1.0/ws?token=Qk8IHpfFVlgWhuQmOQ09FEOgFwcnokE3
2022-03-08 10:09:16 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Adopting with token [Qk8IHpfFVlgWhuQmOQ09FEOgFwcnokE3] and mac [EC:71:DB:BA:1B:3D]
2022-03-08 10:09:16 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Connecting to motion events API: http://172.20.60.20/api.cgi?cmd=GetMdState&user=[user]&password=[password]
2022-03-08 10:09:16 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [ubnt_avclient_hello] message
2022-03-08 10:09:16 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [ubnt_avclient_hello] message
2022-03-08 10:09:16 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [ubnt_avclient_paramAgreement] message
2022-03-08 10:09:16 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [ubnt_avclient_paramAgreement] message
2022-03-08 10:09:16 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [StopService] message
2022-03-08 10:09:17 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [ChangeDeviceSettings] message
2022-03-08 10:09:17 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [NetworkStatus] message
2022-03-08 10:09:17 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [GetSystemStats] message
2022-03-08 10:09:22 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [ChangeIspSettings] message
2022-03-08 10:09:22 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [ChangeOsdSettings] message
2022-03-08 10:09:22 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [ChangeAudioEventsSettings] message
2022-03-08 10:09:22 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [ChangeSoundLedSettings] message
2022-03-08 10:09:22 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [ChangeVideoSettings] message
2022-03-08 10:09:22 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [ChangeSmartMotionSettings] message
2022-03-08 10:09:22 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [EnableLogging] message
2022-03-08 10:09:22 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [ChangeDeviceSettings] message
2022-03-08 10:09:22 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [ChangeDeviceSettings] message
2022-03-08 10:09:22 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [SmartMotionTest] message
2022-03-08 10:09:22 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [ChangeVideoSettings] message
2022-03-08 10:09:22 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [UpdateUsernamePassword] message
2022-03-08 10:09:22 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [ChangeVideoSettings] message
2022-03-08 10:09:23 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [NetworkStatus] message
2022-03-08 10:09:23 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [GetSystemStats] message
2022-03-08 10:09:24 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [ChangeVideoSettings] message
ffmpeg version 4.1.6 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 8.3.0 (Alpine 8.3.0)
  configuration: --prefix=/usr --enable-avresample --enable-avfilter --enable-gnutls --enable-gpl --enable-libass --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libxvid --enable-libx264 --enable-libx265 --enable-libtheora --enable-libv4l2 --enable-postproc --enable-pic --enable-pthreads --enable-shared --enable-libxcb --disable-stripping --disable-static --disable-librtmp --enable-vaapi --enable-vdpau --enable-libopus --disable-debug
  libavutil      56. 22.100 / 56. 22.100
  libavcodec     58. 35.100 / 58. 35.100
  libavformat    58. 20.100 / 58. 20.100
  libavdevice    58.  5.100 / 58.  5.100
  libavfilter     7. 40.101 /  7. 40.101
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  3.100 /  5.  3.100
  libswresample   3.  3.100 /  3.  3.100
  libpostproc    55.  3.100 / 55.  3.100
2022-03-08 10:09:24 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Spawning ffmpeg for video1 (lzdb1tDNhFXaPSUE): ffmpeg -nostdin -loglevel error -y -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -stimeout 15000000 -rtsp_transport tcp -i "rtsp://[user]:[password]@172.20.60.20:554//h264Preview_01_main" -c:v copy -vbsf "h264_metadata=tick_rate=60000/1001" -ar 32000 -ac 1 -codec:a aac -b:a 32k -metadata streamname=lzdb1tDNhFXaPSUE -f flv - | /usr/local/bin/python -m unifi.clock_sync | nc 172.20.10.1 7550
2022-03-08 10:09:24 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [ChangeVideoSettings] message
ffmpeg version 4.1.6 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 8.3.0 (Alpine 8.3.0)
  configuration: --prefix=/usr --enable-avresample --enable-avfilter --enable-gnutls --enable-gpl --enable-libass --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libxvid --enable-libx264 --enable-libx265 --enable-libtheora --enable-libv4l2 --enable-postproc --enable-pic --enable-pthreads --enable-shared --enable-libxcb --disable-stripping --disable-static --disable-librtmp --enable-vaapi --enable-vdpau --enable-libopus --disable-debug
  libavutil      56. 22.100 / 56. 22.100
  libavcodec     58. 35.100 / 58. 35.100
  libavformat    58. 20.100 / 58. 20.100
  libavdevice    58.  5.100 / 58.  5.100
  libavfilter     7. 40.101 /  7. 40.101
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  3.100 /  5.  3.100
  libswresample   3.  3.100 /  3.  3.100
  libpostproc    55.  3.100 / 55.  3.100
2022-03-08 10:09:24 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Spawning ffmpeg for video3 (YcMABRI5Qqhkv1ty): ffmpeg -nostdin -loglevel error -y -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -stimeout 15000000 -rtsp_transport tcp -i "rtsp://[user]:[password]@172.20.60.20:554//h264Preview_01_main" -c:v copy -vbsf "h264_metadata=tick_rate=60000/1001" -ar 32000 -ac 1 -codec:a aac -b:a 32k -metadata streamname=YcMABRI5Qqhkv1ty -f flv - | /usr/local/bin/python -m unifi.clock_sync | nc 172.20.10.1 7550
2022-03-08 10:09:33 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [NetworkStatus] message
2022-03-08 10:09:33 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [GetSystemStats] message
2022-03-08 10:09:39 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [ChangeVideoSettings] message
ffmpeg version 4.1.6 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 8.3.0 (Alpine 8.3.0)
  configuration: --prefix=/usr --enable-avresample --enable-avfilter --enable-gnutls --enable-gpl --enable-libass --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libxvid --enable-libx264 --enable-libx265 --enable-libtheora --enable-libv4l2 --enable-postproc --enable-pic --enable-pthreads --enable-shared --enable-libxcb --disable-stripping --disable-static --disable-librtmp --enable-vaapi --enable-vdpau --enable-libopus --disable-debug
  libavutil      56. 22.100 / 56. 22.100
  libavcodec     58. 35.100 / 58. 35.100
  libavformat    58. 20.100 / 58. 20.100
  libavdevice    58.  5.100 / 58.  5.100
  libavfilter     7. 40.101 /  7. 40.101
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  3.100 /  5.  3.100
  libswresample   3.  3.100 /  3.  3.100
  libpostproc    55.  3.100 / 55.  3.100
2022-03-08 10:09:39 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Spawning ffmpeg for video2 (mt1I7zmnsRr9H1Sj): ffmpeg -nostdin -loglevel error -y -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -stimeout 15000000 -rtsp_transport tcp -i "rtsp://[user]:[password]@172.20.60.20:554//h264Preview_01_main" -c:v copy -vbsf "h264_metadata=tick_rate=60000/1001" -ar 32000 -ac 1 -codec:a aac -b:a 32k -metadata streamname=mt1I7zmnsRr9H1Sj -f flv - | /usr/local/bin/python -m unifi.clock_sync | nc 172.20.10.1 7550
2022-03-08 10:09:43 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [NetworkStatus] message
2022-03-08 10:09:43 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [GetSystemStats] message
2022-03-08 10:09:44 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [GetRequest] message
2022-03-08 10:09:44 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Grabbing snapshot: http://172.20.60.20/cgi-bin/api.cgi?cmd=Snap&channel=0&rs=6PHVjvf0UntSLbyT&user=[user]&password=[password]
2022-03-08 10:09:53 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [NetworkStatus] message
2022-03-08 10:09:53 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [GetSystemStats] message
2022-03-08 10:09:59 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [GetRequest] message
2022-03-08 10:09:59 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Grabbing snapshot: http://172.20.60.20/cgi-bin/api.cgi?cmd=Snap&channel=0&rs=6PHVjvf0UntSLbyT&user=[user]&password=[password]
2022-03-08 10:10:03 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [NetworkStatus] message
2022-03-08 10:10:03 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [GetSystemStats] message
2022-03-08 10:10:13 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [NetworkStatus] message
2022-03-08 10:10:13 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [GetSystemStats] message
2022-03-08 10:10:17 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [GetRequest] message
2022-03-08 10:10:17 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Grabbing snapshot: http://172.20.60.20/cgi-bin/api.cgi?cmd=Snap&channel=0&rs=6PHVjvf0UntSLbyT&user=[user]&password=[password]
2022-03-08 10:10:23 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [NetworkStatus] message
2022-03-08 10:10:23 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [GetSystemStats] message
2022-03-08 10:10:30 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [GetRequest] message
2022-03-08 10:10:30 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Grabbing snapshot: http://172.20.60.20/cgi-bin/api.cgi?cmd=Snap&channel=0&rs=6PHVjvf0UntSLbyT&user=[user]&password=[password]
2022-03-08 10:10:33 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [NetworkStatus] message
2022-03-08 10:10:33 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [GetSystemStats] message
2022-03-08 10:10:42 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [GetRequest] message
2022-03-08 10:10:42 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Grabbing snapshot: http://172.20.60.20/cgi-bin/api.cgi?cmd=Snap&channel=0&rs=6PHVjvf0UntSLbyT&user=[user]&password=[password]
2022-03-08 10:10:43 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [NetworkStatus] message
2022-03-08 10:10:43 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [GetSystemStats] message
2022-03-08 10:10:53 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [NetworkStatus] message
2022-03-08 10:10:53 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [GetSystemStats] message
2022-03-08 10:10:58 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [GetRequest] message
2022-03-08 10:10:58 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Grabbing snapshot: http://172.20.60.20/cgi-bin/api.cgi?cmd=Snap&channel=0&rs=6PHVjvf0UntSLbyT&user=[user]&password=[password]
2022-03-08 10:11:03 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [NetworkStatus] message
2022-03-08 10:11:03 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [GetSystemStats] message
2022-03-08 10:11:10 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [GetRequest] message
2022-03-08 10:11:10 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Grabbing snapshot: http://172.20.60.20/cgi-bin/api.cgi?cmd=Snap&channel=0&rs=6PHVjvf0UntSLbyT&user=[user]&password=[password]
2022-03-08 10:11:13 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [NetworkStatus] message
2022-03-08 10:11:13 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [GetSystemStats] message
2022-03-08 10:11:23 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [NetworkStatus] message
2022-03-08 10:11:23 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [GetSystemStats] message
2022-03-08 10:11:27 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Processing [GetRequest] message
2022-03-08 10:11:27 unifi-cam-proxy-haustuer-79c4b5b7c9-xnh8w Reolink[1] INFO Grabbing snapshot: http://172.20.60.20/cgi-bin/api.cgi?cmd=Snap&channel=0&rs=6PHVjvf0UntSLbyT&user=[user]&password=[password]

eltomato89 avatar Mar 08 '22 10:03 eltomato89

Also .. I dont know if this is connected to the problem, but I found a stacktrace after restarting the unifi protect application on my udm pro:

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
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

eltomato89 avatar Mar 08 '22 10:03 eltomato89

hopefully it will be fixed soon cause 1.21.3 is out now since 1 hour official

xsasx avatar Mar 09 '22 16:03 xsasx

Finally got the update and looking for a fix. At the moment, it doesn't look like an easy one, so I'd suggest disabling auto-update and downgrading if you rely on the proxy for important cameras.

keshavdv avatar Mar 10 '22 00:03 keshavdv

Seeing same thing on my setup. I mean right now there are NO cameras to buy from Unifi so this is our only option. :-/

pgeremia avatar Mar 10 '22 14:03 pgeremia

What's the latest version of protect that should work? I tried back to 1.19.2 but kept getting the same error. Do I need to downgrade the entire unifi-os on the udm pro since I updated to 1.11.4?

tboyce021 avatar Mar 11 '22 23:03 tboyce021

1.21.2 works

lcasale avatar Mar 11 '22 23:03 lcasale

Identical issue here. 4 x Hikvision cameras working perfectly with Protect v1.21.2, only low-res screenshots with v1.21.3 and seeing the identical crash as @eltomato89 above. Reverting to Protect v.1.21.2 got the cameras back online.

To save time for others looking for how to revert, ssh into the UDM-Pro and:

apt-get update
apt-get install --reinstall --allow-downgrades unifi-protect=1.21.2 -y

tphipps avatar Mar 13 '22 01:03 tphipps

Same here with Amcrest / Dahua cams.

DebauchedSloth avatar Mar 13 '22 16:03 DebauchedSloth

Any updates? I am having the same problem with Dahua

frieck avatar Mar 16 '22 22:03 frieck

A few posts up he said it wasn't going to be easy to fix, so I would stay on 1.21.2 (if you have access) as long as it takes if you need them. Nothing in .3 is really exciting enough to upgrade anyway.

tsspmq avatar Mar 17 '22 14:03 tsspmq

FYI this is still broken in Protect 1.21.4 incase anyone was curious on upgrading.

lcasale avatar Mar 23 '22 19:03 lcasale

Same Issue

FrancescoFdd5 avatar Mar 25 '22 09:03 FrancescoFdd5

Any chance it will be resolved or Ubiquiti killed that project :/ ? @keshavdv

OrionCodeDev avatar Mar 25 '22 13:03 OrionCodeDev

Ah damn, should have looked in here first... going mad for weeks now because the cameras froze for no apperant reason. Changed switches, cables, firmware... oh my...

My Dahua cams always worked for one up to four days, then died in a way that only a loss of power could revive them. no access via webinterface was possible. switching to protect 1.21.2 now for testing.

DReffects avatar Mar 27 '22 15:03 DReffects

1.21.2 seems to work for the past 4 hours but only without seperate screenshot URL. I hope the cameras stay on.

DReffects avatar Mar 27 '22 18:03 DReffects

New version 1.23.4 with changelog: Fix an issue that prevents G3 cameras from streaming and recording until they are restarted. https://community.ui.com/releases/UniFi-Protect-Application-1-21-4/b0c494ef-a768-4aae-8ac1-e70851de4290

Maybe it's be a bug? Somebody can check it's be resolved on new Protect version?

OrionCodeDev avatar Mar 28 '22 07:03 OrionCodeDev

Maybe it's be a bug? Somebody can check it's be resolved on new Protect version?

Still not work in 1.21.4

FrancescoFdd5 avatar Mar 28 '22 08:03 FrancescoFdd5

Same here. 1.21.4 only snapshots are working. I have not had any time to debug but maybe I will see what I can find over the next few days. Has anyone looked at 1.21.3 release notes to get a clue what may have changed? I will check that too.

pgeremia avatar Mar 28 '22 11:03 pgeremia

Identical issue here. 4 x Hikvision cameras working perfectly with Protect v1.21.2, only low-res screenshots with v1.21.3 and seeing the identical crash as @eltomato89 above. Reverting to Protect v.1.21.2 got the cameras back online.

To save time for others looking for how to revert, ssh into the UDM-Pro and:

apt-get update
apt-get install --reinstall --allow-downgrades unifi-protect=1.21.2 -y

This works perfectly. Thanks!

benmprojects avatar Apr 01 '22 02:04 benmprojects

Any updates?

FrancescoFdd5 avatar Apr 05 '22 09:04 FrancescoFdd5

So Just an update for me I updated the console to 2.3.15 (NOT THE PROTECT APP ) and my cameras stopped working :/ . I'm getting a streamname: = nlkjljoilkljkljjijj898yo invalid arguments

Proxy1_1  | [NULL @ 0x55fdda3c95c0] Unable to find a suitable output format for 'streamname=C1wrNdvUWdyPHU4G'
Proxy1_1  | streamname=C1wrNdvUWdyPHU4G: Invalid argument
Proxy1_1  | 2022-04-05 23:31:00 4e9f6e056c18 RTSPCam[1] INFO Processing [GetRequest] message
Proxy1_1  | 2022-04-05 23:31:00 4e9f6e056c18 RTSPCam[1] INFO Processing [ChangeVideoSettings] message
Proxy1_1  | ffmpeg version 4.1.6 Copyright (c) 2000-2020 the FFmpeg developers
Proxy1_1  |   built with gcc 8.3.0 (Alpine 8.3.0)
Proxy1_1  |   configuration: --prefix=/usr --enable-avresample --enable-avfilter --enable-gnutls --enable-gpl --enable-libass --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libxvid --enable-libx264 --enable-libx265 --enable-libtheora --enable-libv4l2 --enable-postproc --enable-pic --enable-pthreads --enable-shared --enable-libxcb --disable-stripping --disable-static --disable-librtmp --enable-vaapi --enable-vdpau --enable-libopus --disable-debug
Proxy1_1  |   libavutil      56. 22.100 / 56. 22.100
Proxy1_1  |   libavcodec     58. 35.100 / 58. 35.100
Proxy1_1  |   libavformat    58. 20.100 / 58. 20.100
Proxy1_1  |   libavdevice    58.  5.100 / 58.  5.100
Proxy1_1  |   libavfilter     7. 40.101 /  7. 40.101
Proxy1_1  |   libavresample   4.  0.  0 /  4.  0.  0
Proxy1_1  |   libswscale      5.  3.100 /  5.  3.100
Proxy1_1  |   libswresample   3.  3.100 /  3.  3.100
Proxy1_1  |   libpostproc    55.  3.100 / 55.  3.100
Proxy1_1  | 2022-04-05 23:31:01 4e9f6e056c18 RTSPCam[1] WARNING Previous ffmpeg process for video2 died.
Proxy1_1  | 2022-04-05 23:31:01 4e9f6e056c18 RTSPCam[1] INFO Spawning ffmpeg for video2 (C1wrNdvUWdyPHU4G): 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" -f lavfi -i anullsrc -c:v copy -ar 32000 -ac 1 -codec:a aac -b:a 32k> -metadata streamname=C1wrNdvUWdyPHU4G-f flv - | /usr/local/bin/python -m unifi.clock_sync | nc 192.168.30.10 7550

Config unifi-cam-proxy --host 192.168.30.10 -i 192.168.30.43 --mac 'F4:FA:4C:39:E4:49' -c /client.pem -t KsnCXmmwlTY3iqAtA73j6FVFzt6DeGeq dahua -u admin -p eAstern23 --ffmpeg-args="-f lavfi -i anullsrc -c:v copy -ar 32000 -ac 1 -codec:a aac -b:a 32k">

EasternIndustries-IT avatar Apr 05 '22 21:04 EasternIndustries-IT

I've made some progress trying to understand the new entirely custom video feed, but haven't quite been able to figure out which bits are necessary just yet. Thank you for your patience!

keshavdv avatar Apr 06 '22 14:04 keshavdv

. Thank you for your patience! THANK YOU!!

If I can assist in any way let me know

DReffects avatar Apr 06 '22 14:04 DReffects

Getting a similar error

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
av_interleaved_write_frame(): Broken pipe
Error writing trailer of pipe:: Broken pipepipe:: Broken pipe

poldim avatar Apr 09 '22 20:04 poldim

So Im not sure if this has anything to do with a broken pip error. But since the update of the controller only not the app. I can no longer reach the unvr or protect by the specified ports

192.168.XXX.XXX:7443
192.168.XXX.XXX:7080

So I assume the port mapping for the UNVR has changed the ports listed below

7080 - HTTP Web UI & API

7443 - HTTPS Web UI & API

7444 - Camera firmware updates from controller

7447 - RTSP via the controller

7550 - Streaming to UFP

7442 - Camera management

EasternIndustries-IT avatar Apr 12 '22 21:04 EasternIndustries-IT

Update: I've been able to make progress and get basic streaming working again in 1.21.4, but it will take me a few days to get things in good enough shape to ship a fix and push a new version.

keshavdv avatar Apr 18 '22 04:04 keshavdv

Thank you for your effort to get things back. While you're shaping up the things, could you please share some details on the root cause? Just curious, I spent some time to investigate the issue, but not enough :)

ksorokin avatar Apr 20 '22 19:04 ksorokin

In the latest releases, Protect has switched to an entirely non-standard flv encoding format which isn't supported by any existing open source tools. Most of the effort was in trying to identify the custom extensions of the video stream and figure out how to inject them into an existing stream without re-encoding.

keshavdv avatar Apr 20 '22 23:04 keshavdv

I'm just giving stimulus here, I hope you'll manage something with the .4 and/or .5 protect version. If you success, I'll try my best to disable any auto-upgrade, your proxy is amazing. Keep up the good work, and good luck with FLV !

PxxBxx avatar Apr 23 '22 10:04 PxxBxx