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

[common] (twitch-dset) Add Windows support

parent c32cc2d5
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,7 @@ class ThumbnailsGenerator:
def _launch_creation(self, frames):
ffmpeg. \
input(self.video_path). \
input(str(self.video_path)). \
filter('fps', fps=self.FPS).\
output(f"{self.output_folder}/frame_%d.jpg", frames=frames). \
run(quiet=True)
......@@ -47,7 +47,7 @@ class ThumbnailsGenerator:
obs.start()
def _get_frame_number(self):
return int(ffmpeg.probe(self.video_path)['format']['duration'].split('.')[0])
return int(ffmpeg.probe(str(self.video_path))['format']['duration'].split('.')[0])
if __name__ == '__main__':
......
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