Skip to content

Instantly share code, notes, and snippets.

@marcusschiesser
Created September 24, 2019 06:24
Show Gist options
  • Save marcusschiesser/b8e80b9616cd839536d54e39ac6c5b4b to your computer and use it in GitHub Desktop.
Save marcusschiesser/b8e80b9616cd839536d54e39ac6c5b4b to your computer and use it in GitHub Desktop.
Convert QuickTime movies to animated GIFs. Useful for uploading to Github
from gooey import Gooey, GooeyParser
@Gooey(target="ffmpeg", program_name='QuickTime To Gif v1.0', suppress_gooey_flag=True)
def main():
parser = GooeyParser(description="Convert QuickTime movies to GIFs")
ffmpeg = parser.add_argument_group('Frame Extraction Util')
ffmpeg.add_argument('-i',
metavar='Input Movie',
help='The movie that you want to convert to a GIF',
widget='FileChooser')
ffmpeg.add_argument('output',
metavar='Output GIF',
help='Where to save the converted GIF',
widget='FileSaver',
)
ffmpeg.add_argument('-s',
metavar='Resolution',
default="2808x1708",
help='Resolution of the GIF')
ffmpeg.add_argument('-r',
default=10,
gooey_options={'visible': False})
ffmpeg.add_argument('-f',
default="gif",
gooey_options={'visible': False})
parser.parse_args()
if __name__ == '__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment