dank074 / Discord-video-stream

Experiment for making video streaming work for discord selfbots.
180 stars 32 forks source link

Increasing Volume #98

Open Imu-D-sama opened 2 months ago

Imu-D-sama commented 2 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 });
            }