NinjaStreamer HQ Simulcast Streaming feat OBS/ReLive, Ngnix & FFMPEG
But first we need to some background music for our work
Gaming Machine (OBS Studio)
- Stream > Stream Type: Custom streaming Sever
rtmp://encodingserver:1935/live/ - Output > Streaming
- Encoder:
H264/AVC Encoder (AMD Advanced Media Framework) - Preset:
Reset to Default - Target Bitrate:
25000(25mbps)
Gaming Machine (AMD Relive)
- Relive > Streaming
- Custom Stream
Enabled - Server URL
rtmp://encodingserver:1935/live/ - Connection Key
blank - Streaming Profile
Custom - Streaming Resolution
1080p - Streaming Bitrate
20 Mbps - Streaming FPS
60 - Audio Bitrate
192 kbps
Rant@AMD why cant people with non-16:9 display have a crop/pan option!
so that we can crop 1920x1200 to 1920x1080?
with ffmpeg you can do -vf "crop=1920:1080:60:60"
panning would also been nice...
Windows Encoding Server (Nginx/FFMPEG Simulcast)
Recommended Hardware for 1080p: Ryzen 1700/1600
Recommended Hardware for 720p: Ryzen 1500X
if your using a server on the intertubes please add auth or restrict by ip
http://nginx-rtmp.blogspot.no/2013/06/secure-links-in-nginx-rtmp.html
https://helping-squad.com/nginx-rtmp-secure-your-nginx-server/
- Download:
https://github.com/nwgat/ninjastreamer/archive/master.zip - Open
conf/nginx.confin notepad - Change
pushurls underliveout - Run
ninjastreamer.1080p.batfor 1080p 6mbps - Run
ninjastreamer.720p.batfor 720p 3mbps - in OBS Studio click
start streaming - Run
stop nginx.batto stop nginx - Run
kill nginx and ffmpeg.batto taskkill if it hangs
Linux Encoding Server (Nginx/FFMPEG Simulcast)
Recommended Hardware for 1080p: Ryzen 1700/1600
Recommended Hardware for 720p: Ryzen 1500X
if your using a server on the intertubes please add auth or restrict by ip
http://nginx-rtmp.blogspot.no/2013/06/secure-links-in-nginx-rtmp.html
https://helping-squad.com/nginx-rtmp-secure-your-nginx-server/
sudo apt-get install ffmpeg nano gitgit clone https://github.com/nwgat/ninjastreamer && cd ninjastreamernano conf/nginx.conf- Change
pushurls underliveout chmod 777 nginxchmod 777 ninjastreamer.*- Run
sh ninjastreamer.1080p.shfor 1080p 6mbps - Run
sh ninjastreamer.720p.shfor 720p 3mbps - in OBS Studio click
start streaming - Run
pkill -9 nginx && pkill -9 ffmpegto kill if it hangs
Notes
- Depending on your CPU you can change x264 quality with preset from ultrafast,superfast, veryfast, faster, fast, medium
- You can even use hardware encoders like
h264_amf,h264_nvencorh264_qs
*because i was bored
