Skip to content [Tab]
~/posts/software/ffmpeg-timelapse.md
$ stat -x ffmpeg-timelapse.md POSIX filesystem
Access Mode: -rw-r--r-- (0644)
Author: uid:1000(@f7234bv9s8)
File Size: 2.8 KB (191 words)
Modified:
Flags: --cat="software" --tags="ffmpeg,timelapse"

ffmpeg. Timelapse.

attachment://featured-image.webp

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
@f7234bv9s8 maintainer

Software engineer and writer at notes:own:vision:com.