# Transcoder V1 API - Class Google::Cloud::Video::Transcoder::V1::SegmentSettings (v2.6.0)

2.6.0 (latest) 2.5.0 2.4.1 2.3.0 2.2.0 2.1.0 2.0.1 1.2.0 1.1.0 1.0.1 0.13.0 0.12.2 0.11.0 0.10.0 0.9.1 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.2 Reference documentation and code samples for the Transcoder V1 API class Google::Cloud::Video::Transcoder::V1::SegmentSettings.

Segment settings for `ts`, `fmp4` and `vtt`.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #individual_segments

    def individual_segments() -> ::Boolean

**Returns**

- (::Boolean) --- Required. Create an individual segment file. The default is `false`.

### #individual_segments=

    def individual_segments=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Required. Create an individual segment file. The default is `false`.
**Returns**

- (::Boolean) --- Required. Create an individual segment file. The default is `false`.

### #segment_duration

    def segment_duration() -> ::Google::Protobuf::Duration

**Returns**

- ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-transcoder-v1/latest/Google-Protobuf-Duration)) --- Duration of the segments in seconds. The default is `6.0s`. Note that `segmentDuration` must be greater than or equal to [`gopDuration`](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-transcoder-v1/latest/Google-Cloud-Video-Transcoder-V1-SegmentSettings#videostream), and `segmentDuration` must be divisible by [`gopDuration`](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-transcoder-v1/latest/Google-Cloud-Video-Transcoder-V1-SegmentSettings#videostream).

### #segment_duration=

    def segment_duration=(value) -> ::Google::Protobuf::Duration

**Parameter**

- **value** ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-transcoder-v1/latest/Google-Protobuf-Duration)) --- Duration of the segments in seconds. The default is `6.0s`. Note that `segmentDuration` must be greater than or equal to [`gopDuration`](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-transcoder-v1/latest/Google-Cloud-Video-Transcoder-V1-SegmentSettings#videostream), and `segmentDuration` must be divisible by [`gopDuration`](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-transcoder-v1/latest/Google-Cloud-Video-Transcoder-V1-SegmentSettings#videostream).
**Returns**

- ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-transcoder-v1/latest/Google-Protobuf-Duration)) --- Duration of the segments in seconds. The default is `6.0s`. Note that `segmentDuration` must be greater than or equal to [`gopDuration`](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-transcoder-v1/latest/Google-Cloud-Video-Transcoder-V1-SegmentSettings#videostream), and `segmentDuration` must be divisible by [`gopDuration`](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-transcoder-v1/latest/Google-Cloud-Video-Transcoder-V1-SegmentSettings#videostream).