public sealed class SegmentSettings : IMessage<SegmentSettings>, IEquatable<SegmentSettings>, IDeepCloneable<SegmentSettings>, IBufferMessage, IMessage
Reference documentation and code samples for the Transcoder v1 API class SegmentSettings.
Duration of the segments in seconds. The default is 6.0s. Note that
segmentDuration must be greater than or equal to
gopDuration, and segmentDuration must be divisible by
gopDuration.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eSegmentSettings\u003c/code\u003e class in the Transcoder v1 API is 2.9.0, with documentation and references available for multiple previous versions down to 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSegmentSettings\u003c/code\u003e is a class used to configure segment settings for video transcoding, specifically for \u003ccode\u003ets\u003c/code\u003e, \u003ccode\u003efmp4\u003c/code\u003e, and \u003ccode\u003evtt\u003c/code\u003e formats, implementing multiple interfaces and inheriting from \u003ccode\u003eobject\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two properties: \u003ccode\u003eIndividualSegments\u003c/code\u003e, which determines whether to create individual segment files (default is false), and \u003ccode\u003eSegmentDuration\u003c/code\u003e, which sets the duration of each segment in seconds, with a default of 6.0 seconds.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors: one default, \u003ccode\u003eSegmentSettings()\u003c/code\u003e, and another one, \u003ccode\u003eSegmentSettings(SegmentSettings other)\u003c/code\u003e that allows to create a new instance based on another, where the other instance is passed as a parameter.\u003c/p\u003e\n"],["\u003cp\u003eIt provides implementation of interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, as well as inherited members like \u003ccode\u003eGetHashCode\u003c/code\u003e, \u003ccode\u003eGetType\u003c/code\u003e, and \u003ccode\u003eToString\u003c/code\u003e from the base \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"]]],[],null,["# Transcoder v1 API - Class SegmentSettings (2.10.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.10.0 (latest)](/dotnet/docs/reference/Google.Cloud.Video.Transcoder.V1/latest/Google.Cloud.Video.Transcoder.V1.SegmentSettings)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.Video.Transcoder.V1/2.9.0/Google.Cloud.Video.Transcoder.V1.SegmentSettings)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.Video.Transcoder.V1/2.8.0/Google.Cloud.Video.Transcoder.V1.SegmentSettings)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.Video.Transcoder.V1/2.7.0/Google.Cloud.Video.Transcoder.V1.SegmentSettings)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Video.Transcoder.V1/2.6.0/Google.Cloud.Video.Transcoder.V1.SegmentSettings)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Video.Transcoder.V1/2.5.0/Google.Cloud.Video.Transcoder.V1.SegmentSettings)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Video.Transcoder.V1/2.4.0/Google.Cloud.Video.Transcoder.V1.SegmentSettings)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Video.Transcoder.V1/2.3.0/Google.Cloud.Video.Transcoder.V1.SegmentSettings)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Video.Transcoder.V1/2.2.0/Google.Cloud.Video.Transcoder.V1.SegmentSettings)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Video.Transcoder.V1/2.1.0/Google.Cloud.Video.Transcoder.V1.SegmentSettings)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Video.Transcoder.V1/2.0.0/Google.Cloud.Video.Transcoder.V1.SegmentSettings)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Video.Transcoder.V1/1.0.0/Google.Cloud.Video.Transcoder.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 Transcoder v1 API class SegmentSettings.\n\nSegment settings for `ts`, `fmp4` and `vtt`. \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.Transcoder.V1/latest/Google.Cloud.Video.Transcoder.V1.SegmentSettings), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SegmentSettings](/dotnet/docs/reference/Google.Cloud.Video.Transcoder.V1/latest/Google.Cloud.Video.Transcoder.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.Transcoder.V1/latest/Google.Cloud.Video.Transcoder.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.Transcoder.V1](/dotnet/docs/reference/Google.Cloud.Video.Transcoder.V1/latest/Google.Cloud.Video.Transcoder.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Video.Transcoder.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### IndividualSegments\n\n public bool IndividualSegments { get; set; }\n\nRequired. Create an individual segment file. The default is `false`.\n\n### SegmentDuration\n\n public Duration SegmentDuration { get; set; }\n\nDuration of the segments in seconds. The default is `6.0s`. Note that\n`segmentDuration` must be greater than or equal to\n[`gopDuration`](#videostream), and `segmentDuration` must be divisible by\n[`gopDuration`](#videostream)."]]