Question / Help how to stop OBS from changing the size of window capture frame when I switch youtube between full screen and windowed orientations

Danklim

New Member
Hi, I’m using a window capture source in OBS to capture youtube and am trying to figure out how to stop OBS from changing the size of the frame when I switch youtube between full screen and windowed orientations. Can you please help?

I have youtube running in firefox on a different monitor than OBS is running on. I want to make it so that i can use youtube in full screen mode or as a window in firefox and have the frame/screen in OBS remain the size of the full canvas, but it changes every time i switch between full screen and windowed orientation. Using youtube on a 1920x1080 monitor, checked my video settings in OBS and it is set to 1920x1080. Showed all of this and explained in more detail in this video I just recorded below. Using a PC with windows 10 and OBS 22.0.2 64 bit.

https://www.youtube.com/watch?v=6b5L9J0ITqg

What can i do to make this work seamlessly, so that i can switch between full screen and windowed orientations in youtube and the frame size will remain the same? Is there any settings to adjust? Or, if not, is there any way that i can automate this so it changes sources automatically when i switch to/from full screen in youtube, or anything like that?

Thanks so much!
 

c3r1c3

Member
The reason why OBS 'changes size' is because you're changing the size of the browser window, and Window capture captures the window, so if you change the size of the window, the source size will change to match it. When you have full screen video it is 1920x1080 (as you stated in your post) and the browser when not running full screen video it looks to be around the 1600 pixels wide mark.

So how to get around this? Run the browser window maximized, or use Display Capture.
 

OddPog

New Member
I ran into this same issue, Danklim. I wanted the canvas to maintain the dimensions of the rectangle I put on the canvas and not the dimensions of the source's window so I could resize the source window without messing up my scene. The best fix I found was applying the Scaling/Aspect Ratio filter. The Resolution setting should be whatever the resolution of your monitor is. If you have monitors with different dimensions like I do, I mean the monitor where you would have the window you're capturing when it's full screen. Also, not the resolution of the canvas (I stream 3440x1440 but the window I'm capturing is 1920x1080). You can just type in the dimensions instead of picking from the dropdown so in my case, I type in "1920x1080". The best Scale Filtering option for this scenario is Area for the least distortion when resizing the source window. The image of the source may get distorted while I resize the window, but at least the rectangle on the scene doesn't change size and shape.
 

OddPog

New Member
I also wanted to be able to move the window to a different monitor, which is why the monitor capture option wouldn't be viable for me.
 
Top