{"id":15085984,"url":"https://github.com/jjling2011/vtrim","last_synced_at":"2026-02-04T14:06:30.654Z","repository":{"id":251441441,"uuid":"837430260","full_name":"jjling2011/vtrim","owner":"jjling2011","description":"去片头神器","archived":false,"fork":false,"pushed_at":"2024-08-14T00:53:13.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-17T00:41:33.056Z","etag":null,"topics":["cut","ffmpeg","opencv","python3","video"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jjling2011.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-08-03T01:07:14.000Z","updated_at":"2024-08-14T00:53:16.000Z","dependencies_parsed_at":"2024-08-03T03:16:01.046Z","dependency_job_id":"94dddd88-aaca-44e8-b015-55878a40924a","html_url":"https://github.com/jjling2011/vtrim","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"c61817a71837f19cf74f9734b319535104924650"},"previous_names":["jjling2011/vtrim"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jjling2011/vtrim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjling2011%2Fvtrim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjling2011%2Fvtrim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjling2011%2Fvtrim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjling2011%2Fvtrim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jjling2011","download_url":"https://codeload.github.com/jjling2011/vtrim/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjling2011%2Fvtrim/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263427324,"owners_count":23464844,"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":["cut","ffmpeg","opencv","python3","video"],"created_at":"2024-09-25T07:02:39.581Z","updated_at":"2026-02-04T14:06:25.600Z","avatar_url":"https://github.com/jjling2011.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"vtrim.py 是一个用来删除视频片头的 python 脚本。\n\n### 用法\n\n```bash\n# 安装需要的依赖，以 Archlinux 为例\nsudo pacman -S python python-opencv python-jsonpickle ffmpeg\n\n# 下载 vtrim.py 并添加可执行权限（略）\n\n# 学习视频前 10 秒片头，存入 clips.db 中\n# 每个参数的详细用法见 ./vtrim.py --help\n./vtrim.py --add --db clips.db --in sample.mkv --time 10\n\n# 创建文件夹用于存放裁剪后的视频\nmkdir out/\n\n# 根据学习到的 clips.db 裁剪视频\n# 其中 --in 参数可以指定多次，或者指定一个文件夹\n./vtrim.py --cut --db clips.db --in sample.mkv --out out/\n```\n\n### 进阶用法\n使用环境变量可以少输些参数，详见 [vtrim.sh](./vtrim.sh)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjjling2011%2Fvtrim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjjling2011%2Fvtrim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjjling2011%2Fvtrim/lists"}