Closed Envek closed 4 years ago
I have no time to tackle with it right now, but hope that it is something wrong with setSetting
method (which was copied verbatim from obs-studio-node
tests) and it just changes resolution in some wrong settings subcategory may be).
It turned out that settings from API are slightly differs in format from what is stored in OBS Studio's basic.ini
.
How to set resolution to 1920x1080:
setSetting('Video', 'Base', '1920x1080');
setSetting('Video', 'Output', '1920x1080');
And how it will appear in osn-data/basic.ini
:
[Video]
BaseCX=1920
BaseCY=1080
OutputCX=1920
OutputCY=1080
OBS seems to ignore programmatic changes to set output video resolution to 1920x1080 here:
https://github.com/Envek/obs-studio-node-example/blob/918b801c830aef210ffbc8e22c9278acb525dcea/obsRecorder.js#L86-L89
Workaround: You can manually edit OBS configuration in
osn-data
subfolder and setOutputCX
andOutputCY
parameters underVideo
section to your display resolution (e.g.1920
and1080
respectively).Originally posted by @hrueger in https://github.com/Envek/obs-studio-node-example/issues/2#issuecomment-612997973