Text overlay can be used to brand a video or add a label in the form of text. It takes the following parameters embedded in text_overlay
.
Parameter | Description |
text | This is the required parameter for text overlay. It can take the text in form of a string. |
horizontal_align | This parameter specifies the horizontal alignment of the overlayed image and can be either |
vertical_align | This parameter specifies the vertical alignment of the overlayed image and can be either |
horizontal_margin | This parameter defines the horizontal coordinate value of the corner (determined by |
vertical_margin | This parameter defines the vertical coordinate value of the corner (determined by |
color | Font color for text. Default: |
font | Font family type for text. Default: |
font_size | Font size in pixels. Default: |
opacity | Overlay text opacity can be specified with opacity parameter where value can be between |
box | This parameter allows rectangular drawing a box over the overlayed text. Values can be |
box_color | Box color can be specified with this parameter. Default: |
box_opacity | Box opacity can be specified with this parameter. Default: |
box_border | Padding between the box border and the text can be specified with this parameter in pixels. Default: |
curl -L -X POST 'https://api.gumlet.com/v1/video/process' \-H 'Authorization: Bearer <YOUR API KEY>' \-H 'Content-Type: application/json' \-d '{"input":"https://gumlet.sgp1.digitaloceanspaces.com/video/sample_1.mp4","source_id": "5f462c1561cf8a766464ffc4","format": "mp4","text_overlay": {"text": "Gumlet","horizontal_margin": "10%","vertical_margin": "10%","vertical_align": "top","horizontal_align": "left","color": "black","font_size": "45","box": true,"box_color": "white","box_border": "10"}}'