jumpcutter icon indicating copy to clipboard operation
jumpcutter copied to clipboard

[Errno 2] No such file or directory: 'TEMP/audio.wav'

Open FO1R opened this issue 5 years ago • 10 comments

'ffmpeg' is not recognized as an internal or external command, operable program or batch file. 'ffmpeg' is not recognized as an internal or external command, operable program or batch file. Traceback (most recent call last): File "jumpcutter.py", line 109, in sampleRate, audioData = wavfile.read(TEMP_FOLDER+"/audio.wav") File "C:\Users\pc\AppData\Roaming\Python\Python37\site-packages\scipy\io\wavfile.py", line 233, in read fid = open(filename, 'rb') FileNotFoundError: [Errno 2] No such file or directory: 'TEMP/audio.wav'

FO1R avatar Sep 05 '19 16:09 FO1R

Please tell us what you did to get this error.

Lamaun avatar Sep 17 '19 19:09 Lamaun

I use Windows 10 64bit system I have all the required software as listed on the required .txt file. I made a folder with the footage in a .mp4 format and the python script (the python script file wasn't incorrectly copied over because I also tried it with the download version). Then I held left shift and right clicked on the folders empty space and pressed "Open PowerShell window here" and then typed in "python jumpcutter.py --input_file Female.mp4 --output_file Female_cut.mp4 --sounded_speed 1 --silent_speed 7 --frame_margin 2" then the console spits out the text that is shown in the post. edit: Also the TEMP file has (after running the script) a "params.txt" which has this inside: 'ffmpeg' is not recognized as an internal or external command, operable program or batch file.

FO1R avatar Sep 22 '19 13:09 FO1R

Try moving ffmpeg.exe into the same folder as the jumpcutter.py

Lamaun avatar Sep 23 '19 10:09 Lamaun

Thank you, kind sir. the issue was that the ffmpeg.exe was not in the folder but in ShareX>Tools. and you have to have THE .exe and not a shortcut. Got a long video brewing 2 hours after I'm supposed to go to sleep so... Thank you!

FO1R avatar Sep 24 '19 19:09 FO1R

Oh, another issue it popped out this "10000 time-altered frames saved. 10020 time-altered frames saved. 10040 time-altered frames saved. Traceback (most recent call last): File "jumpcutter.py", line 166, in outputAudioData = np.concatenate((outputAudioData,alteredAudioData/maxAudioVolume)) File "<array_function internals>", line 6, in concatenate numpy.core._exceptions.MemoryError: Unable to allocate array with shape (30689280, 2) and data type float64" don't know what's wrong but i got a temp file full of those save frames and an audio file and then new frames with a tempstart.wav and tempend.wav

FO1R avatar Sep 24 '19 19:09 FO1R

Your memory ran out. Try splitting the video into smaller parts and than using jumpcutter.

Lamaun avatar Sep 24 '19 19:09 Lamaun

If you are a macOS user, the problem is most likely that you don't have ffmpeg installed. This can be solved by installing Homebrew and brew install ffmpeg. If this is not the problem, the error should also be visible under /TEMP/params.txt.

namitoyokota avatar Dec 24 '19 22:12 namitoyokota

Try moving ffmpeg.exe into the same folder as the jumpcutter.py

I have windows 10 and followed the exact step the author wrote, but I am still getting the exact same error as the post. I can't seem to find the ffmpeg.exe inside the repository and I tried to install it using git install ffmpeg, but the error still persist.

Solution:

  1. download win64-gpl-4.3.zip from https://github.com/BtbN/FFmpeg-Builds/releases.
  2. unzip
  3. copy ffmpeg.exe from bin and paste it into your repository folder

SLeAsian avatar Nov 21 '20 16:11 SLeAsian

Traceback (most recent call last): File "jumpcutter.py", line 108, in sampleRate, audioData = wavfile.read(TEMP_FOLDER+"/audio.wav") File "site-packages\scipy\io\wavfile.py", line 233, in read FileNotFoundError: [Errno 2] No such file or directory: 'TEMP/audio.wav' [936] Failed to execute script jumpcutter

I have installed FFmpeg, but still get this part of an error.

Pijussad avatar Feb 14 '21 21:02 Pijussad

Try moving ffmpeg.exe into the same folder as the jumpcutter.py

I have windows 10 and followed the exact step the author wrote, but I am still getting the exact same error as the post. I can't seem to find the ffmpeg.exe inside the repository and I tried to install it using git install ffmpeg, but the error still persist.

Solution:

  1. download win64-gpl-4.3.zip from https://github.com/BtbN/FFmpeg-Builds/releases.
  2. unzip
  3. copy ffmpeg.exe from bin and paste it into your repository folder

✅ This works fine.

aminsoheyli avatar Dec 21 '21 11:12 aminsoheyli