From ec0ce48c68fafd1e5986b3e737ce20622d828d9b Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Thu, 1 Aug 2024 19:05:03 +0100 Subject: [PATCH] Print stdout AND stderr --- app/modules/ts_transcode.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/modules/ts_transcode.py b/app/modules/ts_transcode.py index 19fb249..2c204e2 100644 --- a/app/modules/ts_transcode.py +++ b/app/modules/ts_transcode.py @@ -105,10 +105,8 @@ class TruthSocialTranscode(niobot.Module): ) args = [ "ffmpeg", - # "-hwaccel", - # "auto", "-v", - "error", + "warning" "-i", temp_fd.name, "-c:v", @@ -149,7 +147,11 @@ class TruthSocialTranscode(niobot.Module): stdout, stderr = await transcode.communicate() self.log.info("Finished transcode.") if transcode.returncode != 0: - self.log.error("Error transcoding video:\n%s", stderr.decode("utf-8")) + self.log.error( + "Error transcoding video:\n%s\n\n%s", + stderr.decode("utf-8"), + stdout.decode("utf-8") + ) await self.bot.send_message( room, "Error transcoding video, unable to transcode: got return code %d" % transcode.returncode,