Use execute() to start ffmpeg (thanks to Strycore)
This commit is contained in:
parent
f4610fc436
commit
c5210be289
1 changed files with 3 additions and 4 deletions
|
@ -162,8 +162,8 @@ def encode_h264(src, dest):
|
|||
] + params["h264_acommand"] + [
|
||||
dest+".mp4"
|
||||
]
|
||||
subprocess.run(firstpass)
|
||||
subprocess.run(secondpass)
|
||||
execute(firstpass)
|
||||
execute(secondpass)
|
||||
else:
|
||||
logging.debug("one pass encoding started ...")
|
||||
encode = [
|
||||
|
@ -175,10 +175,9 @@ def encode_h264(src, dest):
|
|||
"-b:a", params["abitrate"]
|
||||
] + params["h264_acommand"] + [
|
||||
dest+".mp4",
|
||||
"-loglevel", "quiet"
|
||||
]
|
||||
logging.debug(encode)
|
||||
subprocess.run(encode)
|
||||
execute(encode)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Reference in a new issue