Skip to content
Snippets Groups Projects
Commit 0da3aad5 authored by Mathieu Beligon's avatar Mathieu Beligon
Browse files

[common] (dset-twitch) fix frame rate extraction

parent a7ec5c0e
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@ class VideoFrameGenerator:
def _get_video_fps(self):
return max(
int(stream['avg_frame_rate'].split('/')[0])
int(stream['r_frame_rate'].split('/')[0])
for stream in ffmpeg.probe(str(self.video_path))['streams']
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment