<div dir="ltr">Hi, I have currently been working on a project for 4 months where I am subtitling videos with the DRAWTEXT filter using ffmpeg. The way I am doing this is by using a filter 

complex  script (file linked below). So I just chained a bunch of draw text filters together to individually add it to each frame with the proper scaling. The problem I have encountered is that it works fast for relatively short videos but with longer videos the time increases exponentially. a 30 second video can take 15 seconds, but a 5 minute video can take over an hour. I was hoping we could solve this together and at least get this time to be 1:1, so if a 30 second video takes 15 seconds, a 5 minute video takes 2 and a half minutes. <div><br></div><div>below is the command I used to start the process </div><div><br></div><div><div style="background-color:rgb(30,30,30);font-family:Consolas,"Courier New",monospace;font-size:14px;line-height:19px;white-space:pre"><div style=""><span style="color:rgb(206,145,120)">-y -i </span><font color="#569cd6"><input></font><span style="color:rgb(206,145,120)"> -threads 6 -c:v libx264 -preset ultrafast -r 60 -s 1920x1080 -filter_complex_script </span><font color="#569cd6"><</font><font color="#4fc1ff">complex_script</font><font color="#569cd6">></font><span style="color:rgb(206,145,120)"> </span><font color="#569cd6"><</font><font color="#4fc1ff">output</font><font color="#569cd6">></font></div></div></div></div>