mirror of
https://github.com/master-of-zen/Av1an.git
synced 2024-11-25 02:29:40 +00:00
Update main.py
This commit is contained in:
parent
6e5a691544
commit
0a989989a3
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
@ -106,7 +106,7 @@ def main(input_video, encoding_params, num_worker):
|
||||||
|
|
||||||
# Make temporal directories, and remove them if already presented
|
# Make temporal directories, and remove them if already presented
|
||||||
if os.path.isdir(join(os.getcwd(), "temp")):
|
if os.path.isdir(join(os.getcwd(), "temp")):
|
||||||
shutil.rmtree(join(os.getcwd(), "temp"))
|
rmtree(join(os.getcwd(), "temp"))
|
||||||
|
|
||||||
os.makedirs(join(os.getcwd(), 'temp', 'split'))
|
os.makedirs(join(os.getcwd(), 'temp', 'split'))
|
||||||
os.makedirs(join(os.getcwd(), 'temp', 'encode'))
|
os.makedirs(join(os.getcwd(), 'temp', 'encode'))
|
||||||
|
@ -142,4 +142,4 @@ if __name__ == '__main__':
|
||||||
print(f'Completed in {round(time.time()-start, 1)} seconds')
|
print(f'Completed in {round(time.time()-start, 1)} seconds')
|
||||||
|
|
||||||
# Delete temp folders
|
# Delete temp folders
|
||||||
shutil.rmtree(join(os.getcwd(), "temp"))
|
rmtree(join(os.getcwd(), "temp"))
|
||||||
|
|
Loading…
Reference in a new issue