ffmpeg – How to configure filter_complex overlay after paletteuse?

Used Command-line :
ffmpeg -y -i input.gif -i watermark.png -lossless 1 -filter_complex “[0:v]scale=”min(iw,1000)”:-1:flags=lanczos,split[main][palette]; [palette]palettegen=reserve_transparent=1[p]; [main][p]paletteuse[output], [output][1:v]overlay=W-w-27:H-h-23[out]” -map “[out]” -c:v gif output.gif

I expected that processing transparent first, and overlay watermark image, but paletteuse doesn’t effect in that command.

How to do that process with ffmpeg..?

Read more here: Source link