{"id":19903381,"url":"https://github.com/zhimin-dev/ffmpeg-tool-rs","last_synced_at":"2025-03-01T07:21:15.922Z","repository":{"id":224211311,"uuid":"762691859","full_name":"zhimin-dev/ffmpeg-tool-rs","owner":"zhimin-dev","description":"ffmpeg tool collection","archived":false,"fork":false,"pushed_at":"2024-12-15T09:08:15.000Z","size":94,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-11T21:26:14.406Z","etag":null,"topics":["ffmpeg","video-combine"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/zhimin-dev.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-24T12:26:20.000Z","updated_at":"2024-12-20T08:01:21.000Z","dependencies_parsed_at":"2024-02-24T15:26:31.726Z","dependency_job_id":"acb18c68-0adc-45fd-93c4-7d96b9856370","html_url":"https://github.com/zhimin-dev/ffmpeg-tool-rs","commit_stats":null,"previous_names":["zhimin-dev/ffmpeg-tool-rs"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhimin-dev%2Fffmpeg-tool-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhimin-dev%2Fffmpeg-tool-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhimin-dev%2Fffmpeg-tool-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhimin-dev%2Fffmpeg-tool-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhimin-dev","download_url":"https://codeload.github.com/zhimin-dev/ffmpeg-tool-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241331006,"owners_count":19945272,"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":["ffmpeg","video-combine"],"created_at":"2024-11-12T20:23:25.326Z","updated_at":"2025-03-01T07:21:15.892Z","avatar_url":"https://github.com/zhimin-dev.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ffmpeg-tool-rs\n\n一个关于ffmpeg的常用工具\n\n## usage\n\n### 多个视频合并成一个\n\n比如当前有2个视频`IMG_1767.MOV`以及`IMG_1768.MOV`，需要将这2个视频合并成一个视频，\n你需要指定`-r IMG_(.*).MOV`并且指定开始的id(`--reg-file-start=`)以及结束的id(`--reg-file-end=`)\n则执行下面的命令即可,会得到一个`IMG_.MOV`的合并后的视频文件。\n\n```\nffmpeg-tool-rs combine -r IMG_\\(\\.\\*\\).MOV --reg-file-start=1767 --reg-file-end=1768 --same_param_index=1 --target_file_name=2222.mp4\n```\n\n当然也可以指定生成后的文件名，需要跟上`--target_file_name=your_filename.MOV`\n\n\n### 下载视频\n\n```\nffmpeg-tool-rs download --url=https://zmis.me/xxx.m3u8 --folder=1222\n```\n\n### 截取视频\n\n-i 需要截取的视频\n\n-s 视频开始的秒数\n\n-d 截取视频的时长\n\n```\nffmpeg-tool-rs cut -i=/your/local/file.mp4 -s=5 -d=10\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhimin-dev%2Fffmpeg-tool-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhimin-dev%2Fffmpeg-tool-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhimin-dev%2Fffmpeg-tool-rs/lists"}