1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

FFMPEG Control Video Watermark Duration

Discussion in 'Video Production' started by fatalpop, Feb 20, 2017.

  1. fatalpop

    fatalpop Newbie

    Joined:
    Jan 8, 2012
    Messages:
    42
    Likes Received:
    4
    So far I have this code which batch watermarks videos using FFMPEG:
    Code:
    for %%a in ("C:\filepath\*.mp4") do ffmpeg -i "%%a" -q 40 -s 640x480 -vf "movie=watermark.png [watermark]; [in][watermark] overlay=x=(main_w-overlay_w)/2:y=(main_h-overlay_h)/2 [out]" "C:\filepath\%%~na.mp4"
    
    What I'm trying to figure out is how I can control the duration of the watermark so that it appears 60 seconds into the video and disappears 15 seconds later.

    I also need the code to be able to be run in batch.

    Any help in figuring this out would be appreciated.
     
  2. HoNeYBiRD

    HoNeYBiRD Jr. VIP Jr. VIP

    Joined:
    May 1, 2009
    Messages:
    7,496
    Likes Received:
    8,427
    Gender:
    Male
    Occupation:
    Geographer, Tourism Manager
    Location:
    Ghosted
    Stack Overflow to the rescue. :)

    Batch execution: http://stackoverflow.com/questions/35831770/batch-overlay-logo-to-directory-of-video-files
    Controlling the duration of a watermark: http://stackoverflow.com/questions/9160771/ffmpeg-watermark-first-30-second