I have thousands of rectangle boxes to add in a video. Right now I am using this command:
ffmpeg.exe -i small.ts -vf drawbox=10:10:50:50:red,drawbox=100:100:200:200:green small_with_box.ts
However I don't want to add the boxes on an entire frame, but on a given one. Anyone know how can I do that?
The
drawbox
video filter has timeline editing support. You can see what filters support timeline editing:You can see that
drawbox
anddrawgrid
have timeline support, butdeshake
currently does not.Usage example. This will place the red box from frames 28-32, and the green box starting at 60 seconds. Also see the documentation on expression evaluations for additional functions.