Ultroid v0.0.7 Fixes 24/05
ChangeLog - https://t.me/TheUltroid/44 Co-authored-by: Anonymous <69723581+New-dev0@users.noreply.github.com> Co-authored-by: Amit Sharma <48654350+buddhhu@users.noreply.github.com> Co-authored-by: 1Danish-00 <danish@ultroid.tech>
This commit is contained in:
@@ -78,6 +78,12 @@ async def _(e):
|
||||
stdout=asyncio.subprocess.PIPE,
|
||||
stderr=asyncio.subprocess.PIPE,
|
||||
)
|
||||
if proce.returncode is None:
|
||||
proce = await asyncio.create_subprocess_shell(
|
||||
f'ffmpeg -hide_banner -loglevel quiet -progress {progress} -i """{file.name}""" -preset ultrafast -vcodec libx265 -crf {crf} """{out}""" -y',
|
||||
stdout=asyncio.subprocess.PIPE,
|
||||
stderr=asyncio.subprocess.PIPE,
|
||||
)
|
||||
while proce.returncode != 0:
|
||||
await asyncio.sleep(3)
|
||||
with open(progress, "r+") as fil:
|
||||
|
||||
Reference in New Issue
Block a user