master
Aevann1 2022-09-18 22:38:28 +02:00
parent 781f186904
commit 253d72b3ba
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ def process_video(file):
new = old + '.' + extension
if file.filename.split('.')[-1].lower() == 'webm':
file.save(new)
os.rename(old, new)
return f'{SITE_FULL}{new}'
else:
subprocess.run(["ffmpeg", "-y", "-loglevel", "warning", "-i", old, "-map_metadata", "-1", "-c:v", "copy", "-c:a", "copy", new], check=True)