Message Boards Message Boards

0
|
192 Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:

OverlayVideo - Proper positioning of text?

Posted 1 day ago

When using OverlayVideo to overlay a video with some text, it appears that the command aligns the center of the text’s bounding box rather than some other position. I’ve attached a screenshot showing the result of such a command on a video I’m trying to label:

Attempt to overlay text on video

Is there a way to use the lower left corner of that text as the anchor instead of the center? I need the text to appear in the lower left but in its entirety and not centered on that corner.

POSTED BY: Steven Buehler
Posted 1 day ago

Read the documentation for OverlayVideo where it says "The overlays Subscript[o, i] can be any of the following:", and look at how you can use Placed like this Placed[expr,{pos,opos}]. To be specific, you add another position specification for which point in the overlay should align with the point given for the background. Concretely, use any of these:

Placed[..., {{Left, Bottom}, {Left, Bottom}}]

Placed[..., {{0, 0}, {0, 0}}]

Placed[..., {Scaled[{0, 0}], Scaled[{0, 0}]}]

(At least that's how I'm interpreting your question--play with the specifications to get what you want.)

POSTED BY: Eric Rimbey
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract