TV Server with Flussonic
Flussonic হলো একটি professional streaming server যেটা RTMP/UDP/HLS ইনপুট নিতে পারে এবং HLS/DASH আউটপুট দিতে পারে। DVR, Timeshift, Multi-bitrate streaming ইত্যাদি supported।
Prerequisites
- Ubuntu 20.04 / 22.04 Server (Static IP)
- Valid Flussonic License
- Firewall এ 80/443 port খুলে রাখা
1 Flussonic Install
sudo apt update
sudo apt install -y curl gnupg apt-transport-https ca-certificates
echo "deb [arch=amd64] https://repo.flussonic.com/ $(. /etc/os-release; echo $VERSION_CODENAME) main" | \
sudo tee /etc/apt/sources.list.d/flussonic.list
curl -fsSL https://repo.flussonic.com/flussonic.gpg | sudo gpg --dearmor -o /usr/share/keyrings/flussonic.gpg
sudo apt update
sudo apt install -y flussonic
2 Enable & Access UI
sudo systemctl enable --now flussonic
sudo systemctl status flussonic
# WebUI: http://server-ip:80 অথবা https://your-domain/
3 Stream Add করা
/etc/flussonic/flussonic.conf
edit করুন:
sudo nano /etc/flussonic/flussonic.conf
Example config:
stream mychannel {
url udp://239.0.0.1:1234; # অথবা rtmp://source/live/stream
dvr /var/lib/flussonic/dvr/mychannel 7d;
hls path=/flussonic/mychannel.m3u8;
}
sudo systemctl restart flussonic
প্লে করুন: http://server-ip/flussonic/mychannel.m3u8
4 Nginx Reverse Proxy (Optional)
sudo apt install -y nginx
sudo tee /etc/nginx/sites-available/flussonic.conf >/dev/null <<'NGX'
server {
listen 80;
server_name yourdomain.com;
location / {
proxy_pass http://127.0.0.1:80;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
NGX
sudo ln -s /etc/nginx/sites-available/flussonic.conf /etc/nginx/sites-enabled/
sudo nginx -t && sudo systemctl reload nginx