Spaces:
TDN-M
/
Running on Zero

TDN-M commited on
Commit
6f0b0f2
verified
1 Parent(s): 6269960

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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=800x250:mode=line:colors=white@0.5[w];[0:v][w]overlay=(W-w)/2:(H-h)/2",
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)