Contents

segmentBoundaryGuidelinesForVideo(codecType:encoderSpecification:)

Returns segment boundary guidelines that help clients determine how to segment compression video tracks with best results.

Declaration

static func segmentBoundaryGuidelinesForVideo(codecType: AVVideoCodecType, encoderSpecification: [String : any Sendable]) -> AVAssetWritingPlanner.SegmentBoundaryGuidelines

Parameters

  • codecType:

    The output video codec type for the video track.

  • encoderSpecification:

    A dictionary of kVTVideoEncoderSpecification_* keys describing the video encoder. This is the same specification the client uses to compress the video track.

Return Value

An AVAssetWritingPlanner.SegmentBoundaryGuidelines with the minimum frame count and duration for the given codec and encoder.

Discussion

The encoderSpecification parameter here is the same encoder specification the client uses to compress the video track.

See Also

Getting segment boundary guidance