简体   繁体   中英

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 ?

中心叠加图像

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM