明国三年一场雨

明国三年一场雨

热爱技术分享
telegram
email

How to achieve 7x24 online live streaming advanced version on YouTube, Bilibili, Douyin, TikTok, achieve unmanned live streaming on multiple platforms, VPS build unmanned 7x24 push streaming server.

  1. Install dependencies

Install on Ubuntu/Debian systems

apt update -y && apt install vim screen -y

Install on CentOS systems

yum update -y && yum install vim screen -y
  1. Install ffmpeg

Install ffmpeg on Ubuntu/Debian systems

apt install ffmpeg

Install ffmpeg on CentOS systems

yum install epel-release
rpm -v --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
yum install ffmpeg ffmpeg-devel

Check if the installation was successful

ffmpeg -version
  1. Download streaming script and upload live video

Download the streaming script: Click here to enter
Upload the video you want to stream to the root directory
Note: Currently only supports streaming of mp4 format videos in a loop, video file names cannot contain spaces or other special characters

  1. Open a new window (Note: This point is crucial)
screen -S stream
  1. Execute the run command (Note: Here you are executing the script file name, if the file name is changed, the 'stream.sh' should be changed to the corresponding file name)
bash stream.sh
  1. Open a new page to find the ID
screen -ls
  1. Then detach remotely
screen -d id
  1. Close the corresponding window
screen -X -S id quit
  1. Reopen the corresponding window
screen -r id
  1. Force stop streaming
pkill -f "ffmpeg"
Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.