The problem here is that it’s hard to record that short of a period. For whatever reason even if you tell it to record a second it records 10 or 11 seconds. This may be my cameras idk. You will have to try and see what is the min time you can record.
[{"id":"81f1b61b3b71bd5a","type":"api-call-service","z":"0a325c35fc29f44e","name":"","server":"6b1110b5.183a4","version":7,"debugenabled":false,"action":"camera.record","floorId":[],"areaId":[],"deviceId":[],"entityId":["camera.xvr_mailbox_main"],"labelId":[],"data":"{\t \"filename\":\"/media/snapshot_test.mp4\",\t \"duration\": 2 \t }","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","blockInputOverrides":true,"domain":"camera","service":"record","x":620,"y":1720,"wires":[[]]},{"id":"3a2112e7ce4bd431","type":"inject","z":"0a325c35fc29f44e","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":380,"y":1720,"wires":[["81f1b61b3b71bd5a"]]},{"id":"6b1110b5.183a4","type":"server","name":"Home Assistant","version":5,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":false,"heartbeat":false,"heartbeatInterval":"30","areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"id","statusSeparator":"at: ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m","enableGlobalContextStore":true}]