Image_overlay
Name | Type | Description |
---|---|---|
image_file | object | Defines the location of the image file to be used. |
x | integer string | X position of the overlay. Can use expressions such as overlay_w-20 (overlay_w: width of the overlay). Default expression equals centered. default: (video_w-overlay_w)/2 |
y | integer string | Y position of the overlay. Can use expressions such as overlay_h-20 (overlay_h: height of the overlay). default: 25 |
width | number string | Width of the overlay. Can use expressions such as source_w (width of the image source). |
height | number string | Height of the overlay. Can use expressions such as source_h (height of the image source). |
opacity | number | Opacity of the overlay image. 0 = fully transparent, 1= fully opaque. default: 1 |
start_sec | number | Start point (in seconds) of the overlay. |
duration_sec | number | Duration (in seconds) of the overlay. |
fadein_duration_sec | number | Fade-in time (in seconds) of the overlay. |
fadeout_duration_sec | number | Fade-out time (in seconds) of the overlay. |
Example image_overlay
{
"uid": "transcode_media",
"kind": "transcode",
"payload": {
"location": {
},
"targets": [
{
"file_pattern": "{source_basename}_converted.mp4",
"container": {
"kind": "mp4"
},
"video": {
"codec": "h264",
"filters": [
{
"kind": "image_overlay",
"payload": {
"image_file": {
"storage_provider": "s3",
"url": "s3://my_bucket/my_input_folder/my_file.png"
},
"x": "overlay_w - 20",
"y": 0,
"height": "source_h / 2",
"opacity": 0.75,
"start_sec": 5,
"fadein_duration_sec": 10,
"duration_sec": 30
}
}
]
},
"audio": [
{
}
]
}
]
}
}