spookyuser
commited on
Commit
·
0acc319
1
Parent(s):
4c4704f
Make audio work on macos
Browse files
app.py
CHANGED
@@ -101,7 +101,7 @@ def add_static_image_to_audio(image, audio_input) -> str:
|
|
101 |
) # The duration here is the cut duration from above
|
102 |
video_clip.fps = 1
|
103 |
path = Path(vid_output_dir / "output.mp4").as_posix()
|
104 |
-
video_clip.write_videofile(path)
|
105 |
return path
|
106 |
|
107 |
|
|
|
101 |
) # The duration here is the cut duration from above
|
102 |
video_clip.fps = 1
|
103 |
path = Path(vid_output_dir / "output.mp4").as_posix()
|
104 |
+
video_clip.write_videofile(path, audio_codec="aac")
|
105 |
return path
|
106 |
|
107 |
|