add force_framerate flag

This commit is contained in:
j 2024-06-08 11:37:47 +01:00
parent 70565970b3
commit 414cb00115

View file

@ -260,6 +260,7 @@ def ffprobe(filename):
}.get(key, key)] = fix_value(key, s[key])
if 'avg_frame_rate' in s and stream.get('framerate') == "90000:1":
stream['framerate'] = fix_value('r_frame_rate', s['avg_frame_rate'])
stream['force_framerate'] = True
info[s['codec_type']].append(stream)
elif s.get('codec_type') == 'subtitle':
info['subtitles'] = info.get('subtitles', [])