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 = [
|
args = [
|
||||||
"ffmpeg",
|
"ffmpeg",
|
||||||
# "-hwaccel",
|
|
||||||
# "auto",
|
|
||||||
"-v",
|
"-v",
|
||||||
"error",
|
"warning"
|
||||||
"-i",
|
"-i",
|
||||||
temp_fd.name,
|
temp_fd.name,
|
||||||
"-c:v",
|
"-c:v",
|
||||||
|
@ -149,7 +147,11 @@ class TruthSocialTranscode(niobot.Module):
|
||||||
stdout, stderr = await transcode.communicate()
|
stdout, stderr = await transcode.communicate()
|
||||||
self.log.info("Finished transcode.")
|
self.log.info("Finished transcode.")
|
||||||
if transcode.returncode != 0:
|
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(
|
await self.bot.send_message(
|
||||||
room,
|
room,
|
||||||
"Error transcoding video, unable to transcode: got return code %d" % transcode.returncode,
|
"Error transcoding video, unable to transcode: got return code %d" % transcode.returncode,
|
||||||
|
|
Loading…
Reference in a new issue