Placing clips according to a picture

So how do you do some complex compositing like this ?

It takes a lot of bad taste, and a segmenting tool

In this script we will use this image (generated with Inkscape):

../_images/compo_from_image.jpeg

We will find the regions of this image and fit the different clips into these regions:

(note that some pictures are distorted here as their size has been modified without care for their aspect ratio. This could be changed with a few more lines.)