audio filter fix

This commit is contained in:
devl0rd 2020-04-22 19:14:54 -06:00
parent 23d80fdfc1
commit 6bd290024d

View file

@ -45,7 +45,7 @@ function plugControllerIn() {
function startAudioProcess() { function startAudioProcess() {
ffmpegAudioProcess = spawn( ffmpegAudioProcess = spawn(
"./lib/ffmpeg.exe", "./lib/ffmpeg.exe",
["-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"], ["-y", "-f", "dshow", "-i", 'audio=virtual-audio-capturer', "-f", "s16le", "-ar", "16000", "-ac", "2", "-c:a", "pcm_s16le", "udp://" + ip + ":2224?pkt_size=640"],
{ detached: false } { detached: false }
); );
ffmpegAudioProcess.stdout.on("data", data => { ffmpegAudioProcess.stdout.on("data", data => {
@ -61,7 +61,7 @@ function startAudioProcess() {
function startVideoProcess() { function startVideoProcess() {
ffmpegProcess = spawn( ffmpegProcess = spawn(
"./lib/ffmpeg.exe", "./lib/ffmpeg.exe",
["-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"], ["-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"],
{ {
detached: false detached: false
} }