Question / Help OBS and NGINX on same computer rinning Windows 10 Pro

michaelbyrd

New Member
Hello, and thank you for your help in advance.
I have a machine at the elementary school that I am employed at, that is running OBS. We use it to record our school news. I would also like to make it the streaming server for the local network here at school, so that we can do live broadcasting. I have installed Nginx 1.17.xx Lizard, and it responds properly when I test it with "localhost" in the url. However, I get an error in OBS when I try to start streaming to it. I have read a lot, and put in the settings as instructed in all my readings. But I still get the error that OBS Failed to connect to the server. For the moment, this machine needs to be the recording/streaming machine. Please assist.
 

Narcogen

Active Member
File includes several recording attempts and zero stream attempts.


08:24:02.426: ==== Recording Start ===============================================
08:24:02.426: [ffmpeg muxer: 'simple_file_output'] Writing file 'C:/Users/Morning News/Videos/2020-02-20 08-24-02.mp4'...
08:24:02.587: [AMF] <Id: 5> Initial Frame Latency is 127993600 nanoseconds.
08:24:10.132: User switched to scene 'Good Morning'
08:24:10.340: User switched to scene 'Good Morning'
08:24:14.468: User switched to scene 'Scene 1'
08:24:14.660: User switched to scene 'Scene 1'
08:25:18.148: [ffmpeg muxer: 'simple_file_output'] Output of file 'C:/Users/Morning News/Videos/2020-02-20 08-24-02.mp4' stopped
08:25:18.148: Output 'simple_file_output': stopping
08:25:18.148: Output 'simple_file_output': Total frames output: 4532
08:25:18.148: Output 'simple_file_output': Total drawn frames: 4543
08:25:18.148: ==== Recording Stop ================================================


08:25:47.760: ==== Recording Start ===============================================
08:25:47.760: [ffmpeg muxer: 'simple_file_output'] Writing file 'C:/Users/Morning News/Videos/2020-02-20 08-25-47.mp4'...
08:25:47.921: [AMF] <Id: 6> Initial Frame Latency is 129449800 nanoseconds.
08:25:54.275: User switched to scene 'Scene 1'
08:25:54.451: User switched to scene 'Scene 1'
08:26:37.444: [ffmpeg muxer: 'simple_file_output'] Output of file 'C:/Users/Morning News/Videos/2020-02-20 08-25-47.mp4' stopped
08:26:37.444: Output 'simple_file_output': stopping
08:26:37.444: Output 'simple_file_output': Total frames output: 2969
08:26:37.444: Output 'simple_file_output': Total drawn frames: 2981
08:26:37.445: ==== Recording Stop ================================================

08:26:58.821: ==== Recording Start ===============================================
08:26:58.821: [ffmpeg muxer: 'simple_file_output'] Writing file 'C:/Users/Morning News/Videos/2020-02-20 08-26-58.mp4'...
08:26:58.987: [AMF] <Id: 7> Initial Frame Latency is 128532300 nanoseconds.
08:27:05.906: User switched to scene 'Scene 1'
08:27:06.794: User switched to scene 'Scene 1'
08:29:34.288: User switched to scene 'PowerPoint'
08:29:34.496: User switched to scene 'PowerPoint'
08:29:41.477: [ffmpeg muxer: 'simple_file_output'] Output of file 'C:/Users/Morning News/Videos/2020-02-20 08-26-58.mp4' stopped
08:29:41.477: Output 'simple_file_output': stopping
08:29:41.477: Output 'simple_file_output': Total frames output: 9748
08:29:41.477: Output 'simple_file_output': Total drawn frames: 9759
08:29:41.477: ==== Recording Stop ================================================
 

Narcogen

Active Member
13:08:53.433: [rtmp stream: 'simple_stream'] Connecting to RTMP URL rtmp://127.0.0.1/live...
13:08:53.434: [rtmp stream: 'simple_stream'] Interface: Software Loopback Interface 1 (type 24, 1073 mbps)
13:08:55.437: 127.0.0.1/live is offline. Try a different server (ECONNREFUSED).
13:08:55.437: [rtmp stream: 'simple_stream'] Connection to rtmp://127.0.0.1/live failed: -2


NGINX either isn't running, or is refusing the connection. It may be refusing if NGINX isn't properly configured. I assume you used the usual OBS-NGINX guide?

 

michaelbyrd

New Member
Yes I did. Also, I just uninstalled IIS and rebooted. But that didn't solve the problem. The latest log is attached.
 

Attachments

  • 2020-02-20 14-20-12.txt
    27.7 KB · Views: 12

michaelbyrd

New Member
Hey - I quit nginx, then executed it again, started the stream and it worked. It runs fine from my machine. I don't really know what the problem was. But its working. It seems when I enabled the delay under Advanced Settings, that seems to have done something. Either way, things are working fine. Thanks for your help.
 
Top