Giter VIP home page Giter VIP logo

nginx-obs-automatic-low-bitrate-switching's People

Contributors

715209 avatar adraenyse avatar b3ck avatar datagutt avatar dependabot[bot] avatar digibitdk avatar edinsof avatar gwalexofficial avatar irlkitcom avatar jhn-k avatar ladelltwitch avatar novex avatar onijima avatar otivedani avatar rationalsa avatar romanovdaily avatar thib3113 avatar ultr4dev avatar victorjaunts avatar viniciusbezvieira avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nginx-obs-automatic-low-bitrate-switching's Issues

error (node:7801) in NPM Console, but everything works?

Hey @ALL - i have a problem... I have OBS installed on a Linux Ubuntu server. I left out the whole part with NGINX and got the media server running. The whole system works, but I got this error message in Termninal @ NPM Start after a video signal is arriving... But the system is normaly running... what is the issue?
I only configured the config.json

[4/26/2021] [4:23:47 PM] [NMS] › ✖️ error (node:7801) UnhandledPromiseRejectionWarning: #
[4/26/2021] [4:23:47 PM] [NMS] › ✖️ error (node:7801) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
[4/26/2021] [4:23:47 PM] [NMS] › ✖️ error (node:7801) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

I put the following Line in the config.json in between of the line 15 and 29

"rtmp": {
"application": "publish",
"key": "HERE IS MY STREAMING KEY XYZ"
},
"nodeMediaServer": {
"rtmp": {
"port": 1935,
"chunk_size": 60000,
"gop_cache": true,
"ping": 30,
"ping_timeout": 60
},
"http": {
"port": 8000
}
},

The server works ... Live image arrives, scene switches to LIVE, when I finish it changes to BRB.
But I would like to know the error in the console

Can not See / Connect to Stream

Hi,

i successfully Configurated everything. Everything is working... Chat Commands, Scene Switching and Connecting to rtmp Server via Streamelemtents App on Android and also GoPro.

But in my OBS isnt any Stream showing up. And in VLC it shows me: avcodec error: Failed to open rtmp://localhost:1935/publish/live: Operation not permitted

What i am doing wrong?

Best wishes,
Nevs08

no error message but black rtmp video stream

Hi i do all like the manual but when i stream to nginx server and from nginx server to obs studio i get only a black screen.
The system switch automaticly the scene, thats function also the system detect a video rate, but i dont get the video. ^^

Help Please

Sorry i am new to this stuff But I have a problem

x Error [NGINX] Error Fetching Stats

No idea how to fix that

Connection failed: java.net.connectexception: failed to connect to /[IP]

This is the first time I am trying to set up something on from github that worked for me questioning I have my setups right.
I've tried to setup something for Valheim and a websocket but never worked so didn't pull through.

This is the first time I was able to work with instruction on github where everything worked:
Streaming from phone to OBS RTMP, auto switch scenes, twitch command recognition.
Until, I tried to do it not on wifi. When I try to use 4G network the app I use (streamlabs mobile) gives me this problem:

Connection failed:
java.net.ConnectEcxeption: failed to connect to /[IPADRES] (port 1935) from /:: (port 39016): connect failed: ETIMEDOUT (Connection timed out)

I am trying to figure out myself atm. But thought in meanwhile I'll post it here if someone had this problem too and can help me with figuring this out.

PSP. I have a ZTE H369A modem.

UnhandledPromiseRejectionWarning

Hey,

i'm coming up with these errors:

(node:23811) UnhandledPromiseRejectionWarning: #<Object>
(node:23811) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 20)

There is no sound after rebooting the phone or the encoder

There is no sound in "normalScene" after rebooting the device (Phone or HDMI Encoder). In "refreshScene" and "lowBitrateScene" there is sound. Only restarting the OBS helps.

In the mixer of scene "normalScene", there is sound and is listened through OBS. But on the broadcast of this scene there is no sound. This happens only if you restart the broadcast device (Phone or HDMI Encoder).

Multiple Normal, BRB and LOW Scenes.

It would be cool if we had an addition layer of Normal, BRB and LOW Scenes, that would back on each other, like for example I'm streaming to NormalScene2, from NormalScene2 it can only go to offlineScene2 or lowbitrateScene2, and vice versa if I am on NormalScene it will only use offlineScene and lowbitrateScene2. this would help up in really only my case, I don't see anyone else using this. But it would be a neat option.

Kind Regards,
-b3ck

Add support for PingOS

Hello, would it be possible to add support for this version of Nginx server? https://github.com/pingostack/pingos
It supports h265 and has better performance than the regular Nginx server in my experience.
I have tried to make it work as if it was a normal Nginx server but it doesn't seem to take any of the stats. I can stream to it but doesn't change scenes automatically or display bitrate.

trovo.live

Hello from Germany, is it possible that the new streaming platform Trovo.live could be integrated?. Thanks a lot

I have set this up 3 times off the Video and wont work.

I live stream IRL Saltwater fishing streams and this obs low bitrate switching would help me a ton but no matter what I do even after 3 uninstalls and start overs, I just keep getting x Error [NGINX] Error Fetching Stat. Please help. I followed the video exactly and my port forwarding shows the ports being open so I am lost. Thanks and here is my Nginx config file, its just like the video.

"obs": {
"ip": "localhost:4444",
"password": "mypassword",
"normalScene": "LIVE",
"offlineScene": "BRB",
"lowBitrateScene": "LOW",
"refreshScene": "REFRESH",
"lowBitrateTrigger": 800,
"highRttTrigger": 2500,
"refreshSceneInterval": 3000,
"requestMs": 2000,
"onlySwitchWhenStreaming": false
},
"rtmp": {
"server": "nginx",
"stats": "http://localhost/stat",
"application": "publish",
"key": "live"
},
"twitchChat": {
"channel": "deucenickalo",
"botUsername": "deucebot7",
"oauth": "myoauth",
"enable": true,
"prefix": "!",
"enablePublicCommands": true,
"publicCommands": ["bitrate"],
"enableModCommands": true,
"modCommands": ["refresh", "fix", "trigger", "sourceinfo", "obsinfo"],
"enableAutoSwitchNotification": true,
"enableAutoStopStreamOnHostOrRaid": true,
"adminUsers": ["deucenickalo", "deucebot7", "doctordilbuck", "marbear__"],
"alias": [["r", "refresh"], ["f", "fix"], ["b", "bitrate"]]
},
"language": "en"
}

Error Fetching Stats & Can't stream to NGINX Server

Thanks for creating this awesome piece of software! I'm having two issues with NOALBS:

  1. I cannot stream my phone to my NGINX server - I seem to have NGINX set up properly. I can see the stats page, along with the NGINX splash page in the browser. The logs do not show any errors and the program seems to be running correctly. However, when trying to connect my phone to rtmp://myiphere:port/publish/live, my camera cannot connect to it.

  2. When running NOALBS, I get the error "[NGINX] Error fetching stats" - I suppose this is related to number 1, however, I can see my stats page and the NGINX splash page, so all of it looks like it should be running fine.

Some info on this computer: It's an intel compute stick, gen 1 (intel atom processor) that I'm intending to use as an IRL streaming device. I'm not sure if NGINX can be run on this kind of hardware or not. Attached are my config.json for NOALBS and my nginx config. Thanks!

CONFIG.JSON
config json.txt

NGINX.CONF
nginx conf.txt

[NGINX] Error fetching stats

Hi all, I've configured everything in the guide RTMP stream to NGINX server working fine I can read the stats page. However when I end the RTMP connection on my phone to the server (Stop streaming) it does not switch to my offline scene it just sits there saying
[NGINX] Error fetching stats
[NGINX] Error fetching stats
[NGINX] Error fetching stats

Until I start the RTMP stream\connection again.

Tried this on a windows setup and to external centos 8 setup same issue

Danish language-file here :)

I could not figure out, how to use 'Pull requests', so danish language file is attached to this message.

Just close this when you like :)

dk.zip

/Michael.

All Good, But Errors on !fix Command

Hello, I installed the new version 1.9.2. All commands run, stream and switch work. Only that! Fix doesn't work. I upload error picture. And I also had a picture from earlier version 1.6. and 1.7. and no problems with it. Does anyone have any idea where to look for errors?

1
2

Is it possible to send a chat message in the same code block that detects instability?

I would like to modify the code block that activates the "low bitrate" or "RIP" scenes to send a message in Twitch chat letting me know.

I want to avoid adding a timer for checking the !bitrate response since you already have optimized the code to detect these events elsewhere. But if it is impossible to interact with IRC in that code block, could you tell me where the commands are created so I can do this brute force method?

srt-live-server parse stats page

Hi, first of all thanks for sharing your great project!
When used with nginx everything works as it supposed to, however I have problems using the srt-livestream-server as stats input. The bitrate-switcher configuration currently looks like this:

"rtmp": {
        "server": "srt-live-server",
        "stats": "http://127.0.0.1:8181/stats",
        "publisher": "input/live/test"
    },

When the status page is called manually, everything looks fine, as the attached image shows:
srt-stats

Nevertheless the bitrate-switcher seems to have problems to parse the status page as it reports:
[OBS] » × error [STATS] Something went wrong at getting the RTMP server, did you enter the correct name in the config?

Maybe I'm doing wrong?
Thanks in advance!

Long blacksceen

Hi when i go live with a mobile to sent the livestream to my server with the ngix and the obs i have 20-30 sec a black screen and then comes the livestream, but the system switch after 2 seconds to live scene when i start the stream via mobile.

Chat Command Confirmation

It would be great to have confirmation in chat once a chat command is successfully executed in OBS.

Example; you type:
!switch BRB the script uses the Twitch account associated with the oauth in the config.json and says: b3ckBOT: Scene successfully switched to "BRB".

I already use a !stop command using StreamLabs Chatbot, but it doesn't always work =/

Thanks,
-b3ck

Add a second RTMP server

Hey hey,
first of all: GREAT PIECE OF SOFTWARE. THANK YOU SO MUCH!!!

Now I have a request, if possible: Is it possible to expand NOALBS to support a second RTMP channel? So if there is a signal on any of the two it will switch scenes to the matching one and if not go to BRB?

Thank you in advance,
Kashayar

[NGINX] Error fetching stats

over 2 weeks of work on this and I believe that this is the last step to getting this working 100%.
I have gone through all that I can and have had no luck fixing [NGINX] Error fetching stats.

I've attached my nginx.conf file i can access the http://10.0.0.193:8080/stat page just fine and see the info there but [OBS] » × error [NGINX] Error fetching stats can't

nginx conf.txt

More specificity on errors please...

[11/27/2020] [4:21:38 AM] [OBS] › ✖ error Can't connect or lost connnection
[11/27/2020] [4:21:38 AM] [OBS] › ℹ info Trying to reconnect in 5 seconds

"can't connect or lost connection" to what? How do I debut this if I don't know what connection failed. Is this for connecting to chat which succeeded 5 lines before, or is this failing to detect the nginx server (which I haven't configured yet)

ERROR NPM / scene Switch works with Prism correctly, but not with GoPro?

When i go Live with my Cellphone... Everything works fine... Im using Prism App... When i end the stream, NMS throws me from Live to BRB....
Same with the GoPro... When i end the stream in my app, everything works fine...

BUT.... When I disconnect the GoPro from the power in live mode (simulating an LTE dead zone) - it takes a long time for NMS to notice this... The GoPro is Offline 10 Minutes, but !bitrate shows me a current connection...

[28` Apr 22:49:26] @irrB0T: Aktuelle Bitrate: 3856 Kbps // Where I unplugged my GoPro
[28 Apr 22:49:43] @irrB0T: Aktuelle Bitrate: 2876 Kbps
[28 Apr 22:49:56] @irrB0T: Aktuelle Bitrate: 2055 Kbps // Low Bitrate Detection switched to LOW in this time (works)
[28 Apr 22:50:32] @irrB0T: Aktuelle Bitrate: 1185 Kbps
[28 Apr 22:50:53] @irrB0T: Aktuelle Bitrate: 959 Kbps
[28 Apr 22:51:45] @irrB0T: Aktuelle Bitrate: 642 Kbps
[28 Apr 22:53:53] @irrB0T: Aktuelle Bitrate: 354 Kbps
[28 Apr 22:56:45] @irrB0T: Aktuelle Bitrate: 221 Kbps
[28 Apr 22:58:39] @irrB0T: Aktuelle Bitrate: 177 Kbps
[28 Apr 23:02:23] @irrB0T: Aktuelle Bitrate: 127 Kbps
.............

The Problem is, when I simulate a LTE dead zone, I cannot reconnect to the Server with my GoPro, because there is an error with the URL.... It hangs up with recognizing the bit rate....

[28 Apr 23:06:04] @irrB0T: Aktuelle Bitrate: Offline
The !bitrate shows me after 15 Minutes - the Stream is Offline

Why does the bitrate take so long to drop to 0?

What I have already tested:
In Prism App - Start Livestreaming- closed prism app. Scene Switched to BRB - WORKS PERFEKT
In Prism App - Start Livestreaming again- OBS Switched to Live. shut down mobile internet. scene switched to BRB. - WORKS PERFEKT

The program works perfectly in the Prism app. I think it just doesn't work with the GoPro on Connection lost and i really dont know why 😦

I just can do this step after connection lost:
I have to closed the running NPM Terminal, and Restart NPM START in Terminal - and it works again and i can connect with my gopro.

Auto Detect Host/Raid

For some time, hosts and raids have no longer been recognized and the stream has no longer ended automatically.

The word 'is' is not a part of locale language files.

Referring to the language-files, some reply's contains the word 'is'. But 'is' are not to be found in the locale language files.

This means, that 'is' will be a part of any language-file selected.

Eg.
!autostop = Auto stop stream is disabled ('is' can't be changed, but should only be used in en.json)
!public = Public comands is enabled (Again 'is' - And you have a typo in this as well ... commands, not comands)

/Michael.

Error: No such file or dir

ENOENT error

This only happens when I execute the !trigger command (with any number provided for the bitrate). When running this on a Windows machine, it works just fine, as for a Ubuntu machine not so much. As for the "config.json" it's kept in the same root of the folder.

Not sure what I am doing wrong.

NodeMediaServer

When trying to start the app with NodeMediaServer enabled, I get the following

`> node ./lib/app

███╗   ██╗ ██████╗  █████╗ ██╗     ██████╗ ███████╗
████╗  ██║██╔═══██╗██╔══██╗██║     ██╔══██╗██╔════╝
██╔██╗ ██║██║   ██║███████║██║     ██████╔╝███████╗
██║╚██╗██║██║   ██║██╔══██║██║     ██╔══██╗╚════██║
██║ ╚████║╚██████╔╝██║  ██║███████╗██████╔╝███████║
╚═╝  ╚═══╝ ╚═════╝ ╚═╝  ╚═╝╚══════╝╚═════╝ ╚══════╝ v1.7.0

[6/4/2020] [3:32:18 PM] [OBS] › ℹ info Connecting & authenticating
[6/4/2020] [3:32:18 PM] [CHT] › ℹ info Connecting to twitch
/root/nginx-obs-automatic-low-bitrate-switching/lib/components/NodeMediaServer.js:20
console = _signale.default.scope("NMS");
^

TypeError: Cannot set property console of # which has only a getter
at new NodeMediaServerManager (/root/nginx-obs-automatic-low-bitrate-switching/lib/components/NodeMediaServer.js:20:11)
at Object. (/root/nginx-obs-automatic-low-bitrate-switching/lib/app.js:22:23)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:188:16)
at bootstrap_node.js:609:3

npm ERR! Linux 4.15.0-20-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "start"
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: node ./lib/app
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'node ./lib/app'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the nginx-obs-automatic-low-bitrate-switching package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node ./lib/app
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs nginx-obs-automatic-low-bitrate-switching
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls nginx-obs-automatic-low-bitrate-switching
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /root/nginx-obs-automatic-low-bitrate-switching/npm-debug.log`

[NGINX] Error fetching stats (Ref. # Issue 55)

Nevermind . Version-update did do the trick! My bad! Sorry for opening the case :)

Best regards.


(Ref. # Issue 55)
[NGINX] Error fetching stats using v1.9.4 with latest version of NGINX. (Your v1.9.1 works fine)

NGINX: 1.19.7
RTMP MODULE: 1.2.1
FFMPEG: 4.3.1

/Michael.

Offline Switching not working

When the stream is stopped via OBS, the NodeJS Application is not recognizing it and thus is not changing the scene to the configured one.

Add all mods as admins?

Is it possible, to type a string in the config-file, that will give all mods status as admins? Or what can I change in the Noalbs-files to achieve that?

Now I manually add mods to admins, but Ill have to keep track on it, when new mods is added to Twitch, or some is removed.

(PS: I have made a Danish-language-file for your program, if you would like to add that)

Best regards
Michael.

Noalbs does not announce automatic scene switching

Hi,

while the actual noalbs build is switching scenes very well and it can post into chat:

22:40 secret: !bitrate
22:40 secret_Bot: Current bitrate: 6280 Kbps, RTT 48.921 ms

i do not get ANY automatic scene switching chat messages from it when it changes to the offline or BRB scene.

Here is my config:

{
"obs": {
"ip": "1.2.3.4:4444",
"password": "1234",
"normalScene": "Stream ACTIVE (Outdoor)",
"offlineScene": "Stream ended / Good night (Outdoor)",
"lowBitrateScene": "Stream paused / BRB (Outdoor)",
"refreshScene": "Stream paused / BRB (Outdoor)",
"lowBitrateTrigger": 1000,
"highRttTrigger": 2500,
"refreshSceneInterval": 10000,
"requestMs": 2000,
"onlySwitchWhenStreaming": false
},
"rtmp": {
"server": "srt-live-server",
"stats": "http://127.0.0.1:8181/stats",
"publisher": "live/stream/belabox"
},
"twitchChat": {
"channel": "secret",
"botUsername": "secret_bot",
"oauth": "oauth:secret",
"enable": true,
"prefix": "!",
"enablePublicCommands": true,
"publicCommands": ["bitrate"],
"enableModCommands": true,
"modCommands": ["refresh", "fix", "trigger", "sourceinfo", "obsinfo"],
"enableAutoSwitchNotification": true,
"enableAutoStopStreamOnHostOrRaid": true,
"adminUsers": ["secret_bot", "secret", "topsecret"],
"alias": [["r", "refresh"], ["f", "fix"], ["b", "bitrate"]]
},
"language": "en"
}

I would be more than thankful if you can point me into the right direction why i am not getting these (for me crucial) chat messages.

Thanks

Error Getting Stats

Hey there,

having an issue where I can't seem to get the stats portion working on the app.

I'm on ubuntu, I can see the stat page (on the box and off), The rtmp source shows up in OBS - everything else but that seems to be working.

Any thoughts? I'm stumped :P

Can NOALBS work with any nginx install

I noticed that NOALBS includes the gryphon nginx distro with the rtmp module compiled into it, but I was curious if NOALBS will work with other distros. The reason I ask is because I found a newer version of nginx with the rtmp module:

https://github.com/ustoopia/nginx-rtmp-1.17.10-windows-php-videojs-dashjs

so I figured I'd use that one as I believe 1.7 (which is in gryphon) is about 7 years old. What didn't know is if NOALBS is just monitoring nginx or if it's actually compiled into the gryphon release packaged with NOALBS.

Thanks!
Mike

Getting Stats of multiple Streams for NOALBS

Hey there,

first of all I need to say that I'm totally new to this and don't have any coding experience but always like to learn new things.

I've set up the nginx server following the instructions and succeeded in adding more rtmp streams (via application name in the nginx config).
Though they need quite a while to show up in OBS when starting to stream to one of them it works somehow (still have to figure out why it might take up to 2 minutes until the stream is visible within the OBS source).
My problem is that I can't figure out how to set up the config.json file to get the stats of at least 2 rtmp Streams at the same time so that the automatic scene switcher would only change scenes, when BOTH streams have issues (or one is offline and the other one has low bitrate problems or a disconnect).

The main goal would be that 2 Streamers can stream to the same Twitch channel and hand off the stream from one to another without having to end the stream and start a new one (wich would already be possible if there is no automatic scene switching involved) BUT aditionally with an automatic scene switcher that changes to a LOW BITRATE or BRB Scene when not at least one of those streams is stable.

Example:
Streamer A is streaming and ends his stream for Streamer B to take over.
NOALBS would only react to Stream A (at default json config) and would switch to BRB when Stream A goes offline even though Stream B is online at that moment (because NOALBS is only set to "listen" to Stream A).

The default json Code is:
"rtmp": { "server": "nginx", "stats": "http://localhost/stat", "application": "publish", "key": "live" },

I tried to add more applications so it looked something like this:
"rtmp": { "server": "nginx", "stats": "http://localhost/stat", "application": "publish", "key": "live" "application": "StreamA", "key": "live" "application": "StreamB", "key": "live" "application": "StreamCMobile", "key": "live" },

I might be totally wrong here but (without any coding experience) this listing seemed to make sense to me... ;-)
Well, as you can guess, it might have seemed to make sense to me but not for NOALBS! :-D
At least under http://localhost/stat it does indeed show me all of the Streams' info and I can connect using the different application names.

How do I need to change the config.json to achieve the described goal?
Ist it even possible with multiple streams?
Or do I have to find a different solution?
Do you need more or other info?

Thanks in advance!

Error fixing the stream

When I try to !fix or !f it says "Trying to fix the stream" and then "Error fixing the stream". In the console which is on Linux VPS it says "xxx Executed fix command" and nothing else. I use the built-in nodeMediaServer.
I used to use Nginx RTMP server before and there was no such issue but it sometimes got quite laggy so I want to test this one out.

NOALBS not working properly for me

I don't understand anything about coding so I have no idea what is happening.
All I know everything else is working, video stream, scene switching on http://t2t2.github.io
But the is not connecting. I've edited my info in the config.json but it feels like it's not updating it?
Since it keeps trying to join the #715209 channel instead of my Perceivingmind channel.
Nginx is also running.

And I get this error message:

[5/4/2021] [10:56:53 PM] [OBS] » i info Connecting & authenticating
[5/4/2021] [10:56:53 PM] [CHT] » i info Connecting to twitch
[5/4/2021] [10:56:53 PM] [OBS] » × error Failed to authenticate
[5/4/2021] [10:56:53 PM] [OBS] » × error Can't connect or lost connnection
[5/4/2021] [10:56:53 PM] [OBS] » i info Trying to reconnect in 5 seconds
[5/4/2021] [10:56:54 PM] [CHT] » √ success Successfully Connected
[5/4/2021] [10:56:54 PM] [CHT] » √ success Authenticating and joining channel 715209

Anyone that can help me? What am I doing wrong?

Streaming computer won't restart streaming unless OBS restarted

I have a weird one - I have nginx installed on our streaming server and everything works great - I can send rtmp feeds from OBS to the server, start/stop OBS streaming over and over without any issue. My nginx.conf rtmp section is pretty generic:

rtmp {
	server {
		listen 1935;
		chunk_size 4096;

		application remote1 {
			live on;
			}
		}
	}

Then I set up NOALBS (disabling my nginx server in favor of the one provided) and for the most part, everything worked... kinda. When I try and stop/start the stream on my streaming OBS computer, it will stop, but when I try and start it again, it won't let me connect. The only way I can reconnect is by closing OBS and reopening it and then it will let me start streaming again. However, if I hit stop/start, it won't work and I have to close out OBS. I even tried restarting nginx to see if that was holding something up, and it didn't make a difference - the only way to get it working was to restart OBS on my streaming machine.

So, to test things out, I removed all of the rtmp stuff from the NOALBS-provided nginx.conf to about match mine and that made it work, so there's some rtmp directive in there that is causing OBS on my streaming computer to get hung up - any ideas what that might be? Btw, this is what the rtmp portion looks like in my nginx.conf (should be identical to what's on the github repo):

rtmp {
    log_format compression '';

    server {
        listen 1935;
        ping 30s;
        notify_method get;
        chunk_size 8192;
        ack_window 8192;
		sync 4ms;
		interleave on;
        access_log logs/rtmp-access.log compression;

        # Stream to "rtmp://IPHERE/publish/live".
        application publish {
            live on;
			wait_video on;
            wait_key on;
            exec_options on;
            publish_notify on;
            play_restart on;
            drop_idle_publisher 4s;
            idle_streams off;
			sync 4ms;
			interleave on;
        }
    }
}

Thanks!
Mike

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.