Text_overlay
Name | Type | Description |
---|---|---|
x | integer string | The x location to start the imprint. Can use expressions such as w-20 (w: width of the video). default: 25 |
y | integer string | The y location to start the imprint. Can use expressions such as h-20 (h: height of the video). default: 25 |
opacity | number | Opacity of the text overlay. 0 = fully transparent, 1 = fully opaque. default: 1 |
text | string | The text string to be drawn. |
text_file | object | Defines the location of the text file to be used. |
font | string | The font descriptor (compliant with fontconfig). Examples: 'Sans', 'URW Bookman L:style=Demi Bold Italic'. |
font_file | object | Defines the location of the font file to be used. |
font_color | string | The color to be used for drawing fonts. Example: black: opaque black, green@0.8: green with 0.8 alpha. default: black |
font_size | integer string | The font size in points. Can use expressions such as h/10 (w: width of the video, h: height of the video). A font size of 16 is the default. default: 16 |
tab_size | integer | The size of the tab in number of spaces. The \t character is replaced with spaces. minimum: 1 default: 4 |
shadow_color | string | The color to be used for drawing a shadow behind the drawn text. Example: black: opaque black, green@0.8: green with 0.8 alpha. default: black |
shadow_x | integer | The x offset for the text shadow position with respect to the position of the text. It can be either positive or negative value. |
shadow_y | integer | The y offset for the text shadow position with respect to the position of the text. It can be either positive or negative value. |
border_color | string | The color to be used for drawing border around text. Example: black: opaque black, green@0.8: green with 0.8 alpha. |
border_size | integer | The width of the border to be drawn around the text. |
background_color | string | The color to be used for drawing box around text. Example: black: opaque black, green@0.8: green with 0.8 alpha. |
background_size | integer | The width of the box to be drawn around the background. |
fix_bounds | boolean | Correct text coords to avoid clipping. |
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 text_overlay
{
"uid": "transcode_task",
"kind": "transcode",
"payload": {
"location": {
},
"targets": [
{
"file_pattern": "{source_basename}_text_overlay.mp4",
"container": {
"kind": "mp4"
},
"video": {
"codec": "h264",
"filters": [
{
"kind": "text_overlay",
"payload": {
"x": 100,
"y": 100,
"opacity": 1,
"text": "YOUR TEXT HERE",
"font": "Times New Roman",
"font_color": "red",
"font_size": "h/5",
"duration_sec": 5,
"shadow_color": "blue",
"shadow_x": 0,
"shadow_y": 30
}
}
]
}
}
]
}
}