{"id":13901207,"url":"https://github.com/flavioribeiro/video-thumbnail-generator","last_synced_at":"2025-04-05T16:10:44.727Z","repository":{"id":50979208,"uuid":"46309835","full_name":"flavioribeiro/video-thumbnail-generator","owner":"flavioribeiro","description":":camera: Generate thumbnail sprites from videos.","archived":false,"fork":false,"pushed_at":"2024-03-19T18:25:47.000Z","size":28,"stargazers_count":316,"open_issues_count":9,"forks_count":69,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-03-29T15:10:01.671Z","etag":null,"topics":["frames","image","multimedia","photo","sprites","thumbnail-sprites","thumbnails","video","video-thumbnail-generator"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flavioribeiro.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-11-16T23:29:07.000Z","updated_at":"2025-03-07T15:40:39.000Z","dependencies_parsed_at":"2024-01-06T12:03:10.825Z","dependency_job_id":"43d78da0-e113-40e6-9281-da4f77ee8bf4","html_url":"https://github.com/flavioribeiro/video-thumbnail-generator","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flavioribeiro%2Fvideo-thumbnail-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flavioribeiro%2Fvideo-thumbnail-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flavioribeiro%2Fvideo-thumbnail-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flavioribeiro%2Fvideo-thumbnail-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flavioribeiro","download_url":"https://codeload.github.com/flavioribeiro/video-thumbnail-generator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247361695,"owners_count":20926643,"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":["frames","image","multimedia","photo","sprites","thumbnail-sprites","thumbnails","video","video-thumbnail-generator"],"created_at":"2024-08-06T21:01:00.402Z","updated_at":"2025-04-05T16:10:44.703Z","avatar_url":"https://github.com/flavioribeiro.png","language":"Python","funding_links":[],"categories":["Python","HarmonyOS","Media Tools","Media Processing"],"sub_categories":["Windows Manager","Batch Processing \u0026 Automation","Rust"],"readme":"# Video thumbnail generator\nGenerate thumbnail sprites from videos.\n\n## Why\n\n![image](https://cloud.githubusercontent.com/assets/244265/11234416/b1a67230-8d95-11e5-97a4-c2acdcbf72f7.png)\n\nAlmost all video players enhances user's seekbar navigation by providing a thumbnail preview of the moments where the user want to seek, so generate this sprites shouldn't be hard. This is a python script that, given a video, generates a thumbnail sprite image from it.\n\n## Build\n\n1. Clone it:\n\n```sh\n$ git clone git@github.com:flavioribeiro/video-thumbnail-generator.git\n```\n\n2. Then go to the project's folder:\n\n```sh\n$ cd video-thumbnail-generator\n```\n\n3. And finally run:\n```shell\n$ chmod a+x build \u0026\u0026 ./build\n```\n\n## Run\n```shell\n$ ./generator --help\nVideo Thumbnail Generator\n\nUsage:\n  ./generator \u003cvideo\u003e \u003cinterval\u003e \u003cwidth\u003e \u003cheight\u003e \u003ccolumns\u003e \u003coutput\u003e [\u003cparallelism\u003e]\n  ./generator (-h | --help)\n  ./generator --version\n\nOptions:\n  -h --help     Show this screen.\n  --version     Show version.\n  \u003cvideo\u003e         Video filepath.\n  \u003cinterval\u003e      Interval em seconds between frames.\n  \u003cwidth\u003e         Width of each thumbnail.\n  \u003cheight\u003e        Height of each thumbnail.\n  \u003ccolumns\u003e       Total number of thumbnails per line.\n  \u003coutput\u003e        Output.\n  [\u003cparallelism\u003e]   Number of files to process in parallel\n```\n\n## Example\n**Single file**\n```shell\n$ ./generator samples/sample.mp4 60 300 200 2 output/sample.mp4.png\n[sample.mp4] Extracting frame 1/3\n[sample.mp4] Extracting frame 2/3\n[sample.mp4] Extracting frame 3/3\n[sample.mp4.png] Savedacted.\nSaved!\n```\n\n**Directory**\n```shell\n$ ./generator samples/ 60 300 200 2 output/\n[sample copy.mp4] Extracting frame 1/3\n[sample.mp4] Extracting frame 1/3\n[sample copy.mp4] Extracting frame 2/3\n[sample.mp4] Extracting frame 2/3\n[sample copy.mp4] Extracting frame 3/3\n[sample.mp4] Extracting frame 3/3\n[sample copy.mp4.png] Saved\n[sample.mp4.png] Saved\n```\n\n![image](https://cloud.githubusercontent.com/assets/244265/11234316/b42913a6-8d94-11e5-865a-128ea8d801f7.png)\n\n\n## Contributing\n\n1. Fork it!\n2. Create your feature branch: `git checkout -b my-awesome-new-feature`\n3. Commit your changes: `git commit -m 'Add some awesome feature'`\n4. Push to the branch: `git push origin my-awesome-new-feature`\n5. Submit a pull request :]\n\n## License\n\nThis code is under [Apache License](https://github.com/flavioribeiro/video-thumbnail-generator/blob/master/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflavioribeiro%2Fvideo-thumbnail-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflavioribeiro%2Fvideo-thumbnail-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflavioribeiro%2Fvideo-thumbnail-generator/lists"}