zhangyong 1 년 전
부모
커밋
4509a42701
1개의 변경된 파일0개의 추가작업 그리고 3개의 파일을 삭제
  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",
              "-of", "default=noprint_wrappers=1:nokey=1", video_file],
             capture_output=True, text=True)
-        if not result.stdout.strip():
-            print("错误:ffprobe 没有返回任何输出。")
-            return 0
         try:
             return float(result.stdout.strip())
         except ValueError: