Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello, I did try all, check very careful all details, not working… the Nginx works, I don’t have any error on the server… I am running a local server with no firewall… but the streaming is not viewable with VLC or web browser
There seems to be a typo in your config, or an error in mine.
When using OBS, the hls stream url is: obs_stream.m3u8
Not: stream.m3u8
This can be validated by checking the contents of /var/www/html/stream/hls while OBS is running.
Maybe that’s expected? But you statically specified obs_stream as the key earlier in the document, so I presume this is how the file is created in hls directory.
Anyway, a big THANK YOU for this article!
Owncast might be a better option. https://owncast.online/. I have been using it to stream my daughters gymnastics for a while now. Here is a little write up I have for deploying Owncast with Traefik using docker on a droplet. https://github.com/clemenko/owncast
Hi. I have done all the steps and it doesn’t work as expected. I use OBS to stream my webcam as RTMP and I listen the audio but not the webcam!!! No error in the nginx log!!! But when I stream the desktop it shows it!!! What the hell! When I use RTMP to stream the webcam to YouTube RTMP it is ok.
i find the issue
in last nginx.conf file need this
rtmp_auto_push on; rtmp { server { listen 1935; chunk_size 4096;
application live {
live on;
hls on; hls_path /media/channels/; hls_fragment 5s; hls_base_url http://192.168.1.135:81/hls/; hls_playlist_length 1m; wait_video on; hls_continuous on; idle_streams on; hls_fragment_slicing aligned; record off;
then worked fine for me
Hi! I’m having a problem when trying to load hls stream from a web player it shows “connection refused” status on the network inspector. I can do load the stream via VLC with no problem. Any clue? I already changed the ufw rules and checked it is enabled. also changed the source to obs_stream.m3u8 as commented by matthewdewitt.
Thank you so much for the clear and excellent article. I was able to get this done minus the following issue below!
As of today, 10/31/2022 the following command does not work properly. The file does not exist when I try to run it. I ended up getting the xsl file from the github repo. I did do a find on the system and was unable to find any stat.xsl.gz available, so it appears they may not package this file any longer with the rtmp module. Please update accordingly or let me know if I am wrong.
sudo gunzip -c /usr/share/doc/libnginx-mod-rtmp/examples/stat.xsl.gz > /var/www/html/rtmp/stat.xsl`
How To Set Up a Video Streaming Server using Nginx-RTMP on Ubuntu 20.04
thanks! i can play my obs stream on vlc player with rtmp://{domain_name}/live url. but i have a question: how to add https protocols to the hls or dash?
Hi, I was exploring how to create a streaming server and as usual I found this community tutorial. After some research, I found the Digital Ocean marketplace application: https://marketplace.digitalocean.com/apps/ant-media-server-community-edition, trying this application is a very seamless experience for me.
I found this simple how-to-start guide setting up a streaming server at their blog: https://antmedia.io/get-started-with-digitalocean-for-ant-media-server/