Skip to content Skip to sidebar Skip to footer

Chain `drawtext` With Ffmpeg-python

I have a function within my python script to loop through some given text via an API but I am having issues drawing multiple text values:- def add_text(title, text_lines): inpu

Solution 1:

You need to reassign input (or use an intermediate variable). What's happening in each loop is you are taking the freshinput and drawing the text over that.

You could do something like

...
        input = input.drawtext(
...

I believe, though I haven't worked with videos much. Like, you might need to do more to make sure the text doesn't all just layer over itself.

Post a Comment for "Chain `drawtext` With Ffmpeg-python"