{"id":19416815,"url":"https://github.com/davidalgis/convertvideotoimages","last_synced_at":"2026-04-25T22:33:11.972Z","repository":{"id":224387329,"uuid":"763098857","full_name":"davidAlgis/convertVideoToImages","owner":"davidAlgis","description":"Convert a video to a series of png","archived":false,"fork":false,"pushed_at":"2024-05-06T09:47:11.000Z","size":8,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-05T18:07:42.895Z","etag":null,"topics":["image","mp4","png","python","remove-background","video"],"latest_commit_sha":null,"homepage":"","language":"Python","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/davidAlgis.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":"2024-02-25T14:59:56.000Z","updated_at":"2025-05-08T17:05:57.000Z","dependencies_parsed_at":"2024-05-06T10:52:37.883Z","dependency_job_id":"28e7778e-b5d8-430f-aebb-f65003b74c8e","html_url":"https://github.com/davidAlgis/convertVideoToImages","commit_stats":null,"previous_names":["davidalgis/pyvideotoimages"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/davidAlgis/convertVideoToImages","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidAlgis%2FconvertVideoToImages","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidAlgis%2FconvertVideoToImages/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidAlgis%2FconvertVideoToImages/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidAlgis%2FconvertVideoToImages/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidAlgis","download_url":"https://codeload.github.com/davidAlgis/convertVideoToImages/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidAlgis%2FconvertVideoToImages/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32279655,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T18:29:39.964Z","status":"ssl_error","status_checked_at":"2026-04-25T18:29:32.149Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["image","mp4","png","python","remove-background","video"],"created_at":"2024-11-10T13:05:30.369Z","updated_at":"2026-04-25T22:33:11.936Z","avatar_url":"https://github.com/davidAlgis.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Video to PNG Converter\n\nThis Python script converts videos to a series of PNG images, allowing users to specify the frame rate at which images are saved. Additionally, it offers an option to remove the background from each image before saving.\n\n## Installation\n\nTo run this script, you'll need to ensure you have the required Python libraries. Install them using the `requirements.txt` file provided in this repository.\n\n\n## Installation\n\nTo run this script, you'll need to ensure you have the required Python libraries. Install them using the `requirements.txt` file provided in this repository.\n\n```\npip install -r requirements.txt\n```\n\n\n## Usage\n\nEnsure you have Python 3.6 or newer installed on your system. Clone this repository or download the script and `requirements.txt` file. Then, install the required libraries as mentioned above.\n\nTo use the script, run it from the command line with the desired options:\n\n```\npython video_to_png.py [options]\n```\n\n\n\n## Options\n\n- `-i`, `--input` \u003cinput_file\u003e: Specify the path to the input video file. If not provided, the script will attempt to use the first video file found in the current directory.\n\n- `-o`, `--output` \u003coutput_folder\u003e: Specify the path to the output folder where PNG images will be saved. If not specified, images are saved to a default `output` directory at the root of the program.\n\n- `-f`, `--fps` \u003cframes_per_second\u003e: Specify the number of frames per second to save. By default, all frames are saved (`-1`). Setting this to a positive number will save frames at the specified rate.\n\n- `-r`, `--remove_bg`: Enable background removal from each image before saving. By default, this feature is disabled.\n\n- `-c`, `--crop` \"((left, up), (right, lower))\": Crop the image with two corner left up and right down. By default, this feature is disabled.\n\n- `-h`, `--help`: Display help information showing all command-line options.\n\n## Example\n\nTo convert a video named `example.mp4` into PNG images, saving every frame, with the background removed, and write them to the `./output_images` directory, you can use the following command:\n\n\n```\npython video_to_png.py -i example.mp4 -o ./output_images -r\n```\n\nIf you want to save images at 10 frames per second without removing backgrounds, you would use:\n\n```\npython video_to_png.py -i example.mp4 -o ./output_images -f 10\n```\n\nIf you want to crop images too, you can use this updated command:\n\n```\npython video_to_png.py -i example.mp4 -o ./output_images -f 10 -c \"((345,342),(865,1660))\"\n```\n\n\n## Issues\n\nIf you encounter any issues or have suggestions for improvements, please submit them to the GitHub issue tracker for this project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidalgis%2Fconvertvideotoimages","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidalgis%2Fconvertvideotoimages","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidalgis%2Fconvertvideotoimages/lists"}