artificialguybr commited on
Commit
ddb704c
β€’
1 Parent(s): b6ee570

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -117,7 +117,7 @@ def process_video(radio, video, target_language):
117
  subprocess.run(cmd, shell=True)
118
  else:
119
  # Merge audio with the original video without running Wav2Lip
120
- cmd = f"ffmpeg -i {video_path} -i {run_uuid}_output_synth.wav -c:v copy -c:a aac -strict experimental {run_uuid}_output_video.mp4"
121
  subprocess.run(cmd, shell=True)
122
 
123
  if not os.path.exists(f"{run_uuid}_output_video.mp4"):
 
117
  subprocess.run(cmd, shell=True)
118
  else:
119
  # Merge audio with the original video without running Wav2Lip
120
+ cmd = f"ffmpeg -i {video_path} -i {run_uuid}_output_synth.wav -c:v copy -c:a aac -strict experimental -map 0:v:0 -map 1:a:0 {run_uuid}_output_video.mp4"
121
  subprocess.run(cmd, shell=True)
122
 
123
  if not os.path.exists(f"{run_uuid}_output_video.mp4"):