stellarend
New Member
How would one go about encoding the RTMP stream to HLS and outputting the HLS to http on the same server?
rtmp {
server {
listen 1935;
chunk_size 4096;
application Stream1 {
live on;
record off;
}
application Stream2 {
live on;
record off;
}
}
}
Good day all,
I am pretty new to this. I set up the server on my raspberry pi 3 (debian) and was able to make it work by following the guide (that is great). But now I would like to add 3 of my other friend stream so that I can combine the 4 stream to go to my twitch. Anyone can give me an hand or direction ?
Thank you.
Yep, have tried that and most variations of, including the port number after the server ip. Any different options for connecting to the stream to test?try this in vlc replace <serverip> and <streamkey> with your settings
rtmp://<serverip>/show/<streamkey>
Yep, have tried that and most variations of, including the port number after the server ip. Any different options for connecting to the stream to test?
Thanks
worker_processes 1;
error_log logs/error.log debug;
events {
worker_connections 1024;
}
rtmp {
server {
listen 1935;
application live {
live on;
push rtmp://127.0.0.1/hls/stream;
}
application hls {
live on;
hls on;
hls_path temp/hls;
hls_fragment 8s;
}
}
}
http {
server {
listen 8080;
location / {
root html;
}
location /stat {
rtmp_stat all;
rtmp_stat_stylesheet stat.xsl;
}
location /stat.xsl {
root html;
}
location /hls {
#server hls fragments
types{
application/vnd.apple.mpegurl m3u8;
video/mp2t ts;
}
alias temp/hls;
expires -1;
}
}
}
It's possible. This might be of interest to you: https://github.com/arut/nginx-rtmp-module/issues/455Hi everyone
I'm wanting to setup NGINX so that I can stream from OBS to Twitch, YouTube and a WordPress site simultaneously. For the basic setup of all three services to have the same bandwidth being fed from OBS is very simple. However, I would like to have OBS at it's highest quality and then transcode at NGINX using ffmpeg so Twitch and YouTube output at 6Mbps to their servers, and the remaining bandwidth I would like to leave for my website. I'm not worried if the stream for the viewers is slightly delayed if the encoding need time, so long as all three streaming services are receiving their respective bandwidth. Is this possible to do?
Many thanks
Will
hey, so I've been messing around with this recently mostly out of boredom. My aim was to set it up so I can have a stream embedded on a page on my website, so I can link 1-2 friends once I'm streaming instead of using twitch/mixer/etc. Right now I have it so nginx is set up on a Windows AWS, and my OBS connects to the IP via there.
So I kind have two things here:
1. Are there any specific settings I can use in my nginx config to decrease the delay of HLS as much as feasible? Right now it's about 10 seconds, is lower possible?
2. If not, does anyone have a simple way of embedding an RTMP stream into a html page? I've tried so much with older versions of video.js and such with flash enabled, but I just keep running into issues getting it to work. If I directly link people the rtmp url, then it works in vlc, etc but I just can't get it in a browser.
this happen if your bitrate is too hight maximum is 15000kbitsHello . I have a Hikvision camera and working with obs, but after 10 minute the image is intrrerupting! What can I do?? Can help me someone?