From f4113ab8630cda55ab7bb6a6f27d714341730a67 Mon Sep 17 00:00:00 2001 From: devl0rd Date: Sun, 26 Apr 2020 19:42:23 -0600 Subject: [PATCH] auto set screen res. fixed screen capture for higher res --- .../lib/ChangeScreenResolution.exe | Bin 0 -> 26624 bytes SkyNX-Streamer/NxStreamingService/main.js | 19 ++++++--- SkyNX-Streamer/index.html | 15 ++++++++ SkyNX-Streamer/js/settings.js | 14 +++++++ SkyNX-Streamer/main.js | 36 ++++++++++++++++-- SkyNX-Streamer/package-lock.json | 28 ++++++++++++++ SkyNX-Streamer/package.json | 1 + 7 files changed, 105 insertions(+), 8 deletions(-) create mode 100644 SkyNX-Streamer/NxStreamingService/lib/ChangeScreenResolution.exe diff --git a/SkyNX-Streamer/NxStreamingService/lib/ChangeScreenResolution.exe b/SkyNX-Streamer/NxStreamingService/lib/ChangeScreenResolution.exe new file mode 100644 index 0000000000000000000000000000000000000000..465cf22eea6181aa80f3259d8655795738a76a88 GIT binary patch literal 26624 zcmeHvePC48weLwX2?GQ&VnTyb9qmw}fiPeBn6G34nGi6*gnXib5RwTqA<4w~2+*Q} zlUx}N@p4=3v%S6+uG)I7x23&kfl>{GCQ%VksZ!;&X-nB=KuisJOba|ES9`|NXeXFvezOBveQ*Lr7J^nVOt4&$7rd-+TZggbLnl(cuqCVd9 zNMhH4p(-it{v@ZW6ZzerOt1O|i{(|jSgdDp&4xRxb~5--)vpkbolmZMgw<vAlNBy71Hq>mqb}S zQq1i~hJ=SFfwS&nfYgo}vp5n_A$PT&;~FWklj8>CC^6yL$8lqcs4nBUya`p&S!eBp zF|vcysql%7vV4whKBQ-w@glm2SCMX{*rVjQjaiERWaIfHKDGP9z9!BSO?;C43%7iyMH%JGT#k1iT3$>ak9u zB&zbC$F-o2MRVPh@^+^x9hqQ}D!s2r zmC50CH@)W2D}!FQ)9Wq{tq72wpiiX?9#YMxc83@)L}bx*?=ghQsL+K`mP!!ERFn_a zs#L)zRSHTz$ts*r0#$dBs=cpMB}3!5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_w85WkZKyx8V~*g7J3aYU3VAa=FIQUYb#Ln~=!SG3>OR$_>u=L%=(F^>dNXE1gT6!m1N|ZWQGJiT zPk&1Pmi}G+Z}cJkhx*IgSXJw~l-;sTH_LA)E?1JnS+3R2%wr4+_{k814oDDgR zIn6okuo2(R8Or%nPJZs{+=|>6bAOuqdhT#;I5#oxVBTxc?Dz9N%)6SGY0w##8A_NA zKW8{-c+qgoaKbQPIBhs*cvsZjj}2pnYle4?GoWoA(|?%WH2v1}zUgCVRlGULOy^Oj zAleE|jiwgzYtgi8e44|WW11e#NzEnGnCYsCGt10!bFx`sPBo{S=bM#gl{v$_$gDQ& zF@k2Z)m&sQF_)U{<_dF-xz@bV{IvO5^F~Xf#fP!nX?eo(q-DS5Y0LALgO)>?uHaI^Rnm`*_|^%LT&+-7sGaI<>fP$c)K97psgJ1# z)uZaGYMExfMx`kMuiG?_X`TR|=QQUvm!K)wez7%uzFMhPsWa48b&L85^-0VQ;rZWv C4LuY9 literal 0 HcmV?d00001 diff --git a/SkyNX-Streamer/NxStreamingService/main.js b/SkyNX-Streamer/NxStreamingService/main.js index 00606f4..0690f56 100644 --- a/SkyNX-Streamer/NxStreamingService/main.js +++ b/SkyNX-Streamer/NxStreamingService/main.js @@ -10,15 +10,14 @@ const vgen = new VGen(); const GyroServ = require("./Devlord_modules/GyroServ.js"); var ip = "0.0.0.0" var quality = 5; -var screenSize = robot.getScreenSize(); -var sheight = screenSize.height; -var swidth = screenSize.width; var hidStreamClient = new net.Socket(); var usingVideo = true; var usingAudio = true; var abxySwap = false; var limitFPS = false; var encoding = "CPU"; +var screenWidth = 1280; +var screenHeight = 720; function connect() { hidStreamClient.connect({ host: ip, @@ -71,10 +70,10 @@ function startVideoProcess() { } var ffmpegVideoArgs = []; if (encoding == "NVENC") { - ffmpegVideoArgs = ["-probesize", "50M", "-threads", "0", "-f", "gdigrab", "-framerate", fps, "-video_size", swidth + "x" + sheight, "-offset_x", "0", "-offset_y", "0", "-draw_mouse", "1", "-i", "desktop", "-c:v", "h264_nvenc", "-gpu", "0", "-rc", "cbr_ld_hq", "-zerolatency", "true", "-f", "h264", "-vf", "scale=1280x720", "-pix_fmt", "yuv420p", "-profile:v", "baseline", "-b:v", quality + "M", "-minrate", quality - 3 + "M", "-maxrate", quality + "M", "-bufsize", (quality / 2) + "M", "tcp://" + ip + ":2222"]; + ffmpegVideoArgs = ["-probesize", "50M", "-threads", "0", "-f", "gdigrab", "-framerate", fps, "-video_size", screenWidth + "x" + screenHeight, "-offset_x", "0", "-offset_y", "0", "-draw_mouse", "1", "-i", "desktop", "-c:v", "h264_nvenc", "-gpu", "0", "-rc", "cbr_ld_hq", "-zerolatency", "true", "-f", "h264", "-vf", "scale=1280x720", "-pix_fmt", "yuv420p", "-profile:v", "baseline", "-b:v", quality + "M", "-minrate", quality - 3 + "M", "-maxrate", quality + "M", "-bufsize", (quality / 2) + "M", "tcp://" + ip + ":2222"]; console.log("Using Nvidia Encoding"); } else { - ffmpegVideoArgs = ["-probesize", "50M", "-threads", "0", "-f", "gdigrab", "-framerate", fps, "-video_size", swidth + "x" + sheight, "-offset_x", "0", "-offset_y", "0", "-draw_mouse", "1", "-i", "desktop", "-f", "h264", "-vf", "scale=1280x720", "-preset", "ultrafast", "-tune", "zerolatency", "-pix_fmt", "yuv420p", "-profile:v", "baseline", "-x264-params", 'nal-hrd=cbr', "-b:v", quality + "M", "-minrate", quality - 3 + "M", "-maxrate", quality + "M", "-bufsize", (quality / 2) + "M", "tcp://" + ip + ":2222"]; + ffmpegVideoArgs = ["-probesize", "50M", "-threads", "0", "-f", "gdigrab", "-framerate", fps, "-video_size", screenWidth + "x" + screenHeight, "-offset_x", "0", "-offset_y", "0", "-draw_mouse", "1", "-i", "desktop", "-f", "h264", "-vf", "scale=1280x720", "-preset", "ultrafast", "-tune", "zerolatency", "-pix_fmt", "yuv420p", "-profile:v", "baseline", "-x264-params", 'nal-hrd=cbr', "-b:v", quality + "M", "-minrate", quality - 3 + "M", "-maxrate", quality + "M", "-bufsize", (quality / 2) + "M", "tcp://" + ip + ":2222"]; console.log("Using CPU Encoding"); } ffmpegProcess = spawn( @@ -398,6 +397,16 @@ if (args.length > 1) { } else { quality = 5; } + if (args.includes("/w") && args[args.indexOf("/w") + 1]) { + screenWidth = args[args.indexOf("/w") + 1]; + } else { + screenWidth = 1280; + } + if (args.includes("/h") && args[args.indexOf("/h") + 1]) { + screenHeight = args[args.indexOf("/h") + 1]; + } else { + screenHeight = 720; + } if (args.includes("/noVideo")) { usingVideo = false; } else { diff --git a/SkyNX-Streamer/index.html b/SkyNX-Streamer/index.html index 65ea670..60b7d05 100644 --- a/SkyNX-Streamer/index.html +++ b/SkyNX-Streamer/index.html @@ -117,6 +117,18 @@

General


+
+ + +
+
+

Startup

+
+
+

UI

+