fix prev commit

remotes/1693176582716663532/tmp_refs/heads/watchparty
Aevann1 2022-10-06 07:23:05 +02:00
parent 4563a2b18a
commit 1d666b3569
1 changed files with 2 additions and 1 deletions

View File

@ -9,6 +9,7 @@ import time
from .const import *
import gevent
import imagehash
from shutil import copyfile
def process_files():
body = ''
@ -71,7 +72,7 @@ def process_video(file):
if extension == 'webm':
new = new.replace('.webm', '.mp4')
file.save(new)
copyfile(old, new)
gevent.spawn(webm_to_mp4, old, new)
else:
subprocess.run(["ffmpeg", "-y", "-loglevel", "warning", "-i", old, "-map_metadata", "-1", "-c:v", "copy", "-c:a", "copy", new], check=True)