Use internal filters for gif format.

Microsoft's Generate Still Video filter has problems with animation rate and store every
frame (uncompressed) in memory, which for gifs with longer animation can be a problem.

Fixes #4678, #4856