Transcode
Name | Type | Description |
---|---|---|
location | object | The base target location. Locations specified in deeper branches of this JSON will override this. |
options | object | Options for this transcode. Includes source delete option and source pre-fetch. |
source_pipeline | object | The source_pipeline sets filtering or segmenting prior to executing the transcode. |
watermarking | array | An array of objects defining the types of watermarks to be included in the output. |
support_files | array | Support files referenced inside of container/video/audio, for example in x265_options. |
temp_location | object | Specify a location for temporary files (typically multi-pass). |
temp_file_prefix | string | Specify a prefix for every temp file (for shared folder/location use across various tasks). |
targets | array | An array of target outputs. Each target specifies a location, container, video, and audio properties. |
Example transcode
{
"name": "Hybrik Transcode Example",
"payload": {
"elements": [
{
"uid": "source_file",
"kind": "source",
"payload": {
"kind": "asset_url",
"payload": {
"storage_provider": "s3",
"url": "s3://my_bucket/my_input_folder/my_file.mp4"
}
}
},
{
"uid": "transcode_task",
"kind": "transcode",
"payload": {
"location": {
"storage_provider": "s3",
"path": "s3://my_bucket/my_output_folder"
},
"targets": [
{
"file_pattern": "{source_basename}_converted.mp4",
"existing_files": "replace",
"container": {
"kind": "mp4"
},
"video": {
"width": 1280,
"height": 720,
"codec": "h264",
"profile": "high",
"level": "4.0",
"frame_rate": 23.976
},
"audio": [
{
"codec": "aac",
"channels": 2,
"sample_rate": 48000,
"sample_size": 16,
"bitrate_kb": 128
}
]
}
]
}
}
],
"connections": [
{
"from": [
{
"element": "source_file"
}
],
"to": {
"success": [
{
"element": "transcode_task"
}
]
}
}
]
}
}