public sealed class SegmentSettings : IMessage<SegmentSettings>, IEquatable<SegmentSettings>, IDeepCloneable<SegmentSettings>, IBufferMessage, IMessage
Reference documentation and code samples for the Live Stream v1 API class SegmentSettings.
Duration of the segments in seconds. The default is 6s. Note that
segmentDuration must be greater than or equal to
[gop_duration][google.cloud.video.livestream.v1.VideoStream.H264CodecSettings.gop_duration],
and segmentDuration must be divisible by
[gop_duration][google.cloud.video.livestream.v1.VideoStream.H264CodecSettings.gop_duration].
Valid range is [2s, 20s].
All [mux_streams][google.cloud.video.livestream.v1.Manifest.mux_streams] in
the same manifest must have the same segment duration.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eSegmentSettings\u003c/code\u003e class for the Live Stream v1 API is 1.8.0, with previous versions ranging from 1.0.0 to 1.7.0 available.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSegmentSettings\u003c/code\u003e is a class used for configuring segment settings for \u003ccode\u003efmp4\u003c/code\u003e and \u003ccode\u003ets\u003c/code\u003e formats, implementing several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSegmentSettings\u003c/code\u003e class includes a \u003ccode\u003eSegmentDuration\u003c/code\u003e property that controls the duration of segments, with a default of 6 seconds and a valid range between 2 and 20 seconds.\u003c/p\u003e\n"],["\u003cp\u003eAll mux streams within the same manifest must maintain an identical segment duration when using \u003ccode\u003eSegmentSettings\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSegmentSettings\u003c/code\u003e class has two constructors, one default constructor and one that takes another \u003ccode\u003eSegmentSettings\u003c/code\u003e object as an argument for initialization.\u003c/p\u003e\n"]]],[],null,["# Live Stream v1 API - Class SegmentSettings (1.9.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.9.0 (latest)](/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/latest/Google.Cloud.Video.LiveStream.V1.SegmentSettings)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/1.8.0/Google.Cloud.Video.LiveStream.V1.SegmentSettings)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/1.7.0/Google.Cloud.Video.LiveStream.V1.SegmentSettings)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/1.6.0/Google.Cloud.Video.LiveStream.V1.SegmentSettings)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/1.5.0/Google.Cloud.Video.LiveStream.V1.SegmentSettings)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/1.4.0/Google.Cloud.Video.LiveStream.V1.SegmentSettings)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/1.3.0/Google.Cloud.Video.LiveStream.V1.SegmentSettings)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/1.2.0/Google.Cloud.Video.LiveStream.V1.SegmentSettings)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/1.1.0/Google.Cloud.Video.LiveStream.V1.SegmentSettings)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/1.0.0/Google.Cloud.Video.LiveStream.V1.SegmentSettings) \n\n public sealed class SegmentSettings : IMessage\u003cSegmentSettings\u003e, IEquatable\u003cSegmentSettings\u003e, IDeepCloneable\u003cSegmentSettings\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Live Stream v1 API class SegmentSettings.\n\nSegment settings for `fmp4` and `ts`. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e SegmentSettings \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[SegmentSettings](/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/latest/Google.Cloud.Video.LiveStream.V1.SegmentSettings), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SegmentSettings](/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/latest/Google.Cloud.Video.LiveStream.V1.SegmentSettings), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[SegmentSettings](/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/latest/Google.Cloud.Video.LiveStream.V1.SegmentSettings), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Video.LiveStream.V1](/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/latest/Google.Cloud.Video.LiveStream.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Video.LiveStream.V1.dll\n\nConstructors\n------------\n\n### SegmentSettings()\n\n public SegmentSettings()\n\n### SegmentSettings(SegmentSettings)\n\n public SegmentSettings(SegmentSettings other)\n\nProperties\n----------\n\n### SegmentDuration\n\n public Duration SegmentDuration { get; set; }\n\nDuration of the segments in seconds. The default is `6s`. Note that\n`segmentDuration` must be greater than or equal to\n\\[gop_duration\\]\\[google.cloud.video.livestream.v1.VideoStream.H264CodecSettings.gop_duration\\],\nand `segmentDuration` must be divisible by\n\\[gop_duration\\]\\[google.cloud.video.livestream.v1.VideoStream.H264CodecSettings.gop_duration\\].\nValid range is \\[2s, 20s\\].\n\nAll \\[mux_streams\\]\\[google.cloud.video.livestream.v1.Manifest.mux_streams\\] in\nthe same manifest must have the same segment duration."]]