{"id":22920871,"url":"https://github.com/capricorncd/ffmpeg","last_synced_at":"2026-05-11T03:14:02.555Z","repository":{"id":89896254,"uuid":"420996853","full_name":"capricorncd/ffmpeg","owner":"capricorncd","description":"ffmpeg","archived":false,"fork":false,"pushed_at":"2023-07-16T03:14:02.000Z","size":3110,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-07T08:48:40.710Z","etag":null,"topics":["cpp","ffmpeg","video","vim"],"latest_commit_sha":null,"homepage":"https://capricorncd.github.io/ffmpeg","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/capricorncd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-10-25T11:33:23.000Z","updated_at":"2022-02-28T06:45:56.000Z","dependencies_parsed_at":"2025-02-07T08:40:35.573Z","dependency_job_id":"ea919784-52e8-42d6-a17b-1e5172500a0d","html_url":"https://github.com/capricorncd/ffmpeg","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capricorncd%2Fffmpeg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capricorncd%2Fffmpeg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capricorncd%2Fffmpeg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capricorncd%2Fffmpeg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/capricorncd","download_url":"https://codeload.github.com/capricorncd/ffmpeg/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246651240,"owners_count":20811990,"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":["cpp","ffmpeg","video","vim"],"created_at":"2024-12-14T07:17:15.407Z","updated_at":"2026-05-11T03:13:57.530Z","avatar_url":"https://github.com/capricorncd.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# FFmpeg\n\nA complete, cross-platform solution to record, convert and stream audio and video.\n\nConverting video and audio has never been so easy.\n\n```shell script\n$ ffmpeg -i input.mp4 output.avi\n```\n\nhttps://www.ffmpeg.org/\n\n## Notes\n\n[Notes](./notes/)\n\n## 五、裁剪与合并\n\n### 裁剪\n\n```shell\n# How to Cut Video Using FFmpeg\nffmpeg -i input.mp4 -ss 00:00:00 -t 10:00:00 -c copy out.mp4\nffmpeg -i input.mp4 -ss 00:00:00 -t 10 out.ts\n# -to hh:mm:ss\n# ffmpeg -i input.mp4 -ss 00:03:09 -to 00:19:01 -acodec copy -vcodec copy out.mp4\nffmpeg -i input.mp4 -ss 00:03:09 -to 00:19:01 -c copy out.mp4\n```\n\n```shell\n# 按5小时一段分割视频\nffmpeg \\\n  -i input.mp4 \\\n  -c copy \\\n  -map 0 \\\n  -segment_time 05:00:00 \\\n  -f segment \\\n  -reset_timestamps 1 \\\n  output%03d.mp4\n```\n\n### 合并\n\n```shell\n# 合并\nffmpeg -f concat -i inputs.txt -vcodec copy -acodec copy out.mp4\n```\n\n```text\n# inputs.txt\n# file filename\nfile 1.ts\nfile 2.ts\n```\n\nError: `[concat @ 0x0000000] Unsafe file name someFileName`\n\n```shell\n# -safe 0\nffmpeg -f concat -safe 0 -i inputs.txt -vcodec copy -acodec copy out.mp4\n# or\nffmpeg -f concat -safe 0 -i inputs.txt -c copy out.mp4\n```\n\n[More](./notes/)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcapricorncd%2Fffmpeg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcapricorncd%2Fffmpeg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcapricorncd%2Fffmpeg/lists"}