mirror of
https://github.com/master-of-zen/Av1an.git
synced 2024-11-24 18:18:06 +00:00
Creating and deleting of temp files
This commit is contained in:
parent
24f5a10f86
commit
2802994602
2 changed files with 6 additions and 3 deletions
9
main.py
9
main.py
|
@ -98,9 +98,12 @@ def concat():
|
|||
|
||||
def main(input_video, encoding_params, num_worker):
|
||||
|
||||
# Make temporal directories
|
||||
os.makedirs(f'{os.getcwd()}/temp/split', exist_ok=True)
|
||||
os.makedirs(f'{os.getcwd()}/temp/encode', exist_ok=True)
|
||||
# Make temporal directories, and remove them if already presented
|
||||
if os.path.isdir(f'{os.getcwd()}/temp/'):
|
||||
shutil.rmtree(f'{os.getcwd()}/temp')
|
||||
|
||||
os.makedirs(f'{os.getcwd()}/temp/split')
|
||||
os.makedirs(f'{os.getcwd()}/temp/encode')
|
||||
|
||||
# Extracting audio
|
||||
extract_audio(input_video)
|
||||
|
|
BIN
vid.webm
Normal file
BIN
vid.webm
Normal file
Binary file not shown.
Loading…
Reference in a new issue