Skip to main content

Transcode

NameTypeDescription
locationobjectThe base target location. Locations specified in deeper branches of this JSON will override this.
optionsobjectOptions for this transcode. Includes source delete option and source pre-fetch.
source_pipelineobjectThe source_pipeline sets filtering or segmenting prior to executing the transcode.
watermarkingarrayAn array of objects defining the types of watermarks to be included in the output.
support_filesarraySupport files referenced inside of container/video/audio, for example in x265_options.
temp_locationobjectSpecify a location for temporary files (typically multi-pass).
temp_file_prefixstringSpecify a prefix for every temp file (for shared folder/location use across various tasks).
targetsarrayAn 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"
}
]
}
}
]
}
}