GoodML commited on
Commit
ad4614a
·
verified ·
1 Parent(s): 43c5057

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -163,7 +163,7 @@ def get_information_from_video_using_OCR(video_path, interval=1):
163
 
164
  def convert_mp4_to_wav(mp4_path, wav_path):
165
  """Convert an MP4 file to a WAV file."""
166
- command = f"ffmpeg -i {mp4_path} -vn -acodec pcm_s16le -ar 44100 -ac 2 {wav_path}"
167
  subprocess.run(command, shell=True, check=True)
168
  print(f"MP4 file converted to WAV: {wav_path}")
169
 
 
163
 
164
  def convert_mp4_to_wav(mp4_path, wav_path):
165
  """Convert an MP4 file to a WAV file."""
166
+ command = f"ffmpeg -y -i {mp4_path} -vn -acodec pcm_s16le -ar 44100 -ac 2 {wav_path}"
167
  subprocess.run(command, shell=True, check=True)
168
  print(f"MP4 file converted to WAV: {wav_path}")
169