FileNotFoundError: [WinError 2] The system cannot find the file specified (using ffmpeg.probe())

334 Views Asked by At

I'm trying to access metadata for a video using ffmpeg.probe() and it gives this error message. There is very little info on probe online.

import os
import ffmpeg


os.chdir('E:/F/Salvaged goods/Videos/Miro/Kvikmyndir/Blade_Runner_2049.1080p.WEB-DL.H264.AC3-EVO')

pprint(ffmpeg.probe(filename='Blade_Runner_2049.1080p.WEB-DL.H264.AC3-EVO.mkv', cmd='ffprobe'))

I have also tried this, and got the same error message:

pprint(ffmpeg.probe(filename='E:/F/Salvaged goods/Videos/Miro/Kvikmyndir/Blade_Runner_2049.1080p.WEB-DL.H264.AC3-EVO/Blade_Runner_2049.1080p.WEB-DL.H264.AC3-EVO.mkv', cmd='ffprobe'))

Here is the Traceback:

Traceback (most recent call last):
  File "C:\Users\hjalt\PycharmProjects\HelloWorld\app_builder.py", line 50, in <module>
    pprint(ffmpeg.probe(filename='Blade_Runner_2049.1080p.WEB-DL.H264.AC3-EVO.mkv', cmd='ffprobe'))
  File "C:\Users\hjalt\PycharmProjects\HelloWorld\venv\lib\site-packages\ffmpeg\_probe.py", line 20, in probe
    p = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  File "C:\Users\hjalt\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 969, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\Users\hjalt\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 1438, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
0

There are 0 best solutions below