Instar IN-9008: HSV recording "UNEXPECTED_FAILURE"
Hi, I'm using the latest version of this great plugin to connect two Instar IN-9008 cams to HomeKit.
Live video and motion alerts are running like a charm, but similar to some other bug reports here I face issues with recordings in HSV.  
I tested several configuration options but didn't find the correct one yet.
Maybe someone has a solution for the IN-9008?



`[17.4.2022, 23:48:07] [CameraUI] VIDEOANALYSIS: New message: Data: [{"zone":"region0","percent":83.82682037353516,"sensitivity":17,"dwell":60,"forceClose":3}] - Motion: detected - Camera: Hauseingang
[17.4.2022, 23:48:07] [CameraUI] Hauseingang: {"error":false,"message":"Handling through extern controller.."}
[17.4.2022, 23:48:07] [CameraUI] Hauseingang: Motion ON
[17.4.2022, 23:48:07] [CameraUI] Hauseingang: Video fragments requested from HSV
[17.4.2022, 23:48:07] [CameraUI] Hauseingang: Setting prebuffer stream as input
[17.4.2022, 23:48:07] [CameraUI] Hauseingang: Prebuffer requested with a duration of -4s
[17.4.2022, 23:48:07] [CameraUI] Hauseingang: Start recording...
[17.4.2022, 23:48:07] [CameraUI] Hauseingang: Recording command: /usr/lib/node_modules/homebridge-camera-ui/node_modules/ffmpeg-for-homebridge/ffmpeg -hide_banner -analyzeduration 0 -probesize 500000 -f mp4 -i tcp://127.0.0.1:17709 -f mp4 -vcodec copy -bsf:a aac_adtstoasc -acodec libfdk_aac -profile:a aac_low -ar 32k -b:a 64k -ac 1 -movflags frag_keyframe+empty_moov+default_base_moof -max_muxing_queue_size 9999 -vsync cfr tcp://127.0.0.1:37395
[17.4.2022, 23:48:08] [CameraUI] Hauseingang: Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'tcp://127.0.0.1:17709':
[17.4.2022, 23:48:08] [CameraUI] Hauseingang:   Metadata:
[17.4.2022, 23:48:08] [CameraUI] Hauseingang:     major_brand     : iso5
[17.4.2022, 23:48:08] [CameraUI] Hauseingang:     minor_version   : 512
[17.4.2022, 23:48:08] [CameraUI] Hauseingang:     compatible_brands: iso5iso6mp41
[17.4.2022, 23:48:08] [CameraUI] Hauseingang:     title           : 10
[17.4.2022, 23:48:08] [CameraUI] Hauseingang:     encoder         : Lavf59.16.100
[17.4.2022, 23:48:08] [CameraUI] Hauseingang:   Duration: 00:03:30.48, start: 205.392000, bitrate: N/A
[17.4.2022, 23:48:08] [CameraUI] Hauseingang:   Stream #0:0[0x1](und): Video: h264 (Main) (avc1 / 0x31637661), yuvj420p(pc, bt709, progressive), 1920x1080, 17 kb/s, 24.98 fps, 25 tbr, 90k tbn (default)
[17.4.2022, 23:48:08] [CameraUI] Hauseingang:     Metadata:
[17.4.2022, 23:48:08] [CameraUI] Hauseingang:       handler_name    : VideoHandler
[17.4.2022, 23:48:08] [CameraUI] Hauseingang:       vendor_id       : [0][0][0][0]
[17.4.2022, 23:48:08] [CameraUI] Hauseingang:   Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 8000 Hz, mono, fltp, 1 kb/s (default)
[17.4.2022, 23:48:08] [CameraUI] Hauseingang:     Metadata:
[17.4.2022, 23:48:08] [CameraUI] Hauseingang:       handler_name    : SoundHandler
[17.4.2022, 23:48:08] [CameraUI] Hauseingang:       vendor_id       : [0][0][0][0]
[17.4.2022, 23:48:08] [CameraUI] Hauseingang: Stream mapping:
[17.4.2022, 23:48:08] [CameraUI] Hauseingang:   Stream #0:0 -> #0:0 (copy)
[17.4.2022, 23:48:08] [CameraUI] Hauseingang:   Stream #0:1 -> #0:1 (aac (native) -> aac (libfdk_aac))
[17.4.2022, 23:48:08] [CameraUI] Hauseingang: Press [q] to stop, [?] for help
[17.4.2022, 23:48:08] [CameraUI] Hauseingang: Output #0, mp4, to 'tcp://127.0.0.1:37395':
[17.4.2022, 23:48:08] [CameraUI] Hauseingang:   Metadata:
[17.4.2022, 23:48:08] [CameraUI] Hauseingang:     major_brand     : iso5
[17.4.2022, 23:48:08] [CameraUI] Hauseingang:     minor_version   : 512
[17.4.2022, 23:48:08] [CameraUI] Hauseingang:     compatible_brands: iso5iso6mp41
[17.4.2022, 23:48:08] [CameraUI] Hauseingang:     title           : 10
[17.4.2022, 23:48:08] [CameraUI] Hauseingang:     encoder         : Lavf59.16.100
[17.4.2022, 23:48:08] [CameraUI] Hauseingang:   Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuvj420p(pc, bt709, progressive), 1920x1080, q=2-31, 17 kb/s, 24.98 fps, 25 tbr, 90k tbn (default)
[17.4.2022, 23:48:08] [CameraUI] Hauseingang:     Metadata:
[17.4.2022, 23:48:08] [CameraUI] Hauseingang:       handler_name    : VideoHandler
[17.4.2022, 23:48:08] [CameraUI] Hauseingang:       vendor_id       : [0][0][0][0]
[17.4.2022, 23:48:08] [CameraUI] Hauseingang:   Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 32000 Hz, mono, s16, 64 kb/s (default)
[17.4.2022, 23:48:08] [CameraUI] Hauseingang:     Metadata:
[17.4.2022, 23:48:08] [CameraUI] Hauseingang:       handler_name    : SoundHandler
[17.4.2022, 23:48:08] [CameraUI] Hauseingang:       vendor_id       : [0][0][0][0]
[17.4.2022, 23:48:08] [CameraUI] Hauseingang:       encoder         : Lavc59.18.100 libfdk_aac
[17.4.2022, 23:48:08] [CameraUI] Hauseingang: Recording started
[17.4.2022, 23:48:08] [CameraUI] Hauseingang: frame=  125 fps=0.0 q=-1.0 size=       1kB time=00:00:04.96 bitrate=   2.1kbits/s speed=8.01e+03x    
[17.4.2022, 23:48:08] [CameraUI] Hauseingang: Snapshot requested: 640 x 360
[17.4.2022, 23:48:08] [CameraUI] Hauseingang: Snapshot command: /usr/lib/node_modules/homebridge-camera-ui/node_modules/ffmpeg-for-homebridge/ffmpeg -hide_banner -loglevel error -analyzeduration 0 -probesize 838668 -f mpegts -i tcp://127.0.0.1:38947 -frames:v 1 -f image2 -
[17.4.2022, 23:48:08] [CameraUI] Hauseingang: Prebuffer request ended
[17.4.2022, 23:48:08] [CameraUI] Hauseingang: Fetching snapshot took 0.472 seconds.
[17.4.2022, 23:48:08] [CameraUI] Hauseingang: Sending snapshot: 640x360
[17.4.2022, 23:48:08] [CameraUI] Hauseingang: Resize command: /usr/lib/node_modules/homebridge-camera-ui/node_modules/ffmpeg-for-homebridge/ffmpeg -i pipe: -frames:v 1 -filter:v scale='min(640,iw)':'min(360,ih)':force_original_aspect_ratio=decrease -f image2 -
[17.4.2022, 23:48:12] [CameraUI] Hauseingang: frame=  127 fps= 32 q=-1.0 size=       1kB time=00:00:05.04 bitrate=   2.0kbits/s speed=1.27x    
[17.4.2022, 23:48:12] [CameraUI] Hauseingang: Closing recording process
[17.4.2022, 23:48:12] [CameraUI] Hauseingang: Resetting motion sensor, because HSV closed the recording process
[17.4.2022, 23:48:12] [CameraUI] Hauseingang: Motion OFF
[17.4.2022, 23:48:12] [CameraUI] Hauseingang: FFMPEG socket closed during read for 8 bytes!
[17.4.2022, 23:48:12] [CameraUI] Hauseingang: The recording process was aborted by HSV with reason "UNEXPECTED_FAILURE"
[17.4.2022, 23:48:12] [CameraUI] Hauseingang: Prebuffer request ended
[17.4.2022, 23:48:12] [CameraUI] Hauseingang: FFmpeg recording process exited (expected)`