Monday, December 28, 2015

Making a movie out of large volume batch images using ffmpeg

I've used ffmpeg to do this, and it is done through console command application.

From terminal, just go to the directory of still animated images.  

In order to create a movie, the files will need be sequentially numbered.  Also you may need to break, large volumes into smaller parcel chunks.  This is true especially if you are working in large volumes where apparently memory management and flushing memory for compilation of a given video using ffmpeg become problematic.

The command given below indicates how to compile a video using a file number start sequence that isn't by default zero:

ffmpeg -start_number 13473 -f image2 -r 25 -i screen-%5d.tif -vcodec libx264 movie.mp4  

-start_number 13473  indicates the start number at file string name 'screen-13473.tif'  based upon all the other command parameters also provided.

-r 25 indicates the frame rate. 

-i screen-%5d.tif  indicate the string path name of the batch file that is beginning with the string 'screen-' and then having a 5 digit number followed by the '.tif' string.  

-vcodec libx264 is the codec for compilation.

finally movie.mp4 is the file name into the compilation directory or whatever user specified directory is provided.


No comments:

Post a Comment

Oblivion

 Between the fascination of an upcoming pandemic ridden college football season, Taylor Swift, and Kim Kardashian, wildfires, crazier weathe...