FFMPEG Control Video Watermark Duration

fatalpop

Registered Member
Joined
Jan 8, 2012
Messages
54
Reaction score
3
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.
 
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.
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
 
Back
Top