Last active
August 22, 2018 03:37
-
-
Save flavioribeiro/11ef28ea32a995e1cd9c2c916d60cce2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Name":"{{ id }}-ml-channel", | |
"RoleArn":"{{{ arn }}}", | |
"Destinations":[ | |
{ | |
"Id":"{{ id }}-dest", | |
"Settings":[ | |
{ | |
"Url":"{{{ masterDestination.url }}}", | |
"PasswordParam":"{{{ masterDestination.password }}}", | |
"Username":"{{{ masterDestination.username }}}" | |
}, | |
{ | |
"Url":"{{{ backupDestination.url }}}", | |
"PasswordParam":"{{{ backupDestination.password }}}", | |
"Username":"{{{ backupDestination.username }}}" | |
} | |
] | |
} | |
], | |
"EncoderSettings":{ | |
"AudioDescriptions":[ | |
{ | |
"AudioSelectorName":"{{id}}-audio-1", | |
"Name":"{{id}}-audio-1", | |
"AudioTypeControl":"FOLLOW_INPUT", | |
"CodecSettings":{ | |
"AacSettings":{ | |
"Bitrate":64000, | |
"SampleRate":48000, | |
"CodingMode":"CODING_MODE_2_0", | |
"RateControlMode":"CBR", | |
"Profile":"LC" | |
} | |
} | |
} | |
], | |
"OutputGroups":[ | |
{ | |
"OutputGroupSettings":{ | |
"HlsGroupSettings":{ | |
"Destination":{ | |
"DestinationRefId":"{{ id }}-dest" | |
}, | |
"AdMarkers":[ | |
"ELEMENTAL_SCTE35" | |
], | |
"DirectoryStructure":"SUBDIRECTORY_PER_STREAM", | |
"HlsCdnSettings":{ | |
"HlsWebdavSettings":{ | |
"ConnectionRetryInterval":1, | |
"FilecacheDuration":300, | |
"HttpTransferMode":"NON_CHUNKED", | |
"NumRetries":10, | |
"RestartDelay":15 | |
} | |
}, | |
"ManifestCompression":"NONE", | |
"ManifestDurationFormat":"FLOATING_POINT", | |
"MinSegmentLength":2, | |
"Mode":"LIVE", | |
"OutputSelection":"MANIFESTS_AND_SEGMENTS", | |
"ProgramDateTime":"INCLUDE", | |
"ProgramDateTimePeriod":100, | |
"SegmentLength":6, | |
"SegmentationMode":"USE_SEGMENT_DURATION", | |
"SegmentsPerSubdirectory":100, | |
"StreamInfResolution":"INCLUDE", | |
"TsFileMode":"SEGMENTED_FILES" | |
} | |
}, | |
"Outputs":[ | |
{ | |
"OutputSettings":{ | |
"HlsOutputSettings":{ | |
"HlsSettings":{ | |
"StandardHlsSettings":{ | |
"M3u8Settings":{ | |
"Scte35Behavior":"PASSTHROUGH", | |
"TimedMetadataBehavior":"PASSTHROUGH", | |
"TransportStreamId":0 | |
} | |
} | |
}, | |
"NameModifier":"_1", | |
"SegmentModifier":"_1" | |
} | |
}, | |
"OutputName":"{{ id }}-output-1", | |
"VideoDescriptionName":"{{id}}-360-400Kbps", | |
"AudioDescriptionNames":[ | |
"{{id}}-audio-1" | |
] | |
}, | |
{ | |
"OutputSettings":{ | |
"HlsOutputSettings":{ | |
"HlsSettings":{ | |
"StandardHlsSettings":{ | |
"M3u8Settings":{ | |
"Scte35Behavior":"PASSTHROUGH", | |
"TimedMetadataBehavior":"PASSTHROUGH", | |
"TransportStreamId":0 | |
} | |
} | |
}, | |
"NameModifier":"_2", | |
"SegmentModifier":"_2" | |
} | |
}, | |
"OutputName":"{{ id }}-output-2", | |
"VideoDescriptionName":"{{id}}-360-800Kbps", | |
"AudioDescriptionNames":[ | |
"{{id}}-audio-1" | |
] | |
}, | |
{ | |
"OutputSettings":{ | |
"HlsOutputSettings":{ | |
"HlsSettings":{ | |
"StandardHlsSettings":{ | |
"M3u8Settings":{ | |
"Scte35Behavior":"PASSTHROUGH", | |
"TimedMetadataBehavior":"PASSTHROUGH", | |
"TransportStreamId":0 | |
} | |
} | |
}, | |
"NameModifier":"_3", | |
"SegmentModifier":"_3" | |
} | |
}, | |
"OutputName":"{{ id }}-output-3", | |
"VideoDescriptionName":"{{id}}-480-1200Kbps", | |
"AudioDescriptionNames":[ | |
"{{id}}-audio-1" | |
] | |
}, | |
{ | |
"OutputSettings":{ | |
"HlsOutputSettings":{ | |
"HlsSettings":{ | |
"StandardHlsSettings":{ | |
"M3u8Settings":{ | |
"Scte35Behavior":"PASSTHROUGH", | |
"TimedMetadataBehavior":"PASSTHROUGH", | |
"TransportStreamId":0 | |
} | |
} | |
}, | |
"NameModifier":"_4", | |
"SegmentModifier":"_4" | |
} | |
}, | |
"OutputName":"{{ id }}-output-4", | |
"VideoDescriptionName":"{{id}}-540-1800Kbps", | |
"AudioDescriptionNames":[ | |
"{{id}}-audio-1" | |
] | |
}, | |
{ | |
"OutputSettings":{ | |
"HlsOutputSettings":{ | |
"HlsSettings":{ | |
"StandardHlsSettings":{ | |
"M3u8Settings":{ | |
"Scte35Behavior":"PASSTHROUGH", | |
"TimedMetadataBehavior":"PASSTHROUGH", | |
"TransportStreamId":0 | |
} | |
} | |
}, | |
"NameModifier":"_5", | |
"SegmentModifier":"_5" | |
} | |
}, | |
"OutputName":"{{ id }}-output-5", | |
"VideoDescriptionName":"{{id}}-720-2500Kbps", | |
"AudioDescriptionNames":[ | |
"{{id}}-audio-1" | |
] | |
}, | |
{ | |
"OutputSettings":{ | |
"HlsOutputSettings":{ | |
"HlsSettings":{ | |
"StandardHlsSettings":{ | |
"M3u8Settings":{ | |
"Scte35Behavior":"PASSTHROUGH", | |
"TimedMetadataBehavior":"PASSTHROUGH", | |
"TransportStreamId":0 | |
} | |
} | |
}, | |
"NameModifier":"_6", | |
"SegmentModifier":"_6" | |
} | |
}, | |
"OutputName":"{{ id }}-output-6", | |
"VideoDescriptionName":"{{id}}-720-3000Kbps", | |
"AudioDescriptionNames":[ | |
"{{id}}-audio-1" | |
] | |
}, | |
{ | |
"OutputSettings":{ | |
"HlsOutputSettings":{ | |
"HlsSettings":{ | |
"StandardHlsSettings":{ | |
"M3u8Settings":{ | |
"Scte35Behavior":"PASSTHROUGH", | |
"TimedMetadataBehavior":"PASSTHROUGH", | |
"TransportStreamId":0 | |
} | |
} | |
}, | |
"NameModifier":"_7", | |
"SegmentModifier":"_7" | |
} | |
}, | |
"OutputName":"{{ id }}-output-7", | |
"VideoDescriptionName":"{{id}}-1080-5000Kbps", | |
"AudioDescriptionNames":[ | |
"{{id}}-audio-1" | |
] | |
} | |
], | |
"Name":"{{ id }}-out-group" | |
} | |
], | |
"TimecodeConfig":{ | |
"Source":"SYSTEMCLOCK" | |
}, | |
"VideoDescriptions":[ | |
{ | |
"Name":"{{id}}-360-400Kbps", | |
"ScalingBehavior":"DEFAULT", | |
"CodecSettings":{ | |
"H264Settings":{ | |
"Bitrate":400000, | |
"GopSize":2, | |
"GopSizeUnits":"SECONDS", | |
"RateControlMode":"CBR" | |
} | |
}, | |
"Width":640, | |
"Height":360 | |
}, | |
{ | |
"Name":"{{id}}-360-800Kbps", | |
"ScalingBehavior":"DEFAULT", | |
"CodecSettings":{ | |
"H264Settings":{ | |
"Bitrate":800000, | |
"GopSize":2, | |
"GopSizeUnits":"SECONDS", | |
"RateControlMode":"CBR" | |
} | |
}, | |
"Width":640, | |
"Height":360 | |
}, | |
{ | |
"Name":"{{id}}-480-1200Kbps", | |
"ScalingBehavior":"DEFAULT", | |
"CodecSettings":{ | |
"H264Settings":{ | |
"Bitrate":1200000, | |
"GopSize":2, | |
"GopSizeUnits":"SECONDS", | |
"RateControlMode":"CBR" | |
} | |
}, | |
"Width":854, | |
"Height":480 | |
}, | |
{ | |
"Name":"{{id}}-540-1800Kbps", | |
"ScalingBehavior":"DEFAULT", | |
"CodecSettings":{ | |
"H264Settings":{ | |
"Bitrate":1800000, | |
"GopSize":2, | |
"GopSizeUnits":"SECONDS", | |
"RateControlMode":"CBR" | |
} | |
}, | |
"Width":960, | |
"Height":540 | |
}, | |
{ | |
"Name":"{{id}}-720-2500Kbps", | |
"ScalingBehavior":"DEFAULT", | |
"CodecSettings":{ | |
"H264Settings":{ | |
"Bitrate":2500000, | |
"GopSize":2, | |
"GopSizeUnits":"SECONDS", | |
"RateControlMode":"CBR" | |
} | |
}, | |
"Width":1280, | |
"Height":720 | |
}, | |
{ | |
"Name":"{{id}}-720-3000Kbps", | |
"ScalingBehavior":"DEFAULT", | |
"CodecSettings":{ | |
"H264Settings":{ | |
"Bitrate":3000000, | |
"GopSize":2, | |
"GopSizeUnits":"SECONDS", | |
"RateControlMode":"CBR" | |
} | |
}, | |
"Width":1280, | |
"Height":720 | |
}, | |
{ | |
"Name":"{{id}}-1080-5000Kbps", | |
"ScalingBehavior":"DEFAULT", | |
"CodecSettings":{ | |
"H264Settings":{ | |
"Bitrate":5000000, | |
"GopSize":2, | |
"GopSizeUnits":"SECONDS", | |
"RateControlMode":"CBR" | |
} | |
}, | |
"Width":1920, | |
"Height":1080 | |
} | |
] | |
}, | |
"InputSpecification":{ | |
"Codec":"{{inputCodec}}", | |
"MaximumBitrate":"MAX_20_MBPS", | |
"Resolution":"HD" | |
}, | |
"InputAttachments":[ | |
{ | |
"InputId":"{{ inputId }}", | |
"InputSettings":{ | |
"InputFilter":"AUTO", | |
"FilterStrength":1, | |
"DeblockFilter":"DISABLED", | |
"DenoiseFilter":"DISABLED", | |
"SourceEndBehavior":"CONTINUE" | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment