Create zooming video loops into recursively self-tiled images.
Example: The Land-o-Lakes Butter Box
- C compiler
- GNU make
- ffmpeg
- Imlib2
- ImageMagick
- Create a symlink to your image file. Call it
input.img
. - Find the fixed point
(ox,oy)
of the self-tiling in rectangular coordinates, where(0,0)
is the top left and(width,height)
is the lower right. - Find the scaling factor of the self-tiling, which is a floating point number in the interval
[0,1]
. - Run
make video OX=$ox OY=$oy SCALE=$scale
. - Optionally, loop the output video
out.mp4
with this ffmpeg 1.1 video concatenation trick.
- The self-tiled images jitter slightly due to rounding error. Switching away from Imlib2 to something that supports floating point precision bitblts is necessary.
- The zoom accelerates. Linear zoom seems like a better default.
- The code isn't commented.
- The code was based on my simple demo of programmatically generated video.