Spaces:
Running
Running
Update app.py
Browse files
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 |
|