Linuxleech / flac-to-mp3

Transcode audio files to MP3 with parallel instances of FFMPEG
MIT License
29 stars 14 forks source link

FileNotFoundError: [WinError 2] The system cannot find the file specified on Windows #2

Closed varunkhanna1993 closed 4 years ago

varunkhanna1993 commented 4 years ago

Hi, I am trying to convert .opus files to mp3 on windows.

The error I am getting is:

Transcoding 1644 Audio files

FileNotFoundError Traceback (most recent call last)

in 34 PROCESSES += Folder[1] 35 print(f"Transcoding {len(PROCESSES)} Audio files") ---> 36 JOBS = p.map(converttomp3, PROCESSES) 37 FAILED_JOBS = [] 38 for job in JOBS: ~\AppData\Local\Continuum\anaconda3\envs\purecloud-aws\lib\multiprocessing\pool.py in map(self, func, iterable, chunksize) 266 in a list that is returned. 267 ''' --> 268 return self._map_async(func, iterable, mapstar, chunksize).get() 269 270 def starmap(self, func, iterable, chunksize=None): ~\AppData\Local\Continuum\anaconda3\envs\purecloud-aws\lib\multiprocessing\pool.py in get(self, timeout) 655 return self._value 656 else: --> 657 raise self._value 658 659 def _set(self, i, obj): ~\AppData\Local\Continuum\anaconda3\envs\purecloud-aws\lib\multiprocessing\pool.py in worker(inqueue, outqueue, initializer, initargs, maxtasks, wrap_exception) 119 job, i, func, args, kwds = task 120 try: --> 121 result = (True, func(*args, **kwds)) 122 except Exception as e: 123 if wrap_exception and func is not _helper_reraises_exception: ~\AppData\Local\Continuum\anaconda3\envs\purecloud-aws\lib\multiprocessing\pool.py in mapstar(args) 42 43 def mapstar(args): ---> 44 return list(map(*args)) 45 46 def starmapstar(args): in converttomp3(task) 29 stderr=subprocess.DEVNULL, 30 stdout=subprocess.DEVNULL, ---> 31 stdin=subprocess.PIPE) 32 #If you don't provide stdin pipe, ffmpeg will not exit gracefully 33 #when running multiple instances and will require you to reset your ~\AppData\Local\Continuum\anaconda3\envs\purecloud-aws\lib\subprocess.py in run(input, capture_output, timeout, check, *popenargs, **kwargs) 486 kwargs['stderr'] = PIPE 487 --> 488 with Popen(*popenargs, **kwargs) as process: 489 try: 490 stdout, stderr = process.communicate(input, timeout=timeout) ~\AppData\Local\Continuum\anaconda3\envs\purecloud-aws\lib\subprocess.py in __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds, encoding, errors, text) 798 c2pread, c2pwrite, 799 errread, errwrite, --> 800 restore_signals, start_new_session) 801 except: 802 # Cleanup if the child failed starting. ~\AppData\Local\Continuum\anaconda3\envs\purecloud-aws\lib\subprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, unused_restore_signals, unused_start_new_session) 1205 env, 1206 os.fspath(cwd) if cwd is not None else None, -> 1207 startupinfo) 1208 finally: 1209 # Child is launched. Close the parent's copy of those pipe FileNotFoundError: [WinError 2] The system cannot find the file specified