{"id":24332508,"url":"https://github.com/tensoraws/ffmpeg_for_bililiverecorder","last_synced_at":"2025-03-11T12:29:15.718Z","repository":{"id":271216096,"uuid":"912730275","full_name":"TensoRaws/ffmpeg_for_BililiveRecorder","owner":"TensoRaws","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-15T07:15:38.000Z","size":40,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-01-15T08:54:56.990Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/TensoRaws.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":"2025-01-06T09:23:42.000Z","updated_at":"2025-01-15T07:15:39.000Z","dependencies_parsed_at":"2025-01-07T02:30:22.283Z","dependency_job_id":null,"html_url":"https://github.com/TensoRaws/ffmpeg_for_BililiveRecorder","commit_stats":null,"previous_names":["tensoraws/ffmpeg_for_bililiverecorder"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TensoRaws%2Fffmpeg_for_BililiveRecorder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TensoRaws%2Fffmpeg_for_BililiveRecorder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TensoRaws%2Fffmpeg_for_BililiveRecorder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TensoRaws%2Fffmpeg_for_BililiveRecorder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TensoRaws","download_url":"https://codeload.github.com/TensoRaws/ffmpeg_for_BililiveRecorder/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243034045,"owners_count":20225271,"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":[],"created_at":"2025-01-18T02:19:58.184Z","updated_at":"2025-03-11T12:29:15.391Z","avatar_url":"https://github.com/TensoRaws.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 录播姬自动压制插件\n## 使用教程\n#### 1.安装 FFmpeg\n\n在使用之前，必须先安装 FFmpeg 并通过 `$PATH` 环境变量访问。\n\n有多种方法可以安装 FFmpeg，例如 [官方下载链接](https://ffmpeg.org/download.html)，或使用您选择的包管理器（例如 Debian/Ubuntu 上的 `sudo apt install ffmpeg`、OS X 上的 `brew install ffmpeg` 等）。\n\n#### 2.修改配置文件文件  \n\n配置文件说明如下\n|  参数   | 内容  |\n|  ----  | ----  |\n| workdir  | 录播姬工作目录 |\n| outputdir | 输出目录 |\n| ffmpegtype | 配置序号 |\n| ffmpegcom | 自定义参数 |\n|rmtime| 保留参数，暂无作用 |\n\n配置序号表\n|  配置序号   | 内容  | 备注 |\n|  ----  | ----  | ----  |\n|0|执行`ffmpegcom`中的参数||\n|10|`-i {fullworkpath} -c:v libsvtav1 -c:a copy -crf 40 -preset 6 {fulloutpath}`|av1压制,建议在ffmpeg7.x版本中使用|\n|11|`-i {fullworkpath} -c:v libx265 -c:a copy -preset slow {fulloutpath}`|h265压制，该方法有概率压制失败|\n\n\u003e **Note**: 其中`{fullworkpath}`为原文件路径，`{fulloutpath}`为输出文件路径\n\n#### 3.运行程序\n\n命令行运行`./ffmpegforBililiveRecorder`\n\n#### 4.添加webhook  \n\n在录播姬中的`设置`-\u003e`Webhook V2`填写`http://127.0.0.1:8080/ffmpeg`\n\n#### 可选步骤\n\nlinux中将录播姬作为高优先级启动，避免ffmpeg对录播姬的影响，方法为在录播姬启动命令前添加`nice -n -20`\n\n## 编译\n1.请安装golang`1.23.4`及以上版本  \n\n2.克隆并进入文件目录\n\n```bash\ngit clone https://github.com/TensoRaws/ffmpeg_for_BililiveRecorder\n\ncd ffmpeg_for_BililiveRecorder\n```\n\n3.请给予编译脚本权限\n\n```bash\nchmod 777 ./build.sh\n```\n\n4.运行编译脚本\n\n```bash\n./build.sh\n```\n\n## 鸣谢\n[wintbiit/brec-sdk-go](https://github.com/wintbiit/brec-sdk-go)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftensoraws%2Fffmpeg_for_bililiverecorder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftensoraws%2Fffmpeg_for_bililiverecorder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftensoraws%2Fffmpeg_for_bililiverecorder/lists"}