Print stdout AND stderr
This commit is contained in:
parent
ffabacfdc2
commit
ec0ce48c68
1 changed files with 6 additions and 4 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue