Can't automatically start streaming

letspretend

New Member
I am testing out starting OBS automatically to start streaming when opening OBS using a .bat file.

I found the launch parameters and created a .bat file. I set everything up for Youtube streaming.

Every time I launch OBS using the .bat I get the following error:

1711375929832.png


Looking at the logs, it says I am not logged in.

If I start the stream manually it works fine, so being logged in is not the issue.

I suspect that it simply doesn't work with Youtube as you have to select or create a broadcast first and there doesn't seem to be a mechanism in OBS to do that with a launch parameter.

Anybody have a workaround for that? Should this be possible using the Websocket server?

It's a bit lame, that this doesn't work with the most commonly used streaming service.

Thanks for any hints.

log file: https://obsproject.com/logs/felfFBBkabXyvnIP
 

letspretend

New Member
Correction: it works once if you have a broadcast scheduled for the future, but then once you have streamed to it, you cannot use it again and have to set up a new one.
 

PaiSand

Active Member
Remove the plugin you installed and try again. If the plugins modified any file of OBS probably you have to uninstall and reinstall OBS.
 

letspretend

New Member
Remove the plugin you installed

What plugin? I never said I was using a plugin. I am just trying to stream to Youtube.

I think the problem is two-fold:

1. I was using the login method for Youtube and not a stream key. Once you are logged in, there is a button next to "Start Streaming" that says "Manage Broadcast":

1712330345003.png


If you just click "Start Streaming" it pops up an error saying:

1712330369388.png


So that means you cannot automatically start streaming with Youtube when OBS starts with the launch parameter.


2. Youtube doesn't want you to stream to the same stream again. Once a stream has been stopped for a short while, it will be converted into a video and you cannot resume the stream. That's the big difference I found out to Twitch. There you always stream to same location and link, on Youtube it will always be a different stream and it will always have a new URL.

1712330630154.png


I wanted to use this so I can embed a viewer on our website and it will show the stream whenever OBS gets started automatically and starts streaming.


Alas, that is simply not possible any more with Youtube, so I am using Twitch for that now. So it's not a really a bug in OBS, just that automatically starting a stream on Youtube is just not really possible easily any more.
 

Attachments

  • 1712330618329.png
    1712330618329.png
    238.7 KB · Views: 7

VanBy

New Member
I too would like PaiSand to let us know by specific name what Plug-in is the one that is blocking the Start Streaming button from being used, without having to go through setting up the broadcast stream with the Manage Broadcast button first. Please Reply as at this time, I can only Start Recording and then upload the video file to YT at a later time. Thanks et al.
 

OP3

Member
Correction: it works once if you have a broadcast scheduled for the future, but then once you have streamed to it, you cannot use it again and have to set up a new one.
There is a setting that you can change to address this. Anytime I stopped a live broadcast of my son's hockey team I would have to create a new stream and it was very inconvenient and disruptive for live sports viewers. How I get around this:
Schedule your live stream then in the last page (I'll call it a summary page that shows a preview window of the live stream waiting to start) look under 'Stream settings' and 'Additional settings' to find 'Enable Auto-Stop' and turn that off. This will allow you to stop your stream and resume it later... hours later if desired.
Be aware, you have to manually click 'End Stream' on youtube or 'End broadcast' on the newer version of OBS or else the new scheduled broadcast may start on the one that is still running. I found this out the hard way when somebody told me the old broadcast was "still live" which was baffling until I realized it doesn't end after a certain amount of time.

Regarding the manage broadcast button in OBS, I rather like it because I can now preview the stream and select the exact broadcast link I'm using in this UI. Just having the YT Preview embedded in OBS is a win in my book as the wifi differs from location to location where I live stream. Also I use streamdeck to manage all my streaming features so the OBS plug-in there helps automate nearly everything I do.
 

dzidek23

New Member
Hi,
I've been looking at this for the last few days. I need to have an automated box to stream an event happening on a schedule, and almost every day.
It was impossible for me to accept that I'll have to "Manage Stream" every time, this would be simply impossible.

Yes, OBS forces user to select a stream or make a new one IF you "Connect Account" in Settings -> Stream.
However, there's another way:
1733479290007.png

1733479377336.png

Where you type your stream key (you can find this in YT Studio on "Go Live" page)

By using the "Stream Key" there's no YT dock and NO "Manage Stream" button.
Press "Start Stream" and voilà.

This is working with Advanced Scene Switcher add-on, allowing for Start/Stop Stream to work again.
I haven't tried it with .bat but I would assume it should work.

One last thing, YT creates this new stream in some random way. Sometimes the settings are of the last live recording, sometimes goes back a little further (yet to figure this one out). Bear this in mind, otherwise all seams to work just fine.

-- Edit
Ah yes, some more detail: OBS Studio 30.2.3 (64) and Advanced Scene Switcher 1.28.1
 
Top