Do what now?
So I had an issue where sometimes I wanted to record in one resolution and sometimes in another, for example: 3440x1440 (21:9) and 1920x1080 (16:9)
It was a pain to change the display resolution, then change the settings in OBS to match the new screen. So with a couple of free downloadable programs and windows batch files, this is how I solved my dilemma:
First in OBS, set up a new profile for each resolution you wanted to use. I have two:
Now create a folder to store the files you need and the bat files to run. I called mine "bin"
I then downloaded two command line applications from the internet, putting them in the bin folder:
Qres: https://www.majorgeeks.com/files/details/qres.html
PSkill / PSkill64: https://docs.microsoft.com/en-us/sysinternals/downloads/pskill
Now create batch files for each resolution in the bin folder:
What does it do?
I tried doing this in one line but OBS threw errors so this was the quickest (messiest) way for me to work round the working directory issue. There may be a neater way to do that.
Hope this helps someone else with such a (strange) requirement.
Wayne.
So I had an issue where sometimes I wanted to record in one resolution and sometimes in another, for example: 3440x1440 (21:9) and 1920x1080 (16:9)
It was a pain to change the display resolution, then change the settings in OBS to match the new screen. So with a couple of free downloadable programs and windows batch files, this is how I solved my dilemma:
First in OBS, set up a new profile for each resolution you wanted to use. I have two:
- 1440p
- 1080p
Now create a folder to store the files you need and the bat files to run. I called mine "bin"
I then downloaded two command line applications from the internet, putting them in the bin folder:
Qres: https://www.majorgeeks.com/files/details/qres.html
PSkill / PSkill64: https://docs.microsoft.com/en-us/sysinternals/downloads/pskill
Now create batch files for each resolution in the bin folder:
- 1440p.bat
- 1080p.bat
- Line 2 to the resolution you want, e.g. x:1920 y:1080
- Line 5 to the profile you want, e.g. 1080p
Code:
pskill64 obs64
QRes.exe /x:3440 /y:1440
c:
CD "C:\Program Files\obs-studio\bin\64bit\"
start obs64.exe --profile "1440p" --minimize-to-tray
What does it do?
- PSkill (or PSkill64 for the x64 version) closes OBS if open
- Qres changes the resolution to whatever you set it to
- C: changes back to the c: drive (as I was on a different drive to start)
- CD changes to the directory OBS is installed in
- Start starts OBS minimised to tray with the profile I specified
I tried doing this in one line but OBS threw errors so this was the quickest (messiest) way for me to work round the working directory issue. There may be a neater way to do that.
Hope this helps someone else with such a (strange) requirement.
Wayne.