I want to draw more than one ffmpeg drawbox

Asked 2 years ago, Updated 2 years ago, 106 views

I use drawbox to display lines in the video, but
I would like to draw multiple lines at various times.

-i input-vf drawbox=10:10:1:200:color='#ff0000':8:enable='between(t,3,5)'drawbox=50:50:1:200:color='#ffff00':8:enable='between(t,10,13)'output

As for the image, I would like to use the code above, but
How can I draw multiple lines?

Thank you for your cooperation.

ffmpeg

2022-09-30 14:01

1 Answers

Multiple drawboxes must be separated by ,.

ffmpeg-i input.mp4-vf "drawbox=10:1:200:color='#ff0000':8:enable='between(t,3,5)',drawbox=50:50:1:200:color='#fffff00':8:enable='between(t,10,13)'mout4'.

I tried to run it with bash.To prevent bash from interpreting ', the value of the -vf option is enclosed in ".


2022-09-30 14:01

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.