[FFmpeg-user] filter_complex with 2 images generates 3 files instead of one

Gabriel Dina gabriel.dina at gmail.com
Wed Mar 1 11:12:41 EET 2023


ffmpeg -i uploads/image.mp4 -i ./assets/logo.png -i ./assets/info.png
-filter_complex "[1][0]scale2ref=w='iw
*1/5':h='ow/mdar'[v1];[2][0]scale2ref=w='iw*9/10':h='ow/mdar'[v2];[0][v1]overlay=main_w-overlay_w-5:5[vid];[vid][v2]overlay=10:main_h-overlay_h-10"
uploads/image%0d.mp4

If I remove %0d from the output I get an error.

Thank you


More information about the ffmpeg-user mailing list