FFMPEG Not found

2019-08-20 17:03发布

问题:

I am writing a java code using jave api, but the underlying code for api uses ffmpeg, as per requirement I have saved ffmpeg in C:\ffmpeg and added the path of ffmpeg.exe to environment variables on Windows. But I am getting this error

it.sauronsoftware.jave.DefaultFFMPEGLocator copyFile
SEVERE: Could not get native library for ffmpeg-x86.exe

I searched on google but unable to find any solution.

回答1:

You were attempting to use the DefaultFFMpegLocator. Try this instead:

From the Jave docs:

JAVE gives you an abstract class called it.sauronsoftware.jave.FFMPEGLocator. Extend it. All you have to do is to define the following method:

public java.lang.String getFFMPEGExecutablePath()

This method should return a file system based path to your custom ffmpeg executable.