Рет қаралды 13
based on original post - www.editframe.com/guides/easy...
problem: not working on Windows.
to fix:
open C:\Users\{user_name}\Desktop\2\open-ai-whisper-ffmpeg\.venv\lib\site-packages\whisperx\audio.py
and change this
out = subprocess.run(cmd, capture_output=True, check=True).stdout
to this:
out = subprocess.run(cmd, capture_output=True, check=True, shell = True).stdout
dont forget to install ffmpeg - www.gyan.dev/ffmpeg/builds/ and put it on PATH.
*in final article`s code they forgot to add def main:
def main():
input_video_path = "input.mp4"
output_file = "output.mp4"
transcribe_video(input_video_path)
add_srt_to_video(input_video_path, output_file)
main()