fix some videos not working on safari

master
Aevann 2024-11-05 20:16:12 +02:00
parent e93ee9133d
commit 8742683a61
1 changed files with 4 additions and 0 deletions

View File

@ -183,6 +183,10 @@ def process_video(file, v, post=None):
reencode = True
if int(stream.get('bit_rate', 3000000)) >= 3000000:
reencode = True
if stream.get('profile') != 'High':
reencode = True
if stream.get('level') > 52:
reencode = True
elif stream["codec_type"] == "audio":
if stream.get('profile') != 'LC':
reencode = True