{"id":13431183,"url":"https://github.com/hr3lxphr6j/bililive-go","last_synced_at":"2025-05-13T15:11:23.123Z","repository":{"id":40660012,"uuid":"118905883","full_name":"hr3lxphr6j/bililive-go","owner":"hr3lxphr6j","description":"一个直播录制工具","archived":false,"fork":false,"pushed_at":"2025-03-24T10:34:54.000Z","size":17551,"stargazers_count":4554,"open_issues_count":169,"forks_count":572,"subscribers_count":32,"default_branch":"master","last_synced_at":"2025-04-23T18:59:15.985Z","etag":null,"topics":["bilibili","douyu","ffmpeg","golang","longzhu","twitchtv","zhanqi"],"latest_commit_sha":null,"homepage":"","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/hr3lxphr6j.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":"2018-01-25T11:43:07.000Z","updated_at":"2025-04-23T12:32:06.000Z","dependencies_parsed_at":"2024-01-29T18:11:59.825Z","dependency_job_id":"860a2e1e-02f0-4b9f-8dbb-3ad088d381e4","html_url":"https://github.com/hr3lxphr6j/bililive-go","commit_stats":{"total_commits":277,"total_committers":37,"mean_commits":7.486486486486487,"dds":0.6389891696750902,"last_synced_commit":"71ca3a94bdbfca3afbab5e24b5f92a8e7eb7c2d3"},"previous_names":[],"tags_count":98,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hr3lxphr6j%2Fbililive-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hr3lxphr6j%2Fbililive-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hr3lxphr6j%2Fbililive-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hr3lxphr6j%2Fbililive-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hr3lxphr6j","download_url":"https://codeload.github.com/hr3lxphr6j/bililive-go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253969259,"owners_count":21992263,"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":["bilibili","douyu","ffmpeg","golang","longzhu","twitchtv","zhanqi"],"created_at":"2024-07-31T02:01:01.128Z","updated_at":"2025-05-13T15:11:18.109Z","avatar_url":"https://github.com/hr3lxphr6j.png","language":"Go","funding_links":[],"categories":["Go","开源类库","Open source library","直播相关工具"],"sub_categories":["视频","Video","直播脚本"],"readme":"# Bililive-go\n[![CI](https://github.com/hr3lxphr6j/bililive-go/actions/workflows/tests.yaml/badge.svg?branch=master)](https://github.com/hr3lxphr6j/bililive-go/actions/workflows/tests.yaml)\n[![Go Report Card](https://goreportcard.com/badge/github.com/hr3lxphr6j/bililive-go)](https://goreportcard.com/report/github.com/hr3lxphr6j/bililive-go)\n[![Github release](https://img.shields.io/github/release/hr3lxphr6j/bililive-go.svg)](https://github.com/hr3lxphr6j/bililive-go/releases/latest)\n[![Docker Pulls](https://img.shields.io/docker/pulls/chigusa/bililive-go.svg)](https://hub.docker.com/r/chigusa/bililive-go/)\n[![Bilibili](https://img.shields.io/badge/%E5%93%94%E5%93%A9%E5%93%94%E5%93%A9-%E6%9C%AA%E6%9D%A5%E7%A7%91%E6%8A%80%E7%8E%8B%E8%80%81%E8%8F%8A%E5%BD%95%E6%92%AD%E7%BB%84-ebb8d0.svg)](https://space.bilibili.com/18578203/)\n\nBililive-go是一个支持多种直播平台的直播录制工具   \n\n![image](docs/screenshot.webp)\n\n## 支持网站\n\n\u003ctable\u003e\n    \u003ctr align=\"center\"\u003e\n        \u003cth\u003e站点\u003c/th\u003e\n        \u003cth\u003eurl\u003c/th\u003e\n        \u003cth\u003e支持情况\u003c/th\u003e\n        \u003cth\u003ecookie\u003c/th\u003e\n    \u003c/tr\u003e\n    \u003ctr align=\"center\"\u003e\n        \u003ctd\u003eAcfun直播\u003c/td\u003e\n        \u003ctd\u003elive.acfun.cn\u003c/td\u003e\n        \u003ctd\u003e滋瓷\u003c/td\u003e\n        \u003ctd\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr align=\"center\"\u003e\n        \u003ctd\u003e哔哩哔哩直播\u003c/td\u003e\n        \u003ctd\u003elive.bilibili.com\u003c/td\u003e\n        \u003ctd\u003e滋瓷\u003c/td\u003e\n        \u003ctd\u003e滋瓷\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr align=\"center\"\u003e\n        \u003ctd\u003e战旗直播\u003c/td\u003e\n        \u003ctd\u003ewww.zhanqi.tv\u003c/td\u003e\n        \u003ctd\u003e滋瓷\u003c/td\u003e\n        \u003ctd\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr align=\"center\"\u003e\n        \u003ctd\u003e斗鱼直播\u003c/td\u003e\n        \u003ctd\u003ewww.douyu.com\u003c/td\u003e\n        \u003ctd\u003e滋瓷\u003c/td\u003e\n        \u003ctd\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr align=\"center\"\u003e\n        \u003ctd\u003e火猫直播\u003c/td\u003e\n        \u003ctd\u003ewww.huomao.com\u003c/td\u003e\n        \u003ctd\u003e滋瓷\u003c/td\u003e\n        \u003ctd\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr align=\"center\"\u003e\n        \u003ctd\u003e龙珠直播\u003c/td\u003e\n        \u003ctd\u003elongzhu.com\u003c/td\u003e\n        \u003ctd\u003e滋瓷\u003c/td\u003e\n        \u003ctd\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr align=\"center\"\u003e\n        \u003ctd\u003e虎牙直播\u003c/td\u003e\n        \u003ctd\u003ewww.huya.com\u003c/td\u003e\n        \u003ctd\u003e滋瓷\u003c/td\u003e\n        \u003ctd\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr align=\"center\"\u003e\n        \u003ctd\u003eCC直播\u003c/td\u003e\n        \u003ctd\u003ecc.163.com\u003c/td\u003e\n        \u003ctd\u003e滋瓷\u003c/td\u003e\n        \u003ctd\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr align=\"center\"\u003e\n        \u003ctd\u003e一直播\u003c/td\u003e\n        \u003ctd\u003ewww.yizhibo.com\u003c/td\u003e\n        \u003ctd\u003e滋瓷\u003c/td\u003e\n        \u003ctd\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr align=\"center\"\u003e\n        \u003ctd\u003eOPENREC\u003c/td\u003e\n        \u003ctd\u003ewww.openrec.tv\u003c/td\u003e\n        \u003ctd\u003e滋瓷\u003c/td\u003e\n        \u003ctd\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr align=\"center\"\u003e\n        \u003ctd\u003e企鹅电竞\u003c/td\u003e\n        \u003ctd\u003eegame.qq.com\u003c/td\u003e\n        \u003ctd\u003e滋瓷\u003c/td\u003e\n        \u003ctd\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr align=\"center\"\u003e\n        \u003ctd\u003e浪live\u003c/td\u003e\n        \u003ctd\u003eplay.lang.live \u0026 www.lang.live\u003c/td\u003e\n        \u003ctd\u003e滋瓷\u003c/td\u003e\n        \u003ctd\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr align=\"center\"\u003e\n        \u003ctd\u003e花椒\u003c/td\u003e\n        \u003ctd\u003ewww.huajiao.com\u003c/td\u003e\n        \u003ctd\u003e滋瓷\u003c/td\u003e\n        \u003ctd\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr align=\"center\"\u003e\n        \u003ctd\u003e抖音直播\u003c/td\u003e\n        \u003ctd\u003elive.douyin.com\u003c/td\u003e\n        \u003ctd\u003e滋瓷\u003c/td\u003e\n        \u003ctd\u003e滋瓷\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr align=\"center\"\u003e\n        \u003ctd\u003e猫耳\u003c/td\u003e\n        \u003ctd\u003efm.missevan.com\u003c/td\u003e\n        \u003ctd\u003e滋瓷\u003c/td\u003e\n        \u003ctd\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr align=\"center\"\u003e\n        \u003ctd\u003e克拉克拉\u003c/td\u003e\n        \u003ctd\u003ewww.hongdoufm.com\u003c/td\u003e\n        \u003ctd\u003e滋瓷\u003c/td\u003e\n        \u003ctd\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr align=\"center\"\u003e\n        \u003ctd\u003eYY直播\u003c/td\u003e\n        \u003ctd\u003ewww.yy.com\u003c/td\u003e\n        \u003ctd\u003e滋瓷\u003c/td\u003e\n        \u003ctd\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr align=\"center\"\u003e\n        \u003ctd\u003e微博直播\u003c/td\u003e\n        \u003ctd\u003eweibo.com\u003c/td\u003e\n        \u003ctd\u003e滋瓷\u003c/td\u003e\n        \u003ctd\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n\u003c/table\u003e\n\n### cookie 在 config.yml 中的设置方法\n\ncookie的设置以域名为单位。比如想在录制抖音直播时使用 cookie，那么 `config.yml` 中可以像下面这样写：\n```\ncookies:\n  live.douyin.com: __ac_nonce=123456789012345678903;name=value\n```\n这里 name 和 value 只是随便举的例子，用来说明当添加超过一条 cookie 的键值对时应该用分号隔开。\n至于具体应该添加哪些键，就需要用户针对不同网站自己获取了。\n\n## 在网页中修改设置\n\n点击网页左边的 `设置` 可以在线修改项目的配置文件，之后点击页面下面的 `保存设置` 按钮保存设置。\n如果保存后窗口提醒设置保存成功，那就是配置文件已经被写入磁盘了。如果是保存失败，那可能是配置文件格式问题或者遇到程序 bug，总之磁盘上的配置文件没变。\n\n在网页中即使保存配置成功也不一定表示相应的配置会立即生效。\n有些配置需要停止监控后再重新开始监控才会生效，有些配置也许要重启程序才会生效。\n\n## 网页播放器\n\n点击对应直播间行右边的 `文件` 链接可以跳转到对应直播间的录播目录中。  \n当然你点左边的 `文件` 一路找过去也行。\n\nhttps://github.com/hr3lxphr6j/bililive-go/assets/2352900/6453900c-6321-417b-94f2-d65ec2ab3d7e\n\n## Grafana 面板\n\ndocker compose 用户可以取消项目根目录下 `docker-compose.yml` 文件中 prometheus 和 grafana 部分的注释以启用统计面板。  \n这里是 [设置说明](docs/grafana.md)\n\n非 docker compose 用户需要自行部署 prometheus 和 grafana。  \n这里是 [一些建议](docs/grafana.md#%E6%89%8B%E5%8A%A8%E5%AE%89%E8%A3%85%E7%AC%94%E8%AE%B0)\n\n![image](https://github.com/hr3lxphr6j/bililive-go/raw/master/docs/dashboard.webp)\n\n\n## 依赖\n* [ffmpeg](https://ffmpeg.org/)\n\n## 安装和使用\n\n### Windows\nhttps://github.com/hr3lxphr6j/bililive-go/wiki/Install-Windows\n\n### macOS\nhttps://github.com/hr3lxphr6j/bililive-go/wiki/Install-macOS\n\n### Linux\nhttps://github.com/hr3lxphr6j/bililive-go/wiki/Install-Linux\n\n### docker\n\n使用 https://hub.docker.com/r/chigusa/bililive-go 镜像创建容器运行。\n\n例如：\n```\ndocker run --restart=always -v ~/config.yml:/etc/bililive-go/config.yml -v ~/Videos:/srv/bililive -p 8080:8080 -d chigusa/bililive-go\n```\n\n### docker compose\n\n使用项目根目录下的 `docker-compose.yml` 配置文件启动 docker compose 运行。\n\n例如：\n```\ndocker compose up\n```\n此时默认使用 `config.docker.yml` 文件作为程序的配置文件，`Videos/` 目录作为录制视频的输出目录。\n\nNAS 用户使用系统自带 GUI 创建 docker compose 的情况请参考群晖用 docker compose 安装 bgo 的 [图文说明](./docs/Synology-related.md#如何用-docker-compose-安装-bgo)\n\n## 常见问题\n[docs/FAQ.md](docs/FAQ.md)\n\n## 开发环境搭建（linux系统）\n```\n一、环境准备\n  1. 前端环境\n    1）前往https://nodejs.org/zh-cn/下载当前版本node（18.12.1）\n    2）命令行运行 node -v 若控制台输出版本号则前端环境搭建成功\n  2.后端环境\n    1)下载golang安装 版本号1.19\n      国际: https://golang.org/dl/\n      国内: https://golang.google.cn/dl/\n    2)命令行运行 go 若控制台输出各类提示命令 则安装成功 输入 go version 确认版本\n  3.安装 ffmpeg (以centos7为例)\n    1) yum install -y epel-release rpm\n    2) rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7\n    3) yum repolist\n    4) rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro\n    5) rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm\n    6) yum repolist\n    7) yum install -y ffmpeg\n二、克隆代码并编译(linux环境)    \n   1. git clone https://github.com/hr3lxphr6j/bililive-go.git\n   2. cd bililive-go\n   3. make build-web\n   4. make \n三、linux编译其他环境(以windows 为例)\n   1. GOOS=windows GOARCH=amd64 CGO_ENABLED=0 UPX_ENABLE=0 TAGS=dev GCFLAGS=\"all=-N -l\" ./src/hack/build.sh bililive\n   2.如果不需要调试，可以改成\n      GOOS=windows GOARCH=amd64 CGO_ENABLED=0 UPX_ENABLE=0 TAGS=release ./src/hack/build.sh bililive\n```\n\n## Wiki\n[Wiki](https://github.com/hr3lxphr6j/bililive-go/wiki)\n\n## API\n[API doc](https://github.com/hr3lxphr6j/bililive-go/blob/master/docs/API.md)\n\n## 参考\n- [you-get](https://github.com/soimort/you-get)\n- [ykdl](https://github.com/zhangn1985/ykdl)\n- [youtube-dl](https://github.com/ytdl-org/youtube-dl)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhr3lxphr6j%2Fbililive-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhr3lxphr6j%2Fbililive-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhr3lxphr6j%2Fbililive-go/lists"}