Update handler.py

new idea for fix
This commit is contained in:
Janis Hutz
2023-03-15 12:35:16 +00:00
committed by GitHub
parent decc7f58d6
commit 6ead007d82

View File

@@ -94,7 +94,7 @@ class Handler:
def video_scaling(self, ffmpegpath, fsrpath, filepath, quality_mode, quality_setting, output_path):
# DO NOT CALL THIS! Use Handler().handler() instead!
if ( sys.platform == 'win32' ):
self.videometa = ffmpeg.probe(str(filepath), 'lib\ffprobe.exe')["streams"].pop(0)
self.videometa = ffmpeg.probe(str(filepath), '..\..\ffprobe.exe')["streams"].pop(0)
else:
self.videometa = ffmpeg.probe(str(filepath))["streams"].pop(0)
# Retrieving Video metadata