Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to convert images to video using FFMPEG

📅 2014-Nov-19 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ ffmpeg ⬩ 📚 Archive

FFMPEG has forked into the LibAV project and Ubuntu only ships LibAV. However, I found that only FFMPEG worked correctly with filename patterns for me. You can find out how to install FFMPEG on Ubuntu here.

Assume you have 100 image files named foo-005.png to foo-104.png that are to be converted into a movie. Let us assume we want each image to get 3 seconds of time in the video. The FFMPEG invocation to create this movie file:

$ ffmpeg -framerate 1/3 -pattern_type glob -i "foo-*.png" foo.mp4

Tried with: FFMPEG 2.4.3 and Ubuntu 14.04


© 2022 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 @codeyarns@hachyderm.io📧