Video_overlay
Name | Type | Description |
---|---|---|
video_file | object | The location of the video file to be overlaid on the output target. |
x | integer string | X position of the overlay. Can use expressions such as overlay_w-20 (overlay_w: width of the overlay). default: 25 |
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 video source). |
height | number string | Height of the overlay. Can use expressions such as source_h (height of the video 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. |
fadein_duration_sec | number | Fade-in time (in seconds) of the overlay. |
duration_sec | number | Duration (in seconds) of the overlay. |
fadeout_duration_sec | number | Fade-out time (in seconds) of the overlay. |
repeat_count | integer | How many times to repeat the video overlay on the primary video. To repeat indefinitely use "-1". 0 = no repeat, 1 = repeats the top video one time, 2 = repeats the top video two times. |
Example video_overlay
{
"uid": "transcode_media",
"kind": "transcode",
"payload": {
"location": {
},
"targets": [
{
"file_pattern": "{source_basename}_converted.mp4",
"container": {
"kind": "mp4"
},
"video": {
"codec": "h264",
"filters": [
{
"kind": "video_overlay",
"payload": {
"video_file": {
"storage_provider": "s3",
"url": "s3://my_bucket/my_input_folder/my_file.mp4"
},
"x": "overlay_w - 20",
"y": 0,
"height": "source_h / 2",
"opacity": 0.75,
"start_sec": 5,
"fadein_duration_sec": 10
}
}
]
},
"audio": [
{
}
]
}
]
}
}