I Have a task to create video with mp4, audio and images with FFmpeg Command, and stuck in overlay issue. animation hide behind image how do i set command ?
I have creating FFmpeg command for my Android application. I have tried with given command. i do interval for 2 images and in given interval change image, till first image video working fine but when image change video will not shown actually image hide it.
ffmpeg -i samplenew.mp4 -i img.jpg -i img2.jpg -filter_complex "[1:v]format=argb,geq=r='r(X,Y)':a='0.5*alpha(X,Y)'[zork];[0:v][zork]overlay=x=(main_w-overlay_w)/2:y=(main_h-overlay_h)/2:enable='between(t,1,11)'[tmp]; [tmp][2:v]overlay=x=(main_w-overlay_w)/2:y=(main_h-Actuoverlay_h)/2:enable='between(t,11,22)'" -codec:a copy -preset ultrafast -async 1 out.mp4
In actual problem in command, there is change image in defined interval but when image is change video is hide behind image.