ffmpeg. Timelapse.

If you need to gather all your shootings to video file, ffmpeg tool can help to do it in just a seconds. Just navigate to directory with images, change file extension if needed and run the following.

$ ffmpeg -pattern_type glob \-i "*.jpeg" \-r 30 \-c:v libx264 \-b:v 11M \-pix_fmt yuv420p \output.mov

Description.

-pattern_type glob

Means that filenames are matching the glob pattern, for example img_000*.jpeg

 -i "*.jpeg"

Means using as input all the files in the folder with .jpeg extension, should be changes to fit images extension you are using

-r 30

Frame rate of 30fps. You can change it the way you need.

-c:v libx264

Means that the video codec used now is x264. List of supported codecs you can find in official documentation.

-b:v 1M

Indicates the video bitrate. Currently is 1 Mb. For example value can be 4500K (4.5 Mb of 4500 Kb).

-pix_fmt yuv420p

Chroma subsampling scheme.

output.mov

Output file name.

And that it…


Here is useful commands to get more info:

# Print out the list of supported codecs.
$ ffmpeg -codecs

# List of supported pixel formats
$ ffmpeg -pix_fmts

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *