Git Product home page Git Product logo

bililive-go's Introduction

Bililive-go

CI Go Report Card Github release Docker Pulls Bilibili

Bililive-go是一个支持多种直播平台的直播录制工具

image

支持网站

站点 url 支持情况 cookie
Acfun直播 live.acfun.cn 滋瓷
哔哩哔哩直播 live.bilibili.com 滋瓷 滋瓷
战旗直播 www.zhanqi.tv 滋瓷
斗鱼直播 www.douyu.com 滋瓷
火猫直播 www.huomao.com 滋瓷
龙珠直播 longzhu.com 滋瓷
虎牙直播 www.huya.com 滋瓷
CC直播 cc.163.com 滋瓷
一直播 www.yizhibo.com 滋瓷
twitch www.twitch.tv TODO
OPENREC www.openrec.tv 滋瓷
企鹅电竞 egame.qq.com 滋瓷
浪live play.lang.live & www.lang.live 滋瓷
花椒 www.huajiao.com 滋瓷
抖音直播 live.douyin.com 滋瓷 滋瓷
猫耳 fm.missevan.com 滋瓷
克拉克拉 www.hongdoufm.com 滋瓷
快手 live.kuaishou.com 滋瓷 滋瓷
YY直播 www.yy.com 滋瓷
微博直播 weibo.com 滋瓷

cookie 在 config.yml 中的设置方法

cookie的设置以域名为单位。比如想在录制抖音直播时使用 cookie,那么 config.yml 中可以像下面这样写:

cookies:
  live.douyin.com: __ac_nonce=123456789012345678903;name=value

Grafana 面板

请自行部署 prometheus 和 grafana

image

依赖

使用例子

  • 本地
    ./bililive-go -i https://live.bilibili.com/1030 -i https://www.douyu.com/6655
    
  • docker
    docker run --restart=always -v ~/config.yml:/etc/bililive-go/config.yml -v ~/Videos:/srv/bililive -p 8080:8080 -d chigusa/bililive-go
    

开发环境搭建(linux系统)

一、环境准备
  1. 前端环境
    1)前往https://nodejs.org/zh-cn/下载当前版本node(18.12.1)
    2)命令行运行 node -v 若控制台输出版本号则前端环境搭建成功
  2.后端环境
    1)下载golang安装 版本号1.19
      国际: https://golang.org/dl/
      国内: https://golang.google.cn/dl/
    2)命令行运行 go 若控制台输出各类提示命令 则安装成功 输入 go version 确认版本
  3.安装 ffmpeg (以centos7为例)
    1) yum install -y epel-release rpm
    2) rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
    3) yum repolist
    4) rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
    5) rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm
    6) yum repolist
    7) yum install -y ffmpeg
二、克隆代码并编译(linux环境)    
   1. git clone https://github.com/hr3lxphr6j/bililive-go.git
   2. cd bililive-go
   3. make build-web
   4. make 
三、linux编译其他环境(以windows 为例)
   1. GOOS=windows GOARCH=amd64 CGO_ENABLED=0 UPX_ENABLE=0 TAGS=dev GCFLAGS="all=-N -l" ./src/hack/build.sh bililive
   2.如果不需要调试,可以改成
      GOOS=windows GOARCH=amd64 CGO_ENABLED=0 UPX_ENABLE=0 TAGS=release ./src/hack/build.sh bililive

Wiki

Wiki

API

API doc

参考

bililive-go's People

Contributors

kira1928 avatar dependabot[bot] avatar hr3lxphr6j avatar bj4501 avatar murphysking avatar cxumol avatar rootwhois avatar 7est avatar akkias7 avatar duya112233 avatar fr3027 avatar capric98 avatar futuretea avatar lightwind1 avatar w9315273 avatar shigemorihakura avatar tian-xie avatar sparanoid avatar ty114514 avatar dlxqfmx99 avatar lua12138 avatar liwufan avatar paomian avatar bugkun avatar redstone1994 avatar reylcc avatar xiaocsl avatar yaobiao131 avatar kcxg avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.