"drawtext" and "drawbox" using "sendcmd" manifest
0
0
ffmpeg -y -i input.mp4 -vf 'sendcmd=f=sendcmd.txt,drawbox,drawtext' output.mp4
What if you have multiple drawbox or drawtext commands inside the -vf? How would you refer to each of them in the sendcmd script?
@RxoMTH : the ffmpeg command is: ffmpeg -y -i input.mp4 -vf 'sendcmd=f=sendcmd.txt,drawbox,drawtext' output.mp4
what you are reading (i.e.: the multiple drawbox, drawtext commands) are inside the sendcmd.txt
file. Sendcmd is basically a filter that you allows you to send commands into other filters. In this case I'm sending the 'reinit' command which re-initialize the drawtext filter with new x
and y
properties.