mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-10 11:26:50 +08:00
szx-1283 修改ffmpeg路径
This commit is contained in:
@@ -265,7 +265,7 @@ public class CourseFileApi extends ApiBaseController {
|
||||
MultimediaInfo m = new MultimediaObject(new File(fileFullPath), new DefaultFFMPEGLocator() {
|
||||
@Override
|
||||
public String getExecutablePath() {
|
||||
return "/usr/local/opt/ffmpeg";
|
||||
return "/usr/local/opt/ffmpeg/ffmpeg";
|
||||
}
|
||||
}).getInfo();
|
||||
Long ls = m.getDuration() / 1000;//秒
|
||||
|
||||
Reference in New Issue
Block a user