mirror of
https://github.com/DevL0rd/SkyNX
synced 2024-11-22 02:53:04 +00:00
fixed some small bugs
This commit is contained in:
parent
3e0a43a738
commit
8312b297b4
4 changed files with 2 additions and 14 deletions
|
@ -59,7 +59,7 @@ function startAudioProcess() {
|
|||
});
|
||||
}
|
||||
function startVideoProcess() {
|
||||
var cpuh264 = ["-probesize", "10M", "-threads", "0", "-f", "gdigrab", "-framerate", "80" /*Reduce video stutter by increasing capture rate */, "-video_size", swidth + "x" + sheight, "-offset_x", "0", "-offset_y", "0", "-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"];
|
||||
var cpuh264 = ["-probesize", "10M", "-threads", "0", "-f", "gdigrab", "-framerate", "60", "-video_size", swidth + "x" + sheight, "-offset_x", "0", "-offset_y", "0", "-show_region", "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"];
|
||||
var h264_nvenc_ARGS = ["-probesize", "10M", "-f", "gdigrab", "-framerate", "80", "-video_size", swidth + "x" + sheight, "-offset_x", "0", "-offset_y", "0", "-i", "desktop", "-c:v", "h264_nvenc", "-gpu", "0", "-rc", "cbr_ld_hq", "-zerolatency", "true", "-f", "h264", "-vf", "scale=1280x720", "-preset", "losslesshp", "-pix_fmt", "yuv420p", "-profile:v", "baseline", "-b:v", quality + "M", "-minrate", quality - 3 + "M", "-maxrate", quality + "M", "tcp://" + ip + ":2222"];
|
||||
ffmpegProcess = spawn(
|
||||
"./lib/ffmpeg.exe",
|
||||
|
|
|
@ -133,8 +133,8 @@
|
|||
</script>
|
||||
<script src="./js/animations.js"></script>
|
||||
<script src="./js/window.js"></script>
|
||||
<script src="./js/main.js"></script>
|
||||
<script src="./js/settings.js"></script>
|
||||
<script src="./js/main.js"></script>
|
||||
<script src="./js/stats.js"></script>
|
||||
<script src="./js/console.js"></script>
|
||||
</body>
|
||||
|
|
|
@ -120,9 +120,6 @@ ipcMain.on('kill', (event, arg) => {
|
|||
ipcMain.on('installScpVBus', (event, arg) => {
|
||||
log("Installing ScpVBus driver..")
|
||||
var df = __dirname + "\\NxStreamingService\\lib\\"
|
||||
if (!isDev) {
|
||||
df = __dirname + ".\\resources\\app\\NxStreamingService\\lib\\"
|
||||
}
|
||||
elevate.exec(df + "devcon.exe", ["install", df + "ScpVBus.inf", "Root\\ScpVBus"],
|
||||
function (error, stdout, stderr) {
|
||||
log(`${stdout}`);
|
||||
|
@ -137,9 +134,6 @@ ipcMain.on('installScpVBus', (event, arg) => {
|
|||
ipcMain.on('unInstallScpVBus', (event, arg) => {
|
||||
log("Un-Installing ScpVBus driver..")
|
||||
var df = __dirname + "\\NxStreamingService\\lib\\"
|
||||
if (!isDev) {
|
||||
df = __dirname + ".\\resources\\app\\NxStreamingService\\lib\\"
|
||||
}
|
||||
elevate.exec(df + "devcon.exe", ["remove", "Root\\ScpVBus"],
|
||||
function (error, stdout, stderr) {
|
||||
if (error !== null) {
|
||||
|
@ -154,9 +148,6 @@ ipcMain.on('unInstallScpVBus', (event, arg) => {
|
|||
ipcMain.on('installAudioDriver', (event, arg) => {
|
||||
log("Installing audio driver..")
|
||||
var df = __dirname + "\\NxStreamingService\\lib\\"
|
||||
if (!isDev) {
|
||||
df = __dirname + ".\\resources\\app\\NxStreamingService\\lib\\"
|
||||
}
|
||||
elevate.exec("regsvr32", [df + "audio_sniffer.dll"],
|
||||
function (error, stdout, stderr) {
|
||||
if (error !== null) {
|
||||
|
@ -169,9 +160,6 @@ ipcMain.on('installAudioDriver', (event, arg) => {
|
|||
ipcMain.on('unInstallAudioDriver', (event, arg) => {
|
||||
log("Un-Installing audio driver..")
|
||||
var df = __dirname + "\\NxStreamingService\\lib\\"
|
||||
if (!isDev) {
|
||||
df = __dirname + ".\\resources\\app\\NxStreamingService\\lib\\"
|
||||
}
|
||||
elevate.exec("regsvr32", ["/u", df + "audio_sniffer.dll"],
|
||||
function (error, stdout, stderr) {
|
||||
if (error !== null) {
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 7.1 KiB |
Loading…
Reference in a new issue