zhangyong hace 1 año
padre
commit
195cf62c79
Se han modificado 1 ficheros con 1 adiciones y 7 borrados
  1. 1 7
      video_stitching/video_stitching.py

+ 1 - 7
video_stitching/video_stitching.py

@@ -124,14 +124,8 @@ class VideoStitching():
         total_duration = 0
         included_videos = []
         # 提取视频的音频
-        filename = "./video_stitching/video.mp4"
-
-        response = requests.get(audio)
-        with open(filename, "wb") as f:
-            f.write(response.content)
-            time.sleep(10)
         Common.logger().info(f"开始提取视频的音频{audio}")
-        video1 = VideoFileClip(filename)
+        video1 = VideoFileClip(audio)
         mp3 = video1.audio
         Common.logger().info(f"提取视频的音频成功")