After watching the Core Animation Demo presented by Steve Jobs. I decided to create the same wow effect using QEdje, just for fun.
The original video is so amazing that you could almost think that there were hundreds video player instances running at the same time, even your common sense saying the opposite.
I think the trick applied was to strip some frames from the videos and to create a live thumbnail for each video containing few seconds of animation.
To achieve that I created a script that read some frames from a given video and creates an animated edje object. I’ve created also a demo that simulates the original presentation, creating a wall of 1000 video previews running at the same time. It shows how easy we can create such effect with no more than 160 lines of python code.
The source of the demo and the generator script can be download here.
(Note: In order to be smooth you must run this demo using raster or opengl graphics system that is available in Qt 4.5)
And here is the final result:
(Note: The demo chooses randomly the wall pattern from a small set of previews, so in the video above you can see duplicated previews. But if you have time and enough memory you can generate several thumbnails in order to fill the wall)