From 5f6b09c523154d830394d29a5998e0e4e5582a4a Mon Sep 17 00:00:00 2001 From: Janis Hutz <98422316+simplePCBuilding@users.noreply.github.com> Date: Wed, 15 Mar 2023 12:00:20 +0000 Subject: [PATCH] Update handler.py add an easier way to use ffprobe --- bin/handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/handler.py b/bin/handler.py index f71df90..2996fb0 100644 --- a/bin/handler.py +++ b/bin/handler.py @@ -93,7 +93,7 @@ class Handler: def video_scaling(self, ffmpegpath, fsrpath, filepath, quality_mode, quality_setting, output_path): # DO NOT CALL THIS! Use Handler().handler() instead! - self.videometa = ffmpeg.probe(str(filepath))["streams"].pop(0) + self.videometa = ffmpeg.probe(str(filepath), './lib/ffprobe.exe')["streams"].pop(0) # Retrieving Video metadata self.duration = self.videometa.get("duration") self.frames = self.videometa.get("nb_frames")