Why not approach it from another direction and go for an open-source image gallery program?
Coppermine is an example:
http://coppermine-gallery.net/index.php
and it supports video, last time I checked anyway.
Demos here:
http://coppermine-gallery.net/demo/cpg13x/
You server would need to provide one MySql database and ImageMagick or GD for the graphics and support Apache.
hth
Charles