I think it should be done like this:
If a a thumbnail is added manually > use it.
If there is no thumbnail > generate it.

got lots of interesting google hits on this:
movie thumbnail generator server side vBulletin