Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8059451
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T09:40:33+00:00 2026-06-05T09:40:33+00:00

I am currently using these commands: Top left corner ffmpeg –i inputvideo.avi -vf movie=watermarklogo.png

  • 0

I am currently using these commands:

Top left corner
ffmpeg –i inputvideo.avi -vf "movie=watermarklogo.png [watermark]; [in][watermark] overlay=10:10 [out]" outputvideo.flv

Top right corner
ffmpeg –i inputvideo.avi -vf "movie=watermarklogo.png [watermark]; [in][watermark] overlay=main_w-overlay_w-10:10 [out]" outputvideo.flv

Bottom left corner
ffmpeg –i inputvideo.avi -vf "movie=watermarklogo.png [watermark]; [in][watermark] overlay=10:main_h-overlay_h-10 [out]" outputvideo.flv

Bottom right corner
ffmpeg –i inputvideo.avi -vf "movie=watermarklogo.png [watermark]; [in][watermark] overlay=(main_w-overlay_w-10)/2:(main_h-overlay_h-10)/2 [out]" outputvideo.flv

How to place watermark center of the video ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T09:40:34+00:00Added an answer on June 5, 2026 at 9:40 am

    Examples to add a watermark / logo image on video using the overlay filter.

    Centered

    enter image description here

    ffmpeg -i input.mp4 -i logo.png -filter_complex "overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2" -codec:a copy output.mp4
    

    or with the shortened overlay options:

    overlay=(W-w)/2:(H-h)/2
    

    Top left

    This is the easy one because the default, if you provide no options to overlay, is to place the image in the top left.

    This example adds 5 pixels of padding so the image is not touching the edges:

    overlay=5:5
    

    Top right

    With 5 pixels of padding:

    overlay=main_w-overlay_w-5:5
    

    or with the shortened options:

    overlay=W-w-5:5
    

    Bottom right

    With 5 pixels of padding:

    overlay=main_w-overlay_w-5:main_h-overlay_h-5
    

    or with the shortened options:

    overlay=W-w-5:H-h-5
    

    Bottom left

    With 5 pixels of padding:

    overlay=5:main_h-overlay_h
    

    or with the shortened options:

    overlay=5:H-h-5
    

    Transparency / opacity / alpha

    Example to make watermark 50% transparent using the format and colorchannelmixer filters:

    ffmpeg -i input.mp4 -i watermark.jpg -filter_complex "[1]format=rgba,colorchannelmixer=aa=0.5[logo];[0][logo]overlay=(W-w)/2:(H-h)/2:format=auto,format=yuv420p" -c:a copy output.mp4
    

    Improved quality

    Using the format=auto option in the overlay filter can make PNG watermarks look better:

    ffmpeg -i input.mp4 -i watermark.png -filter_complex "overlay=5:H-h-5:format=auto,format=yuv420p" -c:a copy output.mp4
    

    Note the addition of the format filter (yes, same name as the option, but a standalone filter) to reset it to YUV 4:2:0 which is needed for MP4 output. Remove ,format=yuv420p if you are not outputting MP4.

    Scale watermark in relation to main video

    Use the scale2ref filter:

    Example to make logo 10% (1/10) the size of the main video:

    ffmpeg -i input.mp4 -i watermark.png -filter_complex "[1][0]scale2ref=w=oh*mdar:h=ih*0.1[logo];[logo]overlay=5:H-h-5" -c:a copy output.mp4
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using the vim-snipmate addon with these snippets . I am currently in
I have several commands printing text to a file using perl. During these print
I have install the redis server using these commands, wget http://download.redis.io/redis-stable.tar.gz xvzf redis-stable.tar.gz cd
I'm currently using a collection of three commands to get the current tag, branch
We're currently experiencing issues with database locking using SQLite in a multi-user environment. These
I am currently using tastypie with 2 apps. Each of those apps has a
I am currently using silverlight to build a control for a CRM form. There
Right now I currently using transactional replication with updatable subscription. Is there any ways
I am currently using YUI datatable, but it is buggy: http://developer.yahoo.com/yui/datatable/ Is there another
Is there a way to do this ? I'm currently using 2007 and am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.