My goal is to transform an image .jpg into a .mp4 video and then add a .gif overlay on the video created. The problem is the GIF overlay on the video created is not playing/looping.
Here is the command for the image -> video :
"-framerate 1/10 -i image.jpg -vf scale=720:1280 -t 10 -pix_fmt yuv420p -c:v libx264 -movflags faststart output.mp4"
This create successfully a video of 10seconds from my image.
Here is the command for applying the gif as overlay :
-i video.mp4 -ignore_loop 0 -i animated.gif -filter_complex '[1:v]scale=321.0:-1[ovrl0];[0:v][ovrl0]overlay=160.5:487.28:shortest=1' -codec:a copy -codec:v libx264 -preset ultrafast output.mp4
The overlay is correctly applied but it's not playing or looping at all.
I don't know what I am doing wrong because the last command (overlay) is working perfectly when it's triggered from a classic video file (like from recorded camera or something) -> the gif is looping as expected.
So I'm assuming the real issue come from the video I created from my image but result I've got seems to be good so can't find what's wrong with the image or video created.
Can someone could help me please to fix it and understand this case ?