{"id":17972320,"url":"https://github.com/xxxily/flv2mp4","last_synced_at":"2026-05-03T06:32:58.118Z","repository":{"id":62464946,"uuid":"560292104","full_name":"xxxily/flv2mp4","owner":"xxxily","description":"基于ffmpeg的批量flv快速转换成mp4文件的nodejs脚本命令","archived":false,"fork":false,"pushed_at":"2022-12-29T10:05:18.000Z","size":60,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-26T21:57:01.618Z","etag":null,"topics":["ffmpeg","flv","flv2mp4"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/xxxily.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}},"created_at":"2022-11-01T06:37:14.000Z","updated_at":"2022-11-01T09:10:48.000Z","dependencies_parsed_at":"2023-01-31T08:31:14.668Z","dependency_job_id":null,"html_url":"https://github.com/xxxily/flv2mp4","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xxxily/flv2mp4","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xxxily%2Fflv2mp4","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xxxily%2Fflv2mp4/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xxxily%2Fflv2mp4/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xxxily%2Fflv2mp4/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xxxily","download_url":"https://codeload.github.com/xxxily/flv2mp4/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xxxily%2Fflv2mp4/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32560414,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T03:21:47.309Z","status":"ssl_error","status_checked_at":"2026-05-03T03:21:43.884Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","flv","flv2mp4"],"created_at":"2024-10-29T16:11:50.441Z","updated_at":"2026-05-03T06:32:58.099Z","avatar_url":"https://github.com/xxxily.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flv2mp4\n\n\u003e 基于ffmpeg的批量flv快速转换成mp4文件的脚本\n\n## 使用说明\n\n使用前先确保你电脑已经安装了：[ffmpeg](http://ffmpeg.org/)  \n\n基本工作原理为执行ffmpeg的以下命令：\n\n```sh\nffmpeg -i input.flv -vcodec copy -acodec copy output.mp4\n```\n\n## 特性\n\n- 支持批量转换\n- 不重新编码，快速转换\n- 自动检测是否存在flv文件\n- 自动跳过已转换完成的文件\n- 可随时终止，无需担心出错\n- 只需一条命令，简单快捷\n- 选项丰富，满足更多场景\n- 支持人性化的选项输入交互\n\n### 安装脚本\n\n```sh\n# npm\nnpm install flv2mp4 --global\n\n# yarn\n\nyarn global add flv2mp4\n```\n\n中国大陆用户可使用阿里源进行加速安装\n\n```sh\n# npm\nnpm install flv2mp4 --global --registry=https://registry.npmmirror.com\n\n# yarn\n\nyarn global add flv2mp4 --registry=https://registry.npmmirror.com\n```\n\n### 使用脚本\n\n去到存在flv文件的目录，直接运行以下命令\n\n```sh\nflv2mp4\n```\n\n## 选项使用\n\n```sh\n# 使用人性化的选项输入交互\nflv2mp4 -q\n\n# 持续检查需要转换的文件\nflv2mp4 -w\n\n# 是否自动归档（暂支持按日期归档）\nflv2mp4 -a\n\n# 转换完成后，删除flv源文件\nflv2mp4 -r\n\n# 指定输入输出的工作目录，支持相对（可以是相对目录）\nflv2mp4 -c \"./flvInputDir\" -o \"./mp4OutputDir\"\n\n# 组合使用（持续检查需要转换的文件，转换完后按日期自动归档，且删除掉转换成功的flv源文件）\nflv2mp4 -war -c \"./flvInputDir\" -o \"./mp4OutputDir\"\n\n# 使用帮助\nflv2mp4 -h\n```\n\n## 选项帮助\n\n```sh\nflv2mp4 -h\n\n# 输出如下帮助信息：\n\nUsage: flvToMp4 [options]\nOptions:\n  -V, --version         output the version number\n  -d, --debug           是否输出相关调试信息 (default: false)\n  -q, --inquirer        是否使用inquirer来引导输入相关参数 (default: false)\n  -w, --watch           是否持续检查有需要转换的文件 (default: false)\n  -t, --timeout \u003ctype\u003e  指定重复执行转换检查的时间间隔，默认30秒 (default: 30)\n  -a, --archive         是否自动归档（暂支持按日期归档） (default: false)\n  -r, --remove          转换完成后，是否删除flv源文件 (default: false)\n  --no-skip             是否自动跳过不符合转换条件的文件\n  -c, --cwd \u003ctype\u003e      指定命令行的工作目录\n  -o, --output \u003ctype\u003e   指定转换成功后的输出目录\n  -h, --help            display help for command\n```\n\n## 本地调试\n\n将当前项目安装到全局\n\n```sh\nnpm i . -g\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxxxily%2Fflv2mp4","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxxxily%2Fflv2mp4","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxxxily%2Fflv2mp4/lists"}