This tutorial is based on the tutorial by Stephen Jungels, with some explanation and consolidation targeted at noobs (like myself).
UPDATE: I did a fresh install of XCode and had to do one small addition to get everything to compile. For someone who isn’t great at installing libraries using Terminal, it wasn’t completely straightforward, but it works! You will need the Apple Developer Tools to make this work (so far as I can tell). Well, it might not be Lion (doing live musical performance with my laptop makes me leary of new operating systems) but after finding little recent info on installing ffmpeg on a Mac, I’ve put together this basic outline. With a small tweak, it appears to be ok – see below for details. UPDATE: Having switched recently to Lion, the install below didn’t quite work. It can also convert between arbitrary sample rates and resize video on the fly with a high quality polyphase filter. The “-c:v” option to specify the codec is also updated to “-vcodec” and “-acodec” It appears that ffmpeg can’t be found, but the solution is simple: specify the path to your ffmpeg install. While I really don’t know why, the previous sketch seems to break with a Java IOException error. Questions or suggestions are welcomed – feel free to use but please give credit! Processing’s built-in video library seems ok, but offers little in the way of control as compared to ffmpeg. And still more thanks for any explanation about Ffmpeg. With this, I would manage to make the recursive search, an paste into it. The sketch below runs ffmpeg’s commands within Processing ( as covered before) and exports a video from a series of still files. Just convert them keeping filename and metadata, and delete them, if it would be possible to read the list of the files to convert from a txt file that I can create, one file per line. The “png” codec is great, but will create rather large files mjpeg (MotionJPEG) also works well for graphics and hard edges (pixellated images, etc) H.264 is all-around good for photgraphic images. It now works!ĭetails are listed in the code itself, but it is most important to note that the codec is likely the most important factor in getting good quality. For the past week I have been wrangling with getting ffmpeg ( the open-source, command line video utility) to run in a Processing sketch and preserve the hard edges of graphical and/or intentionally pixelly video.