File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -16,11 +16,16 @@ def __init__(self):
1616 """from pyinstrument import Profiler
1717 profiler = Profiler()
1818 profiler.start()"""
19+ if self .args .ffmpeg_path == None :
20+ from src .utils .GetFFMpeg import download_ffmpeg
21+ self .ffmpeg_path = download_ffmpeg ()
22+ else :
23+ self .ffmpeg_path = self .args .ffmpeg_path
1924
2025 from src .utils .VideoInfo import OpenCVInfo , print_video_info
2126
2227 if self .args .print_video_info :
23- video_info = OpenCVInfo (self .args .print_video_info )
28+ video_info = OpenCVInfo (self .args .print_video_info , ffmpeg_path = self . ffmpeg_path )
2429 print_video_info (video_info )
2530 #profiler.stop()
2631 #print(profiler.output_text(unicode=True, color=True))
@@ -33,11 +38,7 @@ def __init__(self):
3338
3439 self .checkArguments ()
3540
36- if self .args .ffmpeg_path == None :
37- from src .utils .GetFFMpeg import download_ffmpeg
38- self .ffmpeg_path = download_ffmpeg ()
39- else :
40- self .ffmpeg_path = self .args .ffmpeg_path
41+
4142
4243 if not self .batchProcessing ():
4344 buffer_str = "=" * len (str (sys .argv [0 ]))
Original file line number Diff line number Diff line change @@ -418,7 +418,7 @@ def command(self):
418418 else : # Benchmark mode
419419
420420 command = [
421- f"{ FFMPEG_PATH } " ,
421+ f"{ self . ffmpeg_path } " ,
422422 "-hide_banner" ,
423423 "-loglevel" ,
424424 "error" ,
You can’t perform that action at this time.
0 commit comments