Closed hrueger closed 4 years ago
After having a closer look at the code, I found that this already returns 1536x960. So no problem with your code, sorry! Probably a Windows scaling issue (my scaling is at 125% because I'm using a convertible). 1920 / 1.25 = 1536
const { screen } = require('electron');
const primaryDisplay = screen.getPrimaryDisplay();
Edit: After inspecting the whole code I saw that the scaleFactor
is multiplied with the display size values retrieved from the electron screen module and the realDisplayWith
and realDisplayHeight
variables do have the correct value.
Hmm, that is weird that OBS doesn't return list of available encoders for you.
Try to place x264
here (it is always available, but slower):
Usually nvenc
or jim_nvenc
is preferred here, but they are only available on Nvidia cards.
Also OBS seems to ignore programmatic changes to set output video resolution to 1920x1080. This happened for me too and I'm still don't know why.
For now you can manually edit OBS configuration in osn-data
subfolder and set OutputCX
and OutputCY
parameters under Video
section to 1920
and 1080
respectively.
Fixed this JS error in case when OBS Studio doesn't return possible values.
Created separate issue about output video resoultion. 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 place.
Hi, It's working with Electron 6. However, I get the following error after I ran
npm start
: I could fix it by change thegetAvailableValues()
function to this:Then it's working. Just for reference,
categorySettings
issubcategorySettings
isand
parameterSettings
is thenundefined
.I also noticed that only about 2/3 of my screen were recorded and in the logs (attached) it says this:
My screen, however, is
1920x1200
. I don't know much about OBS, but I don't think this problem belongs to theRecEncoder
settings, does it?2020-04-13 06-51-24.txt