dank074 / Discord-video-stream

Experiment for making video streaming work for discord selfbots.
185 stars 35 forks source link

Increasing Volume #98

Open Imu-D-sama opened 4 months ago

Imu-D-sama commented 4 months ago

So I tried #8 and added the ffmpeg args to increase the Volume but that doesn't seem to do anything at all

if (includeAudio) {
          const audioStream: AudioStream = new AudioStream(mediaUdp);

          const opus = new prism.opus.Encoder({ channels: 2, rate: 48000, frameSize: 960 });

           command
               .output(StreamOutput(opus).url, { end: false })
               .noVideo()
                .audioChannels(2)
                .audioFrequency(48000)
                .audioFilters('volume=2.0')
                .format('s16le');

            opus.pipe(audioStream, { end: false });
            }
BitcircuitEU commented 1 month ago

maybe try .audioFilter instead of .audioFilters

Also check out the normalization filter volumedetect https://trac.ffmpeg.org/wiki/AudioVolume