Score:1

FFmpeg: How to add watermark after 60 seconds?

us flag

Right now I am using:

ffmpeg -i input.mp4 -i watermark.png \
-filter_complex overlay=W-w-5:H-h-5 \
-codec:a copy -preset ultrafast -async 1 output.mp4

I want the watermark to be displayed after 60 seconds in the video. How can I make so that the video starts, and then after 60 seconds adding in the watermark?

Score:1
jp flag

You can use the enable option with the gte function:

ffmpeg -i input.mp4 -i watermark.png \
-filter_complex "overlay=W-w-5:H-h-5:enable='gte(t,60)'" \
-codec:a copy -preset ultrafast output.mp4
andrew.46 avatar
in flag
That worked beautifully here. I bow down before your FFmpeg brilliance :).
llogan avatar
jp flag
@andrew.46 Good to hear from you, Andrew. Hope things are going well for you down in the opposite end of the world.
andrew.46 avatar
in flag
Some Covid troubles at the moment but otherwise all is well
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.