From 8fb956c0d64ef47fda1a2f2c297c09b6967b0391 Mon Sep 17 00:00:00 2001 From: Om <92863779+Om1609@users.noreply.github.com> Date: Tue, 18 Apr 2023 07:10:57 +0530 Subject: [PATCH] feat: suppress FFMPEG output (#1993) * supress ffmpeg output * Update CHANGELOG.md * Update CHANGELOG.md Co-authored-by: plun1331 <49261529+plun1331@users.noreply.github.com> Signed-off-by: Om <92863779+Om1609@users.noreply.github.com> --------- Signed-off-by: Om <92863779+Om1609@users.noreply.github.com> Co-authored-by: plun1331 <49261529+plun1331@users.noreply.github.com> Co-authored-by: Lala Sabathil --- CHANGELOG.md | 5 +++++ discord/sinks/m4a.py | 2 ++ discord/sinks/mka.py | 2 ++ discord/sinks/mkv.py | 2 ++ discord/sinks/mp3.py | 2 ++ discord/sinks/mp4.py | 2 ++ discord/sinks/ogg.py | 2 ++ 7 files changed, 17 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b7e6fc3126..c4434ec0d0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,6 +36,11 @@ These changes are available on the `master` branch, but have not yet been releas - Removed `@client.once()` in favour of `@client.listen(once=True)`. ([#1957](https://github.com/Pycord-Development/pycord/pull/1957)) +### Changed + +- Suppressed FFMPEG output when recording voice channels. + ([#1993](https://github.com/Pycord-Development/pycord/pull/1993)) + ### Fixed - Fixed `AttributeError` caused by diff --git a/discord/sinks/m4a.py b/discord/sinks/m4a.py index 497a22225f..6b65e3653c 100644 --- a/discord/sinks/m4a.py +++ b/discord/sinks/m4a.py @@ -67,6 +67,8 @@ def format_audio(self, audio): "s16le", "-ar", "48000", + "-loglevel", + "error", "-ac", "2", "-i", diff --git a/discord/sinks/mka.py b/discord/sinks/mka.py index 830954a9d3..819608d368 100644 --- a/discord/sinks/mka.py +++ b/discord/sinks/mka.py @@ -64,6 +64,8 @@ def format_audio(self, audio): "s16le", "-ar", "48000", + "-loglevel", + "error", "-ac", "2", "-i", diff --git a/discord/sinks/mkv.py b/discord/sinks/mkv.py index e1ed4ca78e..2071c1ae4f 100644 --- a/discord/sinks/mkv.py +++ b/discord/sinks/mkv.py @@ -64,6 +64,8 @@ def format_audio(self, audio): "s16le", "-ar", "48000", + "-loglevel", + "error", "-ac", "2", "-i", diff --git a/discord/sinks/mp3.py b/discord/sinks/mp3.py index 96fa8a562d..c4707eb5ed 100644 --- a/discord/sinks/mp3.py +++ b/discord/sinks/mp3.py @@ -64,6 +64,8 @@ def format_audio(self, audio): "s16le", "-ar", "48000", + "-loglevel", + "error", "-ac", "2", "-i", diff --git a/discord/sinks/mp4.py b/discord/sinks/mp4.py index 3168452e47..9f540c6c29 100644 --- a/discord/sinks/mp4.py +++ b/discord/sinks/mp4.py @@ -67,6 +67,8 @@ def format_audio(self, audio): "s16le", "-ar", "48000", + "-loglevel", + "error", "-ac", "2", "-i", diff --git a/discord/sinks/ogg.py b/discord/sinks/ogg.py index 759b97d53a..09abcfc402 100644 --- a/discord/sinks/ogg.py +++ b/discord/sinks/ogg.py @@ -64,6 +64,8 @@ def format_audio(self, audio): "s16le", "-ar", "48000", + "-loglevel", + "error", "-ac", "2", "-i",