

# Segment


The segment configuration, including the segment name, duration, and other configuration values.

## Contents


 ** Encryption **   <a name="mediapackage-Type-Segment-Encryption"></a>
The parameters for encrypting content.  
Type: [Encryption](API_Encryption.md) object  
Required: No

 ** IncludeIframeOnlyStreams **   <a name="mediapackage-Type-Segment-IncludeIframeOnlyStreams"></a>
When selected, the stream set includes an additional I-frame only stream, along with the other tracks. If false, this extra stream is not included. MediaPackage generates an I-frame only stream from the first rendition in the manifest. The service inserts EXT-I-FRAMES-ONLY tags in the output manifest, and then generates and includes an I-frames only playlist in the stream. This playlist permits player functionality like fast forward and rewind.  
Type: Boolean  
Required: No

 ** Scte **   <a name="mediapackage-Type-Segment-Scte"></a>
The SCTE configuration options in the segment settings.  
Type: [Scte](API_Scte.md) object  
Required: No

 ** SegmentDurationSeconds **   <a name="mediapackage-Type-Segment-SegmentDurationSeconds"></a>
The duration (in seconds) of each segment. Enter a value equal to, or a multiple of, the input segment duration. If the value that you enter is different from the input segment duration, MediaPackage rounds segments to the nearest multiple of the input segment duration.  
Type: Integer  
Valid Range: Minimum value of 1. Maximum value of 30.  
Required: No

 ** SegmentName **   <a name="mediapackage-Type-Segment-SegmentName"></a>
The name that describes the segment. The name is the base name of the segment used in all content manifests inside of the endpoint. You can't use spaces in the name.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 256.  
Pattern: `[a-zA-Z0-9_-]+`   
Required: No

 ** TsIncludeDvbSubtitles **   <a name="mediapackage-Type-Segment-TsIncludeDvbSubtitles"></a>
By default, MediaPackage excludes all digital video broadcasting (DVB) subtitles from the output. When selected, MediaPackage passes through DVB subtitles into the output.  
Type: Boolean  
Required: No

 ** TsUseAudioRenditionGroup **   <a name="mediapackage-Type-Segment-TsUseAudioRenditionGroup"></a>
When selected, MediaPackage bundles all audio tracks in a rendition group. All other tracks in the stream can be used with any audio rendition from the group.  
Type: Boolean  
Required: No

## See Also


For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/mediapackagev2-2022-12-25/Segment) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/mediapackagev2-2022-12-25/Segment) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/mediapackagev2-2022-12-25/Segment) 