Skip to content

Commit 7bda0eb

Browse files
committed
small audio fix
1 parent b8d8095 commit 7bda0eb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
@echo off
22
cls
3-
npm start main.js /ip 172.16.0.10 /q 10
3+
npm start main.js /ip 172.16.0.12 /q 10
44
pause

SkyNX-Streamer/NxStreamingService/main.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function plugControllerIn() {
4545
function startAudioProcess() {
4646
ffmpegAudioProcess = spawn(
4747
"./lib/ffmpeg.exe",
48-
["-y", "-f", "dshow", "-i", "audio=virtual-audio-capturer", "-af", "equalizer=f=100:t=h:width=200:g=-64", "-f", "s16le", "-ar", "16000", "-ac", "2", "-c:a", "pcm_s16le", "udp://" + ip + ":2224?pkt_size=640"],
48+
["-y", "-f", "dshow", "-i", 'audio=virtual-audio-capturer', "-af", "equalizer=f=100:t=h:width=200:g=-64", "-f", "s16le", "-ar", "16000", "-ac", "2", "-c:a", "pcm_s16le", "udp://" + ip + ":2224?pkt_size=640"],
4949
{ detached: false }
5050
);
5151
ffmpegAudioProcess.stdout.on("data", data => {
@@ -61,7 +61,7 @@ function startAudioProcess() {
6161
function startVideoProcess() {
6262
ffmpegProcess = spawn(
6363
"./lib/ffmpeg.exe",
64-
["-probesize", "10M", "-f", "gdigrab", "-framerate", "60", "-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 + "M", "-maxrate", quality + "M", "-bufsize", "2M", "tcp://" + ip + ":2222"],
64+
["-probesize", "10M", "-f", "gdigrab", "-framerate", "60", "-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 + "M", "-maxrate", quality + "M", "-bufsize", "2M", "tcp://" + ip + ":2222"],
6565
{
6666
detached: false
6767
}

0 commit comments

Comments
 (0)