How to convert SWF, DV or QT to GIF

Does anyone know of any software out there that will convert any of the export formats for TBS (SWF, DV or QuickTime) to the “GIF” format?

P.S. preferably free software.