Replies: 1 comment 2 replies
-
Hey @remixk, I was doing some work on whisper too. I was having this issue.
This should do the job. It solved my error. I got this from this stackOverflow answer. Let me know if this solved you error or not. Thanks. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I followed this installation:
https://www.youtube.com/watch?v=8SQV-B83tPU
and it doesn't work:
tcmalloc: large alloc 1528012800 bytes == 0xb1f4000 @ 0x7f6d7cb60680 0x7f6d7cb81824 0x5f97c1 0x649901 0x5c43c6 0x4f327e 0x64e618 0x505163 0x56bbe1 0x5f5ee6 0x56bab6 0x569d8a 0x5f60c3 0x56cc92 0x5f5ee6 0x56bab6 0x569d8a 0x68e267 0x67d9b1 0x67da2f 0x67dad1 0x67fbf7 0x6b8082 0x6b840d 0x7f6d7c95f083 0x5faa2e
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/whisper/audio.py", line 42, in load_audio
ffmpeg.input(file, threads=0)
File "/usr/local/lib/python3.8/dist-packages/ffmpeg/_run.py", line 325, in run
raise Error('ffmpeg', out, err)
ffmpeg._run.Error: ffmpeg error (see stderr output for detail)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/bin/whisper", line 8, in
sys.exit(cli())
File "/usr/local/lib/python3.8/dist-packages/whisper/transcribe.py", line 316, in cli
result = transcribe(model, audio_path, temperature=temperature, **args)
File "/usr/local/lib/python3.8/dist-packages/whisper/transcribe.py", line 85, in transcribe
mel = log_mel_spectrogram(audio)
File "/usr/local/lib/python3.8/dist-packages/whisper/audio.py", line 111, in log_mel_spectrogram
audio = load_audio(audio)
File "/usr/local/lib/python3.8/dist-packages/whisper/audio.py", line 47, in load_audio
raise RuntimeError(f"Failed to load audio: {e.stderr.decode()}") from e
RuntimeError: Failed to load audio: ffmpeg version 4.2.7-0ubuntu0.1 Copyright (c) 2000-2022 the FFmpeg developers
built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1)
configuration: --prefix=/usr --extra-version=0ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
libavutil 56. 31.100 / 56. 31.100
libavcodec 58. 54.100 / 58. 54.100
libavformat 58. 29.100 / 58. 29.100
libavdevice 58. 8.100 / 58. 8.100
libavfilter 7. 57.100 / 7. 57.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100
libpostproc 55. 5.100 / 55. 5.100
Best FREE Speech to Text AI - Whisper AI: No such file or directory
Any explanation? Thank you.
Beta Was this translation helpful? Give feedback.
All reactions