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
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 "
.
© 2024 OneMinuteCode. All rights reserved.