Learn creative coding writing simple programs

114. How to create movies using Processing

Processing can be used to generate movies. This is usually achieved in two steps: first we write a program that saves hundreds of images to disk. The second step involves combining all those images into a movie. Many different programs can be used to combine images into a movie. We use a free command line program called ffmpeg, but feel free to use any other program you find on the Internet to achieve this.

In the first 6 minutes of this episode we write a program that creates an animated effect. You can skip this first part and start watching at 06:10 if you just want to find out how to save the images to disk, combine them into a movie and upload it to the Internet.

Tags: ffmpeg, video, youtube, frames, fps, combine

Code editor

You can make changes to the code below. Then

Questions and comments

Try to stay close to the topic of this episode. Use the Processing forums for help with unrelated Processing projects (or hire me for help ;-)

To indicate that a word in your comment is code, use the `backtick`. Example
Do `float` and `int` smell similar?
To highlight code blocks, surround it with ``` code-fences ``` like this:
``` void setup() { size(600, 600); } ```