fields | type | description |
---|---|---|
preRecordDurationSec | int | The stream portion of this duration (in seconds) is recorded before an event triggers the recording. |
recordDurationSec | int | The stream portion of this duration (in seconds) is recorded after an event triggers the recording. |
resolutionDivisor | int | The divisor of the original stream resolution. The minimum value of the divisor is , if value of this param is smaller than the threshold, it will be automatically set to default. Optional, default divisor is . |
format | string | Specify format of recorded file. Supported formats: , . Optional, if not specified or empty, format is used. |
local cameras = require("cameras")
cameras.set_video_particle_settings( 3, 3, 4, "mp4" )