Update app.py
Browse files
app.py
CHANGED
|
@@ -188,9 +188,11 @@ def create_video(image_path, audio_path, output_path):
|
|
| 188 |
"-i", image_path,
|
| 189 |
"-i", audio_path,
|
| 190 |
"-filter_complex",
|
| 191 |
-
"[1:a]aformat=channel_layouts=mono,showwaves=s=
|
| 192 |
"-c:v", "libx264",
|
|
|
|
| 193 |
"-c:a", "aac",
|
|
|
|
| 194 |
"-y", output_path
|
| 195 |
]
|
| 196 |
subprocess.run(command, check=True)
|
|
|
|
| 188 |
"-i", image_path,
|
| 189 |
"-i", audio_path,
|
| 190 |
"-filter_complex",
|
| 191 |
+
"[1:a]aformat=channel_layouts=mono,showwaves=s=1200x400:mode=p2p:colors=blue@0.8:scroll=1[w];[0:v][w]overlay=(W-w)/2:(H-h)/2",
|
| 192 |
"-c:v", "libx264",
|
| 193 |
+
"-b:v", "2000k",
|
| 194 |
"-c:a", "aac",
|
| 195 |
+
"-b:a", "192k",
|
| 196 |
"-y", output_path
|
| 197 |
]
|
| 198 |
subprocess.run(command, check=True)
|