forked from MarseyWorld/MarseyWorld
same as last commit
parent
aea885247c
commit
0739358e3f
|
@ -63,10 +63,6 @@ def process_video(file):
|
|||
extension = 'mp4'
|
||||
new = old + '.' + extension
|
||||
|
||||
if file.filename.split('.')[-1].lower() == 'webm':
|
||||
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)
|
||||
os.remove(old)
|
||||
if os.stat(new).st_size > 8 * 1024 * 1024:
|
||||
|
|
Loading…
Reference in New Issue