{"id":13859024,"url":"https://github.com/jpwright/giffy","last_synced_at":"2026-01-18T17:36:39.005Z","repository":{"id":12336610,"uuid":"14977379","full_name":"jpwright/giffy","owner":"jpwright","description":"command line tool for creating tumblr-style gifs","archived":false,"fork":false,"pushed_at":"2015-07-10T20:00:48.000Z","size":7072,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-06T03:06:33.333Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jpwright.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-12-06T08:19:53.000Z","updated_at":"2020-01-16T07:17:10.000Z","dependencies_parsed_at":"2022-09-10T14:41:15.764Z","dependency_job_id":null,"html_url":"https://github.com/jpwright/giffy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpwright%2Fgiffy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpwright%2Fgiffy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpwright%2Fgiffy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpwright%2Fgiffy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jpwright","download_url":"https://codeload.github.com/jpwright/giffy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225938750,"owners_count":17548544,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-05T03:02:29.942Z","updated_at":"2026-01-18T17:36:38.999Z","avatar_url":"https://github.com/jpwright.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"giffy\n=====\n\ncommand line tool for creating animated gifs from videos\n\n![futurama](https://github.com/jpwright/giffy/blob/master/farnsworth.gif?raw=true)\n\nRequirements\n------------\nThe following packages: `avconv`, `gifsicle`, and `imagemagick`. Use `apt-get` or `yum` to install.\n\nI have only tested on Ubuntu 12.04 LTS.\n\nInstallation\n------------\n`git clone https://github.com/jpwright/giffy.git`\n\nCommand line options\n--------------------\n\n    OPTIONS:\n       -h, --help             Show this message\n       -i, --input            Input file. Can be a wide variety of formats, try 'avconv -formats' to see a list.\n       -o, --output           Output file. \n       -s, --start            Start timestamp. Can be a number of seconds or in hh:mmss[.xxx] form.\n       -d, --duration         Duration. Should be a number of seconds (decimals OK)\n       -r, --resize           Resize operator. Can be a percentage (50%) or a width in pixels (50). Default is 100%.\n       -t, --caption          Caption operator. Should be a string, for example '-caption 'caption words here''. You can insert linebreaks into the caption by inserting '\\n'.\n       -l, --caption-height   Line height of caption, either as a percentage or in number of pixels.\n       -f, --fps              Frames per second for the output gif. Default is 24. Max is 48.\n       -z, --optimize         Optimization level. Default (and maximum) is 3.\n       -c, --compress         Enable compression to 256 colors. Will reduce output filesize at the expense of quality.\n       -v, --verbose          Verbose output.\n   \nExamples\n--------\n\n### Bare minimum\nTo make a gif called `out.gif` from a movie `in.mp4` consisting of the first 3 seconds:\u003cbr /\u003e\n`giffy -i in.mp4 -o out.gif -s 0 -d 3`\n\n### Resizing\nTo make that gif half the size in each dimension:\u003cbr /\u003e\n`giffy -i in.mp4 -o out.gif -s 0 -d 3 -r 50%`\n\nTo force that gif to be 200 pixels wide:\u003cbr /\u003e\n`giffy -i in.mp4 -o out.gif -s 0 -d 3 -r 200`\n\n### Captioning\nTo add a caption:\u003cbr /\u003e\n`giffy -i in.mp4 -o out.gif -s 0 -d 3 -t \"Hello world\"`\n\nTo add a caption with multiple lines:\u003cbr /\u003e\n`giffy -i in.mp4 -o out.gif -s 0 -d 3 -t \"Hello world\\nGoodbye world\"`\n\nTo add a caption with line height 24px:\u003cbr /\u003e\n`giffy -i in.mp4 -o out.gif -s 0 -d 3 -t \"Hello world\" -l 24`\n\nTo add a caption with line height 10% of the output gif:\u003cbr /\u003e\n`giffy -i in.mp4 -o out.gif -s 0 -d 3 -t \"Hello world\" -l 10%`\n\n### Speedup\nTo animate at 36 fps:\u003cbr /\u003e\n`giffy -i in.mp4 -o out.gif -s 0 -d 3 -f 36`\n\nNote that the default is 24, regardless of the fps of the input movie.\n\n### Optimization\nTo change the gif optimization level:\u003cbr /\u003e\n`giffy -i in.mp4 -o out.gif -s 0 -d 3 -z 1`\n\nSee the [gifsicle manpage](http://www.lcdf.org/gifsicle/man.html) for an explanation of gif optimization levels.\u003cbr /\u003e\n\nTo compress to 256 colors:\u003cbr /\u003e\n`giffy -i in.mp4 -o out.gif -s 0 -d 3 -c`\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpwright%2Fgiffy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjpwright%2Fgiffy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpwright%2Fgiffy/lists"}