I have 50 images with different names.
In the same folder, I a names.txt file that contains the names of all the images in that folder, like so:
apples.jpg oranges.jpg blackberries.jpg etc.
And I have one audio file, sound.wav
I want to mix each image with the sound.wav file, to generate 50 videos:
apples.mp4 oranges.mp4 blackberries.mp4 etc.
This is the script that worked for me for converting each image manually:
ffmpeg -loop 1 -y -i oranges.jpg -i sound.wav -shortest oranges.mp4
But I'd like to scale this, maybe have a script that goes through each line in the names.txt file to get the name of the image, converts that image to video and then moves on to the next image.