|
@@ -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"提取视频的音频成功")
|
|
|
|