Update handler.py

another fix
This commit is contained in:
Janis Hutz
2023-03-15 12:07:50 +00:00
committed by GitHub
parent 5f6b09c523
commit 3d93b49ca4

View File

@@ -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), './lib/ffprobe.exe')["streams"].pop(0)
self.videometa = ffmpeg.probe(str(filepath), './bin/lib/ffprobe.exe')["streams"].pop(0)
# Retrieving Video metadata
self.duration = self.videometa.get("duration")
self.frames = self.videometa.get("nb_frames")