possible fix with env var

This commit is contained in:
janis
2023-03-15 13:49:58 +01:00
parent 6ead007d82
commit 403d2b4521

View File

@@ -93,9 +93,9 @@ 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), '..\..\ffprobe.exe')["streams"].pop(0)
else:
# if ( sys.platform == 'win32' ):
# self.videometa = ffmpeg.probe(str(filepath))["streams"].pop(0)
# else:
self.videometa = ffmpeg.probe(str(filepath))["streams"].pop(0)
# Retrieving Video metadata
self.duration = self.videometa.get("duration")