This will find all the png images and compile them into a video file called output.mp4 at 24 frames per second. To convert such a list into an mp4, at 24 frames per second we can navigate in the terminal to the directory containing our images and then write: ffmpeg -r 24 -f image2 -pattern_type glob -i "*?png" -vcodec libx264 -crf 20 -pix_fmt yuv420p output.mp4 It's important to use padded numbers such as ones with leading zeroes otherwise it can get confused about which number is the correct one in the sequence. Let's say we have a load of images that are named something like frame0001.png, frame0002.png etc etc. Converting a bunch of images into a videoįFmpeg has a whole host of options to convert a sequence of images to a video, but I'll show you what works for me. brew install FFmpegĪll being well FFmpeg should now be installed. Again paste or type the following into the terminal and press return. Next we can install FFmpeg using Homebrew. If you don't have Homebrew first open up a terminal and paste this in the terminal window then press return /usr/bin/ruby -e "$(curl -fsSL )" This is easiest using Homebrew, a Mac package manager. The first thing to do is to install ffmpeg. I'll detail how I use this now, but more importantly I'll show how I wrote a bash function that simplifies this process. That got me thinking about an alternative way to convert images to video, which led me to FFmpeg.įFmpeg is a command line tool that can do many things with images and video, one of which is to convert an image sequence into a video such as an mp4.
#WHAT IS FFMPEG MAC OS X MAC OS#
Yet I read the other day that Mac OS Mojave will be the last version of the OS which will allow this version of Quicktime to run. I've always used Quicktime Player 7 Pro as the app I use to do this. Often times my workflow involves converting a series of images into a video. The Art of Form and Code Using FFmpeg to convert image sequences to video