Module Values.SegmentDetectionSource

A technical cue or shot detection segment detected in a video. An array of SegmentDetection objects containing all segments detected in a stored video is returned by GetSegmentDetection.

Sourcetype nonrec t = {
  1. type_ : SegmentType.t option;
    (*

    The type of the segment. Valid values are TECHNICAL_CUE and SHOT.

    *)
  2. startTimestampMillis : Timestamp.t option;
    (*

    The start time of the detected segment in milliseconds from the start of the video. This value is rounded down. For example, if the actual timestamp is 100.6667 milliseconds, Amazon Rekognition Video returns a value of 100 millis.

    *)
  3. endTimestampMillis : Timestamp.t option;
    (*

    The end time of the detected segment, in milliseconds, from the start of the video. This value is rounded down.

    *)
  4. durationMillis : ULong.t option;
    (*

    The duration of the detected segment in milliseconds.

    *)
  5. startTimecodeSMPTE : Timecode.t option;
    (*

    The frame-accurate SMPTE timecode, from the start of a video, for the start of a detected segment. StartTimecode is in HH:MM:SS:fr format (and ;fr for drop frame-rates).

    *)
  6. endTimecodeSMPTE : Timecode.t option;
    (*

    The frame-accurate SMPTE timecode, from the start of a video, for the end of a detected segment. EndTimecode is in HH:MM:SS:fr format (and ;fr for drop frame-rates).

    *)
  7. durationSMPTE : Timecode.t option;
    (*

    The duration of the timecode for the detected segment in SMPTE format.

    *)
  8. technicalCueSegment : TechnicalCueSegment.t option;
    (*

    If the segment is a technical cue, contains information about the technical cue.

    *)
  9. shotSegment : ShotSegment.t option;
    (*

    If the segment is a shot detection, contains information about the shot detection.

    *)
  10. startFrameNumber : ULong.t option;
    (*

    The frame number of the start of a video segment, using a frame index that starts with 0.

    *)
  11. endFrameNumber : ULong.t option;
    (*

    The frame number at the end of a video segment, using a frame index that starts with 0.

    *)
  12. durationFrames : ULong.t option;
    (*

    The duration of a video segment, expressed in frames.

    *)
}
Sourceval make : ?type_:??? -> ?startTimestampMillis:??? -> ?endTimestampMillis:??? -> ?durationMillis:??? -> ?startTimecodeSMPTE:??? -> ?endTimecodeSMPTE:??? -> ?durationSMPTE:??? -> ?technicalCueSegment:??? -> ?shotSegment:??? -> ?startFrameNumber:??? -> ?endFrameNumber:??? -> ?durationFrames:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `Long of Timestamp.t | `String of Timecode.t | `Structure of (string * [> `Enum of string | `Float of SegmentConfidence.t | `Long of ULong.t ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t