zhangyong hai 1 ano
pai
achega
b68358c9b3
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      video_stitching/video_stitching.py

+ 3 - 2
video_stitching/video_stitching.py

@@ -123,10 +123,11 @@ class VideoStitching():
         total_duration = 0
         included_videos = []
         # 提取视频的音频
+        Common.logger().info(f"开始提取视频的音频")
         video1 = VideoFileClip(audio)
-        Common.logger().info(f"提取视频的音频")
-
         mp3 = video1.audio
+        Common.logger().info(f"提取视频的音频成功")
+
         # 获取音频时长(以秒为单位)
         duration_limit = mp3.duration
         Common.logger().info(f"获取音频时长")