zhangyong 10 months ago
parent
commit
729b1a0e96
1 changed files with 1 additions and 1 deletions
  1. 1 1
      video_rewriting/video_prep.py

+ 1 - 1
video_rewriting/video_prep.py

@@ -171,7 +171,7 @@ class getVideo:
                         if gg_duration_total and gg_duration_total != 'None':  # 判断是否需要指定视频时长
                             new_video_path = FFmpeg.video_ggduration(new_video_path, video_path_url, pw_random_id, gg_duration_total)
                         width, height = FFmpeg.get_w_h_size(new_video_path)
-                        if width < 1920:
+                        if width < height:
                             new_video_path = FFmpeg.update_video_h_w(new_video_path, video_path_url, pw_random_id)
                             time.sleep(1)
                             if os.path.isfile(new_video_path):