Spaces:
Runtime error
Runtime error
1littlecoder
commited on
Commit
•
341c3fd
1
Parent(s):
40e511a
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ def create_waveform_video(image, audio_path):
|
|
42 |
|
43 |
# Combine image, waveform overlay, and audio into one video
|
44 |
final_clip = CompositeVideoClip([img_clip, waveform_clip.set_opacity(0.7)]).set_audio(audio_clip)
|
45 |
-
final_clip.write_videofile(video_path, codec="libx264", fps=24)
|
46 |
|
47 |
# Cleanup temporary files
|
48 |
os.remove(image_path)
|
@@ -63,4 +63,4 @@ iface = gr.Interface(
|
|
63 |
title="Image + Audio to Video with Waveform Overlay"
|
64 |
)
|
65 |
|
66 |
-
iface.launch(debug
|
|
|
42 |
|
43 |
# Combine image, waveform overlay, and audio into one video
|
44 |
final_clip = CompositeVideoClip([img_clip, waveform_clip.set_opacity(0.7)]).set_audio(audio_clip)
|
45 |
+
final_clip.write_videofile(video_path, codec="libx264", fps=24, audio_codec="aac")
|
46 |
|
47 |
# Cleanup temporary files
|
48 |
os.remove(image_path)
|
|
|
63 |
title="Image + Audio to Video with Waveform Overlay"
|
64 |
)
|
65 |
|
66 |
+
iface.launch(debug=True)
|