Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data SegmentDetection = SegmentDetection' {
- durationFrames :: Maybe Natural
- durationMillis :: Maybe Natural
- durationSMPTE :: Maybe Text
- endFrameNumber :: Maybe Natural
- endTimecodeSMPTE :: Maybe Text
- endTimestampMillis :: Maybe Integer
- shotSegment :: Maybe ShotSegment
- startFrameNumber :: Maybe Natural
- startTimecodeSMPTE :: Maybe Text
- startTimestampMillis :: Maybe Integer
- technicalCueSegment :: Maybe TechnicalCueSegment
- type' :: Maybe SegmentType
- newSegmentDetection :: SegmentDetection
- segmentDetection_durationFrames :: Lens' SegmentDetection (Maybe Natural)
- segmentDetection_durationMillis :: Lens' SegmentDetection (Maybe Natural)
- segmentDetection_durationSMPTE :: Lens' SegmentDetection (Maybe Text)
- segmentDetection_endFrameNumber :: Lens' SegmentDetection (Maybe Natural)
- segmentDetection_endTimecodeSMPTE :: Lens' SegmentDetection (Maybe Text)
- segmentDetection_endTimestampMillis :: Lens' SegmentDetection (Maybe Integer)
- segmentDetection_shotSegment :: Lens' SegmentDetection (Maybe ShotSegment)
- segmentDetection_startFrameNumber :: Lens' SegmentDetection (Maybe Natural)
- segmentDetection_startTimecodeSMPTE :: Lens' SegmentDetection (Maybe Text)
- segmentDetection_startTimestampMillis :: Lens' SegmentDetection (Maybe Integer)
- segmentDetection_technicalCueSegment :: Lens' SegmentDetection (Maybe TechnicalCueSegment)
- segmentDetection_type :: Lens' SegmentDetection (Maybe SegmentType)
Documentation
data SegmentDetection Source #
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.
See: newSegmentDetection
smart constructor.
SegmentDetection' | |
|
Instances
newSegmentDetection :: SegmentDetection Source #
Create a value of SegmentDetection
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:durationFrames:SegmentDetection'
, segmentDetection_durationFrames
- The duration of a video segment, expressed in frames.
$sel:durationMillis:SegmentDetection'
, segmentDetection_durationMillis
- The duration of the detected segment in milliseconds.
$sel:durationSMPTE:SegmentDetection'
, segmentDetection_durationSMPTE
- The duration of the timecode for the detected segment in SMPTE format.
$sel:endFrameNumber:SegmentDetection'
, segmentDetection_endFrameNumber
- The frame number at the end of a video segment, using a frame index that
starts with 0.
$sel:endTimecodeSMPTE:SegmentDetection'
, segmentDetection_endTimecodeSMPTE
- 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).
$sel:endTimestampMillis:SegmentDetection'
, segmentDetection_endTimestampMillis
- The end time of the detected segment, in milliseconds, from the start of
the video. This value is rounded down.
$sel:shotSegment:SegmentDetection'
, segmentDetection_shotSegment
- If the segment is a shot detection, contains information about the shot
detection.
$sel:startFrameNumber:SegmentDetection'
, segmentDetection_startFrameNumber
- The frame number of the start of a video segment, using a frame index
that starts with 0.
$sel:startTimecodeSMPTE:SegmentDetection'
, segmentDetection_startTimecodeSMPTE
- 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).
$sel:startTimestampMillis:SegmentDetection'
, segmentDetection_startTimestampMillis
- 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.
$sel:technicalCueSegment:SegmentDetection'
, segmentDetection_technicalCueSegment
- If the segment is a technical cue, contains information about the
technical cue.
SegmentDetection
, segmentDetection_type
- The type of the segment. Valid values are TECHNICAL_CUE
and SHOT
.
segmentDetection_durationFrames :: Lens' SegmentDetection (Maybe Natural) Source #
The duration of a video segment, expressed in frames.
segmentDetection_durationMillis :: Lens' SegmentDetection (Maybe Natural) Source #
The duration of the detected segment in milliseconds.
segmentDetection_durationSMPTE :: Lens' SegmentDetection (Maybe Text) Source #
The duration of the timecode for the detected segment in SMPTE format.
segmentDetection_endFrameNumber :: Lens' SegmentDetection (Maybe Natural) Source #
The frame number at the end of a video segment, using a frame index that starts with 0.
segmentDetection_endTimecodeSMPTE :: Lens' SegmentDetection (Maybe Text) Source #
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).
segmentDetection_endTimestampMillis :: Lens' SegmentDetection (Maybe Integer) Source #
The end time of the detected segment, in milliseconds, from the start of the video. This value is rounded down.
segmentDetection_shotSegment :: Lens' SegmentDetection (Maybe ShotSegment) Source #
If the segment is a shot detection, contains information about the shot detection.
segmentDetection_startFrameNumber :: Lens' SegmentDetection (Maybe Natural) Source #
The frame number of the start of a video segment, using a frame index that starts with 0.
segmentDetection_startTimecodeSMPTE :: Lens' SegmentDetection (Maybe Text) Source #
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).
segmentDetection_startTimestampMillis :: Lens' SegmentDetection (Maybe Integer) Source #
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.
segmentDetection_technicalCueSegment :: Lens' SegmentDetection (Maybe TechnicalCueSegment) Source #
If the segment is a technical cue, contains information about the technical cue.
segmentDetection_type :: Lens' SegmentDetection (Maybe SegmentType) Source #
The type of the segment. Valid values are TECHNICAL_CUE
and SHOT
.