zhangyong 10 tháng trước cách đây
mục cha
commit
4509a42701
1 tập tin đã thay đổi với 0 bổ sung3 xóa
  1. 0 3
      video_agc/agc_video.py

+ 0 - 3
video_agc/agc_video.py

@@ -133,9 +133,6 @@ class AGC():
             ["ffprobe", "-v", "error", "-show_entries", "format=duration",
             ["ffprobe", "-v", "error", "-show_entries", "format=duration",
              "-of", "default=noprint_wrappers=1:nokey=1", video_file],
              "-of", "default=noprint_wrappers=1:nokey=1", video_file],
             capture_output=True, text=True)
             capture_output=True, text=True)
-        if not result.stdout.strip():
-            print("错误:ffprobe 没有返回任何输出。")
-            return 0
         try:
         try:
             return float(result.stdout.strip())
             return float(result.stdout.strip())
         except ValueError:
         except ValueError: