use avg_frame_rate if video is 90k

This commit is contained in:
j 2024-06-08 11:22:25 +01:00
parent 6b22e2ec29
commit 70565970b3

View file

@ -258,6 +258,8 @@ def ffprobe(filename):
'pix_fmt': 'pixel_format',
'sample_aspect_ratio': 'pixel_aspect_ratio',
}.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'])
info[s['codec_type']].append(stream)
elif s.get('codec_type') == 'subtitle':
info['subtitles'] = info.get('subtitles', [])