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:
Danish
2021-05-24 20:09:49 +05:30
committed by GitHub
parent e01a5844cb
commit 6cc2e1907c
26 changed files with 563 additions and 198 deletions

View File

@@ -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: