Aevann 2023-10-06 16:56:48 +03:00
parent 9cfe1369cc
commit c2c16649cb
1 changed files with 3 additions and 1 deletions

View File

@ -143,7 +143,9 @@ def process_video(file, v):
new = f'{old}.mp4'
if file.content_type != 'video/mp4':
codec = ffmpeg.probe(old)['streams'][0]['codec_name']
if codec != 'h264':
copyfile(old, new)
gevent.spawn(convert_to_mp4, old, new)
else: