HSV recording locally  but not uploading to iCloud and no HSV bar visible in home app
Hi,
I finally get some results configuring the plugin but it's still not working as it should.
The debug below it's showing that after motion detected, HSV is requesting video fragments, it's recording, it's completing the recording and it's storing to var/lib/hoobs/camerauibridge/camera.ui/recordings/XIAOFANG_Cucina-b504fb182f-1656363071_c_CUI.mp4

The problem is that the camera in the home app is set to record when I'm home and away, I'm getting the notification from home app when motion is detected but there is no HKSV video recording bar in the camera so I can't watch the HSV video recorded.

![IMG_2223CBB61FD7-1](https://user-images.githubusercontent.com/22842139/176038535-ca4a061e-d6e8-4ff0-b4cd-0c85e582e1db.jpeg)


I already rebooted many times all my devices and tried to switch a lot of times from streaming only to stream and  record in the home app without any success. 

When I'm logging to the camera UI web interface at MYIP:8081 in the setting panel I have the recordings turned on as the image below:

<img width="1409" alt="Schermata 2022-06-27 alle 23 11 43" src="https://user-images.githubusercontent.com/22842139/176037303-ce4f3356-66a3-40f2-8374-86625fd9f2a0.png">

While in the recording tabs of camera ui interface I can see the recorded video that are labeled HSV, like this one below:

<img width="441" alt="Schermata 2022-06-27 alle 23 21 30" src="https://user-images.githubusercontent.com/22842139/176037842-623dc93d-34ff-45df-bc67-2a566802af62.png">




this is the log of the raspberry when a motion is detected: 

**27/6/2022, 22:50:55Camera Ui BridgeCameraUIVIDEOANALYSIS: New message: Data: [{"zone":"region0","percent":37.20833206176758,"sensitivity":64,"dwell":60,"forceClose":3}] - Motion: detected - Camera: XIAOFANG Cucina
27/6/2022, 22:50:55Camera Ui BridgeCameraUIXIAOFANG Cucina: {"error":false,"message":"Handling through extern controller.."}
27/6/2022, 22:50:55Camera Ui BridgeCameraUIMQTT client not connected, skip MQTT (notification)..
27/6/2022, 22:50:55Camera Ui BridgeCameraUIXIAOFANG Cucina: Motion ON
27/6/2022, 22:50:55Camera Ui BridgeCameraUIXIAOFANG Cucina: Snapshot requested: 1280 x 720
27/6/2022, 22:50:55Camera Ui BridgeCameraUIXIAOFANG Cucina: Snapshot requested: 1280 x 720
27/6/2022, 22:50:55Camera Ui BridgeCameraUIXIAOFANG Cucina: New motion detected, resetting motion in 60s..
27/6/2022, 22:50:55Camera Ui BridgeCameraUIXIAOFANG Cucina: Motion data: [{"zone":"region0","percent":33.22829818725586,"sensitivity":68,"dwell":60,"forceClose":3}]}
27/6/2022, 22:50:56Camera Ui BridgeCameraUIXIAOFANG Cucina: Prebuffer request ended
27/6/2022, 22:50:56Camera Ui BridgeCameraUIXIAOFANG Cucina: Sending snapshot: 1280x720
27/6/2022, 22:50:56Camera Ui BridgeCameraUIXIAOFANG Cucina: Sending snapshot: 1280x720 (cached)
27/6/2022, 22:50:56Camera Ui BridgeCameraUIXIAOFANG Cucina: Video fragments requested from HSV
27/6/2022, 22:50:56Camera Ui BridgeCameraUIXIAOFANG Cucina: Start recording...
27/6/2022, 22:50:56Camera Ui BridgeCameraUIXIAOFANG Cucina: Start stream requested: 1920x1080, 30 fps, 802 kbps
27/6/2022, 22:50:56Camera Ui BridgeCameraUIXIAOFANG Cucina: Incoming ping request for: rtsp://192.168.31.178:554/unicast - Timeout: 1s
27/6/2022, 22:50:56Camera Ui BridgeCameraUIXIAOFANG Cucina: Pinging 192.168.31.178:554
27/6/2022, 22:50:56Camera Ui BridgeCameraUIXIAOFANG Cucina: Pinging 192.168.31.178:554 - successful
27/6/2022, 22:50:56Camera Ui BridgeCameraUIXIAOFANG Cucina: Setting prebuffer stream as input
27/6/2022, 22:50:56Camera Ui BridgeCameraUIXIAOFANG Cucina: Starting video stream: native
27/6/2022, 22:50:56Camera Ui BridgeCameraUIXIAOFANG Cucina: [tcp @ 0x236c300] Starting connection attempt to 127.0.0.1 port 17870
27/6/2022, 22:50:56Camera Ui BridgeCameraUIXIAOFANG Cucina: [tcp @ 0x236c300] Successfully connected to 127.0.0.1 port 17870
27/6/2022, 22:50:56Camera Ui BridgeCameraUIXIAOFANG Cucina: [h264 @ 0x2379860] Reinit context to 1920x1088, pix_fmt: yuv420p
27/6/2022, 22:50:56Camera Ui BridgeCameraUIXIAOFANG Cucina: [mpegts @ 0x236bc10] max_analyze_duration 5000000 reached at 5020011 microseconds st:0
27/6/2022, 22:50:56Camera Ui BridgeCameraUIXIAOFANG Cucina: Input #0, mpegts, from 'tcp://127.0.0.1:17870':
27/6/2022, 22:50:56Camera Ui BridgeCameraUIXIAOFANG Cucina:   Duration: N/A, start: 264.593000, bitrate: N/A
27/6/2022, 22:50:56Camera Ui BridgeCameraUIXIAOFANG Cucina:   Program 1 
27/6/2022, 22:50:56Camera Ui BridgeCameraUIXIAOFANG Cucina:     Metadata:
27/6/2022, 22:50:56Camera Ui BridgeCameraUIXIAOFANG Cucina:       service_name    : LIVE555 Streaming Media v2014.07.04
27/6/2022, 22:50:56Camera Ui BridgeCameraUIXIAOFANG Cucina:       service_provider: FFmpeg
27/6/2022, 22:50:56Camera Ui BridgeCameraUIXIAOFANG Cucina:   Stream #0:0[0x100]: Video: h264 (High), 1 reference frame ([27][0][0][0] / 0x001B), yuv420p(progressive), 1920x1080 (1920x1088), 24.92 tbr, 90k tbn
27/6/2022, 22:50:56Camera Ui BridgeCameraUIXIAOFANG Cucina:   Stream #0:1[0x101]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 8000 Hz, mono, fltp, 48 kb/s
27/6/2022, 22:50:56Camera Ui BridgeCameraUIXIAOFANG Cucina: Output #0, rtp, to 'srtp://192.168.31.232:53002?rtcpport=53002&pkt_size=1318':
27/6/2022, 22:50:56Camera Ui BridgeCameraUIXIAOFANG Cucina:   Metadata:
27/6/2022, 22:50:56Camera Ui BridgeCameraUIXIAOFANG Cucina:     encoder         : Lavf59.16.100
27/6/2022, 22:50:56Camera Ui BridgeCameraUIXIAOFANG Cucina:   Stream #0:0: Video: h264 (High), 1 reference frame ([27][0][0][0] / 0x001B), yuv420p(tv, progressive), 1920x1080 (0x0), q=2-31, 24.92 tbr, 90k tbn
27/6/2022, 22:50:56Camera Ui BridgeCameraUIXIAOFANG Cucina: Stream mapping:
27/6/2022, 22:50:56Camera Ui BridgeCameraUIXIAOFANG Cucina:   Stream #0:0 -> #0:0 (copy)
27/6/2022, 22:50:56Camera Ui BridgeCameraUIXIAOFANG Cucina:   Stream #0:1 -> #1:0 (aac (native) -> aac (libfdk_aac))
27/6/2022, 22:50:56Camera Ui BridgeCameraUIXIAOFANG Cucina: Press [q] to stop, [?] for help
27/6/2022, 22:50:56Camera Ui BridgeCameraUIXIAOFANG Cucina: [graph_0_in_0_1 @ 0x24218b0] tb:1/8000 samplefmt:fltp samplerate:8000 chlayout:0x4
27/6/2022, 22:50:56Camera Ui BridgeCameraUIXIAOFANG Cucina: [format_out_1_0 @ 0x23a0260] auto-inserting filter 'auto_aresample_0' between the filter 'Parsed_anull_0' and the filter 'format_out_1_0'
27/6/2022, 22:50:56Camera Ui BridgeCameraUIXIAOFANG Cucina: [auto_aresample_0 @ 0x23a5400] ch:1 chl:mono fmt:fltp r:8000Hz -> ch:1 chl:mono fmt:s16 r:16000Hz
27/6/2022, 22:50:56Camera Ui BridgeCameraUIXIAOFANG Cucina: Output #1, rtp, to 'srtp://192.168.31.232:52472?rtcpport=52472&pkt_size=188':
27/6/2022, 22:50:56Camera Ui BridgeCameraUIXIAOFANG Cucina:   Metadata:
27/6/2022, 22:50:56Camera Ui BridgeCameraUIXIAOFANG Cucina:     encoder         : Lavf59.16.100
27/6/2022, 22:50:56Camera Ui BridgeCameraUIXIAOFANG Cucina:   Stream #1:0: Audio: aac (ELD), 16000 Hz, mono, s16, delay 288, 24 kb/s
27/6/2022, 22:50:56Camera Ui BridgeCameraUIXIAOFANG Cucina:     Metadata:
27/6/2022, 22:50:56Camera Ui BridgeCameraUIXIAOFANG Cucina:       encoder         : Lavc59.18.100 libfdk_aac
27/6/2022, 22:50:56Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=    0 fps=0.0 q=-1.0 size=       0kB time=00:00:00.07 bitrate=   0.0kbits/s speed=3.9e+04x    
27/6/2022, 22:50:56Camera Ui BridgeCameraUIXIAOFANG Cucina: [libfdk_aac @ 0x23760f0] Queue input is backward in time
27/6/2022, 22:50:57Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  148 fps=0.0 q=-1.0 size=     209kB time=00:00:05.95 bitrate= 287.3kbits/s speed=10.5x    
27/6/2022, 22:50:57Camera Ui BridgeCameraUIXIAOFANG Cucina: Getting the first frames took 0.805 seconds.
27/6/2022, 22:50:57Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  162 fps=151 q=-1.0 size=     232kB time=00:00:06.50 bitrate= 291.7kbits/s speed=6.08x    
27/6/2022, 22:50:57Camera Ui BridgeCameraUIXIAOFANG Cucina: Guessed Channel Layout for Input Stream #0.1 : mono
27/6/2022, 22:50:57Camera Ui BridgeCameraUIXIAOFANG Cucina: Input #0, rtsp, from 'rtsp://192.168.31.178:554/unicast':
27/6/2022, 22:50:57Camera Ui BridgeCameraUIXIAOFANG Cucina:   Metadata:
27/6/2022, 22:50:57Camera Ui BridgeCameraUIXIAOFANG Cucina:     title           : LIVE555 Streaming Media v2014.07.04
27/6/2022, 22:50:57Camera Ui BridgeCameraUIXIAOFANG Cucina:     comment         : LIVE555 Streaming Media v2014.07.04
27/6/2022, 22:50:57Camera Ui BridgeCameraUIXIAOFANG Cucina:   Duration: N/A, start: 0.000000, bitrate: N/A
27/6/2022, 22:50:57Camera Ui BridgeCameraUIXIAOFANG Cucina:   Stream #0:0: Video: h264 (High), yuv420p(progressive), 1920x1080, 50 tbr, 90k tbn
27/6/2022, 22:50:57Camera Ui BridgeCameraUIXIAOFANG Cucina:   Stream #0:1: Audio: pcm_alaw, 8000 Hz, mono, s16, 64 kb/s
27/6/2022, 22:50:57Camera Ui BridgeCameraUIXIAOFANG Cucina: Stream mapping:
27/6/2022, 22:50:57Camera Ui BridgeCameraUIXIAOFANG Cucina:   Stream #0:0 -> #0:0 (copy)
27/6/2022, 22:50:57Camera Ui BridgeCameraUIXIAOFANG Cucina:   Stream #0:1 -> #0:1 (pcm_alaw (native) -> aac (libfdk_aac))
27/6/2022, 22:50:57Camera Ui BridgeCameraUIXIAOFANG Cucina: Press [q] to stop, [?] for help
27/6/2022, 22:50:57Camera Ui BridgeCameraUIXIAOFANG Cucina: Recording started
27/6/2022, 22:50:57Camera Ui BridgeCameraUIXIAOFANG Cucina: Output #0, mp4, to 'tcp://127.0.0.1:37557':
27/6/2022, 22:50:57Camera Ui BridgeCameraUIXIAOFANG Cucina:   Metadata:
27/6/2022, 22:50:57Camera Ui BridgeCameraUIXIAOFANG Cucina:     title           : LIVE555 Streaming Media v2014.07.04
27/6/2022, 22:50:57Camera Ui BridgeCameraUIXIAOFANG Cucina:     comment         : LIVE555 Streaming Media v2014.07.04
27/6/2022, 22:50:57Camera Ui BridgeCameraUIXIAOFANG Cucina:     encoder         : Lavf59.16.100
27/6/2022, 22:50:57Camera Ui BridgeCameraUIXIAOFANG Cucina:   Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 1920x1080, q=2-31, 50 tbr, 90k tbn
27/6/2022, 22:50:57Camera Ui BridgeCameraUIXIAOFANG Cucina:   Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 32000 Hz, mono, s16, 64 kb/s
27/6/2022, 22:50:57Camera Ui BridgeCameraUIXIAOFANG Cucina:     Metadata:
27/6/2022, 22:50:57Camera Ui BridgeCameraUIXIAOFANG Cucina:       encoder         : Lavc59.18.100 libfdk_aac
27/6/2022, 22:50:57Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=    0 fps=0.0 q=-1.0 size=       1kB time=00:00:00.03 bitrate= 335.5kbits/s speed=1.6e+04x    
27/6/2022, 22:50:58Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  176 fps=109 q=-1.0 size=     243kB time=00:00:07.08 bitrate= 280.6kbits/s speed=4.39x    
27/6/2022, 22:50:58Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=   42 fps=0.0 q=-1.0 size=      50kB time=00:00:02.04 bitrate= 199.6kbits/s speed=3.85x    
27/6/2022, 22:50:58Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  189 fps= 83 q=-1.0 size=     265kB time=00:00:07.63 bitrate= 284.6kbits/s speed=3.37x    
27/6/2022, 22:50:59Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=   54 fps= 51 q=-1.0 size=      50kB time=00:00:02.63 bitrate= 155.2kbits/s speed= 2.5x    
27/6/2022, 22:50:59Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  203 fps= 73 q=-1.0 size=     274kB time=00:00:08.16 bitrate= 275.2kbits/s speed=2.94x    
27/6/2022, 22:50:59Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=   67 fps= 43 q=-1.0 size=      91kB time=00:00:03.12 bitrate= 238.5kbits/s speed=1.99x    
27/6/2022, 22:51:00Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  217 fps= 66 q=-1.0 size=     294kB time=00:00:08.71 bitrate= 276.6kbits/s speed=2.65x    
27/6/2022, 22:51:00Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=   80 fps= 38 q=-1.0 size=      91kB time=00:00:03.61 bitrate= 206.1kbits/s speed=1.73x    
27/6/2022, 22:51:00Camera Ui BridgeCameraUIXIAOFANG Cucina: [libfdk_aac @ 0x23760f0] Queue input is backward in time
27/6/2022, 22:51:00Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  232 fps= 60 q=-1.0 size=     300kB time=00:00:09.31 bitrate= 263.7kbits/s speed=2.42x    
27/6/2022, 22:51:00Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=   93 fps= 36 q=-1.0 size=     126kB time=00:00:04.12 bitrate= 249.7kbits/s speed=1.59x    
27/6/2022, 22:51:00Camera Ui BridgeCameraUIXIAOFANG Cucina: [libfdk_aac @ 0x23760f0] Queue input is backward in time
27/6/2022, 22:51:01Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  107 fps= 34 q=-1.0 size=     126kB time=00:00:04.64 bitrate= 222.1kbits/s speed=1.49x    
27/6/2022, 22:51:01Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  247 fps= 54 q=-1.0 size=     319kB time=00:00:09.92 bitrate= 263.2kbits/s speed=2.18x    
27/6/2022, 22:51:01Camera Ui BridgeCameraUIXIAOFANG Cucina: [libfdk_aac @ 0x23760f0] Queue input is backward in time
27/6/2022, 22:51:01Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  119 fps= 32 q=-1.0 size=     126kB time=00:00:05.23 bitrate= 196.8kbits/s speed=1.43x    
27/6/2022, 22:51:01Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  260 fps= 51 q=-1.0 size=     322kB time=00:00:10.43 bitrate= 253.0kbits/s speed=2.06x    
27/6/2022, 22:51:02Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  132 fps= 32 q=-1.0 size=     158kB time=00:00:05.73 bitrate= 225.5kbits/s speed=1.38x    
27/6/2022, 22:51:02Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  274 fps= 49 q=-1.0 size=     340kB time=00:00:11.01 bitrate= 253.3kbits/s speed=1.97x    
27/6/2022, 22:51:02Camera Ui BridgeCameraUIXIAOFANG Cucina: [libfdk_aac @ 0x23760f0] Queue input is backward in time
27/6/2022, 22:51:02Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  145 fps= 31 q=-1.0 size=     158kB time=00:00:06.21 bitrate= 208.1kbits/s speed=1.32x    
27/6/2022, 22:51:02Camera Ui BridgeCameraUIXIAOFANG Cucina:     Last message repeated 1 times
27/6/2022, 22:51:02Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  289 fps= 47 q=-1.0 size=     344kB time=00:00:11.60 bitrate= 242.8kbits/s speed=1.88x    
27/6/2022, 22:51:03Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  159 fps= 30 q=-1.0 size=     189kB time=00:00:06.74 bitrate= 229.7kbits/s speed=1.29x    
27/6/2022, 22:51:03Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  304 fps= 44 q=-1.0 size=     362kB time=00:00:12.23 bitrate= 242.3kbits/s speed=1.79x    
27/6/2022, 22:51:03Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  171 fps= 30 q=-1.0 size=     189kB time=00:00:07.32 bitrate= 211.3kbits/s speed=1.28x    
27/6/2022, 22:51:04Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  317 fps= 43 q=-1.0 size=     365kB time=00:00:12.74 bitrate= 234.6kbits/s speed=1.73x    
27/6/2022, 22:51:04Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  184 fps= 29 q=-1.0 size=     220kB time=00:00:07.80 bitrate= 230.7kbits/s speed=1.25x    
27/6/2022, 22:51:04Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  330 fps= 42 q=-1.0 size=     368kB time=00:00:13.25 bitrate= 227.4kbits/s speed=1.68x    
27/6/2022, 22:51:04Camera Ui BridgeCameraUIXIAOFANG Cucina: [libfdk_aac @ 0x23760f0] Queue input is backward in time
27/6/2022, 22:51:04Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  197 fps= 29 q=-1.0 size=     220kB time=00:00:08.32 bitrate= 216.5kbits/s speed=1.23x    
27/6/2022, 22:51:05Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  346 fps= 41 q=-1.0 size=     386kB time=00:00:13.89 bitrate= 227.6kbits/s speed=1.64x    
27/6/2022, 22:51:05Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  209 fps= 29 q=-1.0 size=     220kB time=00:00:08.84 bitrate= 203.8kbits/s speed=1.21x    
27/6/2022, 22:51:05Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  223 fps= 29 q=-1.0 size=     251kB time=00:00:09.31 bitrate= 220.5kbits/s speed=1.19x    
27/6/2022, 22:51:05Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  362 fps= 40 q=-1.0 size=     404kB time=00:00:14.54 bitrate= 227.5kbits/s speed=1.59x    
27/6/2022, 22:51:06Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  236 fps= 28 q=-1.0 size=     251kB time=00:00:09.84 bitrate= 208.6kbits/s speed=1.18x    
27/6/2022, 22:51:06Camera Ui BridgeCameraUIXIAOFANG Cucina: [libfdk_aac @ 0x23760f0] Queue input is backward in time
27/6/2022, 22:51:06Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  375 fps= 39 q=-1.0 size=     407kB time=00:00:15.05 bitrate= 221.3kbits/s speed=1.55x    
27/6/2022, 22:51:06Camera Ui BridgeCameraUIXIAOFANG Cucina: [libfdk_aac @ 0x23760f0] Queue input is backward in time
27/6/2022, 22:51:06Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  249 fps= 28 q=-1.0 size=     281kB time=00:00:10.35 bitrate= 222.6kbits/s speed=1.17x    
27/6/2022, 22:51:06Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  390 fps= 38 q=-1.0 size=     410kB time=00:00:15.70 bitrate= 213.9kbits/s speed=1.53x    
27/6/2022, 22:51:07Camera Ui BridgeCameraUIXIAOFANG Cucina: [libfdk_aac @ 0x23760f0] Queue input is backward in time
27/6/2022, 22:51:07Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  261 fps= 28 q=-1.0 size=     281kB time=00:00:10.91 bitrate= 211.2kbits/s speed=1.17x    
27/6/2022, 22:51:07Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  407 fps= 37 q=-1.0 size=     428kB time=00:00:16.34 bitrate= 214.4kbits/s speed=1.49x    
27/6/2022, 22:51:07Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  274 fps= 28 q=-1.0 size=     312kB time=00:00:11.42 bitrate= 223.4kbits/s speed=1.16x    
27/6/2022, 22:51:08Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  419 fps= 37 q=-1.0 size=     430kB time=00:00:16.83 bitrate= 209.4kbits/s speed=1.47x    
27/6/2022, 22:51:08Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  287 fps= 28 q=-1.0 size=     312kB time=00:00:11.90 bitrate= 214.4kbits/s speed=1.15x    
27/6/2022, 22:51:08Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  435 fps= 36 q=-1.0 size=     448kB time=00:00:17.49 bitrate= 209.9kbits/s speed=1.45x    
27/6/2022, 22:51:08Camera Ui BridgeCameraUIXIAOFANG Cucina: [libfdk_aac @ 0x23760f0] Queue input is backward in time
27/6/2022, 22:51:08Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  300 fps= 28 q=-1.0 size=     312kB time=00:00:12.42 bitrate= 205.4kbits/s speed=1.14x    
27/6/2022, 22:51:09Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  448 fps= 36 q=-1.0 size=     452kB time=00:00:17.99 bitrate= 205.7kbits/s speed=1.43x    
27/6/2022, 22:51:09Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  312 fps= 27 q=-1.0 size=     343kB time=00:00:12.93 bitrate= 216.9kbits/s speed=1.13x    
27/6/2022, 22:51:09Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  326 fps= 27 q=-1.0 size=     343kB time=00:00:13.43 bitrate= 208.9kbits/s speed=1.13x    
27/6/2022, 22:51:09Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  464 fps= 35 q=-1.0 size=     469kB time=00:00:18.63 bitrate= 206.2kbits/s speed=1.41x    
27/6/2022, 22:51:10Camera Ui BridgeCameraUIXIAOFANG Cucina: Motion OFF - Motion handler timeout.
27/6/2022, 22:51:10Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  339 fps= 27 q=-1.0 size=     372kB time=00:00:13.95 bitrate= 218.5kbits/s speed=1.12x    
27/6/2022, 22:51:10Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  477 fps= 35 q=-1.0 size=     472kB time=00:00:19.15 bitrate= 201.9kbits/s speed=1.39x    
27/6/2022, 22:51:10Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  351 fps= 27 q=-1.0 size=     372kB time=00:00:14.53 bitrate= 209.6kbits/s speed=1.12x    
27/6/2022, 22:51:11Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  492 fps= 34 q=-1.0 size=     489kB time=00:00:19.79 bitrate= 202.2kbits/s speed=1.38x    
27/6/2022, 22:51:11Camera Ui BridgeCameraUIXIAOFANG Cucina: Recording completed (HSV)
27/6/2022, 22:51:11Camera Ui BridgeCameraUIXIAOFANG Cucina: New HSV alert
27/6/2022, 22:51:11Camera Ui BridgeCameraUIXIAOFANG Cucina: Notifications not enabled, skip MQTT (notification)..
27/6/2022, 22:51:11Camera Ui BridgeCameraUIXIAOFANG Cucina: Notifications not enabled, skip Webhook..
27/6/2022, 22:51:11Camera Ui BridgeCameraUIXIAOFANG Cucina: Notifications not enabled, skip Alexa..
27/6/2022, 22:51:11Camera Ui BridgeCameraUIXIAOFANG Cucina: Storing video to: /var/lib/hoobs/camerauibridge/camera.ui/recordings/XIAOFANG_Cucina-b504fb182f-1656363071_c_CUI.mp4
27/6/2022, 22:51:11Camera Ui BridgeCameraUIXIAOFANG Cucina: Closing recording process
27/6/2022, 22:51:11Camera Ui BridgeCameraUIXIAOFANG Cucina: FFmpeg recording process exited (expected)
27/6/2022, 22:51:11Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  506 fps= 34 q=-1.0 size=     491kB time=00:00:20.30 bitrate= 198.1kbits/s speed=1.37x    
27/6/2022, 22:51:12Camera Ui BridgeCameraUIXIAOFANG Cucina: FFmpeg snapshot process exited (expected)
27/6/2022, 22:51:12Camera Ui BridgeCameraUIXIAOFANG Cucina: Notifications not enabled, skip Webpush..
27/6/2022, 22:51:12Camera Ui BridgeCameraUIXIAOFANG Cucina: Notifications not enabled, skip Telegram..
27/6/2022, 22:51:12Camera Ui BridgeCameraUIXIAOFANG Cucina: Recording saved. Notification skipped.
27/6/2022, 22:51:12Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  519 fps= 34 q=-1.0 size=     507kB time=00:00:20.82 bitrate= 199.6kbits/s speed=1.35x    
27/6/2022, 22:51:12Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  531 fps= 33 q=-1.0 size=     510kB time=00:00:21.32 bitrate= 195.7kbits/s speed=1.34x    
27/6/2022, 22:51:13Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  544 fps= 33 q=-1.0 size=     526kB time=00:00:21.84 bitrate= 197.2kbits/s speed=1.33x    
27/6/2022, 22:51:13Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  557 fps= 33 q=-1.0 size=     529kB time=00:00:22.35 bitrate= 193.8kbits/s speed=1.32x    
27/6/2022, 22:51:14Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  570 fps= 33 q=-1.0 size=     533kB time=00:00:22.87 bitrate= 190.7kbits/s speed=1.31x    
27/6/2022, 22:51:14Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  583 fps= 32 q=-1.0 size=     549kB time=00:00:23.40 bitrate= 192.1kbits/s speed= 1.3x    
27/6/2022, 22:51:15Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  598 fps= 32 q=-1.0 size=     551kB time=00:00:24.01 bitrate= 188.1kbits/s speed=1.29x    
27/6/2022, 22:51:15Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  611 fps= 32 q=-1.0 size=     568kB time=00:00:24.52 bitrate= 189.5kbits/s speed=1.28x    
27/6/2022, 22:51:16Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  627 fps= 32 q=-1.0 size=     570kB time=00:00:25.16 bitrate= 185.5kbits/s speed=1.27x    
27/6/2022, 22:51:16Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  642 fps= 32 q=-1.0 size=     586kB time=00:00:25.76 bitrate= 186.4kbits/s speed=1.27x    
27/6/2022, 22:51:17Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  653 fps= 31 q=-1.0 size=     588kB time=00:00:26.20 bitrate= 183.8kbits/s speed=1.26x    
27/6/2022, 22:51:18Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  667 fps= 31 q=-1.0 size=     604kB time=00:00:26.76 bitrate= 184.9kbits/s speed=1.26x    
27/6/2022, 22:51:18Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  681 fps= 31 q=-1.0 size=     606kB time=00:00:27.34 bitrate= 181.6kbits/s speed=1.24x    
27/6/2022, 22:51:19Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  695 fps= 31 q=-1.0 size=     622kB time=00:00:27.88 bitrate= 182.8kbits/s speed=1.24x    
27/6/2022, 22:51:19Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  710 fps= 31 q=-1.0 size=     624kB time=00:00:28.49 bitrate= 179.4kbits/s speed=1.24x    
27/6/2022, 22:51:20Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  722 fps= 31 q=-1.0 size=     640kB time=00:00:29.00 bitrate= 180.7kbits/s speed=1.23x    
27/6/2022, 22:51:20Yeelighter BridgeYeelighter[0x0000000002be128b] Interval Update []
27/6/2022, 22:51:21Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  738 fps= 30 q=-1.0 size=     642kB time=00:00:29.64 bitrate= 177.3kbits/s speed=1.22x    
27/6/2022, 22:51:21Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  751 fps= 30 q=-1.0 size=     658kB time=00:00:30.16 bitrate= 178.6kbits/s speed=1.22x    
27/6/2022, 22:51:21Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  764 fps= 30 q=-1.0 size=     659kB time=00:00:30.66 bitrate= 176.2kbits/s speed=1.21x    
27/6/2022, 22:51:22Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  780 fps= 30 q=-1.0 size=     662kB time=00:00:31.32 bitrate= 173.0kbits/s speed=1.21x    
27/6/2022, 22:51:23Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  793 fps= 30 q=-1.0 size=     677kB time=00:00:31.82 bitrate= 174.4kbits/s speed= 1.2x    
27/6/2022, 22:51:23Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  806 fps= 30 q=-1.0 size=     679kB time=00:00:32.34 bitrate= 172.0kbits/s speed= 1.2x    
27/6/2022, 22:51:24Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  818 fps= 30 q=-1.0 size=     695kB time=00:00:32.83 bitrate= 173.3kbits/s speed=1.19x    
27/6/2022, 22:51:24Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  832 fps= 30 q=-1.0 size=     696kB time=00:00:33.39 bitrate= 170.9kbits/s speed=1.19x    
27/6/2022, 22:51:25Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  847 fps= 30 q=-1.0 size=     713kB time=00:00:34.01 bitrate= 171.6kbits/s speed=1.19x    
27/6/2022, 22:51:25Camera Ui BridgeCameraUIXIAOFANG Cucina: [libfdk_aac @ 0x23760f0] Queue input is backward in time
27/6/2022, 22:51:26Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  863 fps= 29 q=-1.0 size=     715kB time=00:00:34.64 bitrate= 169.0kbits/s speed=1.18x    
27/6/2022, 22:51:26Camera Ui BridgeCameraUIXIAOFANG Cucina: frame=  876 fps= 29 q=-1.0 size=     730kB time=00:00:35.15 bitrate= 170.2kbits/s speed=1.18x    
27/6/2022, 22:51:26Camera Ui BridgeCameraUIXIAOFANG Cucina: Stop stream requested
27/6/2022, 22:51:26Camera Ui BridgeCameraUIXIAOFANG Cucina: Stopped video stream.
27/6/2022, 22:51:26Camera Ui BridgeCameraUIXIAOFANG Cucina: Prebuffer request ended
27/6/2022, 22:51:26Camera Ui BridgeCameraUIXIAOFANG Cucina: FFmpeg exited with code: null and signal: SIGKILL (Expected)
27/6/2022, 22:51:55Camera Ui BridgeCameraUIVIDEOANALYSIS: New message: Data: {"time":"2022-06-27T20:51:55.807Z","event":"dwellTime (60s)"} - Motion: resetted - Camera: XIAOFANG Cucina
27/6/2022, 22:51:55Camera Ui BridgeCameraUIXIAOFANG Cucina: {"error":false,"message":"Handling through extern controller.."}
27/6/2022, 22:52:20Yeelighter BridgeYeelighter[0x0000000002be128b] Interval Update []**



and here below is my current configuration:

{
   "platform": "CameraUI",
  "logLevel": "debug",
  "port": 8081,
  "atHomeSwitch": false,
  "options": {
    "videoProcessor": "/var/lib/hoobs/camerauibridge/node_modules/ffmpeg-for-homebridge/ffmpeg"
  },
  "ssl": {
    "active": false
  },
  "http": {
    "active": false,
    "port": 7272,
    "localhttp": false
  },
  "smtp": {
    "active": false,
    "port": 2727,
    "space_replace": "+"
  },
  "ftp": {
    "active": false,
    "useFile": false,
    "port": 5050
  },
  "mqtt": {
    "active": false,
    "tls": false,
    "port": 1883
  },
  "cameras": [
    {
      "name": "XIAOFANG Cucina",
      "manufacturer": "Xiaomi",
      "model": "XiaoFang",
      "serialNumber": "0000000000",
      "motion": true,
      "hsv": true,
      "excludeSwitch": false,
      "privacySwitch": false,
      "switches": false,
      "motionTimeout": 15,
      "motionDoorbell": false,
      "prebuffering": true,
      "prebufferLength": 5,
      "unbridge": true,
      "videoConfig": {
        "stimeout": 10,
        "audio": true,
        "maxWidth": 1270,
        "maxHeight": 720,
        "maxFPS": 25,
        "forceMax": true,
        "vcodec": "copy",
        "acodec": "libfdk_aac",
        "source": "-i rtsp://192.168.31.178:554/unicast",
        "subSource": "-i rtsp://192.168.31.178:554/unicast",
        "stillImageSource": "-i rtsp://192.168.31.178:554/unicast",
        "debug": true,
        "preserveRatio": true,
        "rtspTransport": "tcp",
        "maxStreams": 2,
        "encoderOptions": "-x264-params intra-refresh=1:bframes=0",
        "maxBitrate": 2048
      },
      "hksvConfig": {
        "vcodec": "copy",
        "acodec": "libfdk_aac",
        "audio": true,
        "debug": true,
        "maxWidth": "1920",
        "maxHeight": "1080",
        "maxFPS": "25",
        "maxBitrate": "2048",
        "source": "-i rtsp://192.168.31.178:554/unicast",
        "encoderOptions": "-x264-params intra-refresh=1:bframes=0"
      },
      "videoanalysis": {
        "active": true
      },
      "smtp": {
        "email": "XIAOFANG Cucina"
      },
      "mqtt": {}
    }
  ]
}

EDIT:
While if I turn off recording from the camera ui setting panel I got a similar log but the last part is a bit different: 

27/6/2022, 23:38:44Camera Ui BridgeCameraUIXIAOFANG Cucina: Recording completed (HSV)
27/6/2022, 23:38:44Camera Ui BridgeCameraUIXIAOFANG Cucina: New HSV alert
27/6/2022, 23:38:44Camera Ui BridgeCameraUIXIAOFANG Cucina: Notifications not enabled, skip MQTT (notification)..
27/6/2022, 23:38:44Camera Ui BridgeCameraUIXIAOFANG Cucina: Notifications not enabled, skip Webhook..
27/6/2022, 23:38:44Camera Ui BridgeCameraUIXIAOFANG Cucina: Notifications not enabled, skip Webpush..
27/6/2022, 23:38:44Camera Ui BridgeCameraUIXIAOFANG Cucina: Notifications not enabled, skip Alexa..
27/6/2022, 23:38:44Camera Ui BridgeCameraUIXIAOFANG Cucina: Recording not enabled, skip recording..
27/6/2022, 23:38:44Camera Ui BridgeCameraUIXIAOFANG Cucina: Recording skipped. Notification skipped.
27/6/2022, 23:38:44Camera Ui BridgeCameraUIXIAOFANG Cucina: Closing recording process
27/6/2022, 23:38:44Camera Ui BridgeCameraUIXIAOFANG Cucina: FFmpeg recording process exited (expected)


Any idea what is the problem?

thank you!



