{
"name": "Hybrik Watchfolder Example",
"payload": {
"elements": [
{
"uid": "watchfolder_source",
"kind": "watchfolder",
"task": {
"tags": [
"WATCH_FOLDER"
]
},
"payload": {
"source": {
"storage_provider": "s3",
"path": "s3://my_bucket/my_watchfolder"
},
"settings": {
"key": "watch_folder",
"interval_sec": 5,
"pattern_matching": "wildcard",
"wildcard": "*",
"recursive": true,
"process_existing_files": true
}
}
},
{
"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": "24000/1001"
},
"audio": [
{
"codec": "aac",
"channels": 2,
"sample_rate": 48000,
"sample_size": 16,
"bitrate_kb": 128
}
]
}
]
}
}
],
"connections": [
{
"from": [
{
"element": "watchfolder_source"
}
],
"to": {
"success": [
{
"element": "transcode_task"
}
]
}
}
]
}
}