[Libav-user] FFMPEG complex_filter_list taking exponential time in respects to length of video

Paul B Mahol onemda at gmail.com
Sun Jul 17 11:24:35 EEST 2022

On Sun, Jul 17, 2022 at 1:30 AM Arik <aetienne04 at gmail.com> wrote:

> 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.
> below is the command I used to start the process
> -y -i <input> -threads 6 -c:v libx264 -preset ultrafast -r 60 -s
> 1920x1080 -filter_complex_script <complex_script> <output>

Tried to add new filter 'perms=rw' after fps filter?

> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/libav-user
> To unsubscribe, visit link above, or email
> libav-user-request at ffmpeg.org with subject "unsubscribe".
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20220717/ee467b79/attachment.htm>

More information about the Libav-user mailing list