Giter Club home page Giter Club logo

blive-raspberry's Introduction

B站直播点歌台

blive-raspberry是一个为B站直播编写的点歌台,可运行在云主机或VPS上。

2.0版本更换了更稳定的网易云API,新增了Web UI,废弃了原有使用ffmpeg编码推流方式,改用为obs推流。

本项目灵感来自晨旭的点歌台,1.0版本功能已经失效,旧代码见master分支。

原由

原本我计划用Go复刻1.0的版本,让功能更稳定,但经过一番尝试,1.0项目推流使用的参数是将图片和音乐成每秒的3帧的视频,但是随着B站功能更新,B站的网页版直播拉流策略为每5秒钟最低100帧触发拉流动作,否则就会无限转圈圈。

以树莓派羸弱的性能(我只有树莓派3b),每秒3、4帧已经是极限,根本达不到每秒20帧的视频压制,所以2.0换了思路,主要给云主机和VPS适配,放弃了对树莓派的适配。

所以新版本的直播功能不再通过ffmpeg压制,而是转为使用docker在主机上运行一个obs studio来进行推流,UI方面使用了Web来绘制,歌曲和数据处理使用Golang来运算。

目前2.0在我的云主机(腾讯云 2核4G)上运行良好,能跑满24/s帧,程序说来说目前还有一些不稳定,后续还要近一步开发。

使用

安装与运行

release中提供了linux和windows的amd64版本的可执行文件,下载后直接打开即可使用。

程序默认端口18000,打开应用后在浏览器中访问http://localhost:18000即可看到界面。

配置

新版本提供UI来配置应用。

推流

目前您可以使用项目目录下的Dockerfile构建Docker镜像,稍后会提供官方的Docker镜像。

容器运行起来以后,会看到一个VNC链接,默认端口5901,使用该链接即可操作,界面如下。

Thanks

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.