diff --git a/stream/3las.server.js b/stream/3las.server.js index 905495b..92783d8 100644 --- a/stream/3las.server.js +++ b/stream/3las.server.js @@ -335,7 +335,7 @@ class FallbackProviderMp3 extends AFallbackProvider { GetFFmpegArguments() { return [ "-fflags", "+nobuffer+flush_packets", "-flags", "low_delay", "-rtbufsize", "32", "-probesize", "32", - "-f", "libmp3lame", + "-f", "s16le", "-ar", this.Server.SampleRate.toString(), "-ac", this.Server.Channels.toString(), "-i", "pipe:0", diff --git a/stream/index.js b/stream/index.js index 923eeca..a5f96a2 100644 --- a/stream/index.js +++ b/stream/index.js @@ -12,7 +12,7 @@ function enableAudioStream() { // Combine all the settings for the ffmpeg command if (process.platform === 'win32') { // Windows - ffmpegCommand = `${flags} -f dshow -i audio="${config.audioDeviceName}" ${codec} ${output} pipe:1 | node stream/3las.server.js -port ${config.audioPort} -samplerate 44100 -channels 2`; + ffmpegCommand = `${flags} -f dshow -i audio="${config.audioDeviceName}" ${codec} ${output} pipe:1 | node stream/3las.server.js -port ${config.audioPort} -samplerate 48000 -channels 2`; } else { // Linux ffmpegCommand = `${flags} -f alsa -i "${config.audioDeviceName}" ${codec} ${output} pipe:1 | node stream/3las.server.js -port ${config.audioPort} -samplerate 48000 -channels 2`;