<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jul 17, 2022 at 1:30 AM Arik <<a href="mailto:aetienne04@gmail.com">aetienne04@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><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-wrap"><div><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></blockquote><div><br></div><div>Tried to add new filter 'perms=rw' after fps filter?</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="https://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">https://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br>
To unsubscribe, visit link above, or email<br>
<a href="mailto:libav-user-request@ffmpeg.org" target="_blank">libav-user-request@ffmpeg.org</a> with subject "unsubscribe".<br>
</blockquote></div></div>