24h-raspberry-live-on-bilibili

🎦树莓派/VPS驱动的b站直播弹幕点播台,代码写得很烂,看之前请吃点降压药。已计划重写

GPL-3.0 License

Stars
463
Committers
6

24h-raspberry-live-on-bilibili

b

demo:http://live.bilibili.com/16703

old

GitHubhttps://github.com/chenxuuu/24h-raspberry-live-on-bilibili.git

git.oschttps://gitee.com/Young_For_You/24h-raspberry-live-on-bilibili.git


smilecc

blive-raspberryhttps://github.com/smilecc/blive-raspberry


  • MV

  • cpu

  • bb

  • /

3B2017-09-07-raspbian-stretch.img

sudo apt-get update
sudo apt-get -y install autoconf automake build-essential libass-dev libfreetype6-dev libtheora-dev libtool libvorbis-dev pkg-config texinfo wget zlib1g-dev

x264

git clone https://code.videolan.org/videolan/x264.git
cd x264
./configure --host=arm-unknown-linux-gnueabi --enable-static --disable-opencl --enable-shared
make
sudo make install
cd ..
rm -rf x264

libmp3lame

sudo apt-get install libmp3lame-dev

libopus:

sudo apt-get install libopus-dev

libvpx:

sudo apt-get install libvpx-dev

libomxil-bellagio:

sudo apt-get install libomxil-bellagio-dev

ffmpeg

wget http://ffmpeg.org/releases/ffmpeg-4.0.tar.bz2
tar jxvf ffmpeg-4.0.tar.bz2
cd ffmpeg-4.0
sudo ./configure --arch=armel --target-os=linux --enable-gpl --enable-libx264 --enable-nonfree --enable-libass --enable-libfreetype  --enable-omx --enable-omx-rpi --enable-encoder=h264_omx --enable-mmal --enable-hwaccel=h264_mmal --enable-decoder=h264_mmal
make -j4
sudo make install
cd ..

ffmpegCompile ffmpeg with source Part 2 - -

python3

sudo apt-get install python3

pip3

sudo apt-get install python3-pip

python3mutagen

sudo pip3 install mutagen

python3you-get

sudo pip3 install you-get

python3moviepy

sudo pip3 install moviepy

python3aiohttp

sudo pip3 install aiohttp

python3numpy

sudo apt-get install libatlas-base-dev

python3requests

sudo pip3 install requests

screen:

sudo apt-get install screen
sudo apt install fontconfig
sudo apt-get install ttf-mscorefonts-installer
sudo apt-get install -y --force-yes --no-install-recommends fonts-wqy-microhei
sudo apt-get install -y --force-yes --no-install-recommends ttf-wqy-zenhei
#

#  --
fc-list :lang=zh-cn

ubuntu bilibili ffmpeg rtmp

sudo raspi-config

Advanced Options

Memory Split

256

&

git clone https://github.com/chenxuuu/24h-raspberry-live-on-bilibili.git
git clone https://gitee.com/Young_For_You/24h-raspberry-live-on-bilibili.git

var_set.py cookiebnetwork``name``send``Form data``csrf_token``csrf_tokencookie

(`console`)`document.cookiecookie`

csrf_token``Request head``csrf_token

post_dm.py``if(user == ''): #

#debugdebug

``phpphp

default_mp3mp3

default_picjpg1280x720

screen python3 play.py
#ctrl+a,ctrl+d
screen python3 bilibiliClient.py
#ctrl+a,ctrl+d
#pythonhttps://github.com/lyyyuna/bilibili_danmu
#python

issuepr

GPL

Contributors

Thanks goes to these wonderful people (emoji key):

This project follows the all-contributors specification. Contributions of any kind welcome!