Combining images into video with ffmpeg, but from multiple folders into the same frames

Jazcash

I have files like so:

Trees/000.png
Trees/001.png etc

Clouds/000.png
Clouds/001.png etc

Hill.png

I want each frame of the video to be a composite of all 3 images, where Trees/000.png will join with Clouds/000.png and also have Hill.png in the background for each frame.

I could hack my way around this by doing what I know, which would be making a trees video and a clouds video, combining those together, then combining them with the hill - but I think there would be significant quality loss doing it that way so would ideally like to do it all in one go, if possible.

Any ideas?

llogan
ffmpeg -loop 1 -i Hill.png -i Trees/%03d.png -i Clouds/%03d.png -filter_complex "[0][1]overlay=shortest=1[bg];[bg][2]overlay" output.mp4

See documentation for overlay filter and image demuxer for more info.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Insert multiple images from multiple folders in VBA

FFmpeg producing a flickering video from images

How to create a video from images with FFmpeg?

Extract all video frames as images with FFMPEG

Encoding frames to video with ffmpeg

Make video from images with ffmpeg/imagemagic

Add multiple images to video fluent-ffmpeg

ffmpeg combining three images into a looped video

ffmpeg- make video from images in different folders

Extract frames from video with ffmpeg - header problem?

Combining multiple images, in many folders in Python

FFmpeg making video from images placed in different folders

ffmpeg how to output images from a video

ffmpeg pipe images extracted from video

Producing stable video from slow images with FFmpeg

Can FFMPEG extract images from a video with timestamps?

create video from jpg images using ffmpeg

FFMpeg : Converting a video file to a gif with multiple images from video

Creating video from images with different SARs with FFMPEG

Combining video and audio from multiple sources using ffmpeg

FFMPEG not extracting all the frames from a video

Trying to create video from multiple frames

ffmpeg: Is there a way to create video from images and overlay on image at same time?

ffmpeg - Merge back frames to a video with the same encoding

ffmpeg: overlay multiple images to a video

FFmpeg: create a video from a list of images, where each images stay N frames

Compiling frames into a video with ffmpeg

ffmpeg black screen issue for video video generation from a list of frames

Extract frames from a video (errors from using grabVideoStills and ffmpeg)