szx-1283 修改ffmpeg路径

This commit is contained in:
Caojr
2025-11-03 15:13:21 +08:00
parent 49b69db0bf
commit 302a673515

View File

@@ -265,7 +265,7 @@ public class CourseFileApi extends ApiBaseController {
MultimediaInfo m = new MultimediaObject(new File(fileFullPath), new DefaultFFMPEGLocator() { MultimediaInfo m = new MultimediaObject(new File(fileFullPath), new DefaultFFMPEGLocator() {
@Override @Override
public String getExecutablePath() { public String getExecutablePath() {
return "/usr/local/opt/ffmpeg"; return "/usr/local/opt/ffmpeg/ffmpeg";
} }
}).getInfo(); }).getInfo();
Long ls = m.getDuration() / 1000;//秒 Long ls = m.getDuration() / 1000;//秒