Skip to content

Instantly share code, notes, and snippets.

@gaberussell
Last active November 6, 2018 03:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save gaberussell/016705e01014127f74a833e9c3e41b5c to your computer and use it in GitHub Desktop.
Save gaberussell/016705e01014127f74a833e9c3e41b5c to your computer and use it in GitHub Desktop.
{
"input": "http://s3.amazonaws.com/zencodertesting/test.mov",
"outputs": [
{
"label": "mp4-1500k",
"prepare_for_segmenting": ["hls", "dash"],
"audio_bitrate": 128,
"video_bitrate": 1100,
"size": "1280x720",
"url": "s3://my-bucket/mp4/1500.mp4"
},
{
"label": "mp4-1000k",
"prepare_for_segmenting": ["hls", "dash"],
"audio_bitrate": 128,
"video_bitrate": 695,
"size": "960x540",
"url": "s3://my-bucket/mp4/1000.mp4"
},
{
"label": "mp4-500k",
"prepare_for_segmenting": ["hls", "dash"],
"audio_bitrate": 128,
"video_bitrate": 290,
"size": "640x360",
"url": "s3://my-bucket/mp4/500.mp4"
},
{
"label": "hls-1500k",
"source": "mp4-1500k",
"copy_video": true,
"copy_audio": true,
"type": "segmented",
"byte_range_segmenting": true,
"url": "s3://my-bucket/hls/1500.m3u8",
"drm": { "method": "fairplay" },
"encryption_key_url": "skd://my-asset-id",
"encryption_iv": "b4839b42647b884eb5a0804d3699aac4",
"encryption_key": "162c823de34317d84fcbbc7b44b54943"
},
{
"label": "hls-1000k",
"source": "mp4-1000k",
"copy_video": true,
"copy_audio": true,
"type": "segmented",
"byte_range_segmenting": true,
"url": "s3://my-bucket/hls/1000.m3u8",
"drm": { "method": "fairplay" },
"encryption_key_url": "skd://my-asset-id",
"encryption_iv": "b4839b42647b884eb5a0804d3699aac4",
"encryption_key": "162c823de34317d84fcbbc7b44b54943"
},
{
"label": "hls-500k",
"source": "mp4-500k",
"copy_video": true,
"copy_audio": true,
"type": "segmented",
"byte_range_segmenting": true,
"url": "s3://my-bucket/hls/500.m3u8",
"drm": { "method": "fairplay" },
"encryption_key_url": "skd://my-asset-id",
"encryption_iv": "b4839b42647b884eb5a0804d3699aac4",
"encryption_key": "162c823de34317d84fcbbc7b44b54943"
},
{
"type": "playlist",
"url": "s3://my-bucket/hls/multi_bitrate_playlist.m3u8",
"streams": [
{ "path": "1000.m3u8", "source": "hls-1000k" },
{ "path": "1500.m3u8", "source": "hls-1500k" },
{ "path": "500.m3u8", "source": "hls-500k" }
]
},
{
"label": "dash-1500k",
"source": "mp4-1500k",
"copy_video": true,
"copy_audio": true,
"streaming_delivery_format": "dash",
"type": "segmented",
"url": "s3://my-bucket/dash/1500k/rendition.mpd",
"drm": {
"content_id": "my-asset-id",
"content_key": "dfee49d3822fb27d4dcce206661786d6",
"iv_size": 8,
"key_id": "3c60f4bb73073b408c83ee373c33ebf7",
"method": "cenc",
"schemas": [
{
"license_acquisition_url": "https://my-license-server/cenc/",
"provider": "drmtoday",
"type": "widevine"
},
{
"license_acquisition_url": "https://my-license-server/playready/",
"provider": "drmtoday",
"type": "playready"
}
]
}
},
{
"label": "dash-1000k",
"source": "mp4-1000k",
"copy_video": true,
"copy_audio": true,
"streaming_delivery_format": "dash",
"type": "segmented",
"url": "s3://my-bucket/dash/1000k/rendition.mpd",
"drm": {
"content_id": "my-asset-id",
"content_key": "dfee49d3822fb27d4dcce206661786d6",
"iv_size": 8,
"key_id": "3c60f4bb73073b408c83ee373c33ebf7",
"method": "cenc",
"schemas": [
{
"license_acquisition_url": "https://my-license-server/cenc/",
"provider": "drmtoday",
"type": "widevine"
},
{
"license_acquisition_url": "https://my-license-server/playready/",
"provider": "drmtoday",
"type": "playready"
}
]
}
},
{
"label": "dash-500k",
"source": "mp4-500k",
"copy_video": true,
"copy_audio": true,
"streaming_delivery_format": "dash",
"type": "segmented",
"url": "s3://my-bucket/dash/500k/rendition.mpd",
"drm": {
"content_id": "my-asset-id",
"content_key": "dfee49d3822fb27d4dcce206661786d6",
"iv_size": 8,
"key_id": "3c60f4bb73073b408c83ee373c33ebf7",
"method": "cenc",
"schemas": [
{
"license_acquisition_url": "https://my-license-server/cenc/",
"provider": "drmtoday",
"type": "widevine"
},
{
"license_acquisition_url": "https://my-license-server/playready/",
"provider": "drmtoday",
"type": "playready"
}
]
}
},
{
"streaming_delivery_format": "dash",
"type": "playlist",
"url": "s3://my-bucket/dash/manifest.mpd",
"streams": [
{ "source": "dash-1500k", "path": "1500k" },
{ "source": "dash-1000k", "path": "1000k" },
{ "source": "dash-500k", "path": "500k" }
],
"drm": {
"content_id": "my-asset-id",
"content_key": "dfee49d3822fb27d4dcce206661786d6",
"iv_size": 8,
"key_id": "3c60f4bb73073b408c83ee373c33ebf7",
"method": "cenc",
"schemas": [
{
"license_acquisition_url": "https://my-license-server/cenc/",
"provider": "my-provider",
"type": "widevine"
},
{
"license_acquisition_url": "https://my-license-server/playready/",
"provider": "drmtoday",
"type": "playready"
}
]
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment