Ip Camera

Description

Records video in small segments (in case of a cut) and store it locally. They are first stored in a temporary folder. Once the record (of e.g 10 seconds) is done, it is moved to another directory.

Compared to other plugins, the collect function only moves the files from the temporary location, it does not start the recording. It takes some time to establish connection, so we avoid doing this every time. Recording is started at initialization by an ffmpeg process and saved in HLS format.

Parameters

ParameterDescriptionTypeDefault
inputInput urlstrN/A (Mandatory)
videoEnable video recordingbooltrue
audioEnable audio recordingboolfalse
bitrate_videoVideo bitratestr([0-9]+[kmKM])"2M"
bitrate_audioAudio bitratestr([0-9]+[kmKM])"192k"
segmentRecords by small segment, managed by ffmpegboolbool
segment_timeDuration of a segmentint (>0)10
ffmpeg_log_levelFfmpeg log levelstr (See doc)"info"
ffmpeg_bannerShow ffmpeg banner in consolebooltrue
save_pathPath used to save files with ffmpeg, UTC date is used. There can't be ":" in this string, ffmpeg does not parse itstr"ffmpeg_%Y-%m-%dT%H:%M:%S"

Schema

{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "title": "Ip Camera",
    "description": "Local and remote path where the remote camera video is recorded",
    "properties": {
        "local_path": {
            "description": "Local video path",
            "type": "string"
        },
        "remote_path": {
            "description": "Remote video path",
            "type": "string"
        }
    },
    "type": "object"
}