[FFmpeg-user] Create a black box over top of the video for a set duration at a set time.

Bouke / Videotoolshed bouke at videotoolshed.com
Sat Dec 31 11:31:11 EET 2022


On 31 Dec 2022, at 04:53, Gyan Doshi <ffmpeg at gyani.pro> wrote:
> 
> On 2022-12-31 08:15 am, David Niklas wrote:
>> Sorry for taking so long to reply.
>> It is not working. Terminal output below.
>> 
>> % ffmpeg -i Ducksinarow.mp4 -filter_complex "[0:0]drawbox=color=black:t=fill=enable='between(t,1.0,2.0)'" -c:a copy -c:v libvpx ducks.mp4
> 
> There should be a colon after fill, not =
> 
> drawbox=color=black:t=fill:enable='between(t,1.0,2.0)'

And for your next question that might come up (since you want to do multiple filters, I do too and just got bitten):
There is a limitation on Windows that won’t accept long arguments.
In that case, save the filter_complex string to a file, then, instead of filter_complex you can use filter_complex_script with the filename as argument.

Bouke



More information about the ffmpeg-user mailing list