FFMPEG Not found

2019-08-20 16:22发布

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条回答
疯言疯语
2楼-- · 2019-08-20 17:22

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.

查看更多
登录 后发表回答