user2100830
user2100830

Reputation: 13

Watermark in video with ffmpeg Center-Top

i currently have 2 commands where i can select to put my watermark top-left or top-right of the video but i also have a watermark,which i wish to put in center-top,but i could only put it in center of the video,can someone pease help me with putting the waternmark on center top of the video ? here's what im using

$watermark = '-vf "movie='.$text_logo_path.' [watermark]; [in][watermark] overlay=10:main_h/2-overlay_h/2 [out]"

how can i get it to be in Top-Center ?

Upvotes: 1

Views: 1440

Answers (1)

llogan
llogan

Reputation: 133703

center overlay image

ffmpeg -i input1 -i input2 -filter_complex "overlay=main_w/2-overlay_w/2" out

Use -filter_complex when you have multiple inputs and or outputs; this option also allows you to omit the movie source filter. See the overlay video filter documentation for more info.

Upvotes: 2

Related Questions