I am running the following command with an error (also below):
ffmpeg -i input.mp4 -i %04d.png -i another_input.png -filter_complex "\ drawtext=text='Text to write':fontsize=180:fontcolor=white:x=500:y=800:enable='eq(n\,25)'[tmp];\ [2:v]scale=20:20[ovrl];\ [0:v][ovrl]overlay=860:500:enable='eq(n\,0)'[tmp];\ [tmp][1:v]overlay=0:0" output.mp4I'm receiving an error Filter drawtext has a unconnected output
I'm assuming this is where we move from the drawtext filter to the scale filter, but I'm not sure how to 'connect' the [tmp] to the scale filter while keeping drawtext first. Any help?
1 Answer
Use
ffmpeg -i input.mp4 -i %04d.png -i another_input.png -filter_complex "\ [0]drawtext=text='Text to write':fontsize=180:fontcolor=white:x=500:y=800:enable='eq(n\,25)'[tmp];\ [2:v]scale=20:20[ovrl];\ [tmp][ovrl]overlay=860:500:enable='eq(n\,0)'[tmp1];\ [tmp1][1:v]overlay=0:0" output.mp4 2