{"id":25658582,"url":"https://github.com/nabikaz/video2gif","last_synced_at":"2025-07-20T15:03:39.894Z","repository":{"id":46803717,"uuid":"89104122","full_name":"NabiKAZ/video2gif","owner":"NabiKAZ","description":" A batch script for convert video to GIF files by FFmpeg.exe on Windows","archived":false,"fork":false,"pushed_at":"2021-09-24T16:53:29.000Z","size":288,"stargazers_count":65,"open_issues_count":1,"forks_count":12,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-19T18:51:39.341Z","etag":null,"topics":["batch-script","converter","ffmpeg","gif","video","video2gif"],"latest_commit_sha":null,"homepage":null,"language":"Batchfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NabiKAZ.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-22T22:58:47.000Z","updated_at":"2025-04-02T06:34:37.000Z","dependencies_parsed_at":"2022-08-12T13:01:19.973Z","dependency_job_id":null,"html_url":"https://github.com/NabiKAZ/video2gif","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/NabiKAZ/video2gif","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NabiKAZ%2Fvideo2gif","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NabiKAZ%2Fvideo2gif/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NabiKAZ%2Fvideo2gif/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NabiKAZ%2Fvideo2gif/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NabiKAZ","download_url":"https://codeload.github.com/NabiKAZ/video2gif/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NabiKAZ%2Fvideo2gif/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266143941,"owners_count":23883069,"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":["batch-script","converter","ffmpeg","gif","video","video2gif"],"created_at":"2025-02-24T00:27:34.934Z","updated_at":"2025-07-20T15:03:39.876Z","avatar_url":"https://github.com/NabiKAZ.png","language":"Batchfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# video2gif\n\n![sample gif file generated](sample.gif)\n\nA batch script for convert video to GIF files by FFmpeg.exe on Windows.\n\n## Installation\n* Clone the repo\n* Install [FFmpeg](http://ffmpeg.zeranoe.com/builds/) for Windows.\n* Make sure the `ffmpeg.exe` and `video2gif.bat` are on your systems path.\n\n## Usage\n**Method #1:** Anywhere you can use it by this command in `cmd`:\n```\nvideo2gif myvideo.mp4\n```\nThen you have `myvideo.gif` in current directory.\n\nIf `myvideo.gif` there is existed, question from you for overwrite it.\n\n**Method #2:** You can just drag and drop `.gif` file on the `video2gif.bat` file.\n\n## Advance Usage\n\n```\nvideo2gif SOURCE_FILE [OPTIONS]\n```\n\n## Options:\n```\n  SOURCE_FILE      Source video file name for convert\n                   also you can drag and drop source video file to this batch file directly\n  -o               Output destination .GIF file name\n                   if not set it, use video source file name with new .gif extension\n  -y               Overwrite destination file\n                   if not set it, appears prompt for overwrite destination file\n  -f               Frame per second (fps)\n                   default: 15\n  -w               Width scale of destination gif file\n                   in pixel unit and (-1) for use original width, default: -1\n  -s               Start time of video source for crop\n                   in second or time format (ex. 1:12), if set it, so must be set (-d) param\n  -d               Duration time of video source for crop\n                   in second, if set it, so must be set (-s) param\n  -c               Maximum number of colors to the palette\n                   must be (\u003c=256), default: 256\n  -q               Quality of destination gif file\n                   must be a number between 1(low) to 6(high), default: 5\n```\n\n## Examples:\n```\n  video2gif sample.mp4\n  video2gif sample.mp4 -y -w 60 -q 1 -f 10\n  video2gif sample.mp4 -o new_file.gif -y -w 100 -f 10 -s 10 -d 5\n  video2gif sample.mp4 -s 0:30 -d 20 -c 128 -q 6\n  video2gif sample.mp4 -s 1:16.5 -d 8.3\n```\n\n## Tips\nSpecial thanks to [this article](http://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnabikaz%2Fvideo2gif","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnabikaz%2Fvideo2gif","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnabikaz%2Fvideo2gif/lists"}