Closed geldelo closed 2 years ago
I'm seeing similar, but reason is "cancelled".
[2/2/2022, 12:47:27 PM] [CameraUI] Front Porch Cam: The recording process was aborted by HSV with reason "CANCELLED"
Same here
Same here
The recording process was aborted by HSV with reason "UNEXPECTED_FAILURE"
I have the same The recording process was aborted by HSV with reason "UNEXPECTED_FAILURE"
I have a similar issue, "The recording process was aborted by HSV with reason "CANCELLED"...my source is 1280x720 at 25FPS MJPEG, but I set VideoCode to "libx264" so that it will be reencoded.
[2/13/2022, 4:18:30 PM] [CameraUI] MQTT: New message: Topic: /service/mqttthing/klingel_heinze/get - Data: 1 - Type: string
[2/13/2022, 4:18:30 PM] [CameraUI] MQTT: {"camera":"Balkon","topic":"/service/mqttthing/klingel_heinze/get","data":"1","json":true,"message":"1","state":true,"try":0}
[2/13/2022, 4:18:30 PM] [CameraUI] Balkon: {"error":false,"message":"Handling through extern controller.."}
[2/13/2022, 4:18:30 PM] [CameraUI] Balkon: Doorbell ON
[2/13/2022, 4:18:30 PM] [CameraUI] Balkon: Motion ON
[2/13/2022, 4:18:30 PM] [CameraUI] Balkon: Snapshot requested: 1280 x 720
[2/13/2022, 4:18:30 PM] [CameraUI] Balkon: Snapshot command: ffmpeg -hide_banner -loglevel error -f mjpeg -i http://192.168.178.9:8000/stream.mjpg -frames:v 1 -f image2 -
[2/13/2022, 4:18:31 PM] [CameraUI] Balkon: Snapshot requested: 1280 x 720
[2/13/2022, 4:18:31 PM] [CameraUI] Balkon: Snapshot requested: 1280 x 720
[2/13/2022, 4:18:31 PM] [CameraUI] Balkon: Snapshot requested: 1280 x 720
[2/13/2022, 4:18:31 PM] [CameraUI] Balkon: Fetching snapshot took 0.395 seconds.
[2/13/2022, 4:18:31 PM] [CameraUI] Balkon: Sending snapshot: 1280x720
[2/13/2022, 4:18:31 PM] [CameraUI] Balkon: Resize command: ffmpeg -i pipe: -frames:v 1 -filter:v scale='min(1280,iw)':'min(720,ih)':force_original_aspect_ratio=decrease -f image2 -
[2/13/2022, 4:18:31 PM] [CameraUI] Balkon: Sending snapshot: 1280x720 (cached)
[2/13/2022, 4:18:31 PM] [CameraUI] Balkon: Resize command: ffmpeg -i pipe: -frames:v 1 -filter:v scale='min(1280,iw)':'min(720,ih)':force_original_aspect_ratio=decrease -f image2 -
[2/13/2022, 4:18:31 PM] [CameraUI] Balkon: Sending snapshot: 1280x720 (cached)
[2/13/2022, 4:18:31 PM] [CameraUI] Balkon: Resize command: ffmpeg -i pipe: -frames:v 1 -filter:v scale='min(1280,iw)':'min(720,ih)':force_original_aspect_ratio=decrease -f image2 -
[2/13/2022, 4:18:31 PM] [CameraUI] Balkon: Sending snapshot: 1280x720 (cached)
[2/13/2022, 4:18:31 PM] [CameraUI] Balkon: Resize command: ffmpeg -i pipe: -frames:v 1 -filter:v scale='min(1280,iw)':'min(720,ih)':force_original_aspect_ratio=decrease -f image2 -
[2/13/2022, 4:18:31 PM] [CameraUI] Balkon: Video fragments requested from HSV
[2/13/2022, 4:18:31 PM] [CameraUI] Balkon: Replacing audio with a dummy track, audio source not found or timed out during probe stream (recording)
[2/13/2022, 4:18:31 PM] [CameraUI] Balkon: Start recording...
[2/13/2022, 4:18:31 PM] [CameraUI] Balkon: Recording command: ffmpeg -hide_banner -re -f mjpeg -i http://192.168.178.9:8000/stream.mjpg -f lavfi -i anullsrc=cl=1 -shortest -f mp4 -sn -dn -vcodec libx264 -pix_fmt yuv420p -profile:v baseline -level:v 3.1 -b:v 800k -vf framerate=fps=25,scale=w=1920:h=1080:force_original_aspect_ratio=1,pad=1920:1080:(ow-iw)/2:(oh-ih)/2 -force_key_frames expr:gte(t,n_forced*4) -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 1024 -vsync cfr tcp://127.0.0.1:19636
[2/13/2022, 4:18:31 PM] [CameraUI] Balkon: Input #0, mjpeg, from 'http://192.168.178.9:8000/stream.mjpg':
[2/13/2022, 4:18:31 PM] [CameraUI] Balkon: Duration: N/A, bitrate: N/A
[2/13/2022, 4:18:31 PM] [CameraUI] Balkon: Stream #0:0: Video: mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 1280x720, 25 tbr, 1200k tbn, 25 tbc
[2/13/2022, 4:18:31 PM] [CameraUI] Balkon: Input #1, lavfi, from 'anullsrc=cl=1':
[2/13/2022, 4:18:31 PM] [CameraUI] Balkon: Duration: N/A, start: 0.000000, bitrate: 352 kb/s
[2/13/2022, 4:18:31 PM] [CameraUI] Balkon: Stream #1:0: Audio: pcm_u8, 44100 Hz, 1 channels (FL), u8, 352 kb/s
[2/13/2022, 4:18:31 PM] [CameraUI] Balkon: Stream mapping:
[2/13/2022, 4:18:31 PM] [CameraUI] Balkon: Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
[2/13/2022, 4:18:31 PM] [CameraUI] Balkon: Stream #1:0 -> #0:1 (pcm_u8 (native) -> aac (libfdk_aac))
[2/13/2022, 4:18:31 PM] [CameraUI] Balkon: Press [q] to stop, [?] for help
[2/13/2022, 4:18:31 PM] [CameraUI] Balkon: Recording started
[2/13/2022, 4:18:32 PM] [CameraUI] Balkon: [Parsed_framerate_0 @ 0x3e2e7b0] time base:1/1200000 -> 1/1200000 exact:1
[2/13/2022, 4:18:32 PM] [CameraUI] Balkon: [Parsed_framerate_0 @ 0x3e2e7b0] fps -> fps:25/1 scene score:8.200000 interpolate start:15 end:240
[2/13/2022, 4:18:32 PM] [CameraUI] Balkon: [swscaler @ 0x3e308b0] deprecated pixel format used, make sure you did set range correctly
[2/13/2022, 4:18:32 PM] [CameraUI] Balkon: [libx264 @ 0x3e12980] frame MB size (120x68) > level limit (3600)
[2/13/2022, 4:18:32 PM] [CameraUI] Balkon: [libx264 @ 0x3e12980] MB rate (204000) > level limit (108000)
[2/13/2022, 4:18:32 PM] [CameraUI] Balkon: [libx264 @ 0x3e12980] using cpu capabilities: ARMv6 NEON
[2/13/2022, 4:18:32 PM] [CameraUI] Balkon: [libx264 @ 0x3e12980] profile Constrained Baseline, level 3.1, 4:2:0, 8-bit
[2/13/2022, 4:18:32 PM] [CameraUI] Balkon: [libx264 @ 0x3e12980] 264 - core 160 - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - http://www.videolan.org/x264.html - options: cabac=0 ref=2 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=800 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[2/13/2022, 4:18:32 PM] [CameraUI] Balkon: Output #0, mp4, to 'tcp://127.0.0.1:19636':
[2/13/2022, 4:18:32 PM] [CameraUI] Balkon: Metadata:
[2/13/2022, 4:18:32 PM] [CameraUI] Balkon: encoder : Lavf58.45.100
[2/13/2022, 4:18:32 PM] [CameraUI] Balkon: Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 1920x1080, q=-1--1, 800 kb/s, 25 fps, 12800 tbn, 25 tbc
[2/13/2022, 4:18:32 PM] [CameraUI] Balkon: Metadata:
[2/13/2022, 4:18:32 PM] [CameraUI] Balkon: encoder : Lavc58.91.100 libx264
[2/13/2022, 4:18:32 PM] [CameraUI] Balkon: Side data:
[2/13/2022, 4:18:32 PM] [CameraUI] Balkon: cpb: bitrate max/min/avg: 0/0/800000 buffer size: 0 vbv_delay: N/A
[2/13/2022, 4:18:32 PM] [CameraUI] Balkon: Stream #0:1: Audio: aac (libfdk_aac) (LC) (mp4a / 0x6134706D), 32000 Hz, mono, s16, 64 kb/s
[2/13/2022, 4:18:32 PM] [CameraUI] Balkon: Metadata:
[2/13/2022, 4:18:32 PM] [CameraUI] Balkon: encoder : Lavc58.91.100 libfdk_aac
[2/13/2022, 4:18:32 PM] [CameraUI] Balkon: frame= 4 fps=0.0 q=0.0 size= 1kB time=00:00:00.00 bitrate=N/A speed= 0x
[2/13/2022, 4:18:33 PM] [CameraUI] Balkon: frame= 8 fps=7.7 q=0.0 size= 1kB time=00:00:00.00 bitrate=N/A speed= 0x
[2/13/2022, 4:18:33 PM] [CameraUI] Balkon: frame= 13 fps=8.1 q=0.0 size= 1kB time=00:00:00.00 bitrate=N/A speed= 0x
[2/13/2022, 4:18:33 PM] [CameraUI] Balkon: Snapshot requested: 640 x 360
[2/13/2022, 4:18:33 PM] [CameraUI] Balkon: Sending snapshot: 640x360 (cached)
[2/13/2022, 4:18:33 PM] [CameraUI] Balkon: Resize command: ffmpeg -i pipe: -frames:v 1 -filter:v scale='min(640,iw)':'min(360,ih)':force_original_aspect_ratio=decrease -f image2 -
[2/13/2022, 4:18:34 PM] [CameraUI] Balkon: frame= 18 fps=8.3 q=0.0 size= 1kB time=00:00:00.00 bitrate=N/A speed= 0x
[2/13/2022, 4:18:34 PM] [CameraUI] Balkon: frame= 23 fps=8.4 q=0.0 size= 1kB time=00:00:00.00 bitrate=N/A speed= 0x
[2/13/2022, 4:18:35 PM] [CameraUI] Balkon: frame= 27 fps=8.3 q=0.0 size= 1kB time=00:00:00.00 bitrate=N/A speed= 0x
[2/13/2022, 4:18:35 PM] [CameraUI] Balkon: frame= 33 fps=8.6 q=0.0 size= 1kB time=00:00:00.00 bitrate=N/A speed= 0x
[2/13/2022, 4:18:36 PM] [CameraUI] Balkon: frame= 37 fps=8.4 q=0.0 size= 1kB time=00:00:00.00 bitrate=N/A speed= 0x
[2/13/2022, 4:18:36 PM] [CameraUI] Balkon: frame= 42 fps=8.6 q=0.0 size= 1kB time=00:00:00.00 bitrate=N/A speed= 0x
[2/13/2022, 4:18:37 PM] [CameraUI] Balkon: frame= 44 fps=7.5 q=0.0 size= 1kB time=00:00:00.00 bitrate=N/A speed= 0x
[2/13/2022, 4:18:38 PM] [CameraUI] Balkon: frame= 49 fps=7.7 q=50.0 size= 1kB time=00:00:00.06 bitrate= 151.5kbits/s speed=0.01x
[2/13/2022, 4:18:38 PM] [CameraUI] Balkon: frame= 52 fps=7.6 q=48.0 size= 1kB time=00:00:00.16 bitrate= 60.6kbits/s speed=0.0233x
[2/13/2022, 4:18:39 PM] [CameraUI] Balkon: frame= 58 fps=7.8 q=40.0 size= 1kB time=00:00:00.41 bitrate= 23.3kbits/s speed=0.0558x
[2/13/2022, 4:18:39 PM] [CameraUI] Balkon: frame= 65 fps=8.1 q=36.0 size= 1kB time=00:00:00.68 bitrate= 14.3kbits/s speed=0.0849x
[2/13/2022, 4:18:40 PM] [CameraUI] Balkon: Closing recording process
[2/13/2022, 4:18:40 PM] [CameraUI] Balkon: Resetting motion sensor, because HSV closed the recording process
[2/13/2022, 4:18:40 PM] [CameraUI] Balkon: Motion OFF
[2/13/2022, 4:18:40 PM] [CameraUI] Balkon: FFMPEG socket closed during read for 8 bytes!
[2/13/2022, 4:18:40 PM] [CameraUI] Balkon: The recording process was aborted by HSV with reason "CANCELLED"
[2/13/2022, 4:18:40 PM] [CameraUI] Balkon: FFmpeg recording process exited (expected)
Solved by cleaning up camera configuration.
I have removed:
"maxBitrate": 2048, "rtspTransport": "tcp", "vcodec": "libx264 -preset ultrafast", "acodec": "libfdk_aac"
also I have disabled sound recording. And now it works. Issue was in Camera configuration
But I have found another issue in my second setup, for some reasons camera ui is ignoring resolution what I have set, and drops to lower than I have. My cam is 4k.
@oleh-motrunych
HKSV will not work with 4k
and errors like "UNEXPECTED_FAILURE"
ist due to wrong camera config and/or config.json
see
What if HKSV is disabled? Would it work then?
What if HKSV is disabled? Would it work then?
camera.ui (not HKSV) can also record 4k, you need to enable recording in the ui settings
I am also having this issue.
WARNING Camera1: The recording process was aborted by HSV with reason "UNEXPECTED_FAILURE"
My cameras only support H.265. I have tried following the guide (https://github.com/seydx/homebridge-camera-ui/wiki/HSV#2-the-recording-process-was-aborted-by-hsv-with-reason-) as best i could to set the settings but my cameras only have these settings below (and do not have Keyframe Interval)
This is my config.json
{
"disable": false,
"name": "Camera1",
"manufacturer": "Camera",
"motion": true,
"motionTimeout": 15,
"unbridge": true,
"hsv": true,
"prebuffering": true,
"forcePrebuffering": true,
"prebufferLength": 4,
"hksvConfig": {
"source": "-i rtsp://<>/Streaming/Channels/101/?transportmode=unicast.sdp",
"maxWidth": 1920,
"maxHeight": 1080,
"maxFPS": 25,
"audio": true
},
"videoConfig": {
"source": "-i rtsp://<>/Streaming/Channels/101/?transportmode=unicast.sdp",
"subSource": "-i rtsp://<>/Streaming/Channels/101/?transportmode=unicast.sdp",
"stillImageSource": "-i rtsp://<>/Streaming/Channels/101/?transportmode=unicast.sdp",
"maxWidth": 1920,
"maxHeight": 1080,
"maxFPS": 20,
"maxBitrate": 70,
"forceMax": true,
"vcodec": "copy",
"acodec": "libfdk_aac",
"packetSize": 1128,
"audio": true
},
"smtp": {
"email": "Camera1"
},
"videoanalysis": {
"active": true
},
"mqtt": {}
}
Any help would be greatly appreciated.
Describe the bug [01.02.2022, 20:56:34] [CameraUI] newcam: The recording process was aborted by HSV with reason "UNEXPECTED_FAILURE"
Environment
After the big icloud crash in January 2022 (if you know what I mean) there is no more camera recording ( which is connected via homebridge and camera ui). I completely uninstalled and reinstalled homebridge and camera ui several times, but still no recording from the camera in icloud.