forked from MarseyWorld/MarseyWorld
fix webm
parent
781f186904
commit
253d72b3ba
|
@ -64,7 +64,7 @@ def process_video(file):
|
||||||
new = old + '.' + extension
|
new = old + '.' + extension
|
||||||
|
|
||||||
if file.filename.split('.')[-1].lower() == 'webm':
|
if file.filename.split('.')[-1].lower() == 'webm':
|
||||||
file.save(new)
|
os.rename(old, new)
|
||||||
return f'{SITE_FULL}{new}'
|
return f'{SITE_FULL}{new}'
|
||||||
else:
|
else:
|
||||||
subprocess.run(["ffmpeg", "-y", "-loglevel", "warning", "-i", old, "-map_metadata", "-1", "-c:v", "copy", "-c:a", "copy", new], check=True)
|
subprocess.run(["ffmpeg", "-y", "-loglevel", "warning", "-i", old, "-map_metadata", "-1", "-c:v", "copy", "-c:a", "copy", new], check=True)
|
||||||
|
|
Loading…
Reference in New Issue