Add support for encoding videos.

Marvellous, absolutely marvellous.
Use maximum quality to prevent JPEG-like artifacts.
Allow drag and drop for videos, too.
Now with image and video support.