Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increasing Volume #98

Open
Imu-D-sama opened this issue Jul 6, 2024 · 1 comment
Open

Increasing Volume #98

Imu-D-sama opened this issue Jul 6, 2024 · 1 comment

Comments

@Imu-D-sama
Copy link

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
Copy link

maybe try .audioFilter instead of .audioFilters

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants