yerang commited on
Commit
d94c20a
1 Parent(s): e8f9a31

Update src/utils/video.py

Browse files
Files changed (1) hide show
  1. src/utils/video.py +6 -0
src/utils/video.py CHANGED
@@ -201,3 +201,9 @@ def add_audio_to_video(silent_video_path: str, audio_video_path: str, output_vid
201
  log(f"Video with audio generated successfully: {output_video_path}")
202
  except subprocess.CalledProcessError as e:
203
  log(f"Error occurred: {e}")
 
 
 
 
 
 
 
201
  log(f"Video with audio generated successfully: {output_video_path}")
202
  except subprocess.CalledProcessError as e:
203
  log(f"Error occurred: {e}")
204
+
205
+
206
+ def extract_audio(video_fp, wfp):
207
+
208
+ cmd = f'ffmpeg -i {video_fp} {wfp} -y'
209
+ exec_cmd(cmd)