Closed aguerson closed 4 years ago
@aguerson - Thank you for this valuable contribution.
@aguerson thanks for this tutorial for a local non docker installation.
please note, that we also provide a docker setup for a streamingserver, if you do not want to stream to other platforms, you can use this: https://github.com/aau-zid/live-streaming-server
@mtsonline Really cool ;)
Did you intend to adapt the resolution with the bandwith with some javascript tests ?
I found this
exec ffmpeg -i rtmp://localhost/stream/${DOLLAR}name
-c:a aac -b:a 128k -c:v libx264 -b:v 5000k -g 60 -r 30 -s 1920x1080 -profile:v baseline -preset ultrafast -tune zerolatency -f flv rtmp://localhost/hls/${DOLLAR}name_1080
-c:a aac -b:a 128k -c:v libx264 -b:v 2500k -g 60 -r 30 -s 1280x720 -profile:v baseline -preset ultrafast -tune zerolatency -f flv rtmp://localhost/hls/${DOLLAR}name_720
-c:a aac -b:a 128k -c:v libx264 -b:v 1000k -g 60 -r 30 -s 854x480 -profile:v baseline -preset ultrafast -tune zerolatency -f flv rtmp://localhost/hls/${DOLLAR}name_480 ;
You re-encode what you already encode with "BigBlueButton-liveStreaming". Did you have enought ressources on the same host ?
In my case, the BBB conf is encoded one time with BigBlueButton-liveStreaming and the stream to HTTPS with HLS is the same flow. it is just exploded in some pieces with the HLS convertion under /tmp
the two projects where developed independently - we already had the video server before we started with the liveStreaming ...
LiveStreaming only sends one resolution to the rtmp server, the streamingServer provides different resolutions as clients are expecting.
If you have improvements to that with the same or a better outcome we would appreciate your pull requests. In both repos, liveStreaming and the server, there are plenty of things that could be developed further :-)
cheers Martin
;)
I think you have the good approache with the project. For me, it not possible to re-encode 3 times in parallel the same flux. I would prefer to explode one time the pieces for the 3 resolutions, But I don't know if it is possible.
hello all!
i cant understaund ....WIDM!!
root@bbb:/home/bigbluebutton/bbb-live# ./startStream.sh
INFO:root:Starting browser!!
Traceback (most recent call last):
File "stream.py", line 258, in
i run startstream.sh in remotely ssh server, opening rooms and .. get that in console& ofcouse no any chrome not installed on remote server. is purly servers ssh
OK I did it !
Maybe you do not want to send your Live on Youtube and you want to stream yourself the live.
You have just to replace hostname.domain by your own.
To reproduce
0) create a CT from an OpenVZ server with ubuntu 18.04 LTS template ( or a lxd container ? ) in a moderate server ( Intel(R) Xeon(R) CPU X5690 @ 3.47GHz / 16G RAM )
1) create bigbluebutton user and customize it
2) create sub dir
mkdir -p /opt/bigbluebutton/bbb-live
3) change rights
4) you need to install the mandatory packages
5) Install BigBlueButton-liveStreaming
( I have a doubt here between the three commands; I have it in my history... )
6) Customize BigBlueButton-liveStreaming
vim /opt/bigbluebutton/bbb-live/startStream.sh
vim /opt/bigbluebutton/bbb-live/launch-pulseaudio.sh
vim /opt/bigbluebutton/bbb-live/bbb-live-config
chmod +x /opt/bigbluebutton/bbb-live/launch-pulseaudio.sh /opt/bigbluebutton/bbb-live/startStream.sh
6) Install RTMP-HLS Live Streaming server
( The version of nginx is very important here !)
./build_module.sh -v 1.19.1 https://github.com/arut/nginx-rtmp-module.git
vim /etc/nginx/nginx.conf
vim /etc/nginx/conf.d/bbb-live.conf
vim /etc/nginx/conf.d/blacklist.conf
( you have to copy favicon.ico from a bbb server )
vim /etc/nginx/html/byebye.html
vim /etc/nginx/html/crossdomain.xml
vim /etc/nginx/html/index.html
vim /etc/nginx/html/robots.txt
vim /etc/nginx/html/live.html
7) Restart nginx
8) Launch your BBB Live
Go to https://hostname.domain/live.html and enjoy !
Just for the fun
put a .mp4 video in /opt/bigbluebutton/bbb-live/videos/ Go to https://hostname.domain/videos/${your_video}.mp4 and enjoy !
It works to play externals videos in BBB ;)