use avg_frame_rate if video is 90k
This commit is contained in:
parent
6b22e2ec29
commit
70565970b3
1 changed files with 2 additions and 0 deletions
|
@ -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', [])
|
||||
|
|
Loading…
Reference in a new issue