Generating Movies, Version 2: FFMPEG

The whole Quicktime 7 and Automator script process seemed a bit tortured for something that should be really very simple. Just like I suspected there should be a way to do image processing via the command line, I wondered if I could do the same for movie creation. Enter FFMPEG.

Install FFMPEG

  1. Install Homebrew a command line package manager for lots of little system extensions that doesn’t disrupt the works of MacOSX.
  2. Install FFMPEG

Then all that is need to create a video from the files:


#REQUIRES FFMPEG
mogrify *.png -gravity south -crop 1240×860+0+0 +repage *.png
ffmpeg -framerate 4 -pattern_type glob -i '*.png' -c:v libx264 -pix_fmt yuv420p output.mp4

view raw

PNG_to_MP4.sh

hosted with ❤ by GitHub

I don’t totally understand all those settings, but they work.

References

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s