{"id":16881498,"url":"https://github.com/swhl/cropvideo","last_synced_at":"2026-04-18T12:02:53.786Z","repository":{"id":212769003,"uuid":"732221743","full_name":"SWHL/CropVideo","owner":"SWHL","description":"Crop video based on moviepy","archived":false,"fork":false,"pushed_at":"2024-04-23T14:02:02.000Z","size":2067,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-18T03:04:57.121Z","etag":null,"topics":["crop-video","cut-video","moviepy"],"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/SWHL.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,"zenodo":null}},"created_at":"2023-12-16T00:52:57.000Z","updated_at":"2024-04-23T14:02:05.000Z","dependencies_parsed_at":"2023-12-16T06:53:44.463Z","dependency_job_id":"512aac46-26db-47f1-938e-071b63cbca21","html_url":"https://github.com/SWHL/CropVideo","commit_stats":null,"previous_names":["swhl/cutvideo"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/SWHL/CropVideo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SWHL%2FCropVideo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SWHL%2FCropVideo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SWHL%2FCropVideo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SWHL%2FCropVideo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SWHL","download_url":"https://codeload.github.com/SWHL/CropVideo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SWHL%2FCropVideo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263743199,"owners_count":23504621,"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":["crop-video","cut-video","moviepy"],"created_at":"2024-10-13T16:02:52.426Z","updated_at":"2025-12-14T03:55:25.631Z","avatar_url":"https://github.com/SWHL.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n    \u003cdiv align=\"center\"\u003e\n    \u003ch1\u003e\u003cb\u003e\u003ci\u003eCrop ✄ Video 📀\u003c/i\u003e\u003c/b\u003e\u003c/h1\u003e\n    \u003c/div\u003e\n\n\u003ca href=\"\"\u003e\u003cimg src=\"https://img.shields.io/badge/Python-\u003e=3.6,\u003c3.12-aff.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"\"\u003e\u003cimg src=\"https://img.shields.io/badge/OS-Linux%2C%20Win%2C%20Mac-pink.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://pypi.org/project/crop-video/\"\u003e\u003cimg alt=\"PyPI\" src=\"https://img.shields.io/pypi/v/crop-video\"\u003e\u003c/a\u003e\n\u003ca href=\"https://pepy.tech/project/crop-video\"\u003e\u003cimg src=\"https://static.pepy.tech/personalized-badge/crop-video?period=total\u0026units=abbreviation\u0026left_color=grey\u0026right_color=blue\u0026left_text=Downloads\"\u003e\u003c/a\u003e\n\u003ca href=\"https://semver.org/\"\u003e\u003cimg alt=\"SemVer2.0\" src=\"https://img.shields.io/badge/SemVer-2.0-brightgreen\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/psf/black\"\u003e\u003cimg src=\"https://img.shields.io/badge/code%20style-black-000000.svg\"\u003e\u003c/a\u003e\n\n\u003c/div\u003e\n\n\n### 简介\n该仓库依托于[moviepy](https://github.com/Zulko/moviepy)库实现长视频自定义时间点多段切分\n\n⚠️注意：不支持`rmvb`格式视频裁剪\n\n#### 安装\n```bash\npip install crop_video\n```\n\n#### 命令行使用\n```bash\n# 视频路径 开始时间 结束时间 保存裁剪视频路径\n$ crop_video 1.mp4 00:00:00 00:00:20 result.mp4\n```\n\n#### Python脚本使用\n```python\nfrom crop_video import CropVideo\n\ncutter = CropVideo()\n\nvideo_path = \"tests/test_files/1.mp4\"\ncutter(video_path, \"00:00:00\", \"00:00:10\", \"output/2.mp4\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswhl%2Fcropvideo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswhl%2Fcropvideo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswhl%2Fcropvideo/lists"}