{"id":26400789,"url":"https://github.com/unvercan/video-to-frames-converter","last_synced_at":"2025-03-17T14:37:43.884Z","repository":{"id":139687652,"uuid":"308939574","full_name":"unvercan/video-to-frames-converter","owner":"unvercan","description":"Video to Frames Converter","archived":false,"fork":false,"pushed_at":"2025-02-13T23:33:09.000Z","size":23,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-14T00:29:45.899Z","etag":null,"topics":["convert","frame","image","opencv","python","video"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":false,"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/unvercan.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}},"created_at":"2020-10-31T17:46:37.000Z","updated_at":"2025-02-13T23:31:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"aadebc8a-fcb5-4b77-9bbb-993a5cfa60c0","html_url":"https://github.com/unvercan/video-to-frames-converter","commit_stats":null,"previous_names":["unvercan/video-to-frames-converter"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unvercan%2Fvideo-to-frames-converter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unvercan%2Fvideo-to-frames-converter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unvercan%2Fvideo-to-frames-converter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unvercan%2Fvideo-to-frames-converter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unvercan","download_url":"https://codeload.github.com/unvercan/video-to-frames-converter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244051100,"owners_count":20389821,"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":["convert","frame","image","opencv","python","video"],"created_at":"2025-03-17T14:37:37.897Z","updated_at":"2025-03-17T14:37:43.874Z","avatar_url":"https://github.com/unvercan.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Video to Frames Converter\n\nA Python script that extracts frames from a video file and saves them as images.\n\n## Features\n\n- Extracts frames from a video and saves them in a specified format.\n- Allows specifying a start and end frame range.\n- Uses OpenCV for video processing.\n- Supports command-line arguments for flexibility.\n- Creates an output directory if it doesn't exist.\n\n## Prerequisites\n\nEnsure you have the following installed:\n\n- Python 3.7+\n- OpenCV (`cv2`)\n\nInstall dependencies using:\n\n```bash\npip install -r requirements.txt\n```\n\n## Usage\n\nRun the script using command-line arguments:\n\n```bash\npython main.py -i input.mp4 -o frames -p frame -f jpg -s 10 -e 100\n```\n\n### Command-Line Arguments:\n\n| Argument         | Description                           | Default     |\n|------------------|---------------------------------------|-------------|\n| `-i`, `--input`  | Path to the input video file          | `input.mp4` |\n| `-o`, `--output` | Directory to save extracted frames    | `frames/`   |\n| `-p`, `--prefix` | Prefix for frame filenames            | `frame`     |\n| `-f`, `--format` | Image format (e.g., jpg, png)         | `jpg`       |\n| `-s`, `--start`  | Start frame index                     | `0`         |\n| `-e`, `--end`    | End frame index (None for all frames) | `None`      |\n\n## Example\n\nExtract frames from `video.mp4`, save them as PNG, starting from frame 50 to 200:\n\n```bash\npython main.py -i video.mp4 -o output_frames -p img -f png -s 50 -e 200\n```\n\n## Project Structure\n\n```\nproject-folder/\n│── app.py          # Main processing logic\n│── main.py         # CLI entry point\n│── config.py       # Default configurations\n│── requirements.txt # Dependencies\n│── README.md       # Documentation\n```\n\n## License\n\nThis project is licensed under the MIT License.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funvercan%2Fvideo-to-frames-converter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funvercan%2Fvideo-to-frames-converter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funvercan%2Fvideo-to-frames-converter/lists"}