|
3 | 3 | namespace AsyncAws\MediaConvert\Enum; |
4 | 4 |
|
5 | 5 | /** |
6 | | - * Specify how you want MediaConvert to determine the segment length. Choose Exact to have the encoder use the exact |
7 | | - * length that you specify with the setting Segment length. This might result in extra I-frames. Choose Multiple of GOP |
8 | | - * to have the encoder round up the segment lengths to match the next GOP boundary. |
| 6 | + * Specify how you want MediaConvert to determine segment lengths in this output group. To use the exact value that you |
| 7 | + * specify under Segment length: Choose Exact. Note that this might result in additional I-frames in the output GOP. To |
| 8 | + * create segment lengths that are a multiple of the GOP: Choose Multiple of GOP. MediaConvert will round up the segment |
| 9 | + * lengths to match the next GOP boundary. To have MediaConvert automatically determine a segment duration that is a |
| 10 | + * multiple of both the audio packets and the frame rates: Choose Match. When you do, also specify a target segment |
| 11 | + * duration under Segment length. This is useful for some ad-insertion or segment replacement workflows. Note that Match |
| 12 | + * has the following requirements: - Output containers: Include at least one video output and at least one audio output. |
| 13 | + * Audio-only outputs are not supported. - Output frame rate: Follow source is not supported. - Multiple output frame |
| 14 | + * rates: When you specify multiple outputs, we recommend they share a similar frame rate (as in X/3, X/2, X, or 2X). |
| 15 | + * For example: 5, 15, 30 and 60. Or: 25 and 50. (Outputs must share an integer multiple.) - Output audio codec: Specify |
| 16 | + * Advanced Audio Coding (AAC). - Output sample rate: Choose 48kHz. |
9 | 17 | */ |
10 | 18 | final class DashIsoSegmentLengthControl |
11 | 19 | { |
12 | 20 | public const EXACT = 'EXACT'; |
13 | 21 | public const GOP_MULTIPLE = 'GOP_MULTIPLE'; |
| 22 | + public const MATCH = 'MATCH'; |
14 | 23 |
|
15 | 24 | public static function exists(string $value): bool |
16 | 25 | { |
17 | 26 | return isset([ |
18 | 27 | self::EXACT => true, |
19 | 28 | self::GOP_MULTIPLE => true, |
| 29 | + self::MATCH => true, |
20 | 30 | ][$value]); |
21 | 31 | } |
22 | 32 | } |
0 commit comments