I want to write a script that will generate a timeline video based on a given input of image file paths. I understand that you can do something like this:
avconv -r 15 -i %04d.JPG -s hd480 -vcodec libx264 time-lapse.mp4
This will search for files in the directory based on the file name template 0000.JPG, 0001.JPG etc. However, I am trying to figure out if there is a way to pass it in the list of file names in the order I want to process? My ideal situation is that I can execute some DB query to get a list of image file paths in chronological order, and then pass them to the avconv command and make it generate video on the fly. I have a specific folder structure for my images, so I would not want to copy the necessary files to the temp directory in order to be able to name them correctly and then process them.
source share