bruh moment 12

This commit is contained in:
Somdev Sangwan 2023-05-31 18:49:58 +05:30 committed by GitHub
parent a9571f6f74
commit b545c69167
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,7 +50,7 @@ def add_audio(output_dir, target_path, video, keep_frames, output_file):
save_to_ff, output_dir_ff = path(save_to), path(output_dir)
os.system(f'ffmpeg -i "{output_dir_ff}{sep}output.mp4" -i "{output_dir_ff}{sep}{video}" -c:v copy -map 0:v:0 -map 1:a:0 -y "{save_to_ff}"')
if not os.path.isfile(save_to):
shutil.move(f'{output_dir_ff}{sep}output.mp4', save_to)
shutil.move(f'{output_dir}{sep}output.mp4', save_to)
if not keep_frames:
shutil.rmtree(output_dir)