I have a background .png and then two animated gifs I want to play at the same time. However, currently I can only get it play the gifs sequentially, so one gif plays in entirety while the other gif is stuck on the first frame, then the second gif plays while the other gif is stuck. They should play at the same time.
Also, if one gif is 3 frames, and another is 6 frames, how can I make the first gif repeat twice for one cycle of the second gif?
Current Command:
HTML Code:ffmpeg -i background.png -i "smoking_cigarette.gif" -i "spinning_hat.gif" -filter_complex "[0][1]overlay=format=auto[i1];[i1][2]overlay=format=auto,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse=dither=bayer: bayer_scale=5,scale=400:-1:flags=neighbor " -loop 0 final_gif.gif
+ Reply to Thread
Results 1 to 2 of 2
Thread
-
-
Command (filter) 'movie' can be useful in such cases: https://ffmpeg.org/ffmpeg-filters.html#movie-1
Similar Threads
-
Can FFmpeg overlay a video with raw EIA-608 data so a CRT can decode it?
By xAlienxx in forum Newbie / General discussionsReplies: 7Last Post: 22nd Sep 2022, 21:50 -
FFMPEG: Overlay Capture Time as Time Counter
By adam201 in forum Video ConversionReplies: 1Last Post: 27th Jun 2022, 12:32 -
How to include audio in an overlay ffmpeg command?
By giladsof in forum Video ConversionReplies: 2Last Post: 27th Apr 2021, 09:36 -
[ffmpeg]: overlay logo over vstack/hstack composition
By mapg in forum Newbie / General discussionsReplies: 4Last Post: 22nd Sep 2019, 10:19 -
How do I use ffmpeg to create the highest quality animated gifs from video
By Bruce Banner in forum EditingReplies: 13Last Post: 11th May 2019, 00:26