Convert a video element to an animated GIF in the browser.