Error: "The system cannot find the file specified" with Unity
Closed this issue · 1 comments
MarioTennis commented
I am trying to use this inside of Unity, but when testing the samples engine.GetMetaData(...) or engine.Convert(...) I get this error:
Win32Exception: ApplicationName='/MediaToolkit/ffmpeg.exe', CommandLine='-nostdin -y -loglevel info -i "C:\Path\Clip_1_.mp4" ', CurrentDirectory='', Native error= The system cannot find the file specified.
I can verify that the file does exist in the specified folder.
Any help would be appreciated.
MarioTennis commented
Solution: Need to define the path of ffmpeg in the Engine constructor:
using (var engine = new Engine(@"C:\MediaToolkit\ffmpeg.exe"))
{
engine.GetMetadata(inputFile);
}