Question / Help How do I stop streaming from starting automatically?

SiRiUS104

New Member
The question is just as the title says. Im using OBS Multiplatform v0.12.3 64bit, I have a Game Capture source set for a fullscreen game (works fine), but my issue is as soon as I launch the game, OBS starts recording automatically. I tab out of the game to check it, and its already going before I pushed my shortcut key to start streaming.

I want to be able to control when the streaming begins (when Ive loaded my save game) with my shortcut keys to start and stop. I see no option anywhere under settings or under the Game Capture properties to disable this automatic stream start. Is there some method to disable it?
Currently I have to stop the stream manually, then delete the ~30 second video on Twitch, and then manually begin recording myself again. Quite a pain. Old version of OBS didnt do this behavior but also its streaming to twitch cut out periodically so I cant go back to it.
 

SiRiUS104

New Member
Somehow this has happened to me a few times now using the new OBS version (multiplatform). Im not using any scene switcher, just added a single Game Capture and streaming a fullscreen game. A few times now when I launch the game, and tab back out to OBS, i notice the streaming has already began. I didnt press "start streaming" button, nor used my shortcut buttons. Very strange behavior then I guess?
 

Osiris

Active Member
Impossible behaviour, there is NO functionality to make it start a stream without any user interaction.
 

SiRiUS104

New Member
This just happened to me again today. I will write exactly the steps as it occurred and my settings I have.
Using a single Game Capture source set to "Capture any fullscreen application", "Capture cursor" and "Capture third party overlays (Steam)" and yes Im using Steam, launching the game Portal Stories: Mel.
As soon as I started the game, OBS started streaming, I felt the little momentary audio/video jump as recording begins (this happens in virtually all games when OBS starts streaming). I tabbed out and indeed OBS had started streaming, I never clicked the Start button nor used my shortcut key which is Alt+S to start. This is a real bug or error with the program so please look into it.
Also after my stream started automatically like this, it also stopped shortly after without me stopping it.
 

Osiris

Active Member
Again, there is NO functionality that will cause a stream to just start, other then with hotkeys.
 
Last edited:

SiRiUS104

New Member
Well, why would I make this up? I explained the steps I took and the game Im launching, please try to replicate it. If any developer owns Portal 2 on Steam, which some are bound to own, just use the same Fullscreen application (Game Capture) settings as I explained in my previous post. Launch the game from Steam and see if OBS starts to capture automatically as it does for me. Its an irritating problem that is really happening for me. I have no other shortcut keys except Alt+S to start and Alt+X to end broadcasting. Im not pressing the Alt key in any way so theres no way Im starting the stream myself. Im not saying its a function of OBS, Im saying its an error or glitch that is somehow occurring.
Please is it possible to pass this onto a developer member who might know how this could possibly happen?
 

RaigeMage

New Member
Are you talking about the Preview image here? If so, then you're not actually streaming yet. It's just a preview of what you will be streaming. The new OBS Multiplatform no longer has a "Preview" button since it now Previews all the time. That may be what you're seeing. I hope that helps you.

RaigeMage
twitch.tv/raigemage
 

sam686

Member
Remove or change hotkeys to buttons that are never or rarely used in game.
For some game like portal 2, crouch (Alt button) and going backwards (S button) at the same time will trigger alt+s.
 

SiRiUS104

New Member
RaideMage, it actually started streaming on my twitch channel, so not just previewing.
I could change keys like DEDRICK said, but I really wasnt pressing my current ones because I hadnt pressed ALT key whatsoever when I started the game, and it just began streaming as soon as the game launched. My brother said OBS also has done this for him a few times in the past, he just assumed it was a glitch and stopped the stream, and restarted it when he was ready (and deleted the short video created on twitch, thats the annoying part to me).
 

SiRiUS104

New Member
Another update on this particular issue... I have narrowed it down to OBS starting the stream the 1st or 2nd time switching into a fullscreen game. Usually when launching a game for the first time it doesnt start streaming yet (but once in a while it does), however if I alt+tab out of the game (OBS is still not streaming at this point) and then switch back into the game, then it will definitely start to auto-stream the 2nd time. Again, without me starting it with shortcut key or Start button.
So it seems to be an issue of the game switching into fullscreen mode, this seems to want to make OBS automatically begin streaming. I confirmed this behavior with my brother again today, he was trying the same settings and for him too OBS behaved strangely like this. It would sometimes begin the stream by itself.

Anyway this is my last posting on this. It is clearly a real and valid glitch that is happening in this program. Im honestly amazed the developers havent heard of this before if the symptoms can be so easily replicated on 2 different systems (2 different OS's also, Windows 7 and 10). Only can hope that the issue might be already known on a level above these forums and whoever moderates them. And that a future update will fix it.
 

paibox

heros in an halfshel
This is not actually a bug with OBS, but with Windows itself. It's a long-standing bug with Microsoft's keyboard handling, causing Alt to get stuck when alt+tabbing to certain applications, because the Windows message handling loop eats the WM_KEYUP message instead of handling it, and thus all keypresses until you press Alt again will be treated as Alt+the key you press.

So for instance if you play a first person game where you use WASD, hitting Alt+S would be a trivial thing to have happen by mistake. This can be fixed on the game developer's side by reinitializing the keyboard when the application gets focus again, but it's nothing that can be fixed on the OBS side of things. Just like other people have suggested already, I'd say you should change your shortcut keys to avoid the problem.
 

DEDRICK

Member
Good catch!. Any key you are pressing when you switch from a fullscreen game will be "held down" until that key is pressed again. This has been around for a long time

Not just Fullscreen games, the steam overlay will do the same thing. If you hold Shift to sprint in a game then bring up the steam overlay Shift will stay held down
 

SiRiUS104

New Member
Paibox, I was not aware of this. Wow that is quite stupid on Windows' part, people are pressing many keys after theyve alt+tabbed to/from something. I will try changing my shortcuts to something like shift+pgup & shift+pgdn and see if it helps.
 

paibox

heros in an halfshel
Yeah, it's a very silly bug, and it really gets in the way in some applications where holding down Alt invokes some secondary function that prevents you from performing normal actions (such as in Grim Dawn).

It can be fixed on the application side by manually sending WM_KEYUP messages when the application gets focus, or in the case of things like DirectInput and other input libraries just reinitializing the keyboard (and sometimes mouse), but it's not uncommon for developers to forget or be unaware of the issue. (After all, I'm pretty sure no one would expect an operating system to behave like that.)
 
Interesting about the bug, isn't there an application which will send WM_KEYUP anytime a new window get focused?
As that would solve the issue would it not?
 

MrGeeBee

New Member
I have encountered this several times now with OBS-Studio 19.0.3 64-bit Windows.

Code:
16:23:24.054: [rtmp stream: 'simple_stream'] Connecting to RTMP URL rtmp://a.rtmp.youtube.com/live2...
16:23:24.080: [rtmp stream: 'simple_stream'] Interface: Intel(R) Ethernet Connection (2) I218-V (ethernet, 1000 mbps)
16:23:24.480: [rtmp stream: 'simple_stream'] Connection to rtmp://a.rtmp.youtube.com/live2 successful
16:23:24.488: ==== Streaming Start ===============================================
16:29:59.064: [game-capture: 'X-Plane'] attempting to hook process: X-Plane.exe
16:29:59.067: [game-capture: 'X-Plane'] using helper (compatibility hook)
16:29:59.093: [game-capture: 'X-Plane'] hook not loaded yet, retrying..
16:30:02.079: [game-capture: 'X-Plane'] attempting to hook process: X-Plane.exe
16:30:02.081: [game-capture: 'X-Plane'] using helper (compatibility hook)
16:30:05.096: [game-capture: 'X-Plane'] attempting to hook process: X-Plane.exe
16:30:05.098: [game-capture: 'X-Plane'] using helper (compatibility hook)
16:30:05.104: [game-capture: 'X-Plane'] hook not loaded yet, retrying..
16:30:08.112: [game-capture: 'X-Plane'] attempting to hook process: X-Plane.exe
16:30:08.114: [game-capture: 'X-Plane'] using helper (compatibility hook)
16:30:11.129: [game-capture: 'X-Plane'] attempting to hook process: X-Plane.exe
16:30:11.131: [game-capture: 'X-Plane'] using helper (compatibility hook)
16:30:11.136: [game-capture: 'X-Plane'] hook not loaded yet, retrying..
16:30:14.146: [game-capture: 'X-Plane'] attempting to hook process: X-Plane.exe
16:30:14.148: [game-capture: 'X-Plane'] using helper (compatibility hook)
16:30:17.163: [game-capture: 'X-Plane'] attempting to hook process: X-Plane.exe
16:30:17.165: [game-capture: 'X-Plane'] using helper (compatibility hook)
16:30:17.170: [game-capture: 'X-Plane'] hook not loaded yet, retrying..
16:30:20.179: [game-capture: 'X-Plane'] attempting to hook process: X-Plane.exe
16:30:20.795: [game-capture: 'X-Plane'] gl shared texture capture successful
16:30:20.795: [game-capture: 'X-Plane'] shared texture capture successful
16:30:29.480: [rtmp stream: 'simple_stream'] User stopped the stream
16:30:29.481: Output 'simple_stream': stopping
16:30:29.481: Output 'simple_stream': Total encoded frames: 4294169855
16:30:29.481: Output 'simple_stream': Total drawn frames: 25526
16:30:29.481: Output 'simple_stream': Number of lagged frames due to rendering lag/stalls: 2 (0.0%)
16:30:29.483: ==== Streaming Stop ================================================
16:35:43.528: ---------------------------------
16:35:43.528: [NVENC encoder: 'simple_h264_stream'] settings:
16:35:43.528:     rate_control: CBR
16:35:43.528:     bitrate:      10000
16:35:43.528:     cqp:          0
16:35:43.528:     keyint:       120
16:35:43.528:     preset:       default
16:35:43.528:     profile:      main
16:35:43.528:     level:        auto
16:35:43.528:     width:        1920
16:35:43.528:     height:       1080
16:35:43.528:     2-pass:       true
16:35:43.528:     b-frames:     2
16:35:43.528:     GPU:          0
16:35:43.528:
16:35:43.739: [Media Foundation AAC: 'simple_aac']: encoder created
16:35:43.739:     bitrate: 160
16:35:43.739:     channels: 2
16:35:43.739:     sample rate: 44100
16:35:43.739:     bits-per-sample: 16
16:35:43.739:
16:35:43.739: [rtmp stream: 'simple_stream'] Connecting to RTMP URL rtmp://a.rtmp.youtube.com/live2...
16:35:43.753: [rtmp stream: 'simple_stream'] Interface: Intel(R) Ethernet Connection (2) I218-V (ethernet, 1000 mbps)
16:35:44.016: [rtmp stream: 'simple_stream'] Connection to rtmp://a.rtmp.youtube.com/live2 successful
16:35:44.023: ==== Streaming Start ===============================================
16:57:28.064: [rtmp stream: 'simple_stream'] User stopped the stream
16:57:28.064: Output 'simple_stream': stopping
16:57:28.064: Output 'simple_stream': Total encoded frames: 33888
16:57:28.064: Output 'simple_stream': Total drawn frames: 78260
16:57:28.064: Output 'simple_stream': Number of lagged frames due to rendering lag/stalls: 1 (0.0%)
16:57:28.071: ==== Streaming Stop ================================================
16:59:26.616: Settings changed (general, stream 1)
16:59:26.616: ------------------------------------------------
16:59:58.196: ---------------------------------
16:59:58.196: video settings reset:
16:59:58.196:     base resolution:   1920x1080
16:59:58.196:     output resolution: 1920x1080
16:59:58.196:     downscale filter:  Bilinear
16:59:58.196:     fps:               60/1
16:59:58.196:     format:            NV12
16:59:58.209: Settings changed (advanced)
16:59:58.209: ------------------------------------------------
17:00:11.214: [game-capture: 'X-Plane'] capture window no longer exists, terminating capture
17:00:11.214: [game-capture: 'X-Plane'] capture stopped
17:04:14.741: Settings changed (stream 1)
17:04:14.741: ------------------------------------------------
17:49:06.448: [game-capture: 'X-Plane'] attempting to hook process: X-Plane.exe
17:49:06.450: [game-capture: 'X-Plane'] using helper (compatibility hook)
17:49:06.456: [game-capture: 'X-Plane'] hook not loaded yet, retrying..
17:49:09.465: [game-capture: 'X-Plane'] attempting to hook process: X-Plane.exe
17:49:09.467: [game-capture: 'X-Plane'] using helper (compatibility hook)
17:49:12.482: [game-capture: 'X-Plane'] attempting to hook process: X-Plane.exe
17:49:12.484: [game-capture: 'X-Plane'] using helper (compatibility hook)
17:49:12.490: [game-capture: 'X-Plane'] hook not loaded yet, retrying..
17:49:15.498: [game-capture: 'X-Plane'] attempting to hook process: X-Plane.exe
17:49:15.500: [game-capture: 'X-Plane'] using helper (compatibility hook)
17:49:18.515: [game-capture: 'X-Plane'] attempting to hook process: X-Plane.exe
17:49:18.516: [game-capture: 'X-Plane'] using helper (compatibility hook)
17:49:18.522: [game-capture: 'X-Plane'] hook not loaded yet, retrying..
17:49:21.531: [game-capture: 'X-Plane'] attempting to hook process: X-Plane.exe
17:49:21.534: [game-capture: 'X-Plane'] using helper (compatibility hook)
17:49:24.548: [game-capture: 'X-Plane'] attempting to hook process: X-Plane.exe
17:49:24.745: [game-capture: 'X-Plane'] gl shared texture capture successful
17:49:24.747: [game-capture: 'X-Plane'] shared texture capture successful
17:53:21.759: adding 23 milliseconds of audio buffering, total audio buffering is now 92 milliseconds
17:57:20.047: [game-capture: 'X-Plane'] capture window no longer exists, terminating capture
17:57:20.047: [game-capture: 'X-Plane'] capture stopped
17:58:49.846: ---------------------------------
17:58:49.846: [NVENC encoder: 'simple_h264_stream'] settings:
17:58:49.846:     rate_control: CBR
17:58:49.846:     bitrate:      10000
17:58:49.846:     cqp:          0
17:58:49.846:     keyint:       120
17:58:49.846:     preset:       default
17:58:49.846:     profile:      main
17:58:49.846:     level:        auto
17:58:49.846:     width:        1920
17:58:49.846:     height:       1080
17:58:49.846:     2-pass:       true
17:58:49.846:     b-frames:     2
17:58:49.846:     GPU:          0
17:58:49.846:
17:58:50.065: [Media Foundation AAC: 'simple_aac']: encoder created
17:58:50.065:     bitrate: 160
17:58:50.065:     channels: 2
17:58:50.065:     sample rate: 44100
17:58:50.065:     bits-per-sample: 16
17:58:50.065:
17:58:50.065: [rtmp stream: 'simple_stream'] Connecting to RTMP URL rtmp://a.rtmp.youtube.com/live2...
17:58:50.081: [rtmp stream: 'simple_stream'] Interface: Intel(R) Ethernet Connection (2) I218-V (ethernet, 1000 mbps)
17:58:50.416: [rtmp stream: 'simple_stream'] Connection to rtmp://a.rtmp.youtube.com/live2 successful
17:58:50.426: ==== Streaming Start ===============================================
17:59:11.133: [rtmp stream: 'simple_stream'] User stopped the stream
17:59:11.133: Output 'simple_stream': stopping
17:59:11.133: Output 'simple_stream': Total encoded frames: 0
17:59:11.133: Output 'simple_stream': Total drawn frames: 1264
17:59:11.139: ==== Streaming Stop ================================================
18:00:52.211: Settings changed (stream 1)
18:00:52.211: ------------------------------------------------

I don't touch anything in OBS, somehow just starting a fullscreen application triggers the stream. So my solution, leave the stream key field empty or have a bogus key there, until you are ready to stream. Because one time I was starting up X-Plane and was having an argue on the phone at the same time, NOT very funny!!! Well, I can laugh now, but it wasn't back then.
 

Osiris

Active Member
As I have stated in this thread before, it is not possible for the stream to start without any user interaction.
And there is also an option you can enable in OBS where it first asks if you really want to stream before actually streaming.
 
Top