While walking around the hallways at RIPE59, a couple of people asked me how the movies were made, what tools did I use and such. So here's a short summary on what I did to produce these movies.
Basically, you need to do the following (or rather, I did the following):
- Have your data ready. Basically, you'll need to know what you want to show. For these movies the data comes from RIS table dumps, RIR's delegated files and the public IANA assignments pages, all processed in INRDB.
-
Make the frames for the movie, ie. the pictures which, when shown in a sequence, will give the feel of an animation:
- For every movie I made one frame (picture) per day.
- The basic format for each picture is PNM, as that is one of the simplest formats possible, and it's very easy to read and write from programs or even scripts.
-
The pictures themselves are produced by a simple C program (because of efficiency reasons, perl could also do the job). It reads textual input files that contain the data to be shown. The program:
- reads a background image (PNM)
- manipulates the bitmap by drawing sprites, rectangles and such and adding text (also as sprites)
- writes the output to a separate file (PNM)
- Once a frame is done in PNM, it's converted to PNG using pnmtopng, which is a part of the netpbm package . This is not strictly needed but makes life easier sometimes.
- Use some free tool to turn the individual picture into a movie. I used mencoder for this (which is a companion to mplayer ). It's also capable of embedding audio if you want.
- Upload the movie to YouTube or some other video site.
So basically, following the good old UNIX pholisophy, there are a number of smaller steps, and each step is done by a small and efficient component implementing just that step.
I case you're wondering, the mencoder command I used was something like:
mencoder mf://some-directory/*.png -mf fps=25:type=png -ovc lavc -lavcopts vcodec=msmpeg4v2 -oac copy -o output.mpeg
Of course you can play around with codecs, frame speeds (fps) if you'd like.
Don't forget the popcorn!
Comments 0
Comments are disabled on articles published more than a year ago. If you'd like to inform us of any issues, please reach out to us via the contact form here.